综合服务增加业务维修处理反馈,修复公告编辑新增浏览量问题

This commit is contained in:
zjf committed 2025-11-10 16:00:34 +08:00
1 parent f60218c832
commit c09fc8b1e5
4 files changed
+113 -18

No files matched your search

@@ -89,7 +89,7 @@
>删除</el-button
>
<el-button icon="Check" text type="primary" v-if="scope.row.status != 1" @click="handleProcessed(scope.row)">
标记为已处理
开始处理
</el-button>
</template>
</el-table-column>
@@ -99,6 +99,9 @@
<!-- 编辑、新增 -->
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
<!-- 处理弹窗 -->
<handle-dialog ref="handleDialogRef" @refresh="getDataList(false)" />
</div>
</template>
@@ -110,11 +113,13 @@ import { useDict } from "/@/hooks/dict"
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
const HandleDialog = defineAsyncComponent(() => import("./handleDialog.vue"))
// 定义查询字典
const { maintenance_urgency, maintenance_status } = useDict("maintenance_urgency", "maintenance_status")
// 定义变量内容
const formDialogRef = ref()
const handleDialogRef = ref()
// 搜索变量
const queryRef = ref()
const showSearch = ref(true)
@@ -167,19 +172,8 @@ const handleDelete = async (ids: string[]) => {
}
}
// 添加已处理操作
const handleProcessed = async (row: any) => {
try {
await useMessageBox().confirm("确定将该工单标记为已处理吗?")
} catch {
return
}
try {
await putObj({ ...row, status: 1 })
useMessage().success("已处理")
getDataList()
} catch (err: any) {
useMessage().error(err.msg)
}
// 开始处理操作
const handleProcessed = (row: any) => {
handleDialogRef.value.openDialog(row.id)
}
</script>