fix:成品检验切换类型时,清空原有数据
This commit is contained in:
parent
ab9b9bc18f
commit
c92cbbdcec
|
|
@ -3,8 +3,10 @@
|
|||
<el-header>
|
||||
<div class="right-panel">
|
||||
<!-- 检验类型 -->
|
||||
<el-select v-model="query.process_name"
|
||||
placeholder="检验类型">
|
||||
<el-select
|
||||
v-model="query.process_name"
|
||||
placeholder="检验类型"
|
||||
@change="processChange">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
|
|
@ -161,12 +163,15 @@ export default {
|
|||
let that = this;
|
||||
let obj = {};
|
||||
obj.query = that.query;
|
||||
|
||||
that.tableData = [];
|
||||
that.$API.bi.dataset.exec.req('ftestDay', obj).then((res) => {
|
||||
that.tableData = res.data2.ds0;
|
||||
console.log(that.tableData);
|
||||
});
|
||||
},
|
||||
processChange(){
|
||||
this.handleQuery();
|
||||
},
|
||||
handleQuery() {
|
||||
if(this.query.start_date){
|
||||
this.query.end_date = this.query.start_date;
|
||||
|
|
|
|||
|
|
@ -572,12 +572,15 @@ export default {
|
|||
top: "3",
|
||||
right: "3%",
|
||||
},
|
||||
color: ["rgb(64,158,255)", "orange"],
|
||||
color: ["rgb(64,158,255)", "rgb(255,165,0)"],
|
||||
series: {
|
||||
name: "任务进度",
|
||||
type: "pie",
|
||||
radius: ["40%", "70%"],
|
||||
center: ["50%", "60%"],
|
||||
center: ["50%", "55%"],
|
||||
itemStyle: {
|
||||
borderRadius: 5
|
||||
},
|
||||
label: {
|
||||
show: true,
|
||||
position: "outside",
|
||||
|
|
|
|||
Loading…
Reference in New Issue