forked from integrated_whb/integrated_whb_vue
init
parent
7724a93c30
commit
07eb6d8306
|
@ -255,7 +255,7 @@
|
||||||
box-shadow: 0 0 0 1px var(--el-border-color) inset !important;
|
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;
|
background-color: #214082 !important;
|
||||||
--el-tag-text-color: var(--el-text-color-regular) !important;
|
--el-tag-text-color: var(--el-text-color-regular) !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,10 +40,14 @@ const props = defineProps({
|
||||||
required: true,
|
required: true,
|
||||||
default: "",
|
default: "",
|
||||||
validator: (value) => {
|
validator: (value) => {
|
||||||
if (["industry", "post", "plate"].includes(value)) {
|
// industry: 培训行业类型
|
||||||
|
// post: 岗位培训类型
|
||||||
|
// plate: 培训板块类型
|
||||||
|
const typeList = ["industry", "post", "plate"];
|
||||||
|
if (typeList.includes(value)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
throw new Error("type必须是industry、post、plate之一");
|
throw new Error(`type必须是${typeList.join("、")}之一`);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,10 +49,11 @@ const props = defineProps({
|
||||||
model: {
|
model: {
|
||||||
type: String,
|
type: String,
|
||||||
validator: (value) => {
|
validator: (value) => {
|
||||||
if (["dialog", "normal"].includes(value)) {
|
const typeList = ["dialog", "normal"];
|
||||||
|
if (typeList.includes(value)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
throw new Error("model必须是dialog或normal");
|
throw new Error(`model必须是${typeList.join("、")}之一`);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
default: "dialog",
|
default: "dialog",
|
||||||
|
|
|
@ -35,10 +35,11 @@ const props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: "vertical",
|
default: "vertical",
|
||||||
validator: (value) => {
|
validator: (value) => {
|
||||||
if (["vertical", "horizontal"].includes(value)) {
|
const typeList = ["vertical", "horizontal"];
|
||||||
|
if (typeList.includes(value)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
throw new Error('direction必须是"vertical"或"horizontal"');
|
throw new Error(`direction必须是${typeList.join("、")}之一`);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<layout-card>
|
<layout-card>
|
||||||
<el-tabs v-model="name" @tab-change="fnTabChange">
|
<el-tabs v-model="name" @tab-change="fnTabChange">
|
||||||
<el-tab-pane label="年度考核" name="year" lazy>
|
<el-tab-pane label="年度考核" name="year" lazy>
|
||||||
<list @assessment-standards="fnAssessmentStandards" type="year">
|
<list-view @assessment-standards="fnAssessmentStandards" type="year">
|
||||||
<template v-slot="{ searchForm }">
|
<template v-slot="{ searchForm }">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="时间" prop="YEAR">
|
<el-form-item label="时间" prop="YEAR">
|
||||||
|
@ -17,10 +17,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</list>
|
</list-view>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="季度考核" name="season" lazy>
|
<el-tab-pane label="季度考核" name="season" lazy>
|
||||||
<list @assessment-standards="fnAssessmentStandards" type="season">
|
<list-view @assessment-standards="fnAssessmentStandards" type="season">
|
||||||
<template v-slot="{ searchForm }">
|
<template v-slot="{ searchForm }">
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<el-form-item label="年" prop="YEAR">
|
<el-form-item label="年" prop="YEAR">
|
||||||
|
@ -45,10 +45,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</list>
|
</list-view>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="月度考核" name="month" lazy>
|
<el-tab-pane label="月度考核" name="month" lazy>
|
||||||
<list @assessment-standards="fnAssessmentStandards" type="month">
|
<list-view @assessment-standards="fnAssessmentStandards" type="month">
|
||||||
<template v-slot="{ searchForm }">
|
<template v-slot="{ searchForm }">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="时间" prop="MONTH">
|
<el-form-item label="时间" prop="MONTH">
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</list>
|
</list-view>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<assessment-standards v-model:visible="assessmentStandardsVisible" />
|
<assessment-standards v-model:visible="assessmentStandardsVisible" />
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import List from "./components/list.vue";
|
import ListView from "./components/list.vue";
|
||||||
import AssessmentStandards from "./components/assessment_standards.vue";
|
import AssessmentStandards from "./components/assessment_standards.vue";
|
||||||
import { useRouter, useRoute, onBeforeRouteUpdate } from "vue-router";
|
import { useRouter, useRoute, onBeforeRouteUpdate } from "vue-router";
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<layout-card>
|
<layout-card>
|
||||||
<el-tabs v-model="name" @tab-change="fnTabChange">
|
<el-tabs v-model="name" @tab-change="fnTabChange">
|
||||||
<el-tab-pane label="年度考核" name="year" lazy>
|
<el-tab-pane label="年度考核" name="year" lazy>
|
||||||
<list @assessment-standards="fnAssessmentStandards" type="year">
|
<list-view @assessment-standards="fnAssessmentStandards" type="year">
|
||||||
<template v-slot="{ searchForm }">
|
<template v-slot="{ searchForm }">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="时间" prop="YEAR">
|
<el-form-item label="时间" prop="YEAR">
|
||||||
|
@ -17,10 +17,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</list>
|
</list-view>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="季度考核" name="season" lazy>
|
<el-tab-pane label="季度考核" name="season" lazy>
|
||||||
<list @assessment-standards="fnAssessmentStandards" type="season">
|
<list-view @assessment-standards="fnAssessmentStandards" type="season">
|
||||||
<template v-slot="{ searchForm }">
|
<template v-slot="{ searchForm }">
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<el-form-item label="年" prop="YEAR">
|
<el-form-item label="年" prop="YEAR">
|
||||||
|
@ -45,10 +45,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</list>
|
</list-view>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="月度考核" name="month" lazy>
|
<el-tab-pane label="月度考核" name="month" lazy>
|
||||||
<list @assessment-standards="fnAssessmentStandards" type="month">
|
<list-view @assessment-standards="fnAssessmentStandards" type="month">
|
||||||
<template v-slot="{ searchForm }">
|
<template v-slot="{ searchForm }">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="时间" prop="MONTH">
|
<el-form-item label="时间" prop="MONTH">
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</list>
|
</list-view>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<assessment-standards v-model:visible="assessmentStandardsVisible" />
|
<assessment-standards v-model:visible="assessmentStandardsVisible" />
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import List from "./components/list.vue";
|
import ListView from "./components/list.vue";
|
||||||
import AssessmentStandards from "./components/assessment_standards.vue";
|
import AssessmentStandards from "./components/assessment_standards.vue";
|
||||||
import { useRouter, useRoute, onBeforeRouteUpdate } from "vue-router";
|
import { useRouter, useRoute, onBeforeRouteUpdate } from "vue-router";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue