Commit 28187334 by @zhang-bin-1

gx

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