Commit fe0cb0cb by wangweidong

委托单优化

parent d502a55c
...@@ -8,6 +8,8 @@ import { https } from '../https' ...@@ -8,6 +8,8 @@ import { https } from '../https'
export default { export default {
// page // page
page: data => http.post('meter/v1/sample/page', data).then(res => res), page: data => http.post('meter/v1/sample/page', data).then(res => res),
pageOutDistribute: data =>
http.post('meter/v1/sample/page_distribute', data).then(res => res),
getById: data => http.get('meter/v1/sample/' + data).then(res => res), getById: data => http.get('meter/v1/sample/' + data).then(res => res),
deleteById: data => deleteById: data =>
http.delete('meter/v1/sample/?ids=' + data).then(res => res), http.delete('meter/v1/sample/?ids=' + data).then(res => res),
......
...@@ -86,16 +86,9 @@ export default { ...@@ -86,16 +86,9 @@ export default {
], ],
btn: [ btn: [
{ {
// meter-review-entrust-pass-btn
type: 'success', type: 'success',
id: '', id: '',
name: '分包' name: '分配任务'
},
// meter-review-entrust-back-btn
{
type: 'success',
id: '',
name: '取消分包'
} }
], ],
searchOpen: false, searchOpen: false,
...@@ -233,7 +226,7 @@ export default { ...@@ -233,7 +226,7 @@ export default {
_page: async function(id) { _page: async function(id) {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj) console.log('this.formObj', this.formObj)
const result = await meterSample.page(this.formObj) const result = await meterSample.pageOutDistribute(this.formObj)
if (result) { if (result) {
this.getPage = result this.getPage = result
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment