From 3c4d54bcb66d7cec4a35defc999250e200b4fdd2 Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期四, 25 五月 2023 15:39:37 +0800
Subject: [PATCH] 不予立案

---
 src/views/cause/Entry.vue |  314 +++++++++++++++++++++++++++++----------------------
 1 files changed, 177 insertions(+), 137 deletions(-)

diff --git a/src/views/cause/Entry.vue b/src/views/cause/Entry.vue
index c7dd612..4c050a3 100644
--- a/src/views/cause/Entry.vue
+++ b/src/views/cause/Entry.vue
@@ -16,13 +16,13 @@
             <el-button type="primary" @click="search">鏌ヨ</el-button>
           </el-form-item>
           <el-form-item>
-            <el-button type="primary" @click="addAduitDialogVisible = true">娣诲姞</el-button>
+            <el-button type="primary" @click="addAduitAnJian">娣诲姞</el-button>
           </el-form-item>
 
           <el-form-item>
             <el-upload name="multipartFile" class="upload-demo" action="/api/cause/upload " :show-file-list="false"
               :before-upload="beforeAvatarUpload" :on-success="respond" :limit="1">
-              <el-button type="primary">瀵煎叆</el-button>
+<!--              <el-button type="primary">瀵煎叆</el-button>-->
             </el-upload>
           </el-form-item>
         </el-form>
@@ -35,17 +35,18 @@
           </el-table-column>
           <el-table-column prop="reportNumber" label="鎶ユ浜烘暟" width="100" header-align="center" align="center">
           </el-table-column>
-             <el-table-column prop="totalMoney" label="棰勪及鎬婚噾棰�" width="100" header-align="center" align="center">
+          <el-table-column prop="totalMoney" label="棰勪及鎬婚噾棰�" width="100" header-align="center" align="center">
           </el-table-column>
           <el-table-column prop="firstTime" label="鏈�鏃╁彂妗堟棩鏈�" width="160" header-align="center" align="center">
           </el-table-column>
           <el-table-column prop="status" label="妗堜欢鐘舵��" width="110" header-align="center" align="center">
             <template slot-scope="scope">
-              <span v-if="scope.row.status == 0">鍙楃悊涓�</span>
-              <span v-if="scope.row.status == 1">涓嶄簣绔嬫</span>
-              <span v-if="scope.row.status == 2">浠ョ珛妗�</span>
-              <span v-if="scope.row.status == 3">宸茬粨妗�</span>
-              <span v-if="scope.row.status == 4">宸茬珛妗�</span>
+              <span v-if="scope.row.status == 5">涓嶄簣绔嬫</span>
+              <span v-if="scope.row.status == 0">绔嬫</span>
+              <span v-if="scope.row.status == 1">鍒濇煡</span>
+              <span v-if="scope.row.status == 2">鍙楃悊</span>
+              <span v-if="scope.row.status == 3">绉婚�佽捣璇�</span>
+              <span v-if="scope.row.status == 4">缁撴</span>
             </template>
           </el-table-column>
           <el-table-column prop="userName" label="璐熻矗浜�" width="130" header-align="center" align="center">
@@ -70,7 +71,7 @@
     <!--娣诲姞妗堜欢寮圭獥-->
     <el-dialog title="娣诲姞妗堜欢" :visible.sync="addAduitDialogVisible" :before-close="addAduitClose">
       <el-row :gutter="15">
-        <el-form ref="causeForm" :model="causeForm" :rules="addCauseRules" size="medium" label-width="100px">
+        <el-form ref="causeForm" :model="causeForm" :rules="addCauseRules" size="medium" label-width="140px">
           <el-col :span="12">
             <el-form-item label="妗堜欢缂栧彿 " prop="number">
               <el-input v-model="causeForm.number" clearable :style="{ width: '100%' }" placeholder="杈撳叆妗堜欢缂栧彿">
@@ -83,15 +84,16 @@
               </el-input>
             </el-form-item>
           </el-col>
