From ba6925aab5826ca0149537b5e098863e6db96339 Mon Sep 17 00:00:00 2001
From: ye1023 <12588209+ye1023@user.noreply.gitee.com>
Date: Wed, 27 May 2026 15:49:39 +0800
Subject: [PATCH] =?UTF-8?q?yxk-20260527-=E5=B7=A1=E8=A7=86=E6=95=B4?=
=?UTF-8?q?=E6=94=B9=E6=8F=90=E5=8D=87=E5=8F=B0=E8=B4=A6=EF=BC=8C=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dq/inspectProblem/DqInspectProblem.api.ts | 93 ++++
.../inspectProblem/DqInspectProblem.data.ts | 78 ++++
.../inspectProblem/DqInspectProblemList.vue | 415 ++++++++++++++++++
.../components/DqInspectProblemForm.vue | 260 +++++++++++
.../components/DqInspectProblemModal.vue | 89 ++++
5 files changed, 935 insertions(+)
create mode 100644 src/views/dq/inspectProblem/DqInspectProblem.api.ts
create mode 100644 src/views/dq/inspectProblem/DqInspectProblem.data.ts
create mode 100644 src/views/dq/inspectProblem/DqInspectProblemList.vue
create mode 100644 src/views/dq/inspectProblem/components/DqInspectProblemForm.vue
create mode 100644 src/views/dq/inspectProblem/components/DqInspectProblemModal.vue
diff --git a/src/views/dq/inspectProblem/DqInspectProblem.api.ts b/src/views/dq/inspectProblem/DqInspectProblem.api.ts
new file mode 100644
index 0000000..a08fbbc
--- /dev/null
+++ b/src/views/dq/inspectProblem/DqInspectProblem.api.ts
@@ -0,0 +1,93 @@
+import { defHttp } from "/@/utils/http/axios";
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/dqinspectproblem/dqInspectProblem/rootList',
+ save='/dqinspectproblem/dqInspectProblem/add',
+ edit='/dqinspectproblem/dqInspectProblem/edit',
+ deleteDqInspectProblem = '/dqinspectproblem/dqInspectProblem/delete',
+ importExcel = '/dqinspectproblem/dqInspectProblem/importExcel',
+ exportXls = '/dqinspectproblem/dqInspectProblem/exportXls',
+ loadTreeData = '/dqinspectproblem/dqInspectProblem/loadTreeRoot',
+ getChildList = '/dqinspectproblem/dqInspectProblem/childList',
+ getChildListBatch = '/dqinspectproblem/dqInspectProblem/getChildListBatch',
+}
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+
+/**
+ * 导入api
+ * @param params
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 删除
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteDqInspectProblem = (params,handleSuccess) => {
+ return defHttp.delete({ url: Api.deleteDqInspectProblem, params }, { joinParamsToUrl: true }).then(() => {
+ handleSuccess();
+ });
+}
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDeleteDqInspectProblem = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({ url: Api.deleteDqInspectProblem, data: params }, { joinParamsToUrl: true }).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdateDict = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params },{ isTransformResponse:false });
+}
+
+/**
+ * 查询全部树形节点数据
+ * @param params
+ */
+export const loadTreeData = (params) => defHttp.get({ url: Api.loadTreeData,params });
+
+/**
+ * 查询子节点数据
+ * @param params
+ */
+export const getChildList = (params) => defHttp.get({ url: Api.getChildList, params });
+
+/**
+ * 批量查询子节点数据
+ * @param params
+ */
+export const getChildListBatch = (params) => defHttp.get({ url: Api.getChildListBatch, params },{ isTransformResponse:false });
diff --git a/src/views/dq/inspectProblem/DqInspectProblem.data.ts b/src/views/dq/inspectProblem/DqInspectProblem.data.ts
new file mode 100644
index 0000000..d6cb5ed
--- /dev/null
+++ b/src/views/dq/inspectProblem/DqInspectProblem.data.ts
@@ -0,0 +1,78 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+import { rules} from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+import { getWeekMonthQuarterYear } from '/@/utils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '密级',
+ align: 'center',
+ dataIndex: 'secretLevel_dictText'
+ },
+ {
+ title: '年份',
+ align: 'center',
+ dataIndex: 'year_dictText'
+ },
+ {
+ title: '父节点ID',
+ align: 'center',
+ dataIndex: 'pid'
+ },
+ {
+ title: '是否有子节点',
+ align: 'center',
+ dataIndex: 'hasChild'
+ },
+ {
+ title: '节点类型:category/surface/specific',
+ align: 'center',
+ dataIndex: 'nodeType'
+ },
+ {
+ title: '问题名称',
+ align: 'left',
+ dataIndex: 'problemName'
+ },
+ {
+ title: '问题编码/分类字典值',
+ align: 'center',
+ dataIndex: 'problemCode'
+ },
+ {
+ title: '排序',
+ align: 'center',
+ dataIndex: 'sortNo'
+ },
+ {
+ title: '巡视建议',
+ align: 'center',
+ dataIndex: 'inspectAdvice'
+ },
+ {
+ title: '问题责任领导',
+ align: 'center',
+ dataIndex: 'questionResLeader_dictText'
+ },
+ {
+ title: '问题责任部门',
+ align: 'center',
+ dataIndex: 'questionResDept_dictText'
+ },
+];
+
+// 高级查询数据
+export const superQuerySchema = {
+ secretLevel: {title: '密级',order: 0,view: 'list', type: 'string',dictCode: 'secret_level',},
+ year: {title: '年份',order: 1,view: 'list', type: 'string',dictCode: 'super_year',},
+ pid: {title: '父节点ID',order: 2,view: 'text', type: 'string',},
+ hasChild: {title: '是否有子节点',order: 3,view: 'text', type: 'string',},
+ nodeType: {title: '节点类型:category/surface/specific',order: 4,view: 'text', type: 'string',},
+ problemName: {title: '问题名称',order: 5,view: 'text', type: 'string',},
+ problemCode: {title: '问题编码/分类字典值',order: 6,view: 'text', type: 'string',},
+ sortNo: {title: '排序',order: 7,view: 'number', type: 'number',},
+ inspectAdvice: {title: '巡视建议',order: 8,view: 'text', type: 'string',},
+ questionResLeader: {title: '问题责任领导',order: 9,view: 'sel_depart', type: 'string',},
+ questionResDept: {title: '问题责任部门',order: 10,view: 'sel_user', type: 'string',},
+};
diff --git a/src/views/dq/inspectProblem/DqInspectProblemList.vue b/src/views/dq/inspectProblem/DqInspectProblemList.vue
new file mode 100644
index 0000000..18911f4
--- /dev/null
+++ b/src/views/dq/inspectProblem/DqInspectProblemList.vue
@@ -0,0 +1,415 @@
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dq/inspectProblem/components/DqInspectProblemForm.vue b/src/views/dq/inspectProblem/components/DqInspectProblemForm.vue
new file mode 100644
index 0000000..3213ad3
--- /dev/null
+++ b/src/views/dq/inspectProblem/components/DqInspectProblemForm.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dq/inspectProblem/components/DqInspectProblemModal.vue b/src/views/dq/inspectProblem/components/DqInspectProblemModal.vue
new file mode 100644
index 0000000..96436dd
--- /dev/null
+++ b/src/views/dq/inspectProblem/components/DqInspectProblemModal.vue
@@ -0,0 +1,89 @@
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
+