马宇豪
2024-03-01 e35966eed0589825005f5ab9f67148b118ce8bac
修复弹窗bug
已修改3个文件
27 ■■■■ 文件已修改
src/store/index.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Admin/components/msgEditMod.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Admin/notice.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/index.js
@@ -4,10 +4,8 @@
Vue.use(Vuex)
export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  state: {},
  mutations: {},
  actions: {
  },
  modules: {
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 = []
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 {