| | |
| | | <template> |
| | | <win-sm :title="setting.title" @close="close" :width="'800px'"> |
| | | <el-form ref="ruleForm" :model="formData" :rules="rules" class="demo-ruleForm" label-width="100px"> |
| | | <el-form-item label="上级分类" prop="fatherCategoryName" :key="key"> |
| | | <el-form-item v-if="setting.pid" label="上级分类" prop="fatherCategoryName" :key="key"> |
| | | <el-input |
| | | v-model="formData.fatherCategoryName" |
| | | clearable |
| | |
| | | import winSm from '@/components/win/win-sm'; |
| | | import myButton from '@/components/myButton/myButton'; |
| | | import * as finsystenant from '@/api/baseSetting/finsystenant'; |
| | | import { getDicts } from '@/api/system/dict/data'; |
| | | import { getCategoryDetail } from '@/api/foudation/classification'; |
| | | import {getDicts} from '@/api/system/dict/data'; |
| | | import {getCategoryDetail} from '@/api/foudation/classification'; |
| | | |
| | | export default { |
| | | components: { winSm, myButton }, |
| | | props: { |
| | |
| | | getEditInfo(id) {}, |
| | | // 分类名称获取 |
| | | getCategoryName() { |
| | | if(!this.formData.fatherCategoryId) return |
| | | getCategoryDetail({ id: this.formData.fatherCategoryId }).then((res) => { |
| | | this.formData.fatherCategoryName = res.categoryName; |
| | | this.key = Math.random(); |