交办、整改责任人修改

This commit is contained in:
王利强
2026-06-30 09:47:10 +08:00
parent d4897284e8
commit 455fd4fc07
638 changed files with 5153 additions and 2572 deletions

View File

@@ -50,18 +50,10 @@
</view>
</view>
<view class="fixed-add-btn" @click="openAddPopup">
<view class="fixed-add-btn" @click="goToAdd">
<text class="cuIcon-add"></text>
<text>新增</text>
</view>
<HazardFormPopup
v-model:show="showAddPopup"
title="新增隐患排查"
mode="direct"
:extra-params="hazardExtraParams"
@success="onHazardAddSuccess"
/>
</view>
</template>
@@ -73,16 +65,10 @@
getCheckTaskDetail,
getMyHiddenDangerList
} from '@/request/api.js'
import HazardFormPopup from '@/components/hazard/HazardFormPopup.vue'
const showAddPopup = ref(false)
const taskId = ref('')
const checkPointId = ref('')
const hazardExtraParams = computed(() => ({
taskId: taskId.value,
checkPointId: checkPointId.value
}))
const oneTableId = ref('')
const userRole = ref('')
const canAcceptance = computed(() => {
@@ -120,6 +106,7 @@
onLoad((options) => {
if (options.id) {
oneTableId.value = options.id
fetchTaskInfo(options.id)
}
})
@@ -149,13 +136,22 @@
fetchHiddenDangerList()
})
const openAddPopup = () => {
showAddPopup.value = true;
};
const onHazardAddSuccess = () => {
showAddPopup.value = false
fetchHiddenDangerList()
const goToAdd = () => {
let url = '/pages/hiddendanger/add'
const params = []
if (oneTableId.value) {
params.push(`id=${oneTableId.value}`)
}
if (taskId.value) {
params.push(`taskId=${taskId.value}`)
}
if (checkPointId.value) {
params.push(`checkPointId=${checkPointId.value}`)
}
if (params.length) {
url += `?${params.join('&')}`
}
uni.navigateTo({ url })
}
const details = (item) => {