From a4ba10534c8ceb372a934a3b486dfa91677aa698 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Mon, 9 Jun 2025 14:46:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E5=8A=A0=E7=9B=9F=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SectionDivider/SectionDivider.vue | 75 ++++ src/components/SectionDivider/section.svg | 1 + src/components/registerGlobComp.ts | 5 + src/components/terminal/Terminal.vue | 309 +++++++++++++++ .../biz/orgapplyinfo/OrgApplyInfo.api.ts | 72 ++++ .../biz/orgapplyinfo/OrgApplyInfo.data.ts | 67 ++++ .../biz/orgapplyinfo/OrgApplyInfoList.vue | 272 +++++++++++++ .../components/OrgApplyInfoForm.vue | 359 ++++++++++++++++++ .../components/OrgApplyInfoModal.vue | 76 ++++ src/views/ssh/SshService.vue | 13 + 10 files changed, 1249 insertions(+) create mode 100644 src/components/SectionDivider/SectionDivider.vue create mode 100644 src/components/SectionDivider/section.svg create mode 100644 src/components/terminal/Terminal.vue create mode 100644 src/views/biz/orgapplyinfo/OrgApplyInfo.api.ts create mode 100644 src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts create mode 100644 src/views/biz/orgapplyinfo/OrgApplyInfoList.vue create mode 100644 src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue create mode 100644 src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue create mode 100644 src/views/ssh/SshService.vue diff --git a/src/components/SectionDivider/SectionDivider.vue b/src/components/SectionDivider/SectionDivider.vue new file mode 100644 index 0000000..b1a2c39 --- /dev/null +++ b/src/components/SectionDivider/SectionDivider.vue @@ -0,0 +1,75 @@ + + + \ No newline at end of file diff --git a/src/components/SectionDivider/section.svg b/src/components/SectionDivider/section.svg new file mode 100644 index 0000000..717b1af --- /dev/null +++ b/src/components/SectionDivider/section.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/registerGlobComp.ts b/src/components/registerGlobComp.ts index 471f1f7..a234b1f 100644 --- a/src/components/registerGlobComp.ts +++ b/src/components/registerGlobComp.ts @@ -6,6 +6,9 @@ import AIcon from '/@/components/jeecg/AIcon.vue'; import { Button, JUploadButton } from './Button'; +// 表单分栏标题组件 +import SectionDivider from '/@/components/SectionDivider/SectionDivider.vue'; + // 按需注册antd的组件 import { // Need @@ -69,6 +72,8 @@ export function registerGlobComp(app: App) { //仪表盘依赖Tinymce,需要提前加载(没办法按需加载了) app.component(Editor.name, Editor); + //表单分栏标题组件 + app.component('SectionDivider',SectionDivider); // update-begin--author:liaozhiyang---date:20240308---for:【QQYUN-8241】Tinymce异步加载 // app.component( // 'Tinymce', diff --git a/src/components/terminal/Terminal.vue b/src/components/terminal/Terminal.vue new file mode 100644 index 0000000..ea8ca22 --- /dev/null +++ b/src/components/terminal/Terminal.vue @@ -0,0 +1,309 @@ + + + + + \ No newline at end of file diff --git a/src/views/biz/orgapplyinfo/OrgApplyInfo.api.ts b/src/views/biz/orgapplyinfo/OrgApplyInfo.api.ts new file mode 100644 index 0000000..1f00c16 --- /dev/null +++ b/src/views/biz/orgapplyinfo/OrgApplyInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/orgapplyinfo/orgApplyInfo/list', + save='/orgapplyinfo/orgApplyInfo/add', + edit='/orgapplyinfo/orgApplyInfo/edit', + deleteOne = '/orgapplyinfo/orgApplyInfo/delete', + deleteBatch = '/orgapplyinfo/orgApplyInfo/deleteBatch', + importExcel = '/orgapplyinfo/orgApplyInfo/importExcel', + exportXls = '/orgapplyinfo/orgApplyInfo/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/biz/orgapplyinfo/OrgApplyInfo.data.ts b/src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts new file mode 100644 index 0000000..16358ac --- /dev/null +++ b/src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts @@ -0,0 +1,67 @@ +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: 'status_dictText' + }, + { + title: '咨询人姓名', + align: "center", + dataIndex: 'name' + }, + { + title: '性别', + align: "center", + dataIndex: 'sex' + }, + { + title: '联系电话', + align: "center", + dataIndex: 'tel' + }, + { + title: '申请日期', + align: "center", + dataIndex: 'createTime' + }, + { + title: '机构地址', + align: "center", + dataIndex: 'orgAddress' + }, + { + title: '机构负责人电话', + align: "center", + dataIndex: 'orgLeaderPhone' + }, + { + title: '机构房屋性质', + align: "center", + dataIndex: 'orgPropertyType' + }, + { + title: '机构建筑面积', + align: "center", + dataIndex: 'orgBuildingArea' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + tel: {title: '联系电话',order: 2,view: 'text', type: 'string',}, + status: {title: '状态 1审核中 2审核完成 3驳回 ',order: 3,view: 'list', type: 'string',dictCode: '',}, + createTime: {title: '创建日期',order: 5,view: 'datetime', type: 'string',}, + izEntry: {title: '机构是否入驻0否 1是(是否入驻过)',order: 7,view: 'list', type: 'string',dictCode: '',}, + name: {title: '咨询人姓名',order: 8,view: 'text', type: 'string',}, + sex: {title: '性别',order: 9,view: 'text', type: 'string',}, + orgAddress: {title: '机构地址',order: 24,view: 'text', type: 'string',}, + orgLeaderPhone: {title: '机构负责人电话',order: 27,view: 'text', type: 'string',}, + orgPropertyType: {title: '机构房屋性质',order: 29,view: 'text', type: 'string',}, + orgBuildingArea: {title: '机构建筑面积',order: 30,view: 'number', type: 'number',}, +}; diff --git a/src/views/biz/orgapplyinfo/OrgApplyInfoList.vue b/src/views/biz/orgapplyinfo/OrgApplyInfoList.vue new file mode 100644 index 0000000..ca34739 --- /dev/null +++ b/src/views/biz/orgapplyinfo/OrgApplyInfoList.vue @@ -0,0 +1,272 @@ + + + + + diff --git a/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue b/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue new file mode 100644 index 0000000..37d8fdb --- /dev/null +++ b/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue @@ -0,0 +1,359 @@ + + + + + diff --git a/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue b/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue new file mode 100644 index 0000000..af67ebe --- /dev/null +++ b/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue @@ -0,0 +1,76 @@ + + + + + + diff --git a/src/views/ssh/SshService.vue b/src/views/ssh/SshService.vue new file mode 100644 index 0000000..7285c82 --- /dev/null +++ b/src/views/ssh/SshService.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file