|
@@ -174,29 +174,56 @@
|
|
/>
|
|
/>
|
|
<el-table-column label="操作" align="center" min-width="120px">
|
|
<el-table-column label="操作" align="center" min-width="120px">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button
|
|
|
|
- link
|
|
|
|
- type="primary"
|
|
|
|
- @click="openForm('update', scope.row.id)"
|
|
|
|
- >
|
|
|
|
- 编辑
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- link
|
|
|
|
- type="danger"
|
|
|
|
- @click="handleDelete(scope.row.id)"
|
|
|
|
- >
|
|
|
|
- 删除
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- link
|
|
|
|
- v-if="scope.row.needHelp"
|
|
|
|
- type="warning"
|
|
|
|
- @click="submitProcess(scope.row.id)"
|
|
|
|
- >
|
|
|
|
- 提交审核
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-dropdown
|
|
|
|
+ @command="(command) => handleCommand(command, scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <el-button type="primary" link><Icon icon="ep:d-arrow-right" /> 更多</el-button>
|
|
|
|
+ <template #dropdown>
|
|
|
|
+ <el-dropdown-menu>
|
|
|
|
+ <el-dropdown-item
|
|
|
|
+ command="handleUpdate"
|
|
|
|
+ >
|
|
|
|
+ <Icon icon="ep:edit" />编辑
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ <el-dropdown-item
|
|
|
|
+ command="handleDelete"
|
|
|
|
+ >
|
|
|
|
+ <Icon icon="ep:delete" />删除
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ <el-dropdown-item
|
|
|
|
+ v-if="scope.row.auditStatus === '0'"
|
|
|
|
+ command="handleSubmit"
|
|
|
|
+ >
|
|
|
|
+ <Icon icon="ep:circle-check" />提交审核
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </template>
|
|
|
|
+ </el-dropdown>
|
|
</template>
|
|
</template>
|
|
|
|
+<!-- <template #default="scope">-->
|
|
|
|
+<!-- <el-button-->
|
|
|
|
+<!-- link-->
|
|
|
|
+<!-- type="primary"-->
|
|
|
|
+<!-- @click="openForm('update', scope.row.id)"-->
|
|
|
|
+<!-- >-->
|
|
|
|
+<!-- 编辑-->
|
|
|
|
+<!-- </el-button>-->
|
|
|
|
+<!-- <el-button-->
|
|
|
|
+<!-- link-->
|
|
|
|
+<!-- type="danger"-->
|
|
|
|
+<!-- @click="handleDelete(scope.row.id)"-->
|
|
|
|
+<!-- >-->
|
|
|
|
+<!-- 删除-->
|
|
|
|
+<!-- </el-button>-->
|
|
|
|
+<!-- <el-button-->
|
|
|
|
+<!-- link-->
|
|
|
|
+<!-- v-if="scope.row.needHelp"-->
|
|
|
|
+<!-- type="warning"-->
|
|
|
|
+<!-- @click="submitProcess(scope.row.id)"-->
|
|
|
|
+<!-- >-->
|
|
|
|
+<!-- 提交审核-->
|
|
|
|
+<!-- </el-button>-->
|
|
|
|
+<!-- </template>-->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
@@ -256,6 +283,23 @@ const exportLoading = ref(false) // 导出的加载中
|
|
const moreQuery = (show) => {
|
|
const moreQuery = (show) => {
|
|
ifShow.value = show
|
|
ifShow.value = show
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+const handleCommand = (command: string, row: IotFailureReportVO) => {
|
|
|
|
+ switch (command) {
|
|
|
|
+ case 'handleDelete':
|
|
|
|
+ handleDelete(row.id)
|
|
|
|
+ break
|
|
|
|
+ case 'handleUpdate':
|
|
|
|
+ openForm('update', row.id)
|
|
|
|
+ break
|
|
|
|
+ case 'handleSubmit':
|
|
|
|
+ submitProcess(row.id)
|
|
|
|
+ break
|
|
|
|
+ default:
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
loading.value = true
|
|
loading.value = true
|