-           <el-col :span="12">
+          <el-col :span="12">
             <el-form-item label="棰勪及鎬婚噾棰�" prop="totalMoney">
-              <el-input v-model="causeForm.totalMoney" clearable :style="{ width: '100%' }" placeholder="杈撳叆棰勪及鎬婚噾棰�"></el-input>
+              <el-input v-model="causeForm.totalMoney" clearable :style="{ width: '100%' }"
+                placeholder="杈撳叆棰勪及鎬婚噾棰�"></el-input>
             </el-form-item>
           </el-col>
-          <el-col :span="12">
-            <el-form-item label="鏈�鏃╁彂妗�" prop="firstTime">
+          <el-col :span="24">
+            <el-form-item label="鏈�鏃╁彂妗堟椂闂�" prop="firstTime">
               <el-date-picker v-model="causeForm.firstTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿" clearable
-                :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss">
+                :style="{ width: '40%' }" value-format="yyyy-MM-dd HH:mm:ss">
               </el-date-picker>
             </el-form-item>
           </el-col>
@@ -111,7 +113,7 @@
               </el-select>
             </el-form-item>
           </el-col>
-          
+
           <el-col :span="24">
             <el-form-item label="妗堜欢鎻忚堪" prop="description">
               <el-input v-model="causeForm.description" type="textarea" placeholder="璇疯緭鍏ュ琛屾枃鏈�"
@@ -143,13 +145,13 @@
               </el-input>
             </el-form-item>
           </el-col>
-             <el-col :span="12">
+          <el-col :span="12">
             <el-form-item label="棰勪及鎬婚噾棰�" prop="totalMoney">
               <el-input v-model="updataCauseForm.totalMoney" clearable :style="{ width: '100%' }"></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="鏈�鍙戞棭妗堟椂闂�" prop="firstTime">
+            <el-form-item label="鏈�鏃╁彂妗堟椂闂�" prop="firstTime">
               <el-date-picker v-model="updataCauseForm.firstTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿"
                 :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss">
               </el-date-picker>
@@ -193,7 +195,7 @@
           <template slot="header">
             <el-form :inline="true" :model="queryInfoReport" class="demo-form-inline">
               <el-form-item label="鎶ユ浜�:">
-                <el-input placeholder="璇疯緭鍏ュ鍚嶆垨韬唤璇�" v-model="queryInfoReport.people" :style="{ width: '180px' }">
+                <el-input placeholder="璇疯緭鍏ュ鍚�" v-model="queryInfoReport.people" :style="{ width: '180px' }">
                 </el-input>
               </el-form-item>
               <el-form-item label="鎵嬫満鍙风爜:">
@@ -205,30 +207,31 @@
                   <el-option v-for="item in optionsGroup" :key="item.value" :label="item.label" :value="item.value">
                   </el-option>
                 </el-select>
-              </el-form-item>
+<!--              </el-form-item>-->
 
-              <el-form-item label="鎶ユ鏉愭枡:">
-                <el-select v-model="queryInfoReport.HavaMaterial" :style="{ width: '100px' }">
-                  <el-option v-for="item in optionsMate" :key="item.value" :label="item.label" :value="item.value">
-                  </el-option>
-                </el-select>
-              </el-form-item>
+<!--              <el-form-item label="鎶ユ鏉愭枡:">-->
+<!--                <el-select v-model="queryInfoReport.HavaMaterial" :style="{ width: '100px' }">-->
+<!--                  <el-option v-for="item in optionsMate" :key="item.value" :label="item.label" :value="item.value">-->
+<!--                  </el-option>-->
+<!--                </el-select>-->
+<!--              </el-form-item>-->
 
-              <el-form-item>
+<!--              <el-form-item>-->
                 <el-button type="primary" @click="searchByCondition">鏌ヨ</el-button>
               </el-form-item>
               <el-form-item>
                 <el-button type="primary" @click="addVisibelReport">娣诲姞</el-button>
