Commit cf9a6991 by 匡雅琴

样式

1 parent c3690184
<template> <template>
<div class="material-group"> <div class="material-group">
<div class="all-group"> <div class="all-group">
<div>全部素材组 ({{ groupCounter.length }})</div> <div class="all-group-word" @click="getList">全部素材组 ({{ groupCounter.length }})</div>
<div> <div>
<el-button class="add_btn" icon="el-icon-plus" :size="size" @click="handleAddGroup(1)">素材组</el-button> <el-button class="add_btn" icon="el-icon-plus" :size="size" @click="handleAddGroup(1)">素材组</el-button>
</div> </div>
...@@ -131,6 +131,11 @@ export default { ...@@ -131,6 +131,11 @@ export default {
}) })
}) })
}, },
// 点击全部素材组获取全部素材
getList() {
this.$emit('getListApi')
this.currentIndex = ''
},
// 二次确认 // 二次确认
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
...@@ -174,6 +179,9 @@ export default { ...@@ -174,6 +179,9 @@ export default {
.el-button { .el-button {
margin-top: -13px; margin-top: -13px;
} }
&-word {
cursor: pointer;
}
} }
ul { ul {
li { li {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-row :style="{ height: boxHeight }"> <el-row :style="{ height: boxHeight }">
<el-col :span="5"> <el-col :span="5">
<div class="left" :style="{ height: boxHeight }"> <div class="left" :style="{ height: boxHeight }">
<MaterialGroup @openAddDialog="addDialogShow" :eventBus="eventBus" @getList="getList" @getListApi="getListApi"></MaterialGroup> <MaterialGroup ref="materialGroup" @openAddDialog="addDialogShow" :eventBus="eventBus" @getList="getList" @getListApi="getListApi"></MaterialGroup>
</div> </div>
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
...@@ -374,6 +374,7 @@ export default { ...@@ -374,6 +374,7 @@ export default {
materialName: '' materialName: ''
} }
this.getListApi() this.getListApi()
this.$refs.materialGroup.currentIndex = null
}, },
// 获取所有业务类型 // 获取所有业务类型
findAllDictData(dictType) { findAllDictData(dictType) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!