Quellcode durchsuchen

task 银农待办优化

rongxin_test
庞东旭 vor 10 Monaten
Ursprung
Commit
922f6bf8b7
1 geänderte Dateien mit 31 neuen und 28 gelöschten Zeilen
  1. +31
    -28
      src/views/yinnong/doneCompleted/completedNew.vue

+ 31
- 28
src/views/yinnong/doneCompleted/completedNew.vue Datei anzeigen

@@ -57,6 +57,7 @@
import yinnongIndex from "../../yinnongIndex";
import { getInfo } from "../../../api/login/index";
import {A_myTodoList} from "../../../api/audit/aauditpipeline";
import Cookies from "js-cookie";

export default {
components: {
@@ -91,16 +92,19 @@
if(this.$route.query.activeName){
this.activeName = this.$route.query.activeName
}
this.getList();
// this.getList();
});
console.log(this.$route.query.fr)
if(this.$route.query.fr){
this.$cookies.set("from",this.$route.query.fr,"0")
}
getInfo().then((response) => {
this.electronicSignature = response.user.electronicSignature;
this.nickName = response.user.nickName;
});
this.electronicSignature = Cookies.get('user').electronicSignature;
this.nickName = Cookies.get('user').nickName;

// getInfo().then((response) => {
// this.electronicSignature = response.user.electronicSignature;
// this.nickName = response.user.nickName;
// });
},
methods: {
goOnlineHomeIndex(){
@@ -115,35 +119,34 @@
this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
let _this = this;
if(this.loading){
setTimeout(() => {
A_myTodoList(this.queryParams).then((response) => {
console.info(_this.taskList.length)
if(response.rows.length>0&& _this.taskList.length<response.total){
response.rows.map(res => {
// if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
// res.tableName = '来自农村宅基地管理系统'
// }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
// res.tableName = '来自银农直联审批管理系统'
// }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
// res.tableName = '来自银农直联审批管理系统'
// }
_this.loading = false;
if(this.activityBusinessTypeOptions){
_this.activityBusinessTypeOptions.map(t => {
if(t.dictValue === res.businessType){
res.businessType = t.dictLabel
_this.taskList.push(res)
}
});
}
})
_this.queryParams.pageNum += 1 ;
response.rows.forEach(res => {
// if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
// res.tableName = '来自农村宅基地管理系统'
// }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
// res.tableName = '来自银农直联审批管理系统'
// }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
// res.tableName = '来自银农直联审批管理系统'
// }
if(this.activityBusinessTypeOptions){
_this.activityBusinessTypeOptions.map(t => {
if(t.dictValue === res.businessType){
res.businessType = t.dictLabel
_this.taskList.push(res)
}
});
}
})
if(_this.taskList.length >= response.total){
this.finished = true;
return;
}else{
_this.finished = true;
this.loading = false;
this.queryParams.pageNum += 1 ;
}

})
}, 3000);
}

},


Laden…
Abbrechen
Speichern