update 2023.4.6

This commit is contained in:
lb
2023-04-06 15:58:02 +08:00
parent 247cca284e
commit 10b50df6f6
14 changed files with 343 additions and 339 deletions

View File

@@ -2,7 +2,7 @@
<ListView
:table-config="tableConfig"
:dialog-configs="dialogConfigs"
:listQueryExtra="[{ key: name }]"
:listQueryExtra="[{ key: code }]"
attach-list-query-extra="key"
:trigger-update="triggerUpdateKey"
/>
@@ -21,9 +21,9 @@ export default {
};
},
computed: {
// 配方名称
name() {
return this.$route.query.name || "";
// 配方编码
code() {
return this.$route.query.code || "";
},
},
data() {
@@ -38,9 +38,9 @@ export default {
watch: {
$route: {
handler: function (route) {
if (route.query.name) {
if (route.query.code) {
this.triggerUpdateKey = Math.random().toString();
console.log("[$oute changed] val.query.name", route.query.name, this.triggerUpdateKey);
console.log("[$oute changed] val.query.name", route.query.code, this.triggerUpdateKey);
}
},
immediate: true,