Commit 4299affc by 怪兽?别跑

接口调试

1 parent 40248e56
...@@ -196,6 +196,9 @@ ...@@ -196,6 +196,9 @@
return return
} }
this.loading = true this.loading = true
if (this.form.attachments == null) {
this.form.attachments = []
}
this.form.attachments.unshift({ this.form.attachments.unshift({
content: this.templateInfo, content: this.templateInfo,
msgType: 'text' msgType: 'text'
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
@click=" @click="
$router.push({ $router.push({
path: 'detail', path: 'detail',
query: { id: row.id } query: { linkId: row.linkId, id: row.id }
}) })
" "
> >
......
...@@ -73,18 +73,20 @@ ...@@ -73,18 +73,20 @@
userNames: '', userNames: '',
dialogVisible: false, dialogVisible: false,
userArray: [], userArray: [],
list: [] list: [],
tableSearch: {}
} }
}, },
components: { components: {
SearchTitle SearchTitle
}, },
created() { created() {
this.query.linkId = this.$route.query.id this.query.linkId = this.$route.query.linkId
}, },
methods: { methods: {
getData(data) { getData(data) {
this.query.linkId = this.$route.query.id this.tableSearch = data
this.query.linkId = this.$route.query.linkId
getCustomerInLink(Object.assign({}, this.query, data)).then((res) => { getCustomerInLink(Object.assign({}, this.query, data)).then((res) => {
this.list = res.rows this.list = res.rows
this.total = res.total this.total = res.total
...@@ -109,6 +111,11 @@ ...@@ -109,6 +111,11 @@
return obj.userId return obj.userId
}) })
.join(',') .join(',')
this.query.pageNum = 1
getCustomerInLink(Object.assign({}, this.query, this.tableSearch)).then((res) => {
this.list = res.rows
this.total = res.total
})
} }
}, },
created() {} created() {}
......
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
} }
}, },
created() { created() {
this.id = this.$route.query.id this.id = this.$route.query.linkId
this.getTabTotalFn() this.getTabTotalFn()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!