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