Quellcode durchsuchen

辅助指标状态显示修改

linbl vor 1 Jahr
Ursprung
Commit
a3e79b44f5
1 geänderte Dateien mit 39 neuen und 11 gelöschten Zeilen
  1. 39 11
      src/views/norm/quotaBonded.vue

+ 39 - 11
src/views/norm/quotaBonded.vue

@@ -104,13 +104,25 @@
         label="审核状态"
         align="center"
         prop="approvalStatus"
-        width="140"
-      ></el-table-column>
+        width="120"
+      >
+        <template slot-scope="scope">
+          <span>{{
+            scope.row.approvalStatus == 0 || scope.row.approvalStatus == null
+              ? "未审核"
+              : scope.row.approvalStatus == 1
+              ? "审核中"
+              : scope.row.approvalStatus == 2
+              ? "审核通过"
+              : "审核拒绝"
+          }}</span>
+        </template>
+      </el-table-column>
       <el-table-column
         label="审核时间"
         align="center"
         prop="approvalTime"
-        width="140"
+        width="160"
       ></el-table-column>
       <el-table-column
         label="审核人"
@@ -122,8 +134,13 @@
         label="上报状态"
         align="center"
         prop="reportStatus"
-        width="140"
-      ></el-table-column>
+        width="120"
+      >
+        <template slot-scope="scope">
+          <span v-if="scope.row.reportStatus == 0 || scope.row.reportStatus == null">未上报</span>
+          <span v-if="scope.row.reportStatus == 1">已上报</span>
+        </template>
+      </el-table-column>
       <el-table-column
         label="上报人"
         align="center"
@@ -134,7 +151,7 @@
         label="上报时间"
         align="center"
         prop="reportTime"
-        width="140"
+        width="160"
       ></el-table-column>
       <el-table-column label="操作" align="center" fixed="right" width="200">
         <template slot-scope="scope">
@@ -259,7 +276,7 @@
               :auto-upload="true"
               :file-list="dict.fileList"
               :on-remove="handleRemove"
-              :on-change="handleChange"
+              :on-change="handleChange.bind(null, index)"
               :multiple="true"
             >
               <div v-if="isAppoval" slot="tip" class="el-upload__tip">
@@ -518,7 +535,6 @@ export default {
         this.QUOTAFEEList.forEach(item => {
           item.fileList.push({name:item.fileNames,url:item.linkUrls});
         });
-        console.log("777777",this.QUOTAFEEList)
         this.open = true;
         this.$forceUpdate();
         this.title = "辅助指标录入修改";
@@ -527,7 +543,7 @@ export default {
     // 文件上传成功处理
     handleFileSuccess(index, response, file, fileList) {
       console.log("1111",index)
-      console.log("44444",fileList)
+      console.log("22222",fileList)
       let linkUrls = '';
       let fileNames = '';
       fileList.forEach(item => {
@@ -735,8 +751,20 @@ export default {
       );
     },
 
-    handleChange(file, fileList, index) {
-      this.fileList = fileList;
+    handleChange(index, file, fileList) {
+      let linkUrls = '';
+      let fileNames = '';
+      fileList.forEach(item => {
+        linkUrls += item.response.fileName + ',';
+        fileNames += item.response.newFileName + ',';
+      })
+      this.QUOTAFEEList.forEach((item,key) => {
+        if(key == index) {
+          item.linkUrls = linkUrls
+          item.fileNames = fileNames
+        }
+      });
+      console.log("1111111111",this.QUOTAFEEList)
     },
     handleRemove(file, fileList) {
       this.fileList = fileList;