|
|
@@ -398,6 +398,18 @@
|
|
|
</font>
|
|
|
<el-button type='primary' class='dargBtn drag' size="mini">拖拽移动顺序</el-button>
|
|
|
</section>
|
|
|
+ <!-- 域组件 -->
|
|
|
+ <section v-if="item.type=='group'">
|
|
|
+ <el-input :readonly="item.edit" v-model="item.label" :class="item.edit?'edit_label':''"></el-input>
|
|
|
+ <section>
|
|
|
+
|
|
|
+ </section>
|
|
|
+ <font>
|
|
|
+ <span @click="item.edit=!item.edit">{{item.edit?'编辑':'保存'}}</span>
|
|
|
+ <span @click="widgetList.splice(index,1)">删除</span>
|
|
|
+ </font>
|
|
|
+ <el-button type='primary' class='dargBtn drag' size="mini">拖拽移动顺序</el-button>
|
|
|
+ </section>
|
|
|
</el-form-item>
|
|
|
</transition-group>
|
|
|
</vuedraggable>
|
|
|
@@ -605,14 +617,26 @@ export default {
|
|
|
cntype:"",
|
|
|
label: "请输入标题",
|
|
|
placeholder: "请输入",
|
|
|
- edit: true,
|
|
|
+ edit: false,
|
|
|
+ require:true,
|
|
|
},
|
|
|
{
|
|
|
type: "file",
|
|
|
+ cntype:"",
|
|
|
label: "请输入标题",
|
|
|
placeholder: "请输入",
|
|
|
- edit: true,
|
|
|
+ edit: false,
|
|
|
+ require:true,
|
|
|
},
|
|
|
+ {
|
|
|
+ type: "group",
|
|
|
+ cntype:"",
|
|
|
+ label: "请输入标题",
|
|
|
+ placeholder: "请输入",
|
|
|
+ edit: false,
|
|
|
+ require:true,
|
|
|
+ children:[]
|
|
|
+ }
|
|
|
],
|
|
|
widgetList: [],
|
|
|
};
|
|
|
@@ -629,7 +653,6 @@ export default {
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
saveNote(item){
|
|
|
- console.log(this.noteImgs,33333333333333)
|
|
|
item.noteDesc = this.noteDesc
|
|
|
item.noteImgs = this.noteImgs
|
|
|
this.dialogVisible = false;
|