fix:工艺路线添加参考文献
This commit is contained in:
parent
71f7715b9e
commit
c0c83a91c9
|
@ -59,6 +59,19 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="24" :sm="12" :xs="24">
|
||||
<el-form-item label="附件">
|
||||
<sc-upload-file
|
||||
v-model="fileList"
|
||||
:multiple="false"
|
||||
:limit="1"
|
||||
:accept="['.pdf']"
|
||||
@success = "fileUPSuccess"
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-upload"> </el-button>
|
||||
</sc-upload-file>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :md="24" :sm="12" :xs="24">
|
||||
|
@ -196,6 +209,7 @@ export default {
|
|||
dialog: {
|
||||
save: false,
|
||||
},
|
||||
fileList:[],
|
||||
form: {
|
||||
name: "",
|
||||
material: "",
|
||||
|
@ -227,7 +241,17 @@ export default {
|
|||
},
|
||||
setData(data) {
|
||||
Object.assign(this.form, data);
|
||||
console.log("setData this.form", this.form);
|
||||
let obj = {};
|
||||
obj.name=data.document_.name;
|
||||
obj.url=data.document_.file;
|
||||
this.fileList.push(obj);
|
||||
// console.log("setData this.form", this.form);
|
||||
},
|
||||
fileUPSuccess(res) {
|
||||
let that = this;
|
||||
// console.log('res',res);
|
||||
// console.log('that.fileList',that.fileList);
|
||||
that.form.document = res.id;
|
||||
},
|
||||
getMaterials() {
|
||||
let that = this;
|
||||
|
@ -253,14 +277,14 @@ export default {
|
|||
let form = {};
|
||||
form.name = that.form.name;
|
||||
form.material = that.form.material;
|
||||
console.log("that.form",that.form)
|
||||
// console.log("that.form",that.form)
|
||||
if (that.form.id) {
|
||||
that.$API.mtm.routepack.update
|
||||
.req(that.form.id, that.form)
|
||||
.then((res) => {
|
||||
that.routepack = res.id;
|
||||
that.query.routepack = res.id;
|
||||
console.log("that.query", that.query);
|
||||
// console.log("that.query", that.query);
|
||||
that.apiObj = that.$API.mtm.route.list;
|
||||
that.active = 1;
|
||||
// that.$refs.tables.refresh();
|
||||
|
@ -270,7 +294,7 @@ export default {
|
|||
this.active = 1;
|
||||
that.form.id = res.id;
|
||||
that.routepack = res.id;
|
||||
console.log("that.form",that.form)
|
||||
// console.log("that.form",that.form)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue