|
|
@@ -86,7 +86,7 @@
|
|
|
ref="selectdep"
|
|
|
size="small"
|
|
|
style="width: 100%"
|
|
|
- :placeholder="$t('分类')"
|
|
|
+ :placeholder="$t(form.class || '分类')"
|
|
|
v-model="form.classmx"
|
|
|
:options="classData"
|
|
|
filterable
|
|
|
@@ -206,15 +206,17 @@ export default {
|
|
|
this.$refs.materialdescription.innerHTML = this.form.materialdescription;
|
|
|
if (this.$refs.contentstr)
|
|
|
this.$refs.contentstr.innerHTML = this.form.contentstr;
|
|
|
- if (!this.$refs.upload.filelist.length)
|
|
|
- this.$refs.upload.filelist = this.fileType
|
|
|
- .fileList(this.data.attinfos)
|
|
|
- .map((v) => {
|
|
|
- v.progress = 100;
|
|
|
- v.type = v.postfix;
|
|
|
- v.uid = v.attachmentid;
|
|
|
- return v;
|
|
|
- });
|
|
|
+ try {
|
|
|
+ if (!this.$refs.upload.filelist.length)
|
|
|
+ this.$refs.upload.filelist = this.fileType
|
|
|
+ .fileList(this.data.attinfos)
|
|
|
+ .map((v) => {
|
|
|
+ v.progress = 100;
|
|
|
+ v.type = v.postfix;
|
|
|
+ v.uid = v.attachmentid;
|
|
|
+ return v;
|
|
|
+ });
|
|
|
+ } catch (error) {}
|
|
|
},
|
|
|
methods: {
|
|
|
oploadIng(e) {
|
|
|
@@ -234,10 +236,9 @@ export default {
|
|
|
} else {
|
|
|
this.dialogFormVisible = true;
|
|
|
this.form = res.data;
|
|
|
+ console.log("this.form",this.form)
|
|
|
this.form.contentstr = res.data.content;
|
|
|
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;*/
|