| | |
| | | <!--卡片显示--> |
| | | <el-col :span="4" v-for="(o, index) in data" :key="o" :offset="index > 0 ? 1 : 0"> |
| | | <el-card :body-style="{ padding: '0px' }"> |
| | | <img @click="setContent(o.id)" :src="o.background.length>0?o.background[0].value: '/img/bg/img-logo.png' " |
| | | <img @click="setContent(o)" :src="o.background.length>0?o.background[0].value: '/img/bg/img-logo.png' " |
| | | class="image"> |
| | | <div style="padding: 14px;"> |
| | | <span>{{ o.name }}</span> |
| | |
| | | |
| | | </div> |
| | | <!-- 功能详情--> |
| | | <Function ref="func" v-if="isFunction" :modulesId="modulesId" @backModules="backModules"></Function> |
| | | <Function ref="func" v-if="isFunction" :modules="modules" @backModules="backModules"></Function> |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | // 表单列表 |
| | | data: [], |
| | | isFunction: false, |
| | | modulesId: "", |
| | | modules: "", |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }); |
| | | }, |
| | | //显示功能页 |
| | | setContent(id) { |
| | | this.modulesId = id |
| | | setContent(data) { |
| | | this.modules = data |
| | | this.isFunction = !this.isFunction |
| | | }, |
| | | //返回模块页 |