+                <el-button type="primary" @click="exportExcel">瀵煎嚭</el-button>
               </el-form-item>
               <el-form-item>
                 <el-upload name="multipartFile" class="upload-demo" action="/api/cause/reporterUpload"
                   :show-file-list="false" :data="{ causeId: this.reportCauseId }" :before-upload="beforeAvatarUpload"
                   :on-success="reporterRespond" :limit="1">
-                  <el-button type="primary">瀵煎叆</el-button>
+<!--                  <el-button type="primary">瀵煎叆</el-button>-->
                 </el-upload>
               </el-form-item>
               <el-form-item>
-                <el-button type="primary" @click="exportExcel">鎶ユ鏉愭枡瀵煎嚭</el-button>
+<!--                <el-button type="primary" @click="exportExcel">鎶ユ鏉愭枡瀵煎嚭</el-button>-->
               </el-form-item>
 
             </el-form>
@@ -261,22 +264,25 @@
             </el-table-column>
             <el-table-column width="100" prop="reportMaterials" label="鎶ユ鏉愭枡">
               <template slot-scope="scope">
-                <span>{{ scope.row.reportMaterials === null||scope.row.reportMaterials === '' ? "鏈彁浜�" : "宸叉彁浜�" }}</span>
+                <span>{{ scope.row.reportMaterials === null || scope.row.reportMaterials === '' ? "鏈彁浜�" : "宸叉彁浜�"
+}}</span>
               </template>
             </el-table-column>
-            <el-table-column width="200" prop="ctime" label="鎶ユ鏃堕棿">
+            <el-table-column width="200" prop="reportTime" label="鎶ユ鏃堕棿">
               <template slot-scope="scope">
-                <span>{{ scope.row.ctime === null ? "2022-07-12 10:32:56" : scope.row.ctime }}</span>
+                <span>{{ scope.row.reportTime === null ? "2022-07-12 10:32:56" : scope.row.reportTime }}</span>
               </template>
             </el-table-column>
             <el-table-column label="鎿嶄綔">
               <template slot-scope="scope">
-                <el-button type="text" size="medium" @click="updataReport(scope.row)">缂栬緫</el-button>
-                <el-button type="text" size="medium"
-                  @click="leaveReport(scope.row.id, scope.row.causeId, scope.row.groupId)" style="color:#ff0000"
-                  :disabled="scope.row.isInGroup == 0">閫�缇� </el-button>
+<!--                <el-button type="text" size="medium" @click="updataReport(scope.row)">缂栬緫</el-button>-->
+<!--                <el-button type="text" size="medium"-->
+<!--                  @click="leaveReport(scope.row.id, scope.row.causeId, scope.row.groupId)" style="color:#ff0000"-->
+<!--                  :disabled="scope.row.isInGroup == 0">閫�缇� </el-button>-->
+<!--                <el-button type="text" size="medium" @click="removeReport(scope.row.id, scope.row.causeId)"-->
+<!--                  style="color:#ff0000" :disabled="scope.row.isInGroup == 1">鍒犻櫎 </el-button>-->
                 <el-button type="text" size="medium" @click="removeReport(scope.row.id, scope.row.causeId)"
-                  style="color:#ff0000" :disabled="scope.row.isInGroup == 1">鍒犻櫎 </el-button>
+                           style="color:#ff0000" >鍒犻櫎 </el-button>
               </template>
             </el-table-column>
           </el-table>
@@ -289,15 +295,15 @@
           :before-close="addReportVisibleClose">
           <el-row :gutter="15">
             <el-form ref="auditFrom" :model="auditFrom" :rules="addReportRules" size="medium" label-width="100px">
