受限空间查询功能调整
parent
a829fe024d
commit
4f71230e02
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
<view v-if="isView !== '1'" class="flex-end padding" style="padding: 20upx;">
|
||||||
|
<u-button type="primary" text="添加" size="mini" class="bth-mini" @click="goToAdd"/>
|
||||||
|
</view>
|
||||||
<u-list v-if="list.length > 0">
|
<u-list v-if="list.length > 0">
|
||||||
<u-list-item v-for="(item, index) in list" :key="index">
|
<u-list-item v-for="(item, index) in list" :key="index">
|
||||||
<view class="flex-between main-title">
|
<view class="flex-between main-title">
|
||||||
|
@ -51,7 +54,8 @@ export default {
|
||||||
GAS_NAME4: '',
|
GAS_NAME4: '',
|
||||||
EW_RU_TASK_ID: '',
|
EW_RU_TASK_ID: '',
|
||||||
EW_RU_JOB_ID: '',
|
EW_RU_JOB_ID: '',
|
||||||
list: []
|
list: [],
|
||||||
|
isView: '0'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
|
@ -61,21 +65,7 @@ export default {
|
||||||
this.GAS_NAME4 = query.GAS_NAME4;
|
this.GAS_NAME4 = query.GAS_NAME4;
|
||||||
this.EW_RU_TASK_ID = query.EW_RU_TASK_ID;
|
this.EW_RU_TASK_ID = query.EW_RU_TASK_ID;
|
||||||
this.EW_RU_JOB_ID = query.EW_RU_JOB_ID;
|
this.EW_RU_JOB_ID = query.EW_RU_JOB_ID;
|
||||||
},
|
this.isView = query.isView
|
||||||
onNavigationBarButtonTap(e) {
|
|
||||||
if (e.index === 0) {
|
|
||||||
uni.$u.route({
|
|
||||||
url: '/pages/eight_assignments/confined_space/gas/add',
|
|
||||||
params: {
|
|
||||||
GAS_NAME1: this.GAS_NAME1,
|
|
||||||
GAS_NAME2: this.GAS_NAME2,
|
|
||||||
GAS_NAME3: this.GAS_NAME3,
|
|
||||||
GAS_NAME4: this.GAS_NAME4,
|
|
||||||
EW_RU_TASK_ID: this.EW_RU_TASK_ID,
|
|
||||||
EW_RU_JOB_ID: this.EW_RU_JOB_ID,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.resetList()
|
this.resetList()
|
||||||
|
@ -110,6 +100,19 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
goToAdd() {
|
||||||
|
uni.$u.route({
|
||||||
|
url: '/pages/eight_assignments/confined_space/gas/add',
|
||||||
|
params: {
|
||||||
|
GAS_NAME1: this.GAS_NAME1,
|
||||||
|
GAS_NAME2: this.GAS_NAME2,
|
||||||
|
GAS_NAME3: this.GAS_NAME3,
|
||||||
|
GAS_NAME4: this.GAS_NAME4,
|
||||||
|
EW_RU_TASK_ID: this.EW_RU_TASK_ID,
|
||||||
|
EW_RU_JOB_ID: this.EW_RU_JOB_ID,
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue