update 0727 docs
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user