This commit is contained in:
朱菊兰 2024-02-29 16:52:30 +08:00
부모 606a23f10d
커밋 afe28d103e

파일 보기

@ -6,9 +6,9 @@
<el-option <el-option
v-for="item in classesArr" v-for="item in classesArr"
:key="item.id" :key="item.id"
:label="item.roomNameDictName+'-'+item.name" :label="(item.roomName?item.roomName:'')+'-'+item.name"
:value="item.id"> :value="item.id">
<span>{{ item.roomNameDictName }}-{{item.name}}</span> <span>{{ item.roomName }}-{{item.name}}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -52,13 +52,7 @@ export default {
methods: { methods: {
getGroupClass() { getGroupClass() {
groupClassesListAll().then(res => { groupClassesListAll().then(res => {
let arr = res.data || [] this.classesArr = res.data || []
if (arr.length > 0) {
for (let i = 0; i < arr.length; i++) {
arr[i].roomNameDictName = this.getDictDataLabel('workshop',arr[i].roomNameDict) || ''
}
}
this.classesArr = arr
}) })
}, },
// //