From 9e2e0baeff46fb6ecfe21145f7250d67b13ca79e Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 30 十二月 2024 17:35:54 +0800 Subject: [PATCH] 去掉空RecordForm --- src/views/model/mpk/file/MpkForm.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/views/model/mpk/file/MpkForm.vue b/src/views/model/mpk/file/MpkForm.vue index 6466eaf..8dfbae9 100644 --- a/src/views/model/mpk/file/MpkForm.vue +++ b/src/views/model/mpk/file/MpkForm.vue @@ -116,7 +116,7 @@ float: right; color: var(--el-text-color-secondary); font-size: 13px;"> - <img :src="'/SimtreeUnitImage/' + item.iconName" style="height: 24px;" :alt=" item.iconDesc" /> + <img :src="staticDir + 'SimtreeUnitImage/' + item.iconName" style="height: 24px;" :alt=" item.iconDesc" /> </span> </el-option> </el-select> @@ -210,6 +210,7 @@ @click="updateSetting(scope.row)" key="danger" type="primary" + :disabled="scope.row.settingKey === 'pyFile'" link >修改 </el-button> @@ -217,6 +218,7 @@ @click="deleteSetting(props.row.methodSettings,scope.$index)" key="danger" type="danger" + :disabled="scope.row.settingKey === 'pyFile'" link >删除 </el-button> @@ -267,6 +269,8 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改 const route = useRoute() // 路由 const router = useRouter(); + + const staticDir = ref(import.meta.env.VITE_STATIC_DIR) const treeData = ref([]) const iconList = ref([] as MpkIconApi.MpkIconVO) @@ -328,6 +332,9 @@ ], menuAndGroup: [ {required: true, message: '所属目录不能为空', trigger: 'blur'} + ], + icon: [ + {required: true, message: 'icon不能为空', trigger: 'blur'} ], }) @@ -447,7 +454,9 @@ if (id) { formLoading.value = true try { + debugger formData.value = await MpkApi.getMpk(id) + debugger } finally { formLoading.value = false } -- Gitblit v1.9.3