This commit is contained in:
zy_zr 2025-04-24 12:15:11 +08:00
parent 30e85cfdd3
commit 72b515dec5
7 changed files with 19 additions and 32 deletions

View File

@ -79,7 +79,7 @@
.topBtn {
display: flex;
position: absolute;
top: 15%;
top: 22px;
.topBtn-item {
width: 190px;
height: 38px;
@ -99,7 +99,7 @@
}
.topBtn-left {
left: 35px;
left: 30px;
font-size: 12px;
.text {
font-family: "YSBTH";

View File

@ -7,7 +7,7 @@
<!-- 数值 inputNumber-->
<el-input type="number" v-model="listQuery[item.prop]" v-else-if="item.type == 'inputNumber'" :placeholder="`请输入${item.label}`" />
<!-- 数值 number-->
<el-input-number v-model="listQuery[item.prop]" v-else-if="item.type == 'number'" style="width:100%" :min="0" :max="1000" />
<el-input-number v-model="listQuery[item.prop]" v-else-if="item.type == 'number'" style="width:100%" :min="item.min || 0" :max="item.max || 1000" />
<!--选择 select-->
<MOSTY.Select v-else-if="item.type == 'select'" :multiple="item.multiple" v-model="listQuery[item.prop]" :dictEnum="item.options" width="100%" clearable :placeholder="`请选择${item.label}`"/>
<!-- 部门department -->

View File

@ -41,14 +41,16 @@ const formData = reactive([
{ label: "标签代码", prop: "bqDm", type: "input" },
{ label: "标签等级", prop: "bqDj", type: "select", options: [] },
{ label: "标签颜色", prop: "bqYs", type: "select", options: [] },
{ label: "标签分值", prop: "bqFz", type: "inputNumber" },
{ label: "标签分值", prop: "bqFz", type: "number" ,max:100},
{ label: "标签说明", prop: "bqSm", type: "textarea",width: '100%' },
]);
const rules = reactive({
bqMc: [{ required: true, message: "请输入标签名称", trigger: "blur" }],
bqDm: [{ required: true, message: "请输入标签代码", trigger: "blur" }],
bqDlMc: [{ required: true, message: "请输入标签大类", trigger: ['blur','change'] }],
bqDj: [{ required: true, message: "请选择标签等级", trigger: ['blur','change'] }],
bqYs: [{ required: true, message: "请选择标签颜色", trigger: ['blur','change'] }],
bqFz: [{ required: true, message: "请输入标签分值", trigger: ['blur','change'] }],
});
watchEffect(()=>{

View File

@ -28,12 +28,6 @@
:controlsWidth="pageData.controlsWidth"
@chooseData="chooseData"
>
<template #bqLx="{ row }">
<DictTag :value="row.bqLx" :tag="false" :options="D_GS_BQ_LX" />
</template>
<template #bqLb="{ row }">
<DictTag :value="row.bqLb" :tag="false" :options="D_GS_BQ_LB" />
</template>
<template #bqYs="{ row }">
<DictTag :value="row.bqYs" :tag="false" :options="D_GS_SSYJ" />
</template>
@ -77,7 +71,7 @@ const searchBox = ref(); //搜索框
const type = ref('标签大类')
const searchConfiger = ref([
{ label: "标签名称",prop:'bqMc',placeholder: "请输入学校名称", showType: "input"},
{ label: "标签名称",prop:'bqMc',placeholder: "请输入标签名称", showType: "input"},
{ label: "标签等级",prop:'bqDj' ,placeholder: "请选择标签等级", showType: "select",options:D_GS_BQ_DJ },
{ label: "标签颜色",prop:'bqYs' ,placeholder: "请选择标签颜色", showType: "select",options:D_GS_SSYJ },
]);
@ -99,8 +93,6 @@ const pageData = reactive({
tableColumn: [
{ label: "标签名称", prop: "bqMc" },
{ label: "标签代码", prop: "bqDm" },
{ label: "标签类型", prop: "bqLx",showSolt:true },
{ label: "标签类别", prop: "bqLb",showSolt:true },
{ label: "标签等级", prop: "bqDj",showSolt:true},
{ label: "标签颜色", prop: "bqYs",showSolt:true},
]
@ -119,8 +111,8 @@ const chooseListType = (val) => {
pageData.tableColumn = pageData.tableColumn.filter((it) => it.prop != "bqDlMc");
break;
case '标签细类':
let obj = { label: "标签大类名称", prop: "bqDlMc" };
pageData.tableColumn.splice(3, 0, obj);
let obj = { label: "标签大类", prop: "bqDlMc" };
pageData.tableColumn.unshift(obj);
break;
}
pageData.keyCount++;

View File

@ -41,14 +41,16 @@ const formData = reactive([
{ label: "标签代码", prop: "bqDm", type: "input" },
{ label: "标签等级", prop: "bqDj", type: "select", options: [] },
{ label: "标签颜色", prop: "bqYs", type: "select", options: [] },
{ label: "标签分值", prop: "bqFz", type: "inputNumber" },
{ label: "标签分值", prop: "bqFz", type: "number" ,max:100},
{ label: "标签说明", prop: "bqSm", type: "textarea",width: '100%' },
]);
const rules = reactive({
bqMc: [{ required: true, message: "请输入标签名称", trigger: "blur" }],
bqDm: [{ required: true, message: "请输入标签代码", trigger: "blur" }],
bqDlMc: [{ required: true, message: "请输入标签大类", trigger: ['blur','change'] }],
bqDj: [{ required: true, message: "请选择标签等级", trigger: ['blur','change'] }],
bqYs: [{ required: true, message: "请选择标签颜色", trigger: ['blur','change'] }],
bqFz: [{ required: true, message: "请输入标签分值", trigger: ['blur','change'] }],
});
watchEffect(()=>{

View File

@ -28,12 +28,6 @@
:controlsWidth="pageData.controlsWidth"
@chooseData="chooseData"
>
<template #bqLx="{ row }">
<DictTag :value="row.bqLx" :tag="false" :options="D_GS_BQ_LX" />
</template>
<template #bqLb="{ row }">
<DictTag :value="row.bqLb" :tag="false" :options="D_GS_BQ_LB" />
</template>
<template #bqYs="{ row }">
<DictTag :value="row.bqYs" :tag="false" :options="D_GS_SSYJ" />
</template>
@ -76,7 +70,7 @@ const searchBox = ref(); //搜索框
const type = ref('标签大类')
const searchConfiger = ref([
{ label: "标签名称",prop:'bqMc',placeholder: "请输入学校名称", showType: "input"},
{ label: "标签名称",prop:'bqMc',placeholder: "请输入标签名称", showType: "input"},
{ label: "标签等级",prop:'bqDj' ,placeholder: "请选择标签等级", showType: "select",options:D_GS_BQ_DJ },
{ label: "标签颜色",prop:'bqYs' ,placeholder: "请选择标签颜色", showType: "select",options:D_GS_SSYJ },
]);
@ -98,8 +92,6 @@ const pageData = reactive({
tableColumn: [
{ label: "标签名称", prop: "bqMc" },
{ label: "标签代码", prop: "bqDm" },
{ label: "标签类型", prop: "bqLx",showSolt:true },
{ label: "标签类别", prop: "bqLb",showSolt:true },
{ label: "标签等级", prop: "bqDj",showSolt:true},
{ label: "标签颜色", prop: "bqYs",showSolt:true},
]
@ -118,8 +110,8 @@ const chooseListType = (val) => {
pageData.tableColumn = pageData.tableColumn.filter((it) => it.prop != "bqDlMc");
break;
case '标签细类':
let obj = { label: "标签大类名称", prop: "bqDlMc" };
pageData.tableColumn.splice(3, 0, obj);
let obj = { label: "标签大类", prop: "bqDlMc" };
pageData.tableColumn.unshift(obj);
break;
}
pageData.keyCount++;

View File

@ -2,7 +2,7 @@
<div>
<div class="titleBox">
<PageTitle title="标签组合管理">
<el-button>
<!-- <el-button>
<span style="vertical-align: middle">调级</span>
</el-button>
<el-button>
@ -10,7 +10,7 @@
</el-button>
<el-button>
<span style="vertical-align: middle">导入</span>
</el-button>
</el-button> -->
<el-button type="primary" @click="addEdit('add', '')">
<el-icon style="vertical-align: middle"><CirclePlus /></el-icon>
<span style="vertical-align: middle">新增</span>
@ -39,7 +39,6 @@
</template>
<!-- 操作 -->
<template #controls="{ row }">
<el-link type="primary" @click="addEdit('edit', row)">编辑</el-link>
<el-link type="primary" @click="addEdit('edit', row)">编辑</el-link>
<el-link type="danger" @click="delDictItem(row.id)">删除</el-link>
</template>