From 0f5f6c27d2e4cbf8202c46cdcb30f335b712f7f6 Mon Sep 17 00:00:00 2001 From: Esacpe <1113279529@qq.com> Date: Tue, 15 Jul 2025 18:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/index.vue | 2 +- .../mpvGroup/components/addForm.vue | 72 +++++++++++-------- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index cdecf1f..32d3481 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -36,7 +36,7 @@ const props = defineProps({ }, color:{ type:String, - default:'#fff' + default:'#6f6f74' }, tag: false, value: [Number, String, Array] diff --git a/src/views/backOfficeSystem/DeploymentDisposal/mpvGroup/components/addForm.vue b/src/views/backOfficeSystem/DeploymentDisposal/mpvGroup/components/addForm.vue index 6188c38..7c6d3f7 100644 --- a/src/views/backOfficeSystem/DeploymentDisposal/mpvGroup/components/addForm.vue +++ b/src/views/backOfficeSystem/DeploymentDisposal/mpvGroup/components/addForm.vue @@ -10,16 +10,16 @@
-
管理重点人 : 选择
+
管理重点人 : 选择
- + - + - +
@@ -169,20 +169,20 @@ const listQuery = ref({}); //表单 const loading = ref(false); const elform = ref(); const title = ref(""); -onMounted(() => { }); + // 初始化数据 const init = async (type, row) => { dialogForm.value = true; title.value = type == "add" ? "新增" : type == 'detail' ? '详情':"编辑"; - pageData.tableConfiger.haveControls = true; if(type == 'add'){ - listQuery.value.bkfqrXm = getItem("USERNAME"); + listQuery.value.sqrXm = getItem("USERNAME"); listQuery.value.bkfqrSfzh = getItem("idEntityCard"); - listQuery.value.bkfqrSsbmmc = getItem("deptId")[0].deptName;; - listQuery.value.bkfqrSsbmdm = getItem("deptId")[0].deptCode;; + listQuery.value.sqrSsbmmc = getItem("deptId")[0].deptName;; + listQuery.value.sqrSsbmdm = getItem("deptId")[0].deptCode;; } disabled.value = type == 'detail' ? true : false; - if(row) pageData.tableConfiger.haveControls = false; + pageData.tableConfiger.haveControls = type == "detail" ? false: true; + pageData.qcjConfiger.haveControls = type == "detail" ? false: true; if(row) getDataById(row.id) }; @@ -204,6 +204,11 @@ const addEdteCj = (val) =>{ pageData.keyCountCj++; } +const handleChooseMarks = () =>{ + if(disabled.value) return; + chooseMarksVisible.value = true +} + // 新增标签 const addMarks = (val) =>{ listQuery.value.bqList = val.map(v=>{ @@ -263,6 +268,13 @@ const submit = () => { }); }; +const getShdep = (val) =>{ + listQuery.value.shrSsbmmc = val ? val.orgName : '' +} +const getSPdep = (val) =>{ + listQuery.value.sprSsbmmc = val ? val.orgName : '' +} + // 关闭 const close = () => { listQuery.value = {}; @@ -277,7 +289,7 @@ defineExpose({ init }); @import "~@/assets/css/element-plus.scss"; .boxlist { - width: calc(99% - 100px); + width: calc(99% - 50px); margin-top: 10px; overflow: hidden; }