diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js index d8cbbce..593b7cd 100644 --- a/src/api/supplier/supplier.js +++ b/src/api/supplier/supplier.js @@ -74,7 +74,27 @@ } } +const baseDetail = (data) => { + return instance.post('/supplierInfo/base/detail', data) +} + +const certificateDetail = (data) => { + return instance.post('/supplierInfo/certificate/detail', data) +} + +const personDetail = (data) => { + return instance.post('/supplierInfo/person/detail', data) +} + +const businessDetail = (data) => { + return instance.post('/supplierInfo/business/detail', data) +} + +const reviewDetail = (data) => { + return instance.post('/supplierInfo/review/detail', data) +} + export { S_list, listPage, i_list, historyInquiry, r_list, historyReview, e_list, historyEvaluate, a_list, historyAssess, - inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo + inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo, baseDetail, certificateDetail, personDetail, businessDetail, reviewDetail } diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js index d8cbbce..593b7cd 100644 --- a/src/api/supplier/supplier.js +++ b/src/api/supplier/supplier.js @@ -74,7 +74,27 @@ } } +const baseDetail = (data) => { + return instance.post('/supplierInfo/base/detail', data) +} + +const certificateDetail = (data) => { + return instance.post('/supplierInfo/certificate/detail', data) +} + +const personDetail = (data) => { + return instance.post('/supplierInfo/person/detail', data) +} + +const businessDetail = (data) => { + return instance.post('/supplierInfo/business/detail', data) +} + +const reviewDetail = (data) => { + return instance.post('/supplierInfo/review/detail', data) +} + export { S_list, listPage, i_list, historyInquiry, r_list, historyReview, e_list, historyEvaluate, a_list, historyAssess, - inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo + inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo, baseDetail, certificateDetail, personDetail, businessDetail, reviewDetail } diff --git a/src/components/guadMap/index.vue b/src/components/guadMap/index.vue index 402ad7e..6a0fd56 100644 --- a/src/components/guadMap/index.vue +++ b/src/components/guadMap/index.vue @@ -68,7 +68,7 @@ map: this.map, title: this.deviceList[i].deviceName, content: - '
xxxxxxx
', + '
', offset: new AMap.Pixel(-15, -20), }); diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js index d8cbbce..593b7cd 100644 --- a/src/api/supplier/supplier.js +++ b/src/api/supplier/supplier.js @@ -74,7 +74,27 @@ } } +const baseDetail = (data) => { + return instance.post('/supplierInfo/base/detail', data) +} + +const certificateDetail = (data) => { + return instance.post('/supplierInfo/certificate/detail', data) +} + +const personDetail = (data) => { + return instance.post('/supplierInfo/person/detail', data) +} + +const businessDetail = (data) => { + return instance.post('/supplierInfo/business/detail', data) +} + +const reviewDetail = (data) => { + return instance.post('/supplierInfo/review/detail', data) +} + export { S_list, listPage, i_list, historyInquiry, r_list, historyReview, e_list, historyEvaluate, a_list, historyAssess, - inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo + inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo, baseDetail, certificateDetail, personDetail, businessDetail, reviewDetail } diff --git a/src/components/guadMap/index.vue b/src/components/guadMap/index.vue index 402ad7e..6a0fd56 100644 --- a/src/components/guadMap/index.vue +++ b/src/components/guadMap/index.vue @@ -68,7 +68,7 @@ map: this.map, title: this.deviceList[i].deviceName, content: - '
xxxxxxx
', + '
', offset: new AMap.Pixel(-15, -20), }); diff --git a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue index 53e82be..4fcc6ff 100644 --- a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue @@ -123,18 +123,18 @@ type: Boolean, default: false }, - dataInfo: '' + dataInfo: {} }, data() { return { - orderInfo: '' + orderInfo: {} } }, watch: { dataInfo: { handler(value) { console.log(value) - if (!value.id) return + if (!value?.id) return detail({ id: value.id }).then(res => { this.orderInfo = res diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js index d8cbbce..593b7cd 100644 --- a/src/api/supplier/supplier.js +++ b/src/api/supplier/supplier.js @@ -74,7 +74,27 @@ } } +const baseDetail = (data) => { + return instance.post('/supplierInfo/base/detail', data) +} + +const certificateDetail = (data) => { + return instance.post('/supplierInfo/certificate/detail', data) +} + +const personDetail = (data) => { + return instance.post('/supplierInfo/person/detail', data) +} + +const businessDetail = (data) => { + return instance.post('/supplierInfo/business/detail', data) +} + +const reviewDetail = (data) => { + return instance.post('/supplierInfo/review/detail', data) +} + export { S_list, listPage, i_list, historyInquiry, r_list, historyReview, e_list, historyEvaluate, a_list, historyAssess, - inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo + inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo, baseDetail, certificateDetail, personDetail, businessDetail, reviewDetail } diff --git a/src/components/guadMap/index.vue b/src/components/guadMap/index.vue index 402ad7e..6a0fd56 100644 --- a/src/components/guadMap/index.vue +++ b/src/components/guadMap/index.vue @@ -68,7 +68,7 @@ map: this.map, title: this.deviceList[i].deviceName, content: - '
xxxxxxx
', + '
', offset: new AMap.Pixel(-15, -20), }); diff --git a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue index 53e82be..4fcc6ff 100644 --- a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue @@ -123,18 +123,18 @@ type: Boolean, default: false }, - dataInfo: '' + dataInfo: {} }, data() { return { - orderInfo: '' + orderInfo: {} } }, watch: { dataInfo: { handler(value) { console.log(value) - if (!value.id) return + if (!value?.id) return detail({ id: value.id }).then(res => { this.orderInfo = res diff --git a/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue b/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue index 6d94be8..5e58333 100644 --- a/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue @@ -1,7 +1,13 @@ diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js index d8cbbce..593b7cd 100644 --- a/src/api/supplier/supplier.js +++ b/src/api/supplier/supplier.js @@ -74,7 +74,27 @@ } } +const baseDetail = (data) => { + return instance.post('/supplierInfo/base/detail', data) +} + +const certificateDetail = (data) => { + return instance.post('/supplierInfo/certificate/detail', data) +} + +const personDetail = (data) => { + return instance.post('/supplierInfo/person/detail', data) +} + +const businessDetail = (data) => { + return instance.post('/supplierInfo/business/detail', data) +} + +const reviewDetail = (data) => { + return instance.post('/supplierInfo/review/detail', data) +} + export { S_list, listPage, i_list, historyInquiry, r_list, historyReview, e_list, historyEvaluate, a_list, historyAssess, - inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo + inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo, baseDetail, certificateDetail, personDetail, businessDetail, reviewDetail } diff --git a/src/components/guadMap/index.vue b/src/components/guadMap/index.vue index 402ad7e..6a0fd56 100644 --- a/src/components/guadMap/index.vue +++ b/src/components/guadMap/index.vue @@ -68,7 +68,7 @@ map: this.map, title: this.deviceList[i].deviceName, content: - '
xxxxxxx
', + '
', offset: new AMap.Pixel(-15, -20), }); diff --git a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue index 53e82be..4fcc6ff 100644 --- a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue @@ -123,18 +123,18 @@ type: Boolean, default: false }, - dataInfo: '' + dataInfo: {} }, data() { return { - orderInfo: '' + orderInfo: {} } }, watch: { dataInfo: { handler(value) { console.log(value) - if (!value.id) return + if (!value?.id) return detail({ id: value.id }).then(res => { this.orderInfo = res diff --git a/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue b/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue index 6d94be8..5e58333 100644 --- a/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue @@ -1,7 +1,13 @@ diff --git a/src/views/companyDetail/operationInfoDetail.vue b/src/views/companyDetail/operationInfoDetail.vue index f7346e7..0c31700 100644 --- a/src/views/companyDetail/operationInfoDetail.vue +++ b/src/views/companyDetail/operationInfoDetail.vue @@ -1,22 +1,22 @@ @@ -59,7 +58,6 @@ diff --git a/src/views/sales/orderList.vue b/src/views/sales/orderList.vue index 36e1a2d..df1f8de 100644 --- a/src/views/sales/orderList.vue +++ b/src/views/sales/orderList.vue @@ -52,6 +52,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -103,7 +104,8 @@ selectInfo: { orderId: '', userName: '' - } + }, + loading:false } }, @@ -111,12 +113,16 @@ tableRowClassName: tableRowClassName, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { diff --git a/src/views/sales/shop.vue b/src/views/sales/shop.vue index 1f84e63..0a1c756 100644 --- a/src/views/sales/shop.vue +++ b/src/views/sales/shop.vue @@ -60,6 +60,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -126,7 +127,8 @@ itemBudget: '', itemDuration: '' }, - busOppoId: '' + busOppoId: '', + loading:false } }, methods: { @@ -141,12 +143,16 @@ this.busOppoId = row.busOppoId }, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { @@ -155,7 +161,7 @@ itemBudget: '', itemDuration: '' } - } + }, } } diff --git a/src/api/server/operation.js b/src/api/server/operation.js index 25eb67a..404b354 100644 --- a/src/api/server/operation.js +++ b/src/api/server/operation.js @@ -1 +1,31 @@ import { instance } from '../request/http' +// 暂时无接口 +// 列表 +const listPage = (str, data) => { + return instance.post(`/serviceInfo/listPage?${str}`, data) +} +// 服务不分页 +const O_list = () => { + return instance.post(`/serviceInfo/list`, {}) +} +const O_add = (data) => { + return instance.post('/serviceInfo/add', data) +} +// 更新 +const O_update = (data) => { + return instance.post('/serviceInfo/update', data) +} +// 删除 +const O_delete = (data) => { + return instance.post('/serviceInfo/delete', data) +} +// 批量删除 +const O_batchDelete = (data) => { + return instance.post('/serviceInfo/batchDelete', data) +} + +export { + O_update, + O_batchDelete, O_delete, O_add, listPage + , O_list +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js index d8cbbce..593b7cd 100644 --- a/src/api/supplier/supplier.js +++ b/src/api/supplier/supplier.js @@ -74,7 +74,27 @@ } } +const baseDetail = (data) => { + return instance.post('/supplierInfo/base/detail', data) +} + +const certificateDetail = (data) => { + return instance.post('/supplierInfo/certificate/detail', data) +} + +const personDetail = (data) => { + return instance.post('/supplierInfo/person/detail', data) +} + +const businessDetail = (data) => { + return instance.post('/supplierInfo/business/detail', data) +} + +const reviewDetail = (data) => { + return instance.post('/supplierInfo/review/detail', data) +} + export { S_list, listPage, i_list, historyInquiry, r_list, historyReview, e_list, historyEvaluate, a_list, historyAssess, - inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo + inquiryAdd, reviewAdd, evaluateAdd, assessAdd, addSupplierInfo, baseDetail, certificateDetail, personDetail, businessDetail, reviewDetail } diff --git a/src/components/guadMap/index.vue b/src/components/guadMap/index.vue index 402ad7e..6a0fd56 100644 --- a/src/components/guadMap/index.vue +++ b/src/components/guadMap/index.vue @@ -68,7 +68,7 @@ map: this.map, title: this.deviceList[i].deviceName, content: - '
xxxxxxx
', + '
', offset: new AMap.Pixel(-15, -20), }); diff --git a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue index 53e82be..4fcc6ff 100644 --- a/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/orderInfoDialog.vue @@ -123,18 +123,18 @@ type: Boolean, default: false }, - dataInfo: '' + dataInfo: {} }, data() { return { - orderInfo: '' + orderInfo: {} } }, watch: { dataInfo: { handler(value) { console.log(value) - if (!value.id) return + if (!value?.id) return detail({ id: value.id }).then(res => { this.orderInfo = res diff --git a/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue b/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue index 6d94be8..5e58333 100644 --- a/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue +++ b/src/components/mycomponent/dialog/salesDialog/slaesChangeOrderDialog.vue @@ -1,7 +1,13 @@ diff --git a/src/views/companyDetail/operationInfoDetail.vue b/src/views/companyDetail/operationInfoDetail.vue index f7346e7..0c31700 100644 --- a/src/views/companyDetail/operationInfoDetail.vue +++ b/src/views/companyDetail/operationInfoDetail.vue @@ -1,22 +1,22 @@ @@ -204,13 +41,14 @@ import PersonInfoDetail from '@/views/companyDetail/personInfoDetail' import BusinessInfoDetail from '@/views/companyDetail/businessInfoDetail' import OperationInfoDetail from '@/views/companyDetail/operationInfoDetail' +import ExtraInfoDetail from '@/views/companyDetail/extraInfoDetail' import { tableRowClassName } from '@/utils/myUtils/changeTableTr' import { certificateDetail, personDetail, businessDetail } from '@/api/distributor/distributor' export default { name: 'DistributorDetail', components: { - CertInfoDetail, PersonInfoDetail, BusinessInfoDetail, OperationInfoDetail + CertInfoDetail, PersonInfoDetail, BusinessInfoDetail, OperationInfoDetail, ExtraInfoDetail }, data() { return { @@ -225,10 +63,6 @@ companyAddress: '' }, activeTabName: 'certDetail', - certificateInfo: '', - personInfo: '', - businessInfo: '', - reviewInfo: '', isShowInfo: false } }, @@ -270,6 +104,8 @@ businessDetail({ distributorCode: distributorCode }).then(res => { if (res !== null && res !== undefined && res !== '') { this.$refs.businessDetail.showBusinessDetail(res) + this.$refs.operationDetail.showOperationDetail(res) + this.$refs.extraDetail.showExtraDetail(res) } }) } diff --git a/src/views/distributor/distributorList.vue b/src/views/distributor/distributorList.vue index 683549f..3956bd0 100644 --- a/src/views/distributor/distributorList.vue +++ b/src/views/distributor/distributorList.vue @@ -51,7 +51,6 @@ - @@ -59,7 +58,6 @@ diff --git a/src/views/sales/orderList.vue b/src/views/sales/orderList.vue index 36e1a2d..df1f8de 100644 --- a/src/views/sales/orderList.vue +++ b/src/views/sales/orderList.vue @@ -52,6 +52,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -103,7 +104,8 @@ selectInfo: { orderId: '', userName: '' - } + }, + loading:false } }, @@ -111,12 +113,16 @@ tableRowClassName: tableRowClassName, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { diff --git a/src/views/sales/shop.vue b/src/views/sales/shop.vue index 1f84e63..0a1c756 100644 --- a/src/views/sales/shop.vue +++ b/src/views/sales/shop.vue @@ -60,6 +60,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -126,7 +127,8 @@ itemBudget: '', itemDuration: '' }, - busOppoId: '' + busOppoId: '', + loading:false } }, methods: { @@ -141,12 +143,16 @@ this.busOppoId = row.busOppoId }, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { @@ -155,7 +161,7 @@ itemBudget: '', itemDuration: '' } - } + }, } } diff --git a/src/views/server/Management.vue b/src/views/server/Management.vue index f573fd8..bed5935 100644 --- a/src/views/server/Management.vue +++ b/src/views/server/Management.vue @@ -21,7 +21,12 @@ placeholder="请选择服务类型" style="width: 200px" > - + @@ -34,7 +39,14 @@ > 查询 - + + 重置 + 删除 @@ -64,6 +76,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -75,18 +88,10 @@ @@ -59,7 +58,6 @@ diff --git a/src/views/sales/orderList.vue b/src/views/sales/orderList.vue index 36e1a2d..df1f8de 100644 --- a/src/views/sales/orderList.vue +++ b/src/views/sales/orderList.vue @@ -52,6 +52,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -103,7 +104,8 @@ selectInfo: { orderId: '', userName: '' - } + }, + loading:false } }, @@ -111,12 +113,16 @@ tableRowClassName: tableRowClassName, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { diff --git a/src/views/sales/shop.vue b/src/views/sales/shop.vue index 1f84e63..0a1c756 100644 --- a/src/views/sales/shop.vue +++ b/src/views/sales/shop.vue @@ -60,6 +60,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -126,7 +127,8 @@ itemBudget: '', itemDuration: '' }, - busOppoId: '' + busOppoId: '', + loading:false } }, methods: { @@ -141,12 +143,16 @@ this.busOppoId = row.busOppoId }, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { @@ -155,7 +161,7 @@ itemBudget: '', itemDuration: '' } - } + }, } } diff --git a/src/views/server/Management.vue b/src/views/server/Management.vue index f573fd8..bed5935 100644 --- a/src/views/server/Management.vue +++ b/src/views/server/Management.vue @@ -21,7 +21,12 @@ placeholder="请选择服务类型" style="width: 200px" > - + @@ -34,7 +39,14 @@ > 查询 - + + 重置 + 删除 @@ -64,6 +76,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -75,18 +88,10 @@ @@ -59,7 +58,6 @@ diff --git a/src/views/sales/orderList.vue b/src/views/sales/orderList.vue index 36e1a2d..df1f8de 100644 --- a/src/views/sales/orderList.vue +++ b/src/views/sales/orderList.vue @@ -52,6 +52,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -103,7 +104,8 @@ selectInfo: { orderId: '', userName: '' - } + }, + loading:false } }, @@ -111,12 +113,16 @@ tableRowClassName: tableRowClassName, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { diff --git a/src/views/sales/shop.vue b/src/views/sales/shop.vue index 1f84e63..0a1c756 100644 --- a/src/views/sales/shop.vue +++ b/src/views/sales/shop.vue @@ -60,6 +60,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -126,7 +127,8 @@ itemBudget: '', itemDuration: '' }, - busOppoId: '' + busOppoId: '', + loading:false } }, methods: { @@ -141,12 +143,16 @@ this.busOppoId = row.busOppoId }, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { @@ -155,7 +161,7 @@ itemBudget: '', itemDuration: '' } - } + }, } } diff --git a/src/views/server/Management.vue b/src/views/server/Management.vue index f573fd8..bed5935 100644 --- a/src/views/server/Management.vue +++ b/src/views/server/Management.vue @@ -21,7 +21,12 @@ placeholder="请选择服务类型" style="width: 200px" > - + @@ -34,7 +39,14 @@ > 查询 - + + 重置 + 删除 @@ -64,6 +76,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -75,18 +88,10 @@ @@ -59,7 +58,6 @@ diff --git a/src/views/sales/orderList.vue b/src/views/sales/orderList.vue index 36e1a2d..df1f8de 100644 --- a/src/views/sales/orderList.vue +++ b/src/views/sales/orderList.vue @@ -52,6 +52,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -103,7 +104,8 @@ selectInfo: { orderId: '', userName: '' - } + }, + loading:false } }, @@ -111,12 +113,16 @@ tableRowClassName: tableRowClassName, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { diff --git a/src/views/sales/shop.vue b/src/views/sales/shop.vue index 1f84e63..0a1c756 100644 --- a/src/views/sales/shop.vue +++ b/src/views/sales/shop.vue @@ -60,6 +60,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -126,7 +127,8 @@ itemBudget: '', itemDuration: '' }, - busOppoId: '' + busOppoId: '', + loading:false } }, methods: { @@ -141,12 +143,16 @@ this.busOppoId = row.busOppoId }, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { @@ -155,7 +161,7 @@ itemBudget: '', itemDuration: '' } - } + }, } } diff --git a/src/views/server/Management.vue b/src/views/server/Management.vue index f573fd8..bed5935 100644 --- a/src/views/server/Management.vue +++ b/src/views/server/Management.vue @@ -21,7 +21,12 @@ placeholder="请选择服务类型" style="width: 200px" > - + @@ -34,7 +39,14 @@ > 查询 - + + 重置 + 删除 @@ -64,6 +76,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -75,18 +88,10 @@ @@ -59,7 +58,6 @@ diff --git a/src/views/sales/orderList.vue b/src/views/sales/orderList.vue index 36e1a2d..df1f8de 100644 --- a/src/views/sales/orderList.vue +++ b/src/views/sales/orderList.vue @@ -52,6 +52,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -103,7 +104,8 @@ selectInfo: { orderId: '', userName: '' - } + }, + loading:false } }, @@ -111,12 +113,16 @@ tableRowClassName: tableRowClassName, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { diff --git a/src/views/sales/shop.vue b/src/views/sales/shop.vue index 1f84e63..0a1c756 100644 --- a/src/views/sales/shop.vue +++ b/src/views/sales/shop.vue @@ -60,6 +60,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -126,7 +127,8 @@ itemBudget: '', itemDuration: '' }, - busOppoId: '' + busOppoId: '', + loading:false } }, methods: { @@ -141,12 +143,16 @@ this.busOppoId = row.busOppoId }, getListPage(limit, offset) { + this.loading = true listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => { // 得到相关数据 res.rows.forEach((item, index) => { item.index = (index + 1) + ((offset - 1) * 10) }) this.tableData = res + this.loading = false + }).catch(err => { + this.loading = false }) }, reset() { @@ -155,7 +161,7 @@ itemBudget: '', itemDuration: '' } - } + }, } } diff --git a/src/views/server/Management.vue b/src/views/server/Management.vue index f573fd8..bed5935 100644 --- a/src/views/server/Management.vue +++ b/src/views/server/Management.vue @@ -21,7 +21,12 @@ placeholder="请选择服务类型" style="width: 200px" > - + @@ -34,7 +39,14 @@ > 查询 - + + 重置 + 删除 @@ -64,6 +76,7 @@ }" :row-style="{ 'text-align': 'center' }" style="width: 100%" + v-loading="loading" > @@ -75,18 +88,10 @@