|
@@ -89,6 +89,7 @@
|
|
|
data () {
|
|
|
return {
|
|
|
model:{
|
|
|
+ xmName: '',
|
|
|
fileWX: [],
|
|
|
fileCL: [],
|
|
|
},
|
|
@@ -124,16 +125,16 @@
|
|
|
},
|
|
|
methods: {
|
|
|
add () {
|
|
|
- this.edit(this.modelDefault);
|
|
|
+ this.visible = true;
|
|
|
+ // this.edit(this.modelDefault);
|
|
|
},
|
|
|
edit (record) {
|
|
|
- // const model2 = Object.assign({}, record);
|
|
|
- const model2 = record;
|
|
|
- console.log(model2)
|
|
|
- const id = model2.id
|
|
|
- console.log(id)
|
|
|
- getModalIdList(id).then((res) => {
|
|
|
+ const data = {
|
|
|
+ id: record.id
|
|
|
+ }
|
|
|
+ getModalIdList(data).then((res) => {
|
|
|
console.log(res)
|
|
|
+ this.model = res.result
|
|
|
})
|
|
|
this.visible = true;
|
|
|
},
|