|
|
@@ -39,7 +39,7 @@
|
|
|
<div style="margin-top: 10px; min-height: 200px !important">
|
|
|
<myEditor
|
|
|
ref="technicalparam"
|
|
|
- height="200px"
|
|
|
+ height="360px"
|
|
|
:content="form.technicalparam"
|
|
|
:id="form.sa_fadid"
|
|
|
></myEditor>
|
|
|
@@ -52,7 +52,7 @@
|
|
|
<div style="margin-top: 10px; min-height: 200px !important">
|
|
|
<myEditor
|
|
|
ref="materialdescription"
|
|
|
- height="200px"
|
|
|
+ height="360px"
|
|
|
:content="form.materialdescription"
|
|
|
:id="form.sa_fadid"
|
|
|
></myEditor>
|
|
|
@@ -65,7 +65,7 @@
|
|
|
<div style="margin-top: 10px; min-height: 200px !important">
|
|
|
<myEditor
|
|
|
ref="contentstr"
|
|
|
- height="200px"
|
|
|
+ height="360px"
|
|
|
:content="form.contentstr"
|
|
|
:id="form.sa_fadid"
|
|
|
></myEditor>
|
|
|
@@ -157,6 +157,13 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
+ updated() {
|
|
|
+ console.log(this.form)
|
|
|
+ console.log(this.$refs)
|
|
|
+ if (this.$refs.technicalparam) this.$refs.technicalparam.innerHTML = this.form.technicalparam;
|
|
|
+ if (this.$refs.materialdescription) this.$refs.materialdescription.innerHTML = this.form.materialdescription;
|
|
|
+ if (this.$refs.contentstr) this.$refs.contentstr.innerHTML = this.form.contentstr;
|
|
|
+ },
|
|
|
methods: {
|
|
|
async editBtn() {
|
|
|
const res = await this.$api.requested({
|
|
|
@@ -172,11 +179,13 @@ export default {
|
|
|
this.dialogFormVisible = true;
|
|
|
this.form = res.data;
|
|
|
this.form.contentstr = res.data.content;
|
|
|
- this.form.isonsale = this.form.isonsale == 1 ? "1" : "0";
|
|
|
- this.$refs.technicalparam.innerHTML = this.form.technicalparam;
|
|
|
- this.$refs.materialdescription.innerHTML =
|
|
|
- this.form.materialdescription;
|
|
|
- this.$refs.contentstr.innerHTML = this.form.contentstr;
|
|
|
+ this.form.isonsale = res.data.isonsale == 1 ? "1" : "0";
|
|
|
+ console.log(this.$refs)
|
|
|
+ console.log(this.$refs.technicalparam)
|
|
|
+
|
|
|
+ /*this.$refs.technicalparam.innerHTML = res.data.technicalparam;
|
|
|
+ this.$refs.materialdescription.innerHTML = res.data.materialdescription;
|
|
|
+ this.$refs.contentstr.innerHTML = res.data.contentstr;*/
|
|
|
}
|
|
|
},
|
|
|
onSubmit() {
|
|
|
@@ -221,10 +230,11 @@ export default {
|
|
|
},
|
|
|
onClose() {
|
|
|
this.loading = false;
|
|
|
+ this.dialogFormVisible = false
|
|
|
this.$refs.form.resetFields();
|
|
|
- this.$refs.technicalparam.html = "";
|
|
|
- this.$refs.materialdescription.html = "";
|
|
|
- this.$refs.contentstr.html = "";
|
|
|
+ this.$refs.technicalparam.html = this.form.technicalparam;
|
|
|
+ this.$refs.materialdescription.html = this.form.materialdescription;
|
|
|
+ this.$refs.contentstr.html = this.form.contentstr;
|
|
|
this.$emit("onSuccess");
|
|
|
},
|
|
|
},
|