From 909672266660c9d003508c3dfb6b6886825fa89f Mon Sep 17 00:00:00 2001
From: "1378012178@qq.com" <1378012178@qq.com>
Date: Mon, 17 Mar 2025 16:55:00 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=8C=87=E4=BB=A4=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=88=E4=B8=B4=E6=97=B6=E7=89=88=E6=9C=AC?=
=?UTF-8?q?=EF=BC=89=202=E3=80=81=E8=B0=83=E6=95=B4=E6=9C=8D=E5=8A=A1?=
=?UTF-8?q?=E6=8C=87=E4=BB=A4=E7=9B=B8=E5=85=B3=E7=9A=84=E9=AA=8C=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../config/directiveTag/DirectiveTag.api.ts | 72 +++++
.../config/directiveTag/DirectiveTag.data.ts | 30 ++
.../config/directiveTag/DirectiveTagList.vue | 273 ++++++++++++++++++
.../components/DirectiveTagForm.vue | 161 +++++++++++
.../components/DirectiveTagModal.vue | 77 +++++
.../components/ConfigServiceCategoryForm.vue | 2 +-
.../ConfigServiceDirectiveList.vue | 40 ++-
.../components/ConfigServiceDirectiveForm.vue | 4 +-
.../components/ConfigServiceTypeForm.vue | 2 +-
9 files changed, 646 insertions(+), 15 deletions(-)
create mode 100644 src/views/config/directiveTag/DirectiveTag.api.ts
create mode 100644 src/views/config/directiveTag/DirectiveTag.data.ts
create mode 100644 src/views/config/directiveTag/DirectiveTagList.vue
create mode 100644 src/views/config/directiveTag/components/DirectiveTagForm.vue
create mode 100644 src/views/config/directiveTag/components/DirectiveTagModal.vue
diff --git a/src/views/config/directiveTag/DirectiveTag.api.ts b/src/views/config/directiveTag/DirectiveTag.api.ts
new file mode 100644
index 0000000..257ffa5
--- /dev/null
+++ b/src/views/config/directiveTag/DirectiveTag.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/directiveTag/directiveTag/list',
+ save='/directiveTag/directiveTag/add',
+ edit='/directiveTag/directiveTag/edit',
+ deleteOne = '/directiveTag/directiveTag/delete',
+ deleteBatch = '/directiveTag/directiveTag/deleteBatch',
+ importExcel = '/directiveTag/directiveTag/importExcel',
+ exportXls = '/directiveTag/directiveTag/exportXls',
+}
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 删除单个
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteOne = (params,handleSuccess) => {
+ return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+}
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
diff --git a/src/views/config/directiveTag/DirectiveTag.data.ts b/src/views/config/directiveTag/DirectiveTag.data.ts
new file mode 100644
index 0000000..654237b
--- /dev/null
+++ b/src/views/config/directiveTag/DirectiveTag.data.ts
@@ -0,0 +1,30 @@
+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: 'tagName'
+ },
+ {
+ title: '排序',
+ align: "center",
+ dataIndex: 'sort'
+ },
+ {
+ title: '是否启用',
+ align: "center",
+ dataIndex: 'izEnabled_dictText'
+ },
+];
+
+// 高级查询数据
+export const superQuerySchema = {
+ tagName: {title: '标签名称',order: 0,view: 'text', type: 'string',},
+ sort: {title: '排序',order: 1,view: 'number', type: 'number',},
+ izEnabled: {title: '是否启用',order: 2,view: 'radio', type: 'string',dictCode: 'iz_enabled',},
+};
diff --git a/src/views/config/directiveTag/DirectiveTagList.vue b/src/views/config/directiveTag/DirectiveTagList.vue
new file mode 100644
index 0000000..d193bcc
--- /dev/null
+++ b/src/views/config/directiveTag/DirectiveTagList.vue
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/config/directiveTag/components/DirectiveTagForm.vue b/src/views/config/directiveTag/components/DirectiveTagForm.vue
new file mode 100644
index 0000000..c452842
--- /dev/null
+++ b/src/views/config/directiveTag/components/DirectiveTagForm.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/config/directiveTag/components/DirectiveTagModal.vue b/src/views/config/directiveTag/components/DirectiveTagModal.vue
new file mode 100644
index 0000000..494db25
--- /dev/null
+++ b/src/views/config/directiveTag/components/DirectiveTagModal.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/config/serviceCategory/components/ConfigServiceCategoryForm.vue b/src/views/config/serviceCategory/components/ConfigServiceCategoryForm.vue
index 3274ac2..2799128 100644
--- a/src/views/config/serviceCategory/components/ConfigServiceCategoryForm.vue
+++ b/src/views/config/serviceCategory/components/ConfigServiceCategoryForm.vue
@@ -60,7 +60,7 @@ const confirmLoading = ref(false);
//表单验证
const validatorRules = reactive({
categoryName: [{ required: true, message: '请输入服务类别名称!' },],
- sort: [{ required: true, message: '请输入排序!' }, { pattern: /^-?\d+$/, message: '请输入整数!' },],
+ sort: [{ required: true, message: '请输入排序!'}, { pattern: /^\d+$/, message: '请输入正整数!'},],
izEnabled: [{ required: true, message: '请选择是否启用!' },],
});
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
diff --git a/src/views/config/serviceDirective/ConfigServiceDirectiveList.vue b/src/views/config/serviceDirective/ConfigServiceDirectiveList.vue
index 7a316a7..c360aa1 100644
--- a/src/views/config/serviceDirective/ConfigServiceDirectiveList.vue
+++ b/src/views/config/serviceDirective/ConfigServiceDirectiveList.vue
@@ -15,7 +15,7 @@
- 服务类型
+ 服务类型
@@ -24,15 +24,15 @@
- 指令标签
+ 指令标签
- 服务指令
-
+ 服务指令
+
服务类别
+ preIcon="tabler:settings">配置服务类别
服务类型
+ preIcon="tabler:settings">配置服务类型
+ 配置指令标签
新增
+ preIcon="ant-design:plus-outlined">新增
+
+
+ 关闭
+
+
+