Commit 28187334 by @zhang-bin-1

gx

parent 7121cc0f
......@@ -500,6 +500,9 @@ export default {
this.realEstateArea = this.$route.query.realEstateArea ? this.$route.query.realEstateArea : null
// departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init();
}
}
......@@ -522,13 +525,17 @@ export default {
this.loading = false;
if (res.success) {
this.pagination.total = res.data.total;
this.tableData = res.data.list.map(item => {
item.stateName = this.getSatusArr(item.state).stateName;
item.type = this.getSatusArr(item.state).type;
return item;
});
if (localStorage.getItem('userName') == 'admin') {
this.tableData = changeList(this.tableData)
if (res.data.total) {
this.tableData = res.data.list.map(item => {
item.stateName = this.getSatusArr(item.state).stateName;
item.type = this.getSatusArr(item.state).type;
return item;
});
if (localStorage.getItem('userName') == 'admin') {
this.tableData = changeList(this.tableData)
}
} else {
this.tableData = []
}
}
});
......
......@@ -579,6 +579,9 @@ export default {
: null;
// departmentName: 审核部门名称(左侧列表)
this.departmentName = this.$route.query.departmentName;
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init();
}
}
......@@ -602,7 +605,7 @@ export default {
console.log(res.data)
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
item.stateName = this.getSatusArr(item.reviewerState).stateName;
item.type = this.getSatusArr(item.reviewerState).type;
......@@ -887,7 +890,7 @@ export default {
};
initDepartmentRevocation(params).then((res) => {
console.log(res);
that.init();
that.init();
});
}
})
......
......@@ -396,7 +396,7 @@ export default {
this.loading = false;
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
this.state = item.state;
item.stateName = this.getSatusArr(item.state).stateName;
......
......@@ -395,7 +395,7 @@ export default {
this.loading = false;
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map(item => {
// console.log("item----", item);
item.stateName = this.getSatusArr(item.state).stateName;
......
......@@ -470,7 +470,7 @@ export default {
this.loading = false;
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map(item => {
item.stateName = this.getSatusArr(item.state).stateName;
item.type = this.getSatusArr(item.state).type;
......
......@@ -509,6 +509,9 @@ export default {
if (this.$route) {
this.userName = localStorage.getItem('userName');
this.searchForm.departmentCode = this.$route.query.departmentCode
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init();
}
}
......@@ -532,7 +535,7 @@ export default {
this.loading = false;
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
console.log("item------", item);
if (item.stateName && item.type) {
......
......@@ -530,6 +530,9 @@ export default {
this.searchForm.payTaxesArea = this.$route.query.payTaxesArea
? this.$route.query.payTaxesArea
: null;
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.state = ''
this.init();
}
}
......@@ -553,7 +556,7 @@ export default {
console.log(res);
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
this.state = item.state;
item.stateName = this.getSatusArr(item.state).stateName;
......
......@@ -497,7 +497,7 @@ export default {
console.log(res);
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
this.state = item.state;
item.stateName = this.getSatusArr(item.state).stateName;
......
......@@ -487,6 +487,8 @@ export default {
searchForm: {
name: "", // 姓名
phone: "", // 联系方式
unitName: "",
recordName: "",
state: "", // 状态
typeCode: "", // 认定类型
branchCode: "", // 责任部门
......@@ -627,6 +629,12 @@ export default {
this.userName = localStorage.getItem('userName');
this.branchCode = this.$route.query.branchCode ? this.$route.query.branchCode : ''
this.code = this.$route.query.code ? this.$route.query.code : ''
this.searchForm.name = ''
this.searchForm.phone = ''
this.searchForm.typeCode = ''
this.searchForm.state = ''
this.searchForm.recordName = ''
this.searchForm.unitName = ''
this.init();
this.initType();
if (!this.branchCode) {
......@@ -671,7 +679,7 @@ export default {
this.loading = false;
if (res.success) {
this.pagination.total = res.data.total;
if (res.data.total != 0) {
if (res.data.total) {
this.tableData = res.data.list.map((item) => {
// console.log("人才码列表----", item);
item.updateTime = item.updateTime.substring(0, 10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment