gaoshp
2024-10-08 2b36ef31223e4b78c70180233b2cabbaaa562ba8
update
已修改1个文件
17 ■■■■■ 文件已修改
src/views/mdc/configComp/Board.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/configComp/Board.vue
@@ -1,8 +1,8 @@
<!--
 * @Date: 2024-04-15 23:58:36
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-17 00:45:20
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Board.vue
 * @LastEditors: gaoshp
 * @LastEditTime: 2024-10-08 19:52:12
 * @FilePath: /cps-web/src/views/mdc/configComp/Board.vue
-->
<template>
    <el-main>
@@ -37,18 +37,18 @@
            <el-col :span="24" class="label-title">
                {{ item.dictValue }}
            </el-col>
            <el-col :span="6" v-for="(v, i) in item.children" :key="v.id" :offset="i > 0 ? 2 : 0">
            <el-col :span="6" v-for="(v, i) in item.children" :key="v.id">
                <el-card class="my-card" @click="radio = true">
                    <template #header>
                        <div class="card-header">
                            <div class="card-line"><el-checkbox :disabled="v.isDefault" @change="submit1"
                                    v-model="v.isSelect" /><span>千文科技</span>
                                    v-model="v.isSelect" /><span>{{ v.groupName }}</span>
                                <el-button v-if="v.isDefault" style="margin-left: auto">默认</el-button>
                                <el-button @click="setDefault(v)" v-else style="margin-left: auto">设为默认</el-button>
                            </div>
                        </div>
                    </template>
                    <p>所有的 > 千文科技</p>
                    <p>{{ v.path }}</p>
                </el-card>
            </el-col>
@@ -90,6 +90,7 @@
export default {
    computed: {
        dictsNew() {
            console.log(this.dicts.filter(v => v?.children?.length > 0), '>>>>>>>>?')
            return this.dicts.filter(v => v?.children?.length > 0)
        }
    },
@@ -125,7 +126,7 @@
                    this.$HTTP.get('/api/blade-system/dict/dictionary?code=group_tag').then(res => {
                        this.dicts = []
                        this.dicts.push(...res.data.map(({ dictKey, dictValue }) => ({
                            dictKey, dictValue
                            dictKey, dictValue,
                        })))
                    }),
                    this.$HTTP.get('/api/blade-system/dict/dictionary?code=beltline_type').then(res => {
@@ -138,6 +139,7 @@
                        this.dicts.forEach(v => {
                            v.children = res.data.filter(item => item.groupTag == v.dictKey).map(item => {
                                return {
                                    path: item.path,
                                    groupId: item.id,
                                    groupName: item.name,
                                    groupCode: item.code,
@@ -228,6 +230,7 @@
.my-card {
    max-width: 480px;
    cursor: pointer;
    margin-right: 10px;
}
.title {