diff --git a/src/assets/upload/mp3.png b/src/assets/upload/mp3.png new file mode 100644 index 0000000..dcf9f5a Binary files /dev/null and b/src/assets/upload/mp3.png differ diff --git a/src/assets/upload/mp4.png b/src/assets/upload/mp4.png new file mode 100644 index 0000000..577adfb Binary files /dev/null and b/src/assets/upload/mp4.png differ diff --git a/src/assets/upload/picture.png b/src/assets/upload/picture.png new file mode 100644 index 0000000..2e855c8 Binary files /dev/null and b/src/assets/upload/picture.png differ diff --git a/src/components/Form/src/jeecg/components/JImageUploadtz.vue b/src/components/Form/src/jeecg/components/JImageUploadtz.vue new file mode 100644 index 0000000..2428aa7 --- /dev/null +++ b/src/components/Form/src/jeecg/components/JImageUploadtz.vue @@ -0,0 +1,450 @@ + + + diff --git a/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue b/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue new file mode 100644 index 0000000..ee06a6b --- /dev/null +++ b/src/components/Form/src/jeecg/components/JUpload/JUploadMP3.vue @@ -0,0 +1,599 @@ + + + + + diff --git a/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue b/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue new file mode 100644 index 0000000..a061693 --- /dev/null +++ b/src/components/Form/src/jeecg/components/JUpload/JUploadMP4.vue @@ -0,0 +1,608 @@ + + + + + diff --git a/src/views/synchronization/directive/canadddirective/CanAddDirective.api.ts b/src/views/synchronization/directive copy/canadddirective/CanAddDirective.api.ts similarity index 100% rename from src/views/synchronization/directive/canadddirective/CanAddDirective.api.ts rename to src/views/synchronization/directive copy/canadddirective/CanAddDirective.api.ts diff --git a/src/views/synchronization/directive/canadddirective/CanAddDirective.data.ts b/src/views/synchronization/directive copy/canadddirective/CanAddDirective.data.ts similarity index 100% rename from src/views/synchronization/directive/canadddirective/CanAddDirective.data.ts rename to src/views/synchronization/directive copy/canadddirective/CanAddDirective.data.ts diff --git a/src/views/synchronization/directive/canadddirective/CanAddDirectiveList.vue b/src/views/synchronization/directive copy/canadddirective/CanAddDirectiveList.vue similarity index 100% rename from src/views/synchronization/directive/canadddirective/CanAddDirectiveList.vue rename to src/views/synchronization/directive copy/canadddirective/CanAddDirectiveList.vue diff --git a/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveDetail.vue b/src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveDetail.vue similarity index 100% rename from src/views/synchronization/directive/canadddirective/components/CanAddDirectiveDetail.vue rename to src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveDetail.vue diff --git a/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveDetailModal.vue b/src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveDetailModal.vue similarity index 100% rename from src/views/synchronization/directive/canadddirective/components/CanAddDirectiveDetailModal.vue rename to src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveDetailModal.vue diff --git a/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveForm.vue b/src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveForm.vue similarity index 100% rename from src/views/synchronization/directive/canadddirective/components/CanAddDirectiveForm.vue rename to src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveForm.vue diff --git a/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveModal.vue b/src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveModal.vue similarity index 100% rename from src/views/synchronization/directive/canadddirective/components/CanAddDirectiveModal.vue rename to src/views/synchronization/directive copy/canadddirective/components/CanAddDirectiveModal.vue diff --git a/src/views/synchronization/directive copy/directive.data.ts b/src/views/synchronization/directive copy/directive.data.ts new file mode 100644 index 0000000..5c6a709 --- /dev/null +++ b/src/views/synchronization/directive copy/directive.data.ts @@ -0,0 +1,77 @@ +export const selectedColumns = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + width: 90, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + width: 100, // 添加固定宽度 + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + width: 120, // 添加固定宽度 + }, + { + title: '服务指令名称', + align: 'center', + dataIndex: 'directiveName', + width: 150, // 添加固定宽度 + }, + { + title: '体型标签', + align: 'center', + dataIndex: 'bodyTagList', + width: 150, + ellipsis: true, // 确保内容过长时显示省略号 + }, + { + title: '情绪标签', + align: 'center', + dataIndex: 'emotionTagList', + width: 150, + ellipsis: true, // 确保内容过长时显示省略号 + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + width: 100, // 添加固定宽度 + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + width: 135, + }, + { + title: '是否启用', + align: 'center', + dataIndex: 'izEnabled_dictText', + width: 100, + }, + { + title: '预览图片', + align: 'center', + dataIndex: 'previewFileMedia', + width: 120, // 添加固定宽度 + }, + { + title: '即时指令图片', + align: 'center', + dataIndex: 'immediateFileMedia', + width: 150, // 添加固定宽度 + }, + { + title: '操作', + dataIndex: 'action', + key: 'action', + width: 60, + fixed: 'right', + }, +]; diff --git a/src/views/synchronization/directive/directiveCom/ConfigServiceDirective.api.ts b/src/views/synchronization/directive copy/directiveCom/ConfigServiceDirective.api.ts similarity index 100% rename from src/views/synchronization/directive/directiveCom/ConfigServiceDirective.api.ts rename to src/views/synchronization/directive copy/directiveCom/ConfigServiceDirective.api.ts diff --git a/src/views/synchronization/directive/directiveCom/ConfigServiceDirective.data.ts b/src/views/synchronization/directive copy/directiveCom/ConfigServiceDirective.data.ts similarity index 100% rename from src/views/synchronization/directive/directiveCom/ConfigServiceDirective.data.ts rename to src/views/synchronization/directive copy/directiveCom/ConfigServiceDirective.data.ts diff --git a/src/views/synchronization/directive/directiveCom/ConfigServiceDirectiveList.vue b/src/views/synchronization/directive copy/directiveCom/ConfigServiceDirectiveList.vue similarity index 100% rename from src/views/synchronization/directive/directiveCom/ConfigServiceDirectiveList.vue rename to src/views/synchronization/directive copy/directiveCom/ConfigServiceDirectiveList.vue diff --git a/src/views/synchronization/directive/directiveCom/components/ConfigServiceDirectiveForm.vue b/src/views/synchronization/directive copy/directiveCom/components/ConfigServiceDirectiveForm.vue similarity index 100% rename from src/views/synchronization/directive/directiveCom/components/ConfigServiceDirectiveForm.vue rename to src/views/synchronization/directive copy/directiveCom/components/ConfigServiceDirectiveForm.vue diff --git a/src/views/synchronization/directive/directiveCom/components/ConfigServiceDirectiveModal.vue b/src/views/synchronization/directive copy/directiveCom/components/ConfigServiceDirectiveModal.vue similarity index 100% rename from src/views/synchronization/directive/directiveCom/components/ConfigServiceDirectiveModal.vue rename to src/views/synchronization/directive copy/directiveCom/components/ConfigServiceDirectiveModal.vue diff --git a/src/views/synchronization/directive/index.vue b/src/views/synchronization/directive copy/index.vue similarity index 100% rename from src/views/synchronization/directive/index.vue rename to src/views/synchronization/directive copy/index.vue diff --git a/src/views/synchronization/directive copy/orgCom/OrgListCom.vue b/src/views/synchronization/directive copy/orgCom/OrgListCom.vue new file mode 100644 index 0000000..ef42be6 --- /dev/null +++ b/src/views/synchronization/directive copy/orgCom/OrgListCom.vue @@ -0,0 +1,158 @@ + + + \ No newline at end of file diff --git a/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirective.api.ts b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirective.api.ts new file mode 100644 index 0000000..b580f12 --- /dev/null +++ b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirective.api.ts @@ -0,0 +1,41 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from '/@/hooks/web/useMessage'; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/services/serviceDirective/list', + listByDS = '/services/serviceDirective/listByDS', + queryById = '/services/serviceDirective/queryById', + syncDirective = '/services/serviceDirective/syncDirective', + idListByDS = '/services/serviceDirective/idListByDS', +} + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); +export const queryById = (params) => defHttp.get({ url: Api.queryById, params }); + +/** + * 列表接口 - 变更数据源 + * @param params + */ +export const listByDS = (params) => defHttp.get({ url: Api.listByDS, params }); + +/** + * + * @param params 获取对应机构已有指令id + * @returns + */ +export const idListByDS = (params) => defHttp.get({ url: Api.idListByDS, params }); + +/** + * 同步 + * @param params + * @returns + */ +export const syncDirective = (dataSourceCode: string, params: any) => { + return defHttp.post({ url: `${Api.syncDirective}?dataSourceCode=${encodeURIComponent(dataSourceCode)}`, params }); +}; diff --git a/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirective.data.ts b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirective.data.ts new file mode 100644 index 0000000..f182905 --- /dev/null +++ b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirective.data.ts @@ -0,0 +1,444 @@ +import { BasicColumn } from '/@/components/Table'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + customCell: (record, index, column) => { + if (record.instructionRowSpan != null) { + return { rowSpan: record.instructionRowSpan }; + } + }, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + customCell: (record, index, column) => { + if (record.categoryRowSpan != null) { + return { rowSpan: record.categoryRowSpan }; + } + }, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + customCell: (record, index, column) => { + if (record.typeRowSpan != null) { + return { rowSpan: record.typeRowSpan }; + } + }, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + // { + // title: '体型标签', + // align: 'center', + // dataIndex: 'bodyTagList', + // ellipsis: false, + // defaultHidden: false, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + // { + // title: '情绪标签', + // align: 'center', + // dataIndex: 'emotionTagList', + // ellipsis: false, + // defaultHidden: false, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + { + title: '收费价格', + align: 'center', + dataIndex: 'tollPrice', + defaultHidden: true, + }, + { + title: '提成价格', + align: 'center', + dataIndex: 'comPrice', + defaultHidden: true, + }, + { + title: '医保报销', + align: 'center', + dataIndex: 'izReimbursement_dictText', + defaultHidden: true, + }, + { + title: '机构优惠', + align: 'center', + dataIndex: 'izPreferential_dictText', + defaultHidden: true, + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + }, + { + title: '是否启用', + align: 'center', + dataIndex: 'izEnabled_dictText', + }, +]; + +export const sourceColumns: BasicColumn[] = [ + { + title: '状态', + align: 'center', + dataIndex: 'izExist', + width: 70, + fixed: 'left', + }, + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + customCell: (record, index, column) => { + if (record.instructionRowSpan != null) { + return { rowSpan: record.instructionRowSpan }; + } + }, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + customCell: (record, index, column) => { + if (record.categoryRowSpan != null) { + return { rowSpan: record.categoryRowSpan }; + } + }, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + customCell: (record, index, column) => { + if (record.typeRowSpan != null) { + return { rowSpan: record.typeRowSpan }; + } + }, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + // { + // title: '体型标签', + // align: 'center', + // dataIndex: 'bodyTagList', + // ellipsis: false, + // // defaultHidden: true, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + // { + // title: '情绪标签', + // align: 'center', + // dataIndex: 'emotionTagList', + // ellipsis: false, + // // defaultHidden: true, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + { + title: '收费价格', + align: 'center', + dataIndex: 'tollPrice', + defaultHidden: true, + }, + { + title: '提成价格', + align: 'center', + dataIndex: 'comPrice', + defaultHidden: true, + }, + { + title: '医保报销', + align: 'center', + dataIndex: 'izReimbursement_dictText', + defaultHidden: true, + }, + { + title: '机构优惠', + align: 'center', + dataIndex: 'izPreferential_dictText', + defaultHidden: true, + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + }, +]; + +export const targetSourceColumns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + customCell: (record, index, column) => { + if (record.instructionRowSpan != null) { + return { rowSpan: record.instructionRowSpan }; + } + }, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + customCell: (record, index, column) => { + if (record.categoryRowSpan != null) { + return { rowSpan: record.categoryRowSpan }; + } + }, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + customCell: (record, index, column) => { + if (record.typeRowSpan != null) { + return { rowSpan: record.typeRowSpan }; + } + }, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + // { + // title: '体型标签', + // align: 'center', + // dataIndex: 'bodyTagList', + // ellipsis: false, + // // defaultHidden: true, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + // { + // title: '情绪标签', + // align: 'center', + // dataIndex: 'emotionTagList', + // ellipsis: false, + // // defaultHidden: true, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + { + title: '收费价格', + align: 'center', + dataIndex: 'tollPrice', + defaultHidden: true, + }, + { + title: '提成价格', + align: 'center', + dataIndex: 'comPrice', + defaultHidden: true, + }, + { + title: '医保报销', + align: 'center', + dataIndex: 'izReimbursement_dictText', + defaultHidden: true, + }, + { + title: '机构优惠', + align: 'center', + dataIndex: 'izPreferential_dictText', + defaultHidden: true, + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + }, +]; + +export const targetColumns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + customCell: (record, index, column) => { + if (record.instructionRowSpan != null) { + return { rowSpan: record.instructionRowSpan }; + } + }, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + customCell: (record, index, column) => { + if (record.categoryRowSpan != null) { + return { rowSpan: record.categoryRowSpan }; + } + }, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + customCell: (record, index, column) => { + if (record.typeRowSpan != null) { + return { rowSpan: record.typeRowSpan }; + } + }, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + // { + // title: '体型标签', + // align: 'center', + // dataIndex: 'bodyTagList', + // ellipsis: false, + // // defaultHidden: true, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + // { + // title: '情绪标签', + // align: 'center', + // dataIndex: 'emotionTagList', + // ellipsis: false, + // // defaultHidden: true, + // format(text, record, index) { + // if (!!text) { + // return text.map((item) => item.tagName).join('、'); + // } else { + // return '-'; + // } + // }, + // }, + { + title: '收费价格', + align: 'center', + dataIndex: 'tollPrice', + defaultHidden: true, + }, + { + title: '提成价格', + align: 'center', + dataIndex: 'comPrice', + defaultHidden: true, + }, + { + title: '医保报销', + align: 'center', + dataIndex: 'izReimbursement_dictText', + defaultHidden: true, + }, + { + title: '机构优惠', + align: 'center', + dataIndex: 'izPreferential_dictText', + defaultHidden: true, + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleType_dictText', + }, + { + title: '服务时长(分钟)', + align: 'center', + dataIndex: 'serviceDuration', + }, + { + title: '同步类型', + align: 'center', + dataIndex: 'izExist', + width: 80, + fixed: 'right', + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + categoryId: { title: '服务类别', order: 0, view: 'list', type: 'string', dictCode: '' }, + typeId: { title: '服务类型', order: 1, view: 'list', type: 'string', dictCode: '' }, + instructionTagId: { title: '分类标签', order: 2, view: 'list', type: 'string', dictCode: 'instruction_tag' }, + directiveName: { title: '服务指令', order: 3, view: 'text', type: 'string' }, + tollPrice: { title: '收费价格', order: 4, view: 'number', type: 'number' }, + comPrice: { title: '提成价格', order: 5, view: 'number', type: 'number' }, + izReimbursement: { title: '医保报销', order: 6, view: 'radio', type: 'string', dictCode: '' }, + izPreferential: { title: '机构优惠', order: 7, view: 'radio', type: 'string', dictCode: '' }, + chargingFrequency: { title: '收费频次', order: 8, view: 'list', type: 'string', dictCode: '' }, + cycleType: { title: '周期类型', order: 9, view: 'list', type: 'string', dictCode: '' }, + sort: { title: '排序', order: 10, view: 'number', type: 'number' }, + serviceContent: { title: '服务说明', order: 11, view: 'textarea', type: 'string' }, + serviceDuration: { title: '服务时长(分钟)', order: 12, view: 'text', type: 'string' }, + izEnabled: { title: '是否启用', order: 13, view: 'radio', type: 'string', dictCode: '' }, + createBy: { title: '创建人', order: 14, view: 'text', type: 'string' }, + createTime: { title: '创建日期', order: 15, view: 'datetime', type: 'string' }, + updateBy: { title: '更新人', order: 16, view: 'text', type: 'string' }, + updateTime: { title: '更新日期', order: 17, view: 'datetime', type: 'string' }, + mp3File: { title: '语音文件', order: 18, view: 'file', type: 'string' }, + mp4File: { title: '视频文件', order: 19, view: 'file', type: 'string' }, +}; diff --git a/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirectiveList.vue b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirectiveList.vue new file mode 100644 index 0000000..ac99bc8 --- /dev/null +++ b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirectiveList.vue @@ -0,0 +1,247 @@ + + + + + diff --git a/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirectiveListModal.vue b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirectiveListModal.vue new file mode 100644 index 0000000..3f7cee3 --- /dev/null +++ b/src/views/synchronization/directive copy/serviceDirective/ConfigServiceDirectiveListModal.vue @@ -0,0 +1,71 @@ + + + + + + diff --git a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue b/src/views/synchronization/directive copy/serviceDirective/DirectiveChooseCom.vue similarity index 100% rename from src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue rename to src/views/synchronization/directive copy/serviceDirective/DirectiveChooseCom.vue diff --git a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom分步骤版本.vue b/src/views/synchronization/directive copy/serviceDirective/DirectiveChooseCom分步骤版本.vue similarity index 100% rename from src/views/synchronization/directive/serviceDirective/DirectiveChooseCom分步骤版本.vue rename to src/views/synchronization/directive copy/serviceDirective/DirectiveChooseCom分步骤版本.vue diff --git a/src/views/synchronization/directive copy/services.api.ts b/src/views/synchronization/directive copy/services.api.ts new file mode 100644 index 0000000..9b05097 --- /dev/null +++ b/src/views/synchronization/directive copy/services.api.ts @@ -0,0 +1,29 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + categoryList = '/services/serviceCategory/configServiceCategory/list', + typeList = '/services/ServiceType/configServiceType/list', + bodyTagsList = '/services/directiveTag/bodyTag/list', + emotionTagsList = '/services/directiveTag/emotionTag/list', +} + + +/** + * 服务类别 + */ +export const categoryList = () => defHttp.get({ url: Api.categoryList }); + +/** + * 服务类型 + */ +export const typeList = () => defHttp.get({ url: Api.typeList }); + +/** + * 体型标签 + */ +export const bodyTagsList = () => defHttp.get({ url: Api.bodyTagsList }); + +/** + * 指令标签 + */ +export const emotionTagsList = () => defHttp.get({ url: Api.emotionTagsList }); diff --git a/src/views/synchronization/directive copy/syncList.vue b/src/views/synchronization/directive copy/syncList.vue new file mode 100644 index 0000000..f6286e4 --- /dev/null +++ b/src/views/synchronization/directive copy/syncList.vue @@ -0,0 +1,429 @@ + + + + + \ No newline at end of file diff --git a/src/views/synchronization/directive/syncStep/SyncStepList.vue b/src/views/synchronization/directive copy/syncStep/SyncStepList.vue similarity index 99% rename from src/views/synchronization/directive/syncStep/SyncStepList.vue rename to src/views/synchronization/directive copy/syncStep/SyncStepList.vue index 41c20c7..359ca2e 100644 --- a/src/views/synchronization/directive/syncStep/SyncStepList.vue +++ b/src/views/synchronization/directive copy/syncStep/SyncStepList.vue @@ -275,6 +275,7 @@ onMounted(async () => { initLoading.value = true orgInfo.value = [] let dmInfo_ = await getDirectiveMain() + console.log("🌊 ~ dmInfo_:", dmInfo_) let dmAllInfo_ = await getOrgInfo({ orgCode: dmInfo_.orgCode }) if (!dmAllInfo_.records[0]) { createMessage.error('请先设置标准指令库!') diff --git a/src/views/synchronization/directive/syncStep/SyncStepListModal.vue b/src/views/synchronization/directive copy/syncStep/SyncStepListModal.vue similarity index 100% rename from src/views/synchronization/directive/syncStep/SyncStepListModal.vue rename to src/views/synchronization/directive copy/syncStep/SyncStepListModal.vue diff --git a/src/views/synchronization/directive/syncStep/SyncStepList分步骤源_指令_目标.vue b/src/views/synchronization/directive copy/syncStep/SyncStepList分步骤源_指令_目标.vue similarity index 100% rename from src/views/synchronization/directive/syncStep/SyncStepList分步骤源_指令_目标.vue rename to src/views/synchronization/directive copy/syncStep/SyncStepList分步骤源_指令_目标.vue diff --git a/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogInfo.api.ts b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogInfo.api.ts new file mode 100644 index 0000000..854b12b --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/directiveopelog/directiveOpeLogInfo/list', + save='/directiveopelog/directiveOpeLogInfo/add', + edit='/directiveopelog/directiveOpeLogInfo/edit', + deleteOne = '/directiveopelog/directiveOpeLogInfo/delete', + deleteBatch = '/directiveopelog/directiveOpeLogInfo/deleteBatch', + importExcel = '/directiveopelog/directiveOpeLogInfo/importExcel', + exportXls = '/directiveopelog/directiveOpeLogInfo/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/synchronization/directive/directiveopelog/DirectiveOpeLogMain.api.ts b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMain.api.ts new file mode 100644 index 0000000..2103e36 --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMain.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/directiveopelog/directiveOpeLogMain/list', + save='/directiveopelog/directiveOpeLogMain/add', + edit='/directiveopelog/directiveOpeLogMain/edit', + deleteOne = '/directiveopelog/directiveOpeLogMain/delete', + deleteBatch = '/directiveopelog/directiveOpeLogMain/deleteBatch', + importExcel = '/directiveopelog/directiveOpeLogMain/importExcel', + exportXls = '/directiveopelog/directiveOpeLogMain/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/synchronization/directive/directiveopelog/DirectiveOpeLogMain.data.ts b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMain.data.ts new file mode 100644 index 0000000..6faeda6 --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMain.data.ts @@ -0,0 +1,72 @@ +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: 'orgCode_dictText', + }, + { + title: '操作类型', + align: 'center', + dataIndex: 'opeType_dictText', + width: 80, + }, + { + title: '操作人', + align: 'center', + dataIndex: 'createBy', + width: 80, + }, + { + title: '操作日期', + align: 'center', + dataIndex: 'createTime', + }, + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagName', + width: 120, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryName', + width: 120, + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeName', + width: 120, + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + { + title: '周期类型', + align: 'center', + dataIndex: 'cycleTypeName', + width: 80, + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + orgCode: { title: '机构编码', order: 0, view: 'list', type: 'string', dictTable: 'sys_depart', dictCode: 'org_code', dictText: 'depart_name' }, + opeType: { title: '操作类型 1新增 2修改', order: 1, view: 'list', type: 'string', dictCode: 'directive_ope_type' }, + createBy: { title: '操作人', order: 2, view: 'text', type: 'string' }, + createTime: { title: '操作日期', order: 3, view: 'datetime', type: 'string' }, + instructionTagName: { title: '分类标签名称', order: 4, view: 'text', type: 'string' }, + categoryName: { title: '服务类别名称', order: 5, view: 'text', type: 'string' }, + typeName: { title: '服务类型名称', order: 6, view: 'text', type: 'string' }, + directiveName: { title: '服务指令名称', order: 7, view: 'text', type: 'string' }, + cycleType: { title: '周期类型 字典period_type', order: 8, view: 'list', type: 'string', dictCode: 'period_type' }, +}; diff --git a/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMainList.vue b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMainList.vue new file mode 100644 index 0000000..4752abc --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/DirectiveOpeLogMainList.vue @@ -0,0 +1,189 @@ + + + + + diff --git a/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogInfoAdd.vue b/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogInfoAdd.vue new file mode 100644 index 0000000..3b0a630 --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogInfoAdd.vue @@ -0,0 +1,355 @@ + + + + + diff --git a/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogInfoCompare.vue b/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogInfoCompare.vue new file mode 100644 index 0000000..481263f --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogInfoCompare.vue @@ -0,0 +1,307 @@ + + + + + + \ No newline at end of file diff --git a/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogMainModal.vue b/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogMainModal.vue new file mode 100644 index 0000000..49f71ec --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/components/DirectiveOpeLogMainModal.vue @@ -0,0 +1,85 @@ + + + + + + diff --git a/src/views/synchronization/directive/directiveopelog/components/DirectiveRadioCom.vue b/src/views/synchronization/directive/directiveopelog/components/DirectiveRadioCom.vue new file mode 100644 index 0000000..6819805 --- /dev/null +++ b/src/views/synchronization/directive/directiveopelog/components/DirectiveRadioCom.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMain.api.ts b/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMain.api.ts new file mode 100644 index 0000000..a0d775a --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMain.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/directivesynclog/directiveSyncLogMain/list', + save='/directivesynclog/directiveSyncLogMain/add', + edit='/directivesynclog/directiveSyncLogMain/edit', + deleteOne = '/directivesynclog/directiveSyncLogMain/delete', + deleteBatch = '/directivesynclog/directiveSyncLogMain/deleteBatch', + importExcel = '/directivesynclog/directiveSyncLogMain/importExcel', + exportXls = '/directivesynclog/directiveSyncLogMain/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/synchronization/directive/directivesynclog/DirectiveSyncLogMain.data.ts b/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMain.data.ts new file mode 100644 index 0000000..1125e80 --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMain.data.ts @@ -0,0 +1,52 @@ +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: 'opeOrgCode_dictText', + }, + { + title: '被镜像机构', + align: 'center', + dataIndex: 'targetOrgCode_dictText', + }, + { + title: '镜像日期', + align: 'center', + dataIndex: 'createTime', + }, + { + title: '镜像码', + align: 'center', + dataIndex: 'orgDirectiveCode', + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + opeOrgCode: { + title: '哪个机构镜像的', + order: 0, + view: 'list', + type: 'string', + dictTable: 'sys_depart', + dictCode: 'org_code', + dictText: 'depart_name', + }, + targetOrgCode: { + title: '镜像的哪个机构的指令', + order: 1, + view: 'list', + type: 'string', + dictTable: 'sys_depart', + dictCode: 'org_code', + dictText: 'depart_name', + }, + orgDirectiveCode: { title: '指令镜像码', order: 2, view: 'text', type: 'string' }, + createTime: { title: '创建日期', order: 3, view: 'datetime', type: 'string' }, +}; diff --git a/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMainList.vue b/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMainList.vue new file mode 100644 index 0000000..9497d93 --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/DirectiveSyncLogMainList.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfo.api.ts b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfo.api.ts new file mode 100644 index 0000000..d507281 --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/directivesynclog/directiveSyncLogInfo/list', + save='/directivesynclog/directiveSyncLogInfo/add', + edit='/directivesynclog/directiveSyncLogInfo/edit', + deleteOne = '/directivesynclog/directiveSyncLogInfo/delete', + deleteBatch = '/directivesynclog/directiveSyncLogInfo/deleteBatch', + importExcel = '/directivesynclog/directiveSyncLogInfo/importExcel', + exportXls = '/directivesynclog/directiveSyncLogInfo/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/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfo.data.ts b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfo.data.ts new file mode 100644 index 0000000..2fa9ec9 --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfo.data.ts @@ -0,0 +1,42 @@ +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: 'instructionTagName' + }, + { + title: '服务类别名称', + align: "center", + dataIndex: 'categoryName' + }, + { + title: '服务类型名称', + align: "center", + dataIndex: 'typeName' + }, + { + title: '服务指令名称', + align: "center", + dataIndex: 'directiveName' + }, + { + title: '周期类型', + align: "center", + dataIndex: 'cycleType_dictText' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + instructionTagName: {title: '分类标签名称',order: 0,view: 'text', type: 'string',}, + categoryName: {title: '服务类别名称',order: 1,view: 'text', type: 'string',}, + typeName: {title: '服务类型名称',order: 2,view: 'text', type: 'string',}, + directiveName: {title: '服务指令名称',order: 3,view: 'text', type: 'string',}, + cycleType: {title: '周期类型 1日常护理 2周期护理 3即时护理',order: 6,view: 'text', type: 'string',}, +}; diff --git a/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoForm.vue b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoForm.vue new file mode 100644 index 0000000..636092a --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoForm.vue @@ -0,0 +1,229 @@ + + + + + diff --git a/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoList.vue b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoList.vue new file mode 100644 index 0000000..9a4e66a --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoList.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoModal.vue b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoModal.vue new file mode 100644 index 0000000..a57a5d8 --- /dev/null +++ b/src/views/synchronization/directive/directivesynclog/components/DirectiveSyncLogInfoModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveList.vue b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveList.vue index ac99bc8..6c0e0ee 100644 --- a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveList.vue +++ b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveList.vue @@ -42,29 +42,6 @@ dictCode="period_type" placeholder="请选择周期类型" :ignoreDisabled="true" allowClear /> - - @@ -115,17 +92,11 @@ import { BasicTable, TableAction } from '/@/components/Table'; import { useListPage } from '/@/hooks/system/useListPage'; import { columns, superQuerySchema } from './ConfigServiceDirective.data'; import { listByDS } from './ConfigServiceDirective.api'; -import { useUserStore } from '/@/store/modules/user'; import JInput from "/@/components/Form/src/jeecg/components/JInput.vue"; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; -import { cloneDeep } from "lodash-es"; -import { getFileAccessHttpUrl } from '/@/utils/common/compUtils'; const formRef = ref(); const queryParam = reactive({}); -const toggleSearchStatus = ref(false); -const registerModal = ref(); -const userStore = useUserStore(); const sourceOrgName = ref()//日志功能进来的-源平台机构名称 const targetOrgName = ref()//日志功能进来的-目标平台机构名称 //注册table数据 diff --git a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveListModal.vue b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveListModal.vue index 3f7cee3..e2219c6 100644 --- a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveListModal.vue +++ b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveListModal.vue @@ -1,7 +1,4 @@