diff --git a/src/assets/js/asyncRouter.js b/src/assets/js/asyncRouter.js index b284672..5a4d282 100644 --- a/src/assets/js/asyncRouter.js +++ b/src/assets/js/asyncRouter.js @@ -125,6 +125,30 @@ export default [ }, ], }, + { + path: "/risk_control", + redirect: "/risk_control/risk_point", + meta: { title: "风险管控", model: MODEL["1"] }, + component: "children", + children: [ + { + path: "/risk_control/risk_point", + meta: { title: "风险点(单元)", isSubMenu: false }, + component: "children", + children: [ + { + path: "", + component: "risk_control/risk_point/index", + }, + { + path: "/risk_control/risk_point/view", + meta: { title: "查看", activeMenu: "/risk_control/risk_point" }, + component: "risk_control/risk_point/view", + }, + ], + }, + ], + }, { path: "/platform_resource_library", redirect: "/platform_resource_library/courseware", diff --git a/src/assets/js/data_dictionary.js b/src/assets/js/data_dictionary.js index 962fa2e..62687b1 100644 --- a/src/assets/js/data_dictionary.js +++ b/src/assets/js/data_dictionary.js @@ -140,8 +140,8 @@ export const layoutFnGetEmploymentSituation = async () => { return ref(resData.list); }; // 部门树 -export const layoutFnGetDepartmentTree = async () => { - const resData = await getDepartmentTree(); +export const layoutFnGetDepartmentTree = async (params) => { + const resData = await getDepartmentTree(params); return ref(JSON.parse(resData.zTreeNodes)); }; // 无法确定DICTIONARIES_ID的数据字典 diff --git a/src/components/department/index.vue b/src/components/department/index.vue index 0306cc7..374f9ec 100644 --- a/src/components/department/index.vue +++ b/src/components/department/index.vue @@ -6,7 +6,6 @@ :props="{ children: 'nodes', label: 'name', - disabled: '', }" :render-after-expand="false" accordion @@ -51,10 +50,16 @@ const props = defineProps({ type: Boolean, default: true, }, + rootDisabled: { + type: String, + default: "N", + }, }); const emits = defineEmits(["update:modelValue"]); const modelValue = useVModel(props, "modelValue", emits); -const departmentTree = await layoutFnGetDepartmentTree(); +const departmentTree = await layoutFnGetDepartmentTree({ + rootDisabled: props.rootDisabled, +}); diff --git a/src/components/qr_code/index.vue b/src/components/qr_code/index.vue new file mode 100644 index 0000000..e9a8c37 --- /dev/null +++ b/src/components/qr_code/index.vue @@ -0,0 +1,28 @@ + + + + + + + + + diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 8abe143..ec7bea0 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -8,7 +8,7 @@ :height="height" :max-height="maxHeight" :highlight-current-row="highlightCurrentRow" - :row-key="rowKey" + :row-key="getRowKey" :row-class-name="rowClassName" :show-header="showHeader" :show-summary="showSummary" @@ -117,6 +117,11 @@ const handleSizeChange = (val) => { }); emits("get-data"); }; +const getRowKey = (row) => { + if (!props.rowKey) return; + if (typeof props.rowKey === "string") return row[props.rowKey]; + else return props.rowKey(row); +}; const rowClick = (row, column, event) => { emits("row-click", row, column, event); }; diff --git a/src/request/risk_control.js b/src/request/risk_control.js new file mode 100644 index 0000000..e56827d --- /dev/null +++ b/src/request/risk_control.js @@ -0,0 +1,13 @@ +import { post, upload } from "@/request/axios.js"; + +export const getRiskPointList = (params) => post("/riskunit/list", params); // 风险点单元列表 +export const setRiskPointDelete = (params) => post("/riskunit/delete", params); // 风险点单元删除 +export const setRiskPointImport = (params) => + upload("/riskunit/readExcel", params); // 风险点单元导入 +export const setRiskPointBatchDelete = (params) => + post("/riskunit/deleteAll", params); // 风险点单元批量删除 +export const getRiskPointView = (params) => post("/riskunit/goEdit", params); // 风险点单元查看 +export const setRiskPointAdd = (params) => post("/riskunit/add", params); // 风险点单元添加 +export const setRiskPointEdit = (params) => post("/riskunit/edit", params); // 风险点单元修改 +export const getRiskPointInspectList = (params) => + post("/riskunit/getRisByUnitId", params); // 风险点单元检查内容 diff --git a/src/views/enterprise_management/department/components/add.vue b/src/views/enterprise_management/department/components/add.vue index f879b83..de70f2a 100644 --- a/src/views/enterprise_management/department/components/add.vue +++ b/src/views/enterprise_management/department/components/add.vue @@ -54,7 +54,12 @@ label="监管部门" prop="checkedIds" > - + { const fnQrCode = () => { if (data.info.CORPINFO_ID) { fnQrCodeDialogChangeShow(); - // TODO: 扫码跳转到企业信息页面 - data.qrCodeDialog.src = useQRCode("https://vueuse.org", { + // TODO: 扫码页面 + data.qrCodeDialog.src = useQRCode(data.info.CORPINFO_ID, { width: 200, height: 200, margin: 1, diff --git a/src/views/risk_control/risk_point/components/add.vue b/src/views/risk_control/risk_point/components/add.vue new file mode 100644 index 0000000..e7c6570 --- /dev/null +++ b/src/views/risk_control/risk_point/components/add.vue @@ -0,0 +1,78 @@ + + + + + + + + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/risk_control/risk_point/components/print.vue b/src/views/risk_control/risk_point/components/print.vue new file mode 100644 index 0000000..131cae7 --- /dev/null +++ b/src/views/risk_control/risk_point/components/print.vue @@ -0,0 +1,48 @@ + + + + 风险点(单元)信息 + + + {{ info.RISKUNITNAME }} + + + {{ info.DEPT_NAME }} + + + {{ info.CORP_NAME }} + + + {{ info.HEADMAN }} + + + + + + 关闭 + 打印 + + + + + + + diff --git a/src/views/risk_control/risk_point/index.vue b/src/views/risk_control/risk_point/index.vue new file mode 100644 index 0000000..adb7025 --- /dev/null +++ b/src/views/risk_control/risk_point/index.vue @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + 搜索 + + 重置 + + + + + + 打印 + 导入 + 导出 + + + + + + + + + + + {{ serialNumber(pagination, $index) }} + + + + + + + + 二维码 + + + 查看 + + + 编辑 + + + 删除 + + + + + + 新增 + + 批量删除 + + + + + + + + + + + + diff --git a/src/views/risk_control/risk_point/view.vue b/src/views/risk_control/risk_point/view.vue new file mode 100644 index 0000000..08837c8 --- /dev/null +++ b/src/views/risk_control/risk_point/view.vue @@ -0,0 +1,55 @@ + + + 风险点(单元)信息 + + + {{ RISKUNITNAME }} + + + {{ DEPT_NAME }} + + + 检查内容 + + + + + + + + 低风险/D级 + + + 一般风险/C级 + + + 较大风险/B级 + + + 重大风险/A级 + + + + + + + + + + + + + diff --git a/src/views/system_operation/system_documents/components/add_folder.vue b/src/views/system_operation/system_documents/components/add_folder.vue new file mode 100644 index 0000000..6b778b1 --- /dev/null +++ b/src/views/system_operation/system_documents/components/add_folder.vue @@ -0,0 +1,76 @@ + + + + + + + + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/system_operation/system_documents/components/batch_upload_file.vue b/src/views/system_operation/system_documents/components/batch_upload_file.vue new file mode 100644 index 0000000..d949427 --- /dev/null +++ b/src/views/system_operation/system_documents/components/batch_upload_file.vue @@ -0,0 +1,77 @@ + + + + + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/system_operation/system_documents/components/upload_file.vue b/src/views/system_operation/system_documents/components/upload_file.vue new file mode 100644 index 0000000..d39d8ad --- /dev/null +++ b/src/views/system_operation/system_documents/components/upload_file.vue @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/system_operation/system_documents/index.vue b/src/views/system_operation/system_documents/index.vue index 077b699..f3b73fc 100644 --- a/src/views/system_operation/system_documents/index.vue +++ b/src/views/system_operation/system_documents/index.vue @@ -20,7 +20,6 @@ path: '/system_operation/system_documents', query: { MFOLDER_ID: row.MFOLDER_ID, - MFOLDER_NAME: row.NAME, }, }) " @@ -31,7 +30,7 @@ - {{ row.NAME }}{{ getFileSuffix(row.FILEPATH) }} + {{ row.NAME }} - 私有文件 - 公共文件 + {{ row.SHARE === "no" ? "私有文件" : "公共文件" }} @@ -118,7 +116,7 @@ 新建文件夹 @@ -126,14 +124,14 @@ 上传文件 批量上传 @@ -153,11 +151,29 @@ :src="data.videoDialog.src" v-model:visible="data.videoDialog.visible" /> + + +