add 码垛线
This commit is contained in:
@@ -106,7 +106,7 @@ export default {
|
||||
},
|
||||
},
|
||||
activated() {
|
||||
console.log("list view with ehad activated..........");
|
||||
console.log("list view with ehad activated..........", this.triggerUpdate);
|
||||
this.refreshLayoutKey = this.layoutTable();
|
||||
},
|
||||
watch: {
|
||||
@@ -131,7 +131,7 @@ export default {
|
||||
size: 20, // 默认20
|
||||
dataList: [],
|
||||
tableLoading: false,
|
||||
refreshLayoutKey: null,
|
||||
refreshLayoutKey: null
|
||||
};
|
||||
},
|
||||
inject: ["urls"],
|
||||
@@ -438,18 +438,23 @@ export default {
|
||||
case "新增":
|
||||
this.openDialog();
|
||||
break;
|
||||
|
||||
case "手动添加": {
|
||||
return;
|
||||
}
|
||||
|
||||
case "查询": {
|
||||
const params = {};
|
||||
|
||||
/** 处理 payload 里的数据 */
|
||||
if (typeof payload === "object") {
|
||||
// BaseSearchForm 给这个组件传递了数据
|
||||
Object.assign(params, payload);
|
||||
if ("timerange" in params && !!params.timerange) {
|
||||
const [startTime, endTime] = params["timerange"];
|
||||
if ("timerange" in params) {
|
||||
if (!!params.timerange) {
|
||||
const [startTime, endTime] = params["timerange"];
|
||||
params.startTime = moment(startTime).format("YYYY-MM-DDTHH:mm:ss");
|
||||
params.endTime = moment(endTime).format("YYYY-MM-DDTHH:mm:ss");
|
||||
}
|
||||
delete params.timerange;
|
||||
params.startTime = moment(startTime).format("YYYY-MM-DDTHH:mm:ss");
|
||||
params.endTime = moment(endTime).format("YYYY-MM-DDTHH:mm:ss");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -471,6 +476,7 @@ export default {
|
||||
this.getList(params);
|
||||
break;
|
||||
}
|
||||
|
||||
case "同步":
|
||||
this.$http.post(this.urls.syncUrl).then(({ data: res }) => {
|
||||
if (res.code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user