diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue
index 1a0e6584..7e785bf0 100644
--- a/src/views/mtm/routepack_form.vue
+++ b/src/views/mtm/routepack_form.vue
@@ -59,6 +59,19 @@
+
+
+
+
+
+
+
@@ -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)
});
}
},