Commit fafa4895 by gao_yingdong

单位效能评估添加返回操作

parent 1fabaa2c
......@@ -65,6 +65,9 @@
<div class="echars">
<div id="barMain" style="width: 100%; height: 500px"></div>
</div>
<div v-if="zutList.length > 0" @click="danweiTjTable">
<span class="fhsyj">返回</span>
</div>
<div style="margin-top: 20px">
<el-table
id="ajzbQuery"
......@@ -108,6 +111,9 @@
<div class="echars">
<div id="lineMain" style="width: 100%; height: 500px"></div>
</div>
<div v-if="zutLists.length > 0" @click="dwTjTable">
<span class="fhsyj">返回</span>
</div>
<div style="margin-top: 20px">
<el-table
id="ajzbQuery"
......@@ -267,9 +273,13 @@ export default {
width: "auto",
},
],
zutList: [],
zutLists: [],
};
},
created() {
// this.zutList.push(this.$route.query.unitcode);
// this.zutLists.push(this.$route.query.unitcode);
this.$store.commit("user/SET_Menu", this.Menu);
this.cxFormData.kssj = new Date().getFullYear() + "-01";
this.cxFormData.jssj =
......@@ -290,10 +300,12 @@ export default {
},
zut(scope) {
debugger;
this.zutList.push(scope.row.code);
this.doQueryGr(scope.row.code);
},
xtt(scope) {
debugger;
this.zutLists.push(scope.row.code);
this.doQueryXt(scope.row.code);
},
/**
......@@ -448,6 +460,28 @@ export default {
},
});
},
danweiTjTable() {
debugger;
if (this.zutList.length == 1) {
this.zutList = [];
}
let pops =
this.zutList.length > 1
? this.zutList.splice(this.zutList.length - 2, 1).join()
: this.$route.query.unitcode;
this.doQueryGr(pops);
console.log(pops);
},
dwTjTable() {
if (this.zutLists.length == 1) {
this.zutLists = [];
}
let pop =
this.zutLists.length > 1
? this.zutLists.splice(this.zutLists.length - 2, 1).join()
: this.$route.query.unitcode;
this.doQueryXt(pop);
},
/**
* @description 获取表格数据
*/
......@@ -731,4 +765,21 @@ export default {
/deep/.el-form-item {
margin-bottom: 0 !important;
}
.fhsyj {
float: right;
margin: 0 0 10px 0;
width: 64px;
height: 24px;
background: #ffffff;
border: 1px solid #007aff;
opacity: 1;
border-radius: 4px;
text-align: center;
align-items: center;
display: inline-block;
font-size: 12px !important;
font-weight: 400 !important;
color: #007aff !important;
cursor: pointer;
}
</style>
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