liqianyi 3 anni fa
parent
commit
06a78caab1
1 ha cambiato i file con 23 aggiunte e 2 eliminazioni
  1. 23 2
      src/views/modules/msg-center/announcement.vue

+ 23 - 2
src/views/modules/msg-center/announcement.vue

@@ -3,6 +3,18 @@
   <div class="order">
     <template v-if="!addOrUpdateVisible">
       <el-form :inline="true" :model="dataForm" @keyup.enter.native="queryData()">
+        <el-form-item label="通知类型">
+          <el-select
+            v-model="dataForm.type"
+            placeholder="请选择">
+            <el-option
+              v-for="item in optionsType"
+              :key="item.code"
+              :label="item.value"
+              :value="item.code">
+            </el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item label="标题">
           <el-input v-model="dataForm.title" clearable/>
         </el-form-item>
@@ -152,7 +164,15 @@
       return {
         addOrUpdateVisible: false,
         previewVisible: false,
-        dataForm: {},
+        dataForm: {type: 1},
+        optionsType: [
+          {
+            code: 1, value: '公告'
+          },
+          {
+            code: 3, value: '业务更改通知'
+          }
+        ],
         dataList: [],
         pageIndex: 1,
         pageSize: 10,
@@ -182,7 +202,8 @@
           'size': this.pageSize,
           'createTime': this.dataForm.createTime ? this.dataForm.createTime : null,
           'state': this.dataForm.state ? this.dataForm.state : null,
-          'businessId': this.dataForm.businessId ? this.dataForm.businessId : null
+          'businessId': this.dataForm.businessId ? this.dataForm.businessId : null,
+          'type': this.dataForm.type ? this.dataForm.type : 1
         }
         getAnnouncementList(params).then(({data}) => {
           if (data && data.code === '200') {