feat: mgroup 增加code展示

This commit is contained in:
caoqianming 2024-12-27 18:05:14 +08:00
parent 7400a6d02c
commit 7fd3fa27fc
2 changed files with 10 additions and 2 deletions

View File

@ -41,6 +41,11 @@
prop="name" prop="name"
min-width="100" min-width="100"
></el-table-column> ></el-table-column>
<el-table-column
label="标识"
prop="code"
min-width="100"
></el-table-column>
<el-table-column label="分类" prop="cate" min-width="100"> <el-table-column label="分类" prop="cate" min-width="100">
<template #default="scope"> <template #default="scope">
<span>{{ cates_[scope.row.cate] }}</span> <span>{{ cates_[scope.row.cate] }}</span>

View File

@ -19,6 +19,9 @@
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input v-model="form.name" clearable></el-input> <el-input v-model="form.name" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标识" prop="code">
<el-input v-model="form.code" clearable></el-input>
</el-form-item>
<!-- <el-form-item label="排班规则"> <!-- <el-form-item label="排班规则">
<el-input v-model="form.shift_rule" clearable></el-input> <el-input v-model="form.shift_rule" clearable></el-input>
</el-form-item> --> </el-form-item> -->
@ -221,9 +224,9 @@ export default {
// //
getGroup() { getGroup() {
this.$API.system.dept.list this.$API.system.dept.list
.req({ page_size: 3, type: "dept" }) .req({ page: 0, type: "dept" })
.then((res) => { .then((res) => {
this.group = res.results; this.group = res;
}); });
}, },
// //