update 0727docs
This commit is contained in:
@@ -9,7 +9,8 @@ export default function () {
|
||||
{ prop: "batchNo", label: "批次编码" },
|
||||
{ prop: "batchSize", label: "批次重量 [kg]" },
|
||||
{ prop: "status", label: "状态" },
|
||||
{ prop: "startTime", label: "开始时间" },
|
||||
// { prop: "startTime", label: "开始时间" },
|
||||
{ prop: "endTime", label: "结束时间" },
|
||||
{ prop: "task", label: "任务分类" },
|
||||
{ prop: "blenderCode", label: "混料机" },
|
||||
// { width: 120, prop: "orderCate", label: "主订单子号" },
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
:dialog-configs="dialogConfigs"
|
||||
:list-query-extra="[{ blenderOrderId: id }]"
|
||||
attach-list-query-extra="blenderOrderId"
|
||||
:trigger-update="triggerUpdateKey"
|
||||
/>
|
||||
:trigger-update="triggerUpdateKey" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -24,8 +23,17 @@ export default {
|
||||
computed: {
|
||||
// 混料订单id
|
||||
id() {
|
||||
console.log("computed id");
|
||||
return this.$route.query.id || "";
|
||||
},
|
||||
refreshPage() {
|
||||
console.log("computed refreshPage");
|
||||
const val = this.$route.query.refreshPage ? Math.random().toString() : null;
|
||||
// 手动清除 location.href 里的 refreshPage
|
||||
location.href = location.href.replace(/&refreshPage=[^&]*/, "");
|
||||
|
||||
return val
|
||||
},
|
||||
},
|
||||
data() {
|
||||
const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
|
||||
@@ -34,20 +42,32 @@ export default {
|
||||
headFormConfigs,
|
||||
allUrls: urls,
|
||||
dialogConfigs,
|
||||
triggerUpdateKey: ''
|
||||
triggerUpdateKey: "",
|
||||
};
|
||||
},
|
||||
// watch: {
|
||||
// $route: {
|
||||
// handler: function (route) {
|
||||
// if (route.query.id) {
|
||||
// this.triggerUpdateKey = Math.random().toString()
|
||||
// console.log('[$oute changed] val.params.id', route.query.id, this.triggerUpdateKey)
|
||||
// }
|
||||
// },
|
||||
// immediate: true,
|
||||
// deep: true
|
||||
// }
|
||||
// },
|
||||
watch: {
|
||||
$route: {
|
||||
handler: function (route) {
|
||||
if (route.query.id) {
|
||||
this.triggerUpdateKey = Math.random().toString()
|
||||
console.log('[$oute changed] val.params.id', route.query.id, this.triggerUpdateKey)
|
||||
refreshPage: {
|
||||
handler: function (val) {
|
||||
console.log("refreshPage", val);
|
||||
if (val) {
|
||||
// this.triggerUpdateKey = Math.random().toString();
|
||||
this.triggerUpdateKey = val;
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {},
|
||||
mounted() {},
|
||||
|
||||
Reference in New Issue
Block a user