|
|
@@ -417,12 +417,11 @@
|
|
|
class="preview"
|
|
|
:inline="false"
|
|
|
label-width="80px"
|
|
|
- :model="noteForm"
|
|
|
ref="form1"
|
|
|
:rules="rules"
|
|
|
>
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="noteForm.noteDesc" placeholder="请输入批注信息"></el-input>
|
|
|
+ <el-input v-model="noteDesc" placeholder="请输入批注信息"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="img">
|
|
|
<el-upload
|
|
|
@@ -430,7 +429,7 @@
|
|
|
list-type="picture-card"
|
|
|
:on-preview="handlePreview"
|
|
|
:on-remove="handleRemove"
|
|
|
- :file-list="noteForm.noteImgs"
|
|
|
+ :file-list="noteImgs"
|
|
|
>
|
|
|
<i class="el-icon-plus"></i>
|
|
|
</el-upload>
|
|
|
@@ -517,11 +516,13 @@ export default {
|
|
|
components: { vuedraggable,fuEditor },
|
|
|
data() {
|
|
|
return {
|
|
|
+ noteDesc:"",
|
|
|
+ noteImgs:[],
|
|
|
noteImgList:[],
|
|
|
curItem:{},
|
|
|
dialogTitle:"",
|
|
|
dialogTitle1:"",
|
|
|
- noteForm:{noteDesc:"",noteImgs:[]},
|
|
|
+ // noteForm:{noteDesc:"",noteImgs:[]},
|
|
|
curNote:"",
|
|
|
dialogVisible:false,
|
|
|
dialogVisible1:false,
|
|
|
@@ -621,19 +622,16 @@ export default {
|
|
|
|
|
|
},
|
|
|
addNote(item){
|
|
|
- // this.noteForm = {}
|
|
|
+ this.noteDesc = item.noteDesc;
|
|
|
+ this.noteImgs = item.noteImgs;
|
|
|
this.curItem = item;
|
|
|
- // this.curNote = item.note?item.note:'';
|
|
|
- this.$set(this.noteForm,"noteDesc",this.curItem.noteDesc)
|
|
|
- this.$set(this.noteForm,"noteImgs",this.curItem.noteImgs)
|
|
|
this.dialogTitle = "为"+'"'+item.label+'"添加批注信息'
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
saveNote(item){
|
|
|
- // this.curNote=this.$refs.editor.getEditor()
|
|
|
- // item.note = this.curNote;
|
|
|
- item.noteDesc = this.noteForm.noteDesc
|
|
|
- item.noteImgs = this.noteForm.noteImgs
|
|
|
+ console.log(this.noteImgs,33333333333333)
|
|
|
+ item.noteDesc = this.noteDesc
|
|
|
+ item.noteImgs = this.noteImgs
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
handlePreview(){
|
|
|
@@ -696,7 +694,6 @@ export default {
|
|
|
name: this.title,
|
|
|
widget: JSON.stringify(widgets),
|
|
|
};
|
|
|
- console.log(widgets, 22222222222);
|
|
|
if (id && !copyid) {
|
|
|
params.id = id;
|
|
|
this.$api.editTemplate(params).then((res) => {
|