Commit 7c8340a1 by lsk

待经办调整

parent 2793bac1
...@@ -93,15 +93,9 @@ export default { ...@@ -93,15 +93,9 @@ export default {
}, },
async handleSearch() { async handleSearch() {
if(this.sourceModel.length===0){ if(this.sourceModel.length===0){
this.model.chkinc = "t"; this.sourceData.forEach(s => {
this.model.chkdzt = "t"; this.model[s.value] = 't';
this.model.chkcor = "t"; })
this.model.chkaut = "t";
this.model.chkdel = "t";
this.model.chktco = "t";
this.model.chkcan = "t";
this.model.chkypt = "t";
} }
this.executeDefault("sptstm").then(res => { this.executeDefault("sptstm").then(res => {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
......
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
placeholder="请选择来源" placeholder="请选择来源"
multiple multiple
collapse-tags collapse-tags
@change="sourceChangeEvent"
> >
<el-option <el-option
v-for="item in sourceData" v-for="item in sourceData"
...@@ -367,7 +368,7 @@ export default { ...@@ -367,7 +368,7 @@ export default {
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return { return {
//sourceModel: [], sourceModel: [],
sourceData: [], sourceData: [],
initdialog: false, initdialog: false,
transactionStatus: { transactionStatus: {
...@@ -420,95 +421,17 @@ export default { ...@@ -420,95 +421,17 @@ export default {
{ label: "云平台", value: "chkypt" }, { label: "云平台", value: "chkypt" },
]; ];
}, },
computed: { methods: {
chkinc: { sourceChangeEvent(val) {
get() { this.sourceData.forEach(s => {
return this.model.chkinc === "t"; this.model[s.value] = '';
}, })
set(val) { val.forEach((element) => {
this.model.chkinc = val ? "t" : ""; this.model[element] = 't';
}, });
},
chkdzt: {
get() {
return this.model.chkdzt === "t";
},
set(val) {
this.model.chkdzt = val ? "t" : "";
},
},
chkpen: {
get() {
return this.model.chkpen === "t";
},
set(val) {
this.model.chkpen = val ? "t" : "";
},
},
chkcor: {
get() {
return this.model.chkcor === "t";
},
set(val) {
this.model.chkcor = val ? "t" : "";
},
},
chkaut: {
get() {
return this.model.chkaut === "t";
},
set(val) {
this.model.chkaut = val ? "t" : "";
},
},
chkdel: {
get() {
return this.model.chkdel === "t";
},
set(val) {
this.model.chkdel = val ? "t" : "";
},
},
chktco: {
get() {
return this.model.chktco === "t";
},
set(val) {
this.model.chktco = val ? "t" : "";
},
},
chkcan: {
get() {
return this.model.chkcan === "t";
},
set(val) {
this.model.chkcan = val ? "t" : "";
},
},
sourceModel: {
get() {
let arr = [];
this.sourceData.forEach((element) => {
if (this.model[element.value]) {
arr.push(element.value);
}
});
return arr;
},
set(val) {
let set = new Set(val);
this.sourceData.forEach((element) => {
if (set.has(element.value)) {
this.model[element.value] = true;
} else {
this.model[element.value] = false;
}
});
},
}, },
...Event
}, },
methods: { ...Event },
created: function () {}, created: function () {},
}; };
</script> </script>
......
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