diff --git a/src/api/common/api.ts b/src/api/common/api.ts
index ae1608b..4274193 100644
--- a/src/api/common/api.ts
+++ b/src/api/common/api.ts
@@ -15,10 +15,11 @@ enum Api {
getDictItems = '/sys/dict/getDictItems/',
getTableList = '/sys/user/queryUserComponentData',
getCategoryData = '/sys/category/loadAllData',
- getOrgInfo = '/api/common/getOrgInfo',//根据机构编码获取机构信息
+ getOrgInfo = '/api/common/getOrgInfo', //根据机构编码获取机构信息
+ changeDirectiveMain = '/sys/sysDepart/changeDirectiveMain', //变更指令库
+ getDirectiveMain = '/sys/sysDepart/getDirectiveMain', //查询当前指令库机构信息
}
-
/**
* 上传父路径
*/
@@ -165,3 +166,19 @@ export const uploadMyFile = (url, data) => {
export const getOrgInfo = (params) => {
return defHttp.get({ url: Api.getOrgInfo, params });
};
+
+/**
+ * 变更指令库
+ * @param params
+ */
+export const changeDirectiveMain = (orgCode) => {
+ return defHttp.post({ url: `${Api.changeDirectiveMain}?orgCode=${encodeURIComponent(orgCode)}` });
+};
+
+/**
+ * 变更指令库
+ * @param params
+ */
+export const getDirectiveMain = () => {
+ return defHttp.get({ url: Api.getDirectiveMain });
+};
diff --git a/src/assets/images/safety.png b/src/assets/images/safety.png
new file mode 100644
index 0000000..1c24b2e
Binary files /dev/null and b/src/assets/images/safety.png differ
diff --git a/src/components/dataAsync/AsyncMainList0731.vue b/src/components/dataAsync/AsyncMainList0731.vue
index 38e7887..bfa61f7 100644
--- a/src/components/dataAsync/AsyncMainList0731.vue
+++ b/src/components/dataAsync/AsyncMainList0731.vue
@@ -31,28 +31,36 @@
-
-
- 成功
-
-
- 失败
-
- -
-
+
+
+ 同步中
+
+
+ 成功
+
+
+ 失败
+
+ -
+
-
-
-
- 成功
-
-
- 失败
-
- -
-
+
+
+
+ 同步中
+
+
+ 成功
+
+
+ 失败
+
+ -
+
@@ -60,124 +68,124 @@
-
-
\ No newline at end of file
diff --git a/src/views/synchronization/directive/canadddirective/CanAddDirective.api.ts b/src/views/synchronization/directive/canadddirective/CanAddDirective.api.ts
new file mode 100644
index 0000000..1837053
--- /dev/null
+++ b/src/views/synchronization/directive/canadddirective/CanAddDirective.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/canadddirective/canAddDirective/list',
+ save='/canadddirective/canAddDirective/add',
+ edit='/canadddirective/canAddDirective/edit',
+ deleteOne = '/canadddirective/canAddDirective/delete',
+ deleteBatch = '/canadddirective/canAddDirective/deleteBatch',
+ importExcel = '/canadddirective/canAddDirective/importExcel',
+ exportXls = '/canadddirective/canAddDirective/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/canadddirective/CanAddDirective.data.ts b/src/views/synchronization/directive/canadddirective/CanAddDirective.data.ts
new file mode 100644
index 0000000..ce5435e
--- /dev/null
+++ b/src/views/synchronization/directive/canadddirective/CanAddDirective.data.ts
@@ -0,0 +1,54 @@
+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: 'instructionTag'
+ },
+ {
+ title: '服务类别',
+ align: "center",
+ dataIndex: 'category'
+ },
+ {
+ title: '服务类型',
+ align: "center",
+ dataIndex: 'type'
+ },
+ {
+ title: '服务指令',
+ align: "center",
+ dataIndex: 'directiveName'
+ },
+ {
+ title: '周期类型 1日常护理 2周期护理 3即时护理',
+ align: "center",
+ dataIndex: 'cycleType'
+ },
+ {
+ title: '创建日期',
+ align: "center",
+ dataIndex: 'createTime'
+ },
+ {
+ title: '所属部门',
+ align: "center",
+ dataIndex: 'orgCode_dictText'
+ },
+];
+
+// 高级查询数据
+export const superQuerySchema = {
+ instructionTag: {title: '分类标签',order: 0,view: 'text', type: 'string',},
+ category: {title: '服务类别',order: 1,view: 'text', type: 'string',},
+ type: {title: '服务类型',order: 2,view: 'text', type: 'string',},
+ directiveName: {title: '服务指令',order: 3,view: 'text', type: 'string',},
+ cycleType: {title: '周期类型 1日常护理 2周期护理 3即时护理',order: 4,view: 'text', type: 'string',},
+ createTime: {title: '创建日期',order: 5,view: 'datetime', type: 'string',},
+ orgCode: {title: '所属部门',order: 6,view: 'list', type: 'string',dictTable: "sys_depart", dictCode: 'org_code', dictText: 'depart_name',},
+};
diff --git a/src/views/synchronization/directive/canadddirective/CanAddDirectiveList.vue b/src/views/synchronization/directive/canadddirective/CanAddDirectiveList.vue
new file mode 100644
index 0000000..09c79aa
--- /dev/null
+++ b/src/views/synchronization/directive/canadddirective/CanAddDirectiveList.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveForm.vue b/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveForm.vue
new file mode 100644
index 0000000..2d1ec7b
--- /dev/null
+++ b/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveForm.vue
@@ -0,0 +1,423 @@
+
+
+
+
+
+
+
+
+
+
+ 审核通过
+ 审核不通过
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveModal.vue b/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveModal.vue
new file mode 100644
index 0000000..692cc73
--- /dev/null
+++ b/src/views/synchronization/directive/canadddirective/components/CanAddDirectiveModal.vue
@@ -0,0 +1,146 @@
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
diff --git a/src/views/synchronization/directive/orgCom/OrgListCom.vue b/src/views/synchronization/directive/orgCom/OrgListCom.vue
index 95babf6..70b90f9 100644
--- a/src/views/synchronization/directive/orgCom/OrgListCom.vue
+++ b/src/views/synchronization/directive/orgCom/OrgListCom.vue
@@ -5,8 +5,10 @@
-
@@ -17,6 +19,8 @@
已选择
+ 指令库已选择
@@ -34,6 +38,11 @@

详情
+
+ 新增指令
+
@@ -38,16 +40,46 @@
+
+
+
+ 刷新
+
+
+
关闭
-
+
+
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+ 关闭
+
+
+
@@ -225,4 +353,11 @@ onMounted(() => {
overflow: hidden;
text-overflow: ellipsis;
}
+
+.content-refresh-btn {
+ position: absolute;
+ top: 60px;
+ right: 20px;
+ z-index: 1;
+}
\ No newline at end of file
diff --git a/src/views/system/depart/components/DepartFormModal.vue b/src/views/system/depart/components/DepartFormModal.vue
index 72c22b2..5a35d65 100644
--- a/src/views/system/depart/components/DepartFormModal.vue
+++ b/src/views/system/depart/components/DepartFormModal.vue
@@ -1,6 +1,13 @@
+
+
+
+ 是
+ 否
+
+
+
+
+
+ 是
+ 否
+
+