From 67b253c743840e6cc1720e824b0edb449e282a37 Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 17:37:26 +0800 Subject: [PATCH] feat: 2、部门物品退回详情 --- admin-web/src/views/foundation/classification/edit.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/admin-web/src/views/foundation/classification/edit.vue b/admin-web/src/views/foundation/classification/edit.vue index 808e3f7..f73ff82 100644 --- a/admin-web/src/views/foundation/classification/edit.vue +++ b/admin-web/src/views/foundation/classification/edit.vue @@ -1,7 +1,7 @@ <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 @@ -48,8 +48,9 @@ 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: { @@ -100,6 +101,7 @@ getEditInfo(id) {}, // 鍒嗙被鍚嶇О鑾峰彇 getCategoryName() { + if(!this.formData.fatherCategoryId) return getCategoryDetail({ id: this.formData.fatherCategoryId }).then((res) => { this.formData.fatherCategoryName = res.categoryName; this.key = Math.random(); -- Gitblit v1.9.1