完成水电表列表

This commit is contained in:
Zy
2026-04-18 18:14:07 +08:00
parent 9a95e2b7e3
commit d0888c6afb
115 changed files with 2842 additions and 343 deletions

View File

@@ -62,24 +62,9 @@
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" fixed="right" width="200">
<template #default="scope">
<el-tooltip content="修改" placement="top">
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['questionnaire:questionnaire:edit']"
></el-button>
</el-tooltip>
<el-tooltip content="删除" placement="top">
<el-button
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermi="['questionnaire:questionnaire:remove']"
></el-button>
</el-tooltip>
<el-button link type="primary" @click="handleView(scope.row)">查看</el-button>
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['questionnaire:questionnaire:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['questionnaire:questionnaire:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -207,6 +192,15 @@ const handleUpdate = async (row?: QuestionnaireVO) => {
});
};
// 查看按钮操作
const handleView = (row: QuestionnaireVO) => {
router.push({
path: '/repair/QuestionnaireView',
query: {
id: row.id
}
});
};
/** 提交按钮 */
const submitForm = () => {
questionnaireFormRef.value?.validate(async (valid: boolean) => {