-              <!-- <el-col :span="12">
-            <el-form-item label="澶村儚" prop="pic" required>
-              <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false" :on-success="handleAvatarSuccess"
-                         list-type="picture-card" accept="image/*">
-                <img v-if="picShow" :src="picShow" style="width: 145px;height: 145px">
-                <i v-else class="el-icon-plus"></i>
-              </el-upload>
-            </el-form-item>
-          </el-col> -->
+              <el-col :span="12">
+                <el-form-item label="澶村儚" prop="pic" required>
+                  <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false"
+                    :on-success="handleAvatarSuccess" list-type="picture-card" accept="image/*">
+                    <img v-if="picShow" :src="picShow" style="width: 145px;height: 145px">
+                    <i v-else class="el-icon-plus"></i>
+                  </el-upload>
+                </el-form-item>
+              </el-col>
               <el-col :span="12">
                 <el-form-item label="鎶ユ浜� " prop="reporterName">
                   <el-input v-model="auditFrom.reporterName" placeholder="璇疯緭鍏ユ姤妗堜汉 " clearable :style="{ width: '100%' }">
@@ -362,31 +368,42 @@
           :before-close="updateReportVisibleclose">
           <el-row :gutter="20">
             <el-form ref="updateReportForm" :model="updateReportForm" size="medium" label-width="100px">
-              <!-- <el-col :span="12">
+              <el-col :span="12">
+                <el-form-item label="澶村儚" prop="pic" required>
+                  <el-upload ref="pic" action="/api/minio/upload" :show-file-list="false"
+                    :on-success="handleAvatarSuccess" list-type="picture-card" accept="image/*">
+                    <img v-if="updateReportForm.pic!=null||updateReportForm!=''" :src="updateReportForm.pic" style="width: 145px;height: 145px">
+                    <i v-else class="el-icon-plus"></i>
+                  </el-upload>
+                </el-form-item>
+              </el-col>
+
+              <el-col :span="12">
                 <el-form-item label="鎶ユ浜� " prop="reporterName">
-                  <el-input v-model="auditFrom.reporterName" placeholder="璇疯緭鍏ユ姤妗堜汉 " clearable :style="{ width: '100%' }">
+                  <el-input v-model="updateReportForm.reporterName" placeholder="璇疯緭鍏ユ姤妗堜汉 " clearable :style="{ width: '100%' }">
                   </el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="鎵嬫満鍙风爜" prop="mobile">
-                  <el-input v-model="auditFrom.mobile" placeholder="璇疯緭鍏ユ墜鏈哄彿鐮�" clearable :style="{ width: '100%' }">
+                  <el-input v-model="updateReportForm.mobile" placeholder="璇疯緭鍏ユ墜鏈哄彿鐮�" clearable :style="{ width: '100%' }">
                   </el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="韬唤璇佸彿" prop="idcard">
-                  <el-input v-model="auditFrom.idcard" placeholder="璇疯緭鍏ヨ韩浠借瘉鍙�" clearable :style="{ width: '100%' }">
+                  <el-input v-model="updateReportForm.idcard" placeholder="璇疯緭鍏ヨ韩浠借瘉鍙�" clearable :style="{ width: '100%' }">
                   </el-input>
                 </el-form-item>
-              </el-col> -->
-              <el-col :span="12">
+              </el-col>
+
+              <!-- <el-col :span="12">
                 <el-form-item prop="reportTime" label="鎶ユ鏃堕棿">
                   <el-date-picker v-model="updateReportForm.reportTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿" clearable
                     :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss">
                   </el-date-picker>
                 </el-form-item>
-              </el-col>
+              </el-col> -->
               <el-col :span="12">
                 <el-form-item label="琚獥鏃堕棿" prop="cheatTime">
                   <el-date-picker v-model="updateReportForm.cheatTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿" clearable
@@ -416,12 +433,12 @@
                 <el-form-item label="涓婁紶" prop="fileList" required>
                   <el-upload ref="reportMaterials" :file-list="updateReportForm.fileList" action="/api/minio/upload"
                     list-type="picture" :on-success="handleReporterMaterialSuccess">
+                    <img v-if="updateReportForm.reportMaterials!=''" :src="'/minio/img/'+updateReportForm.reportMaterials" style="width: 145px;height: 145px">
                     <el-button size="small" type="primary" icon="el-icon-upload">鐐瑰嚮涓婁紶</el-button>
                   </el-upload>
                 </el-form-item>
               </el-col>
