From 07eb6d8306cd73f2e731ccbd14d05bd535dd988d Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 26 Jan 2024 18:04:18 +0800 Subject: [PATCH 1/2] init --- src/assets/css/element.scss | 2 +- src/components/learning_train_type/index.vue | 8 ++++++-- src/components/pdf/index.vue | 5 +++-- src/components/print_table_package/index.vue | 5 +++-- .../performance_appraisal/departmental/index.vue | 14 +++++++------- .../performance_appraisal/personnel/index.vue | 14 +++++++------- 6 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/assets/css/element.scss b/src/assets/css/element.scss index 35ce518..fda0bcf 100644 --- a/src/assets/css/element.scss +++ b/src/assets/css/element.scss @@ -255,7 +255,7 @@ box-shadow: 0 0 0 1px var(--el-border-color) inset !important; } -.el-select__tags .el-tag--info { +.el-select .el-tag.el-tag--info { background-color: #214082 !important; --el-tag-text-color: var(--el-text-color-regular) !important; } diff --git a/src/components/learning_train_type/index.vue b/src/components/learning_train_type/index.vue index f14e90d..74dc6b9 100644 --- a/src/components/learning_train_type/index.vue +++ b/src/components/learning_train_type/index.vue @@ -40,10 +40,14 @@ const props = defineProps({ required: true, default: "", validator: (value) => { - if (["industry", "post", "plate"].includes(value)) { + // industry: 培训行业类型 + // post: 岗位培训类型 + // plate: 培训板块类型 + const typeList = ["industry", "post", "plate"]; + if (typeList.includes(value)) { return true; } else { - throw new Error("type必须是industry、post、plate之一"); + throw new Error(`type必须是${typeList.join("、")}之一`); } }, }, diff --git a/src/components/pdf/index.vue b/src/components/pdf/index.vue index 00d2f45..a422529 100644 --- a/src/components/pdf/index.vue +++ b/src/components/pdf/index.vue @@ -49,10 +49,11 @@ const props = defineProps({ model: { type: String, validator: (value) => { - if (["dialog", "normal"].includes(value)) { + const typeList = ["dialog", "normal"]; + if (typeList.includes(value)) { return true; } else { - throw new Error("model必须是dialog或normal"); + throw new Error(`model必须是${typeList.join("、")}之一`); } }, default: "dialog", diff --git a/src/components/print_table_package/index.vue b/src/components/print_table_package/index.vue index 01ea482..f60e20c 100644 --- a/src/components/print_table_package/index.vue +++ b/src/components/print_table_package/index.vue @@ -35,10 +35,11 @@ const props = defineProps({ type: String, default: "vertical", validator: (value) => { - if (["vertical", "horizontal"].includes(value)) { + const typeList = ["vertical", "horizontal"]; + if (typeList.includes(value)) { return true; } else { - throw new Error('direction必须是"vertical"或"horizontal"'); + throw new Error(`direction必须是${typeList.join("、")}之一`); } }, }, diff --git a/src/views/performance_appraisal/departmental/index.vue b/src/views/performance_appraisal/departmental/index.vue index de7f476..5a2a398 100644 --- a/src/views/performance_appraisal/departmental/index.vue +++ b/src/views/performance_appraisal/departmental/index.vue @@ -2,7 +2,7 @@ - + - + - + - + - + - + @@ -72,7 +72,7 @@ + + diff --git a/src/components/pdf/index.vue b/src/components/pdf/index.vue index a422529..795f76e 100644 --- a/src/components/pdf/index.vue +++ b/src/components/pdf/index.vue @@ -3,6 +3,7 @@ title="文档" :model-value="visible && model === 'dialog'" @update:model-value="visible = false" + :append-to-body="appendToBody" >
+ + + + + + diff --git a/src/components/txt/index.vue b/src/components/txt/index.vue index ba1e9b5..83d97cc 100644 --- a/src/components/txt/index.vue +++ b/src/components/txt/index.vue @@ -1,5 +1,5 @@ @@ -23,6 +23,10 @@ const props = defineProps({ required: true, default: "", }, + appendToBody: { + type: Boolean, + default: false, + }, }); const value = ref(""); const emits = defineEmits(["update:visible"]); diff --git a/src/components/video/index.vue b/src/components/video/index.vue index dd709ee..7542abe 100644 --- a/src/components/video/index.vue +++ b/src/components/video/index.vue @@ -1,5 +1,5 @@ diff --git a/src/views/security_investment/extraction_and_use/components/add.vue b/src/views/security_investment/extraction_and_use/components/add.vue new file mode 100644 index 0000000..d8cb207 --- /dev/null +++ b/src/views/security_investment/extraction_and_use/components/add.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/views/security_investment/extraction_and_use/index.vue b/src/views/security_investment/extraction_and_use/index.vue new file mode 100644 index 0000000..a9aedc5 --- /dev/null +++ b/src/views/security_investment/extraction_and_use/index.vue @@ -0,0 +1,220 @@ + + + + + diff --git a/src/views/security_investment/plan/components/add.vue b/src/views/security_investment/plan/components/add.vue new file mode 100644 index 0000000..4d3a888 --- /dev/null +++ b/src/views/security_investment/plan/components/add.vue @@ -0,0 +1,227 @@ + + + + + diff --git a/src/views/security_investment/plan/components/view.vue b/src/views/security_investment/plan/components/view.vue new file mode 100644 index 0000000..419649a --- /dev/null +++ b/src/views/security_investment/plan/components/view.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/views/security_investment/plan/index.vue b/src/views/security_investment/plan/index.vue new file mode 100644 index 0000000..e923af3 --- /dev/null +++ b/src/views/security_investment/plan/index.vue @@ -0,0 +1,262 @@ + + + + + diff --git a/src/views/security_investment/plan_review/index.vue b/src/views/security_investment/plan_review/index.vue new file mode 100644 index 0000000..8bf325d --- /dev/null +++ b/src/views/security_investment/plan_review/index.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/src/views/system_operation/system_documents/index.vue b/src/views/system_operation/system_documents/index.vue index f3b73fc..d52e5b3 100644 --- a/src/views/system_operation/system_documents/index.vue +++ b/src/views/system_operation/system_documents/index.vue @@ -31,49 +31,7 @@ @@ -139,18 +97,6 @@ - - - { - data.txtDialog.visible = true; - data.txtDialog.src = FILEPATH; -}; -const fnPreviewPdf = (FILEPATH) => { - data.pdfDialog.visible = true; - data.pdfDialog.src = FILEPATH; -}; -const fnPreviewVideo = (FILEPATH) => { - data.videoDialog.visible = true; - data.videoDialog.src = FILEPATH; -}; diff --git a/src/views/three_institutional_libraries/safety_production_responsibility_system/components/list.vue b/src/views/three_institutional_libraries/safety_production_responsibility_system/components/list.vue new file mode 100644 index 0000000..084b0d4 --- /dev/null +++ b/src/views/three_institutional_libraries/safety_production_responsibility_system/components/list.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/src/views/three_institutional_libraries/safety_production_responsibility_system/index.vue b/src/views/three_institutional_libraries/safety_production_responsibility_system/index.vue new file mode 100644 index 0000000..fe57496 --- /dev/null +++ b/src/views/three_institutional_libraries/safety_production_responsibility_system/index.vue @@ -0,0 +1,39 @@ + + + + +