| | |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="display: flex"> |
| | | <icon-show :name="data.icon"></icon-show> |
| | | <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> |
| | | <i v-else :class="data.icon"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | |
| | | id: item.id, |
| | | name: item.name, |
| | | leaf: !item.hasChildren, |
| | | icon: item.source || 'iconoir:home' |
| | | icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), |
| | | iconType:item.source?'svg':'iconfont' |
| | | } |
| | | })) |
| | | }) |
| | |
| | | identify: this.form.code, |
| | | alias: this.form.alias, |
| | | desc: this.form.remark, |
| | | seq: this.form.sort |
| | | seq: this.form.sort, |
| | | source: this.form.source, |
| | | } |
| | | addOperationType(params).then(res => { |
| | | if (res.data.code === 200) { |
| | |
| | | identify: this.form.code, |
| | | alias: this.form.alias, |
| | | desc: this.form.remark, |
| | | seq: this.form.sort |
| | | seq: this.form.sort, |
| | | source: this.form.source, |
| | | } |
| | | updateOperationType(params).then(res => { |
| | | if (res.data.code === 200) { |