Commit 7c8340a1 by lsk

待经办调整

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