pull/1/head
LiuJiaNan 2024-01-26 18:04:18 +08:00
parent 7724a93c30
commit 07eb6d8306
6 changed files with 27 additions and 21 deletions

View File

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

View File

@ -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("、")}之一`);
}
},
},

View File

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

View File

@ -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("、")}之一`);
}
},
},

View File

@ -2,7 +2,7 @@
<layout-card>
<el-tabs v-model="name" @tab-change="fnTabChange">
<el-tab-pane label="年度考核" name="year" lazy>
<list @assessment-standards="fnAssessmentStandards" type="year">
<list-view @assessment-standards="fnAssessmentStandards" type="year">
<template v-slot="{ searchForm }">
<el-col :span="4">
<el-form-item label="时间" prop="YEAR">
@ -17,10 +17,10 @@
</el-form-item>
</el-col>
</template>
</list>
</list-view>
</el-tab-pane>
<el-tab-pane label="季度考核" name="season" lazy>
<list @assessment-standards="fnAssessmentStandards" type="season">
<list-view @assessment-standards="fnAssessmentStandards" type="season">
<template v-slot="{ searchForm }">
<el-col :span="3">
<el-form-item label="年" prop="YEAR">
@ -45,10 +45,10 @@
</el-form-item>
</el-col>
</template>
</list>
</list-view>
</el-tab-pane>
<el-tab-pane label="月度考核" name="month" lazy>
<list @assessment-standards="fnAssessmentStandards" type="month">
<list-view @assessment-standards="fnAssessmentStandards" type="month">
<template v-slot="{ searchForm }">
<el-col :span="4">
<el-form-item label="时间" prop="MONTH">
@ -63,7 +63,7 @@
</el-form-item>
</el-col>
</template>
</list>
</list-view>
</el-tab-pane>
</el-tabs>
<assessment-standards v-model:visible="assessmentStandardsVisible" />
@ -72,7 +72,7 @@
<script setup>
import { ref } from "vue";
import List from "./components/list.vue";
import ListView from "./components/list.vue";
import AssessmentStandards from "./components/assessment_standards.vue";
import { useRouter, useRoute, onBeforeRouteUpdate } from "vue-router";

View File

@ -2,7 +2,7 @@
<layout-card>
<el-tabs v-model="name" @tab-change="fnTabChange">
<el-tab-pane label="年度考核" name="year" lazy>
<list @assessment-standards="fnAssessmentStandards" type="year">
<list-view @assessment-standards="fnAssessmentStandards" type="year">
<template v-slot="{ searchForm }">
<el-col :span="4">
<el-form-item label="时间" prop="YEAR">
@ -17,10 +17,10 @@
</el-form-item>
</el-col>
</template>
</list>
</list-view>
</el-tab-pane>
<el-tab-pane label="季度考核" name="season" lazy>
<list @assessment-standards="fnAssessmentStandards" type="season">
<list-view @assessment-standards="fnAssessmentStandards" type="season">
<template v-slot="{ searchForm }">
<el-col :span="3">
<el-form-item label="年" prop="YEAR">
@ -45,10 +45,10 @@
</el-form-item>
</el-col>
</template>
</list>
</list-view>
</el-tab-pane>
<el-tab-pane label="月度考核" name="month" lazy>
<list @assessment-standards="fnAssessmentStandards" type="month">
<list-view @assessment-standards="fnAssessmentStandards" type="month">
<template v-slot="{ searchForm }">
<el-col :span="4">
<el-form-item label="时间" prop="MONTH">
@ -63,7 +63,7 @@
</el-form-item>
</el-col>
</template>
</list>
</list-view>
</el-tab-pane>
</el-tabs>
<assessment-standards v-model:visible="assessmentStandardsVisible" />
@ -72,7 +72,7 @@
<script setup>
import { ref } from "vue";
import List from "./components/list.vue";
import ListView from "./components/list.vue";
import AssessmentStandards from "./components/assessment_standards.vue";
import { useRouter, useRoute, onBeforeRouteUpdate } from "vue-router";