Browse Source

反诈骗省公司报表

yangyd 3 years ago
parent
commit
b32df074bb

+ 4 - 1
src/components/upload.vue

@@ -2,7 +2,7 @@
     <div v-loading="loading">
         <el-upload class="upload-demo" :drag="fileInfo.type !== 'btn'" multiple :limit="fileInfo.limit" ref="upload"
             action="string" :on-remove="handleRemove" :on-exceed="handleExceed" :file-list="fileList"
-             :auto-upload="true" :show-file-list="fileInfo.type !== 'btn'"
+             :auto-upload="true" :show-file-list="fileInfo.type !== 'btn'" :on-change="stateChange"
             :before-upload="deforeUp" :http-request="signUpload">
             <div v-if="fileInfo.type !== 'btn'">
                 <i class="el-icon-upload"></i>
@@ -190,6 +190,9 @@
                     return false
                 })
             },
+            stateChange(file, fileList){
+                this.$emit('onChange',file, fileList)
+            }
         },
         mounted() {
 

+ 17 - 6
src/pages/main/antiSpoofing/channel.vue

@@ -6,7 +6,7 @@
                 <div v-if="!provincialCompany">
                     <el-button class="btn-check" plain size="medium" type="primary" @click="downloadTemplate">下载模板
                     </el-button>
-                    <myUpload style="display:inline-block;" :fileInfo="fileInfo"
+                    <myUpload style="display:inline-block;" :fileInfo="fileInfo" @onChange="onChange"
                               :fileList="fileInfo.fileList"></myUpload>
                 </div>
             </div>
@@ -20,12 +20,12 @@
                         </el-table-column>
                         <el-table-column prop="year" align="center" label="扣罚年份" >
                             <template slot-scope="scope">
-                                {{this.$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[0]}}
+                                {{$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[0]}}
                             </template>
                         </el-table-column>
                         <el-table-column prop="month" align="center" label="扣罚月份" >
                             <template slot-scope="scope">
-                                {{this.$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[1]}}
+                                {{$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[1]}}
                             </template>
                         </el-table-column>
                         <el-table-column prop="fineMoney" align="center" label="扣罚金额" >
@@ -91,8 +91,17 @@
             }
         },
         methods: {
-            cellStyle(){
-                return ""
+            onChange(file, fileList){
+                if (file.status === 'success'){
+                    this.searchInfo([this.searchList[0].value], 1);
+                }
+            },
+            cellStyle({row, column, rowIndex, columnIndex}){
+                if (columnIndex === 0){
+                    return "font-weight:bold;"
+                }else {
+                    return "";
+                }
             },
             headerStyleFun({row, column, rowIndex, columnIndex}){
                 if (rowIndex === 0){
@@ -175,11 +184,13 @@
             },
             getUser() {
                 let menus = JSON.parse(window.sessionStorage.childrenMenus);
+                let flag = false
                 for(let n=0;n<menus.length;n++){
                     if (menus[n].jspUrl === "/antiSpoofingCityScreen") {
-                        this.provincialCompany = true;
+                        flag = true
                     }
                 }
+                this.provincialCompany = !flag
             }
         },
         mounted() {

+ 17 - 6
src/pages/main/antiSpoofing/districtCounty.vue

@@ -6,7 +6,7 @@
                 <div v-if="!provincialCompany">
                     <el-button class="btn-check" plain size="medium" type="primary" @click="downloadTemplate">下载模板
                     </el-button>
-                    <myUpload style="display:inline-block;" :fileInfo="fileInfo"
+                    <myUpload style="display:inline-block;" :fileInfo="fileInfo" @onChange="onChange"
                               :fileList="fileInfo.fileList"></myUpload>
                 </div>
             </div>
@@ -20,12 +20,12 @@
                         </el-table-column>
                         <el-table-column prop="year" align="center" label="扣罚年份" >
                             <template slot-scope="scope">
-                                {{this.$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[0]}}
+                                {{$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[0]}}
                             </template>
                         </el-table-column>
                         <el-table-column prop="month" align="center" label="扣罚月份" >
                             <template slot-scope="scope">
-                                {{this.$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[1]}}
+                                {{$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[1]}}
                             </template>
                         </el-table-column>
                         <el-table-column prop="deductPoints" align="center" label="扣分" >
@@ -82,8 +82,17 @@
             }
         },
         methods: {
-            cellStyle(){
-                return ""
+            onChange(file, fileList){
+                if (file.status === 'success'){
+                    this.searchInfo([this.searchList[0].value], 1);
+                }
+            },
+            cellStyle({row, column, rowIndex, columnIndex}){
+                if (columnIndex === 0){
+                    return "font-weight:bold;"
+                }else {
+                    return "";
+                }
             },
             headerStyleFun({row, column, rowIndex, columnIndex}){
                 if (rowIndex === 0){
@@ -166,11 +175,13 @@
             },
             getUser() {
                 let menus = JSON.parse(window.sessionStorage.childrenMenus);
+                let flag = false
                 for(let n=0;n<menus.length;n++){
                     if (menus[n].jspUrl === "/antiSpoofingCityScreen") {
-                        this.provincialCompany = true;
+                        flag = true
                     }
                 }
+                this.provincialCompany = !flag
             }
         },
         mounted() {

+ 17 - 6
src/pages/main/antiSpoofing/personnel.vue

@@ -6,7 +6,7 @@
                 <div v-if="!provincialCompany">
                     <el-button class="btn-check" plain size="medium" type="primary" @click="downloadTemplate">下载模板
                     </el-button>
-                    <myUpload style="display:inline-block;" :fileInfo="fileInfo"
+                    <myUpload style="display:inline-block;" :fileInfo="fileInfo" @onChange="onChange"
                               :fileList="fileInfo.fileList"></myUpload>
                 </div>
             </div>
@@ -24,12 +24,12 @@
                         </el-table-column>
                         <el-table-column prop="year" align="center" label="扣罚年份" >
                             <template slot-scope="scope">
-                                {{this.$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[0]}}
+                                {{$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[0]}}
                             </template>
                         </el-table-column>
                         <el-table-column prop="month" align="center" label="扣罚月份" >
                             <template slot-scope="scope">
-                                {{this.$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[1]}}
+                                {{$formatDate(scope.row.yearMonth, "YYYY-MM").split("-")[1]}}
                             </template>
                         </el-table-column>
                         <el-table-column prop="deductPoints" align="center" label="扣绩效(分)" >
@@ -88,6 +88,11 @@
             }
         },
         methods: {
+            onChange(file, fileList){
+                if (file.status === 'success'){
+                    this.searchInfo([this.searchList[0].value], 1);
+                }
+            },
             headerStyleFun({row, column, rowIndex, columnIndex}){
                 if (rowIndex === 0){
                     return "background-color:#d8e4bc;font-size:14px;font-weight:bold;color:black;"
@@ -95,8 +100,12 @@
                     return "background-color:#d8e4bc;font-size:12px;font-weight:bold;color:black;"
                 }
             },
-            cellStyle(){
-              return ""
+            cellStyle({row, column, rowIndex, columnIndex}){
+                if (columnIndex === 0){
+                    return "font-weight:bold;"
+                }else {
+                    return "";
+                }
             },
             downloadTemplate(){
                 let param = new FormData();
@@ -172,11 +181,13 @@
             },
             getUser() {
                 let menus = JSON.parse(window.sessionStorage.childrenMenus);
+                let flag = false
                 for(let n=0;n<menus.length;n++){
                     if (menus[n].jspUrl === "/antiSpoofingCityScreen") {
-                        this.provincialCompany = true;
+                        flag = true
                     }
                 }
+                this.provincialCompany = !flag
             }
         },
         mounted() {

+ 0 - 1
src/pages/main/antiSpoofing/standingBook.vue

@@ -191,7 +191,6 @@
                                 return prev;
                             }
                         }, 0);
-                        sums[index] += ' 元';
                     } else {
                         sums[index] = '0';
                     }