设备管理
This commit is contained in:
@@ -110,8 +110,8 @@ export default {
|
||||
label: '时间段',
|
||||
dateType: 'daterange', // datetimerange
|
||||
format: 'yyyy-MM-dd',
|
||||
// valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
||||
valueFormat: 'timestamp',
|
||||
valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
||||
// valueFormat: 'timestamp',
|
||||
rangeSeparator: '-',
|
||||
startPlaceholder: '开始日期',
|
||||
endPlaceholder: '结束日期',
|
||||
@@ -239,6 +239,10 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
if (this.$route.query) {
|
||||
this.queryParams.equipmentId = this.$route.query?.equipmentId ?? undefined
|
||||
this.searchBarFormConfig[0].defaultSelect = this.$route.query.equipmentName ?? undefined
|
||||
}
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
@@ -288,12 +292,20 @@ export default {
|
||||
this.open = true;
|
||||
this.title = '添加保养计划';
|
||||
},
|
||||
handleDetail(id){
|
||||
handleDetail(row){
|
||||
// alert('跳转到 保养记录')
|
||||
this.$router.push({
|
||||
name: 'Record',
|
||||
// params: { startTime: this.chooseObj.startTime, endTime: this.chooseObj.endTime }
|
||||
})
|
||||
// console.log(row)
|
||||
const queryData = {
|
||||
equipmentId: row.equipmentId,
|
||||
maintainPlanId: row.id,
|
||||
relatePlan: row.enabled
|
||||
}
|
||||
if (this.queryParams.createTime) {
|
||||
queryData.createTime = this.queryParams.createTime
|
||||
}
|
||||
console.log('你好', queryData)
|
||||
this.$router.push({ path: '/equipment/base/maintain/record',query: queryData })
|
||||
// this.$router.push({ path: '/equipment/base/maintain/record', query: { orderNo: row.orderNo }})
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
|
||||
Reference in New Issue
Block a user