|
@@ -36,7 +36,8 @@ export default {
|
|
|
needFilter: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ type: String
|
|
|
},
|
|
|
components: { transferTree },
|
|
|
data() {
|
|
@@ -170,7 +171,7 @@ export default {
|
|
|
|
|
|
async created() {
|
|
|
this.data = await this.getAllTree();
|
|
|
- if (this.type == 'edit') {
|
|
|
+ if (this.type == 'add') {
|
|
|
// 已有资源,包含了父节点
|
|
|
this.havefunIds = await this.getSetFunIdsByUser();
|
|
|
// 已有资源,只是子节点
|