update 0727 docs

This commit is contained in:
lb
2023-07-27 16:41:02 +08:00
parent ce29b3ca9b
commit f0c1691775
5 changed files with 227 additions and 155 deletions

View File

@@ -10,6 +10,7 @@
}"
row-key="id"
:cell-style="{ padding: 0 }"
@selection-change="handleSelectionChange"
border
>
<!-- :cell-style="{ padding: 0 }" -->
@@ -113,6 +114,7 @@ export default {
data() {
return {
dataList: [],
selections: []
};
},
watch: {
@@ -125,6 +127,11 @@ export default {
console.log("[component] BaseListTable handleSubEmitData(): ", payload);
this.$emit("operate-event", payload);
},
handleSelectionChange(val) {
// this.selections = val;
console.log('selections change: ', val)
this.$emit('select', val.map(item => item.id))
}
},
};
</script>

View File

@@ -520,7 +520,7 @@ export default {
if (fields.indexOf(key) !== -1) {
// console.log(`key ${key} in fields`)
// this.dataForm[key] = null;
this.$set(this.dataForm, key, null)
this.$set(this.dataForm, key, null);
}
});
console.log("this.dataform", this.dataForm);
@@ -743,6 +743,9 @@ export default {
case "update":
this.addOrUpdate(payload.name === "add" ? "POST" : "PUT");
break;
case "update-bom":
this.addOrUpdate("POST", this.urls.editUrl);
break;
case "add-pos-manually": {
this.addOrUpdate("POST", this.urls.posFormUrl);
break;