zhouwx
2024-08-19 3cc4abeb92d11d7a8b365928c5aa9452679fe06c
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,12 +119,14 @@
              <a-tree-select
                  v-model="form.recipient"
                  style="width: 100%"
                  :maxTagCount="3"
                  :tree-data="treeData"
                  tree-checkable
                  placeholder="选择平级接收单位"
                  :show-checked-strategy="SHOW_PARENT"
                  search-placeholder="Please select"
                  @change="handle"
                  @focus="getPj()"
              />
                  </a-form-model-item>
               </a-col>
@@ -140,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>
@@ -151,7 +153,7 @@
            <h2>短信预览</h2>
            <div class="mobile">
               <div class="mesg">
                  <P>【自然灾害风险预警提示】{{form.content}}</P>
                  <P>【防灾减灾工作提示】{{form.content}}</P>
               </div>
            </div>
         </div>
@@ -317,6 +319,7 @@
      components: {},
      created() {
         const t = this
      t.treeData = []
      t.getAreaUsers()
      t.areaUsers = JSON.parse(localStorage.getItem('areaUsers'))
         const {
@@ -342,7 +345,6 @@
            for (const resKey in res.data.data) {
              t.filteredOptions = t.filteredOptions.concat(...res.data.data[resKey]);
              console.log(t.filteredOptions,'ops')
              const obj = {
                  title: resKey,
                  value: resKey,
@@ -363,7 +365,10 @@
               this.$message.warning(res.data.msg);
            }
         },
      getPj(){
        this.treeData = []
        this.getSameLevel()
      },
         // 获取接收单位
         async getAreaUsers() {
            let t = this
@@ -574,7 +579,6 @@
                     ...data
                  } = this.form
                  msgSend(data).then(res => {
                     if (res.data.code == 100) {
                        this.deleteFile()
                        this.$message.success('信息已提交审核')