Parcourir la source

手机 待办已办

jingqu
张泽亮 il y a 3 mois
Parent
révision
58f3407ea6
2 fichiers modifiés avec 11 ajouts et 22 suppressions
  1. +5
    -12
      src/views/yinnong/doneCompleted/completedNew.vue
  2. +6
    -10
      src/views/yinnong/doneCompleted/doneNew.vue

+ 5
- 12
src/views/yinnong/doneCompleted/completedNew.vue Voir le fichier

@@ -87,9 +87,10 @@
electronicSignature:"", electronicSignature:"",
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize:10,
pageSize:20,
systemType: null, systemType: null,
deptId: null, deptId: null,
translate_dict:'1'
}, },
activityBusinessTypeOptions:[], activityBusinessTypeOptions:[],
images:['../../../../static/images/yinnong/banner_03.jpg'], images:['../../../../static/images/yinnong/banner_03.jpg'],
@@ -104,7 +105,6 @@
if(this.$route.query.activeName){ if(this.$route.query.activeName){
this.activeName = this.$route.query.activeName this.activeName = this.$route.query.activeName
} }
// this.getList();
}); });
console.log(this.$route.query.fr) console.log(this.$route.query.fr)
if(this.$route.query.fr){ if(this.$route.query.fr){
@@ -128,8 +128,8 @@
}, },
getListReq(pageInfo) { getListReq(pageInfo) {
//console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize); //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize);
this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
A_myTodoList(this.queryParams).then((response) => { A_myTodoList(this.queryParams).then((response) => {
//console.info(_this.taskList.length) //console.info(_this.taskList.length)
response.rows.forEach(res => { response.rows.forEach(res => {
@@ -140,15 +140,8 @@
// }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
// res.tableName = '来自银农直联审批管理系统' // res.tableName = '来自银农直联审批管理系统'
// } // }
if(this.activityBusinessTypeOptions){
this.activityBusinessTypeOptions.map(t => {
if(t.dictValue === res.businessType){
console.log('aaaaa')
res.businessType = t.dictLabel
this.taskList.push(res)
}
});
}
res.businessType = this.selectDictLabel(this.activityBusinessTypeOptions, res.businessType);
this.taskList.push(res)
}); });
resolve(response); resolve(response);
}); });


+ 6
- 10
src/views/yinnong/doneCompleted/doneNew.vue Voir le fichier

@@ -64,6 +64,7 @@
import yinnongIndex from "../../yinnongIndex"; import yinnongIndex from "../../yinnongIndex";
import {A_myDoneList, A_myTodoList} from "../../../api/audit/aauditpipeline"; import {A_myDoneList, A_myTodoList} from "../../../api/audit/aauditpipeline";
import PagedList from "@/components/common/PagedList.vue"; import PagedList from "@/components/common/PagedList.vue";
import {selectDictLabel} from "@/utils/utils";


export default { export default {
components: { components: {
@@ -82,9 +83,10 @@
total:0, total:0,
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10,
pageSize: 20,
systemType: null, systemType: null,
deptId: null, deptId: null,
translate_dict:'1'
}, },
activityBusinessTypeOptions:[], activityBusinessTypeOptions:[],
images:['../../../../static/images/yinnong/banner_02.jpg'], images:['../../../../static/images/yinnong/banner_02.jpg'],
@@ -99,7 +101,6 @@
if(this.$route.query.activeName){ if(this.$route.query.activeName){
this.activeName = this.$route.query.activeName this.activeName = this.$route.query.activeName
} }
// this.getList();
}); });
//console.log(this.$route.query.fr) //console.log(this.$route.query.fr)
if(this.$route.query.fr){ if(this.$route.query.fr){
@@ -119,6 +120,7 @@
//console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize) //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize)
this.$set(this.queryParams, "deptId", this.$store.state.user.deptId); this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {

A_myDoneList(this.queryParams).then((response) => { A_myDoneList(this.queryParams).then((response) => {
//console.info(_this.taskList.length) //console.info(_this.taskList.length)
response.rows.forEach(res => { response.rows.forEach(res => {
@@ -129,14 +131,8 @@
// }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){ // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
// res.tableName = '来自银农直联审批管理系统' // res.tableName = '来自银农直联审批管理系统'
// } // }
if(this.activityBusinessTypeOptions){
this.activityBusinessTypeOptions.map(t => {
if(t.dictValue === res.businessType){
res.businessType = t.dictLabel
this.taskList.push(res)
}
});
}
res.businessType = this.selectDictLabel(this.activityBusinessTypeOptions, res.businessType);
this.taskList.push(res)
}); });
resolve(response); resolve(response);
}); });


Chargement…
Annuler
Enregistrer