From b413394a0a4bdbb2b3af67f3faf86b3b7351655a Mon Sep 17 00:00:00 2001
From: jazz <jazzxhunter@163.com>
Date: 星期三, 24 八月 2022 11:20:31 +0800
Subject: [PATCH] update_202208241120_临时发送添加短信类型

---
 src/pages/index/index.vue |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 552725b..c12d1ce 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -27,6 +27,16 @@
           @keyup.enter.native="reGetList"
         />
       </el-form-item>
+      <el-form-item label="鐭俊绫诲瀷">
+        <el-select v-model="smsType" clearable placeholder="閫夋嫨鐭俊绫诲瀷" @change="reGetList">
+          <el-option
+            v-for="item in smsTypeOpts"
+            :key="item.value"
+            :label="item.label"
+            :value="item.value"
+          />
+        </el-select>
+      </el-form-item>
       <el-form-item>
         <el-button type="cyan" icon="el-icon-search" size="mini" @click="reGetList">鎼滅储</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetHandle">閲嶇疆</el-button>
@@ -126,6 +136,16 @@
         <el-form-item label="鎵规缂栧彿" prop="batchCode">
           <el-input v-model="dialogData.batchCode" placeholder="璇疯緭鍏ユ壒娆$紪鍙�" maxlength="255" />
         </el-form-item>
+        <el-form-item label="鐭俊绫诲瀷" prop="smsType">
+          <el-select v-model="dialogData.smsType" clearable placeholder="閫夋嫨鐭俊绫诲瀷">
+            <el-option
+              v-for="item in smsTypeOpts"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            />
+          </el-select>
+        </el-form-item>
         <el-form-item label="涓婁紶鏂囦欢" prop="uploadFiles">
           <div class="upload_single_file">
             <!-- 涓婁紶鏂囦欢缁勪欢(鍗�) -->
@@ -186,6 +206,7 @@
       // keyWord: '', // 鎼滅储鍖哄瓧娈碉紝鍙嚜琛屾墿灞曞叾浣欏瓧娈�
       batchName: '',
       batchCode: '',
+      smsType: '',
 
       objectName: '鐭俊', // 瀵硅薄鍚嶇О锛岀敤浜庡垹闄ゆ彁绀恒�佸惎鐢ㄦ彁绀恒�佸脊绐楁爣棰樼瓑
 
@@ -198,6 +219,12 @@
       // 寮圭獥鏁版嵁
       dialogVisible: false,
       dialogData: {},
+
+      smsTypeOpts: [
+        { label: '楠岃瘉鐮�', value: 0 },
+        { label: '閫氱煡鐭俊', value: 1 },
+        { label: '钀ラ攢鐭俊', value: 2 }
+      ],
 
       // 瀵屾枃鏈紪杈戝櫒
       // rangenum: null,
@@ -218,6 +245,9 @@
         ],
         smsTemplate: [
           { required: true, message: '鐭俊妯″唴瀹逛笉鑳戒负绌�', trigger: 'change' }
+        ],
+        smsType: [
+          { required: true, message: '鐭俊绫诲瀷涓嶈兘涓虹┖', trigger: 'change' }
         ]
         // isUp: [
         //   { required: true, message: '鏄惁涓婃灦涓嶈兘涓虹┖', trigger: 'change' }
@@ -251,7 +281,7 @@
 
     // 鑾峰彇鍒楄〃
     getList() {
-      var { pageNum, pageSize, batchName, batchCode } = this
+      var { pageNum, pageSize, batchName, batchCode, smsType } = this
       this.postFN({
         url: 'send-general/list',
         header: { 'Content-Type': 'application/json;charset=UTF-8' },
@@ -260,7 +290,8 @@
           pageSize: pageSize,
 
           batchName: batchName,
-          batchCode: batchCode
+          batchCode: batchCode,
+          smsType: smsType
         },
         mockData: {
           code: 100,
@@ -290,6 +321,7 @@
     resetHandle() {
       this.batchCode = ''
       this.batchName = ''
+      this.smsType = ''
       this.reGetList()
     },
     // 鍒犻櫎
@@ -354,7 +386,8 @@
       var dialogData = {
         batchCode: '',
         batchName: '',
-        smsTemplate: ''
+        smsTemplate: '',
+        smsType: ''
       }
       this.uploadFiles = []
       this.dialogVisible = true

--
Gitblit v1.8.0