@@ -594,7 +654,8 @@
>
-
+
{{ node.label }}
@@ -611,13 +672,13 @@
class="reg-item"
>
-
+
-
+
-
+
@@ -629,13 +690,13 @@
-
+
-
+
-
+
@@ -664,26 +725,26 @@
-
+
-
+
-
+
-
+
-
+
-
-
+
+
@@ -724,6 +785,7 @@ export default {
props: ['showField', 'activeData', 'formConf'],
data() {
return {
+ loading:null,
currentTab: 'field',
currentNode: null,
dialogVisible: false,
@@ -894,17 +956,22 @@ export default {
})
},
addSelectItem() {
-
this.activeData.__slot__.options.push({
label: '',
value: this.activeData.__slot__.options.length + 1
})
},
+ addImageSelectItem() {
+ this.activeData.__slot__.options.push({
+ label: '',
+ image: '',
+ value: this.activeData.__slot__.options.length + 1
+ })
+ },
addSelectOtherItem() {
let item = this.activeData.__slot__.options.find(item => {
return item.value == 0
})
- console.log(item)
if (item) {
return
}
@@ -913,6 +980,19 @@ export default {
value: 0
})
},
+ uploadProgressHandle() {
+ this.loading = this.$loading({
+ lock: true,
+ text: '上传中',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+ },
+ closeUploadProgressHandle(){
+ setTimeout(() => {
+ this.loading.close();
+ }, 100);
+ },
addTreeItem() {
++this.idGlobal
this.dialogVisible = true
@@ -924,12 +1004,12 @@ export default {