| | |
| | | :option="treeOption" |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | | <span> |
| | | <icon-show v-if="data.icon" :name="data.icon"></icon-show> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | |
| | | <el-tag :type="row.plTypeType === 'business' ? '' : 'success'"> |
| | | {{ row.plTypeType === 'business' ? '业务类型' : '链接类型' }} |
| | | </el-tag> |
| | | </template> |
| | | <template slot="plImage" slot-scope="{row}"> |
| | | <span class="avue-icon"> |
| | | <icon-show :name="row.plImage"></icon-show> |
| | | </span> |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | |
| | | lastIndex: null, |
| | | selectList: [], |
| | | data: [], |
| | | option: { |
| | | option: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | height: 420, |
| | |
| | | search: true |
| | | }, |
| | | { |
| | | label: 'C/S类路径', |
| | | prop: 'plCSClass', |
| | | label: '图标', |
| | | prop: 'plImage', |
| | | search: true, |
| | | searchLabelWidth:120, |
| | | overHidden: true, |
| | | width:80 |
| | | }, |
| | | { |
| | | label: 'B/S链接地址', |
| | |
| | | this.dialog.loading = false; |
| | | this.dialog.showDialog = false; |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.$emit('cancelAction',null); |
| | | }, |
| | | submitDialog() { |
| | | if (this.selectList.length==0) { |
| | |
| | | this.$emit('updataAction', this.selectList[0]); |
| | | } |
| | | |
| | | this.cancelDialog(); |
| | | |
| | | this.dialog.loading = false; |
| | | this.dialog.showDialog = false; |
| | | this.$refs.tree.setCurrentKey(null); |
| | | }, |
| | | // 左侧树请求 |
| | | getTreeList(status) { |
| | |
| | | this.lastIndex = newIndex; |
| | | }, |
| | | () => { |
| | | this.selectList = []; |
| | | this.selectList = [row]; |
| | | } |
| | | ); |
| | | }, |