fix:mlogs已提交和未提交区分显示
This commit is contained in:
parent
49ecffe420
commit
5192fef484
|
|
@ -30,6 +30,11 @@
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
@click="handleQuery"
|
@click="handleQuery"
|
||||||
></el-button>
|
></el-button>
|
||||||
|
<el-checkbox
|
||||||
|
v-model="showHidden"
|
||||||
|
label="已提交"
|
||||||
|
@change="hiddenChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main>
|
<el-main>
|
||||||
|
|
@ -200,8 +205,8 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiObj: null,
|
apiObj: null,
|
||||||
params: { mgroup: "" },
|
params: { mgroup: "" ,submit_time__isnull:true},
|
||||||
query: {},
|
query: {submit_time__isnull:true},
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
detail: false,
|
detail: false,
|
||||||
|
|
@ -214,6 +219,7 @@ export default {
|
||||||
processId: "",
|
processId: "",
|
||||||
processCate: "",
|
processCate: "",
|
||||||
mgroupMtype: "",
|
mgroupMtype: "",
|
||||||
|
showHidden:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -387,6 +393,14 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
hiddenChange(val) {
|
||||||
|
if (val) {
|
||||||
|
this.query.submit_time__isnull = false;
|
||||||
|
} else {
|
||||||
|
this.query.submit_time__isnull = true;
|
||||||
|
}
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
//表格选择后回调事件
|
//表格选择后回调事件
|
||||||
selectionChange(selection) {
|
selectionChange(selection) {
|
||||||
this.selection = selection;
|
this.selection = selection;
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
@click="handleQuery"
|
@click="handleQuery"
|
||||||
></el-button>
|
></el-button>
|
||||||
|
<el-checkbox
|
||||||
|
v-model="showHidden"
|
||||||
|
label="已提交"
|
||||||
|
@change="hiddenChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main>
|
<el-main>
|
||||||
|
|
@ -209,8 +214,8 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiObj: null,
|
apiObj: null,
|
||||||
params: { mgroup: "" },
|
params: { mgroup: "",submit_time__isnull:true },
|
||||||
query: {},
|
query: {submit_time__isnull:true},
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
detail: false,
|
detail: false,
|
||||||
|
|
@ -220,6 +225,7 @@ export default {
|
||||||
mtask: "",
|
mtask: "",
|
||||||
mlogId: "",
|
mlogId: "",
|
||||||
codeText: "",
|
codeText: "",
|
||||||
|
showHidden:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -376,6 +382,14 @@ export default {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
this.$refs.table.refresh();
|
this.$refs.table.refresh();
|
||||||
},
|
},
|
||||||
|
hiddenChange(val) {
|
||||||
|
if (val) {
|
||||||
|
this.query.submit_time__isnull = false;
|
||||||
|
} else {
|
||||||
|
this.query.submit_time__isnull = true;
|
||||||
|
}
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue