From e35966eed0589825005f5ab9f67148b118ce8bac Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 01 三月 2024 08:52:29 +0800 Subject: [PATCH] 修复弹窗bug --- src/views/Admin/components/msgEditMod.vue | 15 ++++++++------- src/store/index.js | 6 ++---- src/views/Admin/notice.vue | 6 ++++-- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 332b916..0687b45 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,10 +4,8 @@ Vue.use(Vuex) export default new Vuex.Store({ - state: { - }, - mutations: { - }, + state: {}, + mutations: {}, actions: { }, modules: { diff --git a/src/views/Admin/components/msgEditMod.vue b/src/views/Admin/components/msgEditMod.vue index e1f89ac..c50d0cc 100644 --- a/src/views/Admin/components/msgEditMod.vue +++ b/src/views/Admin/components/msgEditMod.vue @@ -143,6 +143,7 @@ <!-- </a-select>--> <a-tree-select v-model="form.recipient" + :maxTagCount="3" style="width: 100%" :tree-data="treeData" tree-checkable @@ -291,19 +292,19 @@ const t = this const { baseUrl } = require('../../../../config/env.' + process.env.NODE_ENV) t.uploadUrl= baseUrl + '/attachment/upload/detail' - t.userInfo = getUserInfo() - t.header.uid = t.userInfo.uid - t.form.districtId = t.userInfo.districtId - t.form.publishingUnit = t.userInfo.company - t.getSameLevel() - t.getAreaUsers() }, computed: {}, methods: { openMod(type,data,id){ const t = this - console.log(data,'data') t.getLeaders() + t.treeData = [] + t.userInfo = getUserInfo() + t.header.uid = t.userInfo.uid + t.form.districtId = t.userInfo.districtId + t.form.publishingUnit = t.userInfo.company + t.getSameLevel() + t.getAreaUsers() t.form.acceptingUnitIds = [] t.form.peerRecipientIds = [] t.sendLeaders = [] diff --git a/src/views/Admin/notice.vue b/src/views/Admin/notice.vue index a3b18a4..1b23bdf 100644 --- a/src/views/Admin/notice.vue +++ b/src/views/Admin/notice.vue @@ -79,7 +79,7 @@ </a-col> </a-row> <!-- <span><b>发布单位:</b>{{form.publishingUnit}}</span>--> - <br /><br /> +<!-- <br /><br />--> <!-- 子单位--> <a-row :gutter="24"> <a-col :span="12"> @@ -119,6 +119,7 @@ <a-tree-select v-model="form.recipient" style="width: 100%" + :maxTagCount="3" :tree-data="treeData" tree-checkable placeholder="选择平级接收单位" @@ -141,7 +142,7 @@ </a-form-model-item> </a-col> <a-col :span="12" style="text-align: right"> - <a-button type="primary" style="width: 250px;" @click="confirmSend()" v-preventReClick="1500" + <a-button type="primary" style="width: 250px;" @click="confirmSend()" v-preventReClick="2000" :disabled="userInfo.role.id==1?true:false"> 确认并提交审核 </a-button> @@ -318,6 +319,7 @@ components: {}, created() { const t = this + t.treeData = [] t.getAreaUsers() t.areaUsers = JSON.parse(localStorage.getItem('areaUsers')) const { -- Gitblit v1.9.2