|
@@ -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() {
|