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 @@