-              <!-- 
-   <el-col :span="24">
+              <!-- <el-col :span="24">
                 <el-form-item label="涓婁紶" prop="fileList" required>
                   <el-upload ref="reportMaterials" :file-list="auditFrom.fileList" action="/api/minio/upload"
                     list-type="picture" :on-success="handleMaterialSuccess">
@@ -591,9 +608,9 @@
               </el-col>
               <el-col :span="12">
                 <el-form-item label="鐘舵��" prop="status">
-                    <span v-if="detailsGroupAn.status === 1">宸插彂甯�</span>
-                    <span v-else-if="detailsGroupAn.status === 0">鏈彂甯�</span>
-                    <span v-else="detailsGroupAn.status === 2">宸蹭笅鏋�</span>
+                  <span v-if="detailsGroupAn.status === 1">宸插彂甯�</span>
+                  <span v-else-if="detailsGroupAn.status === 0">鏈彂甯�</span>
+                  <span v-else="detailsGroupAn.status === 2">宸蹭笅鏋�</span>
                 </el-form-item>
               </el-col>
             </el-form>
@@ -729,6 +746,7 @@
         size: 10,
       },
       auditFrom: {
+        pic: '',
         reporterName: '',
         mobile: '',
         idcard: '',
@@ -799,9 +817,7 @@
       reportCauseId: null,
       reportTotal: 0,
       reportList: [],
-      addAduitDialogVisible: false,
       infoAduitDialogVisible: false,
-      causeOptions: [],
       groupAnVisible: false,
       addCauseRules: {
         number: [{
@@ -824,7 +840,7 @@
           message: '璇烽�夋嫨妗堜欢鐘舵�� ',
           trigger: 'blur'
         }],
-          totalMoney: [{
+        totalMoney: [{
           required: true,
           message: '璇疯緭鍏ラ浼版�婚噾棰� ',
           trigger: 'blur'
@@ -890,6 +906,7 @@
       }
       ],
       updateReportForm: {
+        pic: '',
         reporterName: '',
         mobile: '',
         idcard: '',
@@ -905,6 +922,7 @@
       //妗堜欢浜哄憳琛ㄦ牸鏁版嵁
       updateReportPrams: {
         id: '',
+        pic:'',
         reporterName: '',
         mobile: '',
         idcard: '',
@@ -930,6 +948,7 @@
       },
       updataCauseForm: {
         id: '',
+        pic:'',
         name: '',
         number: '',
         firstTime: '',
@@ -953,50 +972,54 @@
           label: '鍏ㄩ儴'
         },
         {
-          value: '0',
-          label: '鍙楃悊涓�'
-        },
-        {
-          value: '1',
+          value: '5',
           label: '涓嶄簣绔嬫'
         },
         {
+          value: '0',
+          label: '绔嬫'
+        },
+        {
+          value: '1',
+          label: '鍒濇煡'
+        },
+        {
           value: '2',
-          label: '宸茬珛妗�'
+          label: '鍙楃悊'
         },
         {
           value: '3',
-          label: '宸茬粨妗�'
+          label: '绉婚�佽捣璇�'
         },
         {
           value: '4',
-          label: '宸叉挙妗�'
+          label: '缁撴'
         }
       ],
       causeOptions: [
         {
-          value: null,
-          label: '鍏ㄩ儴'
-        },
-        {
-          value: '0',
-          label: '鏈鏍�'
-        },
-        {
-          value: '1',
+          value: '5',
           label: '涓嶄簣绔嬫'
         },
         {
-          value: '2',
-          label: '鍙楃悊涓�'
+          value: 0,
+          label: '绔嬫'
         },
         {
-          value: '3',
-          label: '宸茬粨妗�'
+          value: 1,
+          label: '鍒濇煡'
         },
         {
-          value: '4',
-          label: '宸叉挙妗�'
+          value: 2,
+          label: '鍙楃悊'
+        },
+        {
+          value: 3,
+          label: '绉婚�佽捣璇�'
+        },
+        {
+          value: 4,
+          label: '缁撴'
         }
       ],
       total: null,
@@ -1075,6 +1098,21 @@
   },
   methods:
   {
+    expExcel(){
+
+    },
+    addAduitAnJian(){
+      let date=(new Date()).valueOf();//鑾峰彇鏃堕棿鎴�
+      let txt = '1234567890';//鐢熸垚鐨勯殢鏈烘満鍣ㄧ爜
+      let len =13;//鏈哄櫒鐮佹湁澶氬皯浣�
+      let pwd = '';//瀹氫箟绌哄彉閲忕敤鏉ユ帴鏀舵満鍣ㄧ爜
+      for (let i = 0; i < len; i++) {
+        pwd += txt.charAt(Math.floor(Math.random() * txt.length));//寰幆鏈哄櫒鐮佷綅鏁伴殢鏈哄~鍏�
+      }
+      let id= date+pwd;
+      this.causeForm.number=id;
+      this.addAduitDialogVisible=true;
+    },
 
     //鍏抽棴妗堜欢鐨勬浠朵汉鍛樻坊鍔�
     addReportVisibleClose() {
@@ -1184,7 +1222,7 @@
     //妗堜欢浜哄憳
     //瀵煎嚭鏂囦欢
     exportExcel() {
-      this.$http.post('/api/report/exportReporter?id=' + this.exportReportId, {}, { responseType: 'blob' })
+      this.$http.post('/api//cause/exp?causeId=' + this.exportReportId, {}, { responseType: 'blob' })
         .then(res => {
           const fileName = decodeURI(res.headers['content-disposition'].split(';')[1].split('=')[1])
           const blob = new Blob([res.data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
@@ -1214,6 +1252,8 @@
       this.updateReportPrams.groupId = this.updateReportForm.groupId
       this.updateReportPrams.id = this.updateReportForm.id
       this.updateReportPrams.reportMaterials = this.updateReportPrams.fileList.map(i => i.data).join(',')
+
+      this.updateReportPrams.pic=this.updateReportForm.pic
       let form = null;
       form = this.updateReportPrams;
       const data = form;
@@ -1274,7 +1314,7 @@
         if (!vaild) return this.$message.error('杈撳叆鏈夎')
         this.auditFrom.reportMaterials = this.auditFrom.fileList.map(i => i.data).join(',');
         this.auditFrom.causeId = this.reportCauseId;
-        console.log(this.reportCauseId);
+        // console.log(this.reportCauseId);
         report(this.auditFrom).then(res => {
           this.$message.success('鎻愪氦鎴愬姛')
           this.auditFrom = {}
@@ -1292,9 +1332,9 @@
     },
     handleAvatarSuccess(res, file) {
       this.auditFrom.pic = res.data
-
       getImgUrl(res.data).then(res => {
         this.picShow = res
+        this.updateReportForm.pic = res
       })
     },
     async handleMaterialSuccess(res, file) {
@@ -1316,25 +1356,25 @@
     //妗堜欢褰曞叆鐩稿叧
 
     updateCauseDialogVisible(row) {
-      this.updateAduitDialogVisible = true,
-        this.updataCauseForm = Object.assign({}, row);
-      if (this.updataCauseForm.status == 0) {
-        this.updataCauseForm.status = '鏈鏍�';
-      };
-      if (this.updataCauseForm.status == 1) {
-        this.updataCauseForm.status = '涓嶄簣绔嬫';
-      };
-      if (this.updataCauseForm.status == 2) {
-        this.updataCauseForm.status = '鍙楃悊涓�';
-      };
-      if (this.updataCauseForm.status == 3) {
-        this.updataCauseForm.status = '宸茬粨妗�';
-      };
-      if (this.updataCauseForm.status == 4) {
-        this.updataCauseForm.status = '宸叉挙妗�';
-      };
-    }
-    ,
+      this.updateAduitDialogVisible = true;
+      this.updataCauseForm = Object.assign({}, row);
+
+      // if (this.updataCauseForm.status == 0) {
+      //   this.updataCauseForm.status = '鏈鏍�';
+      // };
+      // if (this.updataCauseForm.status == 1) {
+      //   this.updataCauseForm.status = '涓嶄簣绔嬫';
+      // };
+      // if (this.updataCauseForm.status == 2) {
+      //   this.updataCauseForm.status = '鍙楃悊涓�';
+      // };
+      // if (this.updataCauseForm.status == 3) {
+      //   this.updataCauseForm.status = '宸茬粨妗�';
+      // };
+      // if (this.updataCauseForm.status == 4) {
+      //   this.updataCauseForm.status = '宸叉挙妗�';
+      // };
+    },
     addAduitClose() {
       this.addAduitDialogVisible = false
     },
@@ -1364,7 +1404,7 @@
           } else {
             this.$message({
               type: "error",
-              message: "琛ㄥ崟涓嶈兘涓虹┖"
+              message: res.data.msg
             })
           }
         }
@@ -1388,21 +1428,21 @@
           data.userId = this.user[key].userId;
         }
       }
-      if (data.status == '鏈鏍�') {
-        data.status = 0;
-      }
-      if (data.status == '涓嶄簣绔嬫') {
-        data.status = 1;
-      }
-      if (data.status == '鍙楃悊涓�') {
-        data.status = 2;
-      }
-      if (data.status == '宸茬粨妗�') {
-        data.status = 3;
-      }
-      if (data.status == '宸叉挙妗�') {
-        data.status = 4;
-      }
+      // if (data.status == '鏈鏍�') {
+      //   data.status = 0;
+      // }
+      // if (data.status == '涓嶄簣绔嬫') {
+      //   data.status = 1;
+      // }
+      // if (data.status == '鍙楃悊涓�') {
+      //   data.status = 2;
+      // }
+      // if (data.status == '宸茬粨妗�') {
+      //   data.status = 3;
+      // }
+      // if (data.status == '宸叉挙妗�') {
+      //   data.status = 4;
+      // }
       this.$http.put('/api/cause/updateCause?id=' + data.id,
         data
       ).then(res => {
@@ -1411,21 +1451,21 @@
             type: "success",
             message: "淇敼鎴愬姛"
           });
-          if (this.updataCauseForm.status == 0) {
-            this.updataCauseForm.status = '鏈鏍�';
-          };
-          if (this.updataCauseForm.status == 1) {
-            this.updataCauseForm.status = '涓嶄簣绔嬫';
-          };
-          if (this.updataCauseForm.status == 2) {
-            this.updataCauseForm.status = '鍙楃悊涓�';
-          };
-          if (this.updataCauseForm.status == 3) {
-            this.updataCauseForm.status = '宸茬粨妗�';
-          };
-          if (this.updataCauseForm.status == 4) {
-            this.updataCauseForm.status = '宸叉挙妗�';
-          };
+          // if (this.updataCauseForm.status == 0) {
+          //   this.updataCauseForm.status = '鏈鏍�';
+          // };
+          // if (this.updataCauseForm.status == 1) {
+          //   this.updataCauseForm.status = '涓嶄簣绔嬫';
+          // };
+          // if (this.updataCauseForm.status == 2) {
+          //   this.updataCauseForm.status = '鍙楃悊涓�';
+          // };
+          // if (this.updataCauseForm.status == 3) {
+          //   this.updataCauseForm.status = '宸茬粨妗�';
+          // };
+          // if (this.updataCauseForm.status == 4) {
+          //   this.updataCauseForm.status = '宸叉挙妗�';
+          // };
           this.updateAduitDialogVisible = false;
           // location.reload();
           this.getList();
@@ -1589,4 +1629,4 @@
 ::v-deep(.el-table thead) {
   color: #000000;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0