|
@@ -1,12 +1,23 @@
|
|
|
<template>
|
|
|
<div class='add-legend'>
|
|
|
<el-dialog :title='title' :visible.sync='dialogVisible'>
|
|
|
- <add-list v-show='title=="" && GraphCategoryId' ref='searchList' :GraphCategoryId='GraphCategoryId' @mesg='mesg'></add-list>
|
|
|
- <add-form v-show='title!=""' ref='add' :ruleForm='info' @addSuccess='addSuccess' @updateSuccess='updateSuccess' :title='title'></add-form>
|
|
|
- <span slot='footer' class='dialog-footer'>
|
|
|
- <el-button @click='dialogVisible = false,cancal()' size='small'>取 消</el-button>
|
|
|
- <el-button type='primary' @click='save' size='small'>确 定</el-button>
|
|
|
- </span>
|
|
|
+ <!-- <add-list v-show='title=="" && GraphCategoryId' ref='searchList' :GraphCategoryId='GraphCategoryId' @mesg='mesg'></add-list> -->
|
|
|
+
|
|
|
+ <Transfer
|
|
|
+ :data='treeData3'
|
|
|
+ :linkage='false'
|
|
|
+ :lastStage='true'
|
|
|
+ @confirm='treeConfirm3'
|
|
|
+ v-if='title=="" && GraphCategoryId'
|
|
|
+ ref='searchList'
|
|
|
+ />
|
|
|
+ <template v-else>
|
|
|
+ <add-form ref='add' :ruleForm='info' @addSuccess='addSuccess' @updateSuccess='updateSuccess' :title='title'></add-form>
|
|
|
+ <span slot='footer' class='dialog-footer'>
|
|
|
+ <el-button @click='dialogVisible = false,cancal()' size='small'>取 消</el-button>
|
|
|
+ <el-button type='primary' @click='save' size='small'>确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -28,7 +39,8 @@ export default {
|
|
|
LineDash: ''
|
|
|
},
|
|
|
title: '',
|
|
|
- GraphCategoryId: 'DTXT'
|
|
|
+ GraphCategoryId: 'DTXT',
|
|
|
+ treeData3: []
|
|
|
}
|
|
|
},
|
|
|
components: { addForm, addList },
|
|
@@ -78,6 +90,9 @@ export default {
|
|
|
if (!this.title) {
|
|
|
this.$refs.searchList.save()
|
|
|
}
|
|
|
+ },
|
|
|
+ treeConfirm3(ids) {
|
|
|
+ console.log('确定:::', ids)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -85,6 +100,14 @@ export default {
|
|
|
|
|
|
<style lang='less' scoped>
|
|
|
.add-legend {
|
|
|
+ /deep/ .p-transfer {
|
|
|
+ display: block;
|
|
|
+ width: 90%;
|
|
|
+ }
|
|
|
+ /deep/ .p-transfer-main {
|
|
|
+ box-shadow: none;
|
|
|
+ height: 479px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
<style lang='less'>
|