diff --git a/src/api/inspection/cw/index.js b/src/api/inspection/cw/index.js new file mode 100644 index 0000000..1576e70 --- /dev/null +++ b/src/api/inspection/cw/index.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' + +// 分页查询节点提成 +export function getRoyaltyList(params) { + return request({ + url: '/system/info/getRoyaltyList', + method: 'get', + params: params + }) +} +// 分页查询节点提成总和 +export function getRoyaltySum(params) { + return request({ + url: '/system/info/getRoyaltySum', + method: 'get', + params: params + }) +} diff --git a/src/api/inspection/project/index.js b/src/api/inspection/project/index.js index cc0de69..f4b54f5 100644 --- a/src/api/inspection/project/index.js +++ b/src/api/inspection/project/index.js @@ -18,6 +18,15 @@ export function updateDlInspectionProject(data) { }) } +// 更新检测项目排序 +export function updateSort(data) { + return request({ + url: '/inspection/dl-inspection-project/updateSort', + method: 'put', + data: data + }) +} + // 删除检测项目 export function deleteDlInspectionProject(id) { return request({ @@ -61,3 +70,15 @@ export function getRole(params) { }, }) } + +// 获取商品 Excel +export function getGoods(params) { + return request({ + url: 'system/inspectionGoods/listPartnerGoods', + method: 'get', + params: { + pageNum: 1, + pageSize: 10000 + }, + }) +} diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue index f138230..c492e6a 100644 --- a/src/components/ImagePreview/index.vue +++ b/src/components/ImagePreview/index.vue @@ -52,7 +52,7 @@ export default { if (isExternal(item)) { return srcList.push(item); } - return srcList.push(process.env.VUE_APP_BASE_API + item); + return srcList.push(process.env.VUE_APP_IMAGE_URL + item); }); return srcList; }, diff --git a/src/views/inspection/cw/inspectionCw.vue b/src/views/inspection/cw/inspectionCw.vue new file mode 100644 index 0000000..7371d1b --- /dev/null +++ b/src/views/inspection/cw/inspectionCw.vue @@ -0,0 +1,414 @@ + + + + diff --git a/src/views/inspection/inspection/NewsAnnouncement/index.vue b/src/views/inspection/inspection/NewsAnnouncement/index.vue index 12f7316..fbdbe15 100644 --- a/src/views/inspection/inspection/NewsAnnouncement/index.vue +++ b/src/views/inspection/inspection/NewsAnnouncement/index.vue @@ -231,7 +231,7 @@ getList() { this.loading = true; listNews(this.queryParams).then(response => { - this.newsList = response.rows; + this.newsList = response.data.records; this.total = response.total; this.loading = false; }); diff --git a/src/views/inspection/inspection/PartnerManagement/couponTemplate.vue b/src/views/inspection/inspection/PartnerManagement/couponTemplate.vue index 9bcbc4e..9c74b8e 100644 --- a/src/views/inspection/inspection/PartnerManagement/couponTemplate.vue +++ b/src/views/inspection/inspection/PartnerManagement/couponTemplate.vue @@ -233,7 +233,7 @@ this.loading = true; this.queryParams.allPlatform = '1' listCouponTemplate(this.queryParams).then(response => { - this.couponTemplateList = response.rows; + this.couponTemplateList = response.data.records; this.total = response.total; this.loading = false; }); diff --git a/src/views/inspection/inspection/PartnerManagement/index.vue b/src/views/inspection/inspection/PartnerManagement/index.vue index d0410d4..b830b1d 100644 --- a/src/views/inspection/inspection/PartnerManagement/index.vue +++ b/src/views/inspection/inspection/PartnerManagement/index.vue @@ -258,6 +258,7 @@ }, shopconfigList: [], shopConfig: {}, + baseImageUrl: process.env.VUE_APP_FILE_API, // 遮罩层 loading: true, // 选中数组 @@ -429,7 +430,7 @@ this.dialogTableVisibles = true pinglun(data).then(res=>{ console.log(res) - this.pinglunlist = res.rows + this.pinglunlist = res.data.records this.pltotal = res.total }) }, @@ -444,7 +445,7 @@ this.dialogTableVisibles = true pinglun(data).then(res=>{ console.log(res) - this.pinglunlist = res.rows + this.pinglunlist = res.data.records this.pltotal = res.total }) }, @@ -469,13 +470,13 @@ this.loading = true; listMallPartners(this.queryParams).then(response => { - this.mallPartnersList = response.rows; + this.mallPartnersList = response.data.records; console.log('查询合作商管理列表 ',this.mallPartnersList) this.total = response.total; this.loading = false; }); listCategory(this.queryParamss).then(responses => { - this.options = responses.rows; + this.options = responses.data.records; }); }, diff --git a/src/views/inspection/inspection/PartnerManagement/partnerApply.vue b/src/views/inspection/inspection/PartnerManagement/partnerApply.vue index e74e635..af0a5ed 100644 --- a/src/views/inspection/inspection/PartnerManagement/partnerApply.vue +++ b/src/views/inspection/inspection/PartnerManagement/partnerApply.vue @@ -183,7 +183,7 @@ getList() { this.loading = true; listDetail(this.queryParams).then(response => { - this.detailList = response.rows; + this.detailList = response.data.records; this.total = response.total; this.loading = false; }); diff --git a/src/views/inspection/inspection/PartnerManagement/siteInfo.vue b/src/views/inspection/inspection/PartnerManagement/siteInfo.vue index de2aaf4..eb6c0e3 100644 --- a/src/views/inspection/inspection/PartnerManagement/siteInfo.vue +++ b/src/views/inspection/inspection/PartnerManagement/siteInfo.vue @@ -198,7 +198,7 @@ getList() { this.loading = true; listInfo(this.queryParams).then(response => { - this.infoList = response.rows; + this.infoList = response.data.records; this.total = response.total; this.loading = false; }); diff --git a/src/views/inspection/inspection/fzRecord/fzList.vue b/src/views/inspection/inspection/fzRecord/fzList.vue index 3a333e5..cc27b88 100644 --- a/src/views/inspection/inspection/fzRecord/fzList.vue +++ b/src/views/inspection/inspection/fzRecord/fzList.vue @@ -134,7 +134,7 @@ getList() { this.loading = true; listFzRecord(this.queryParams).then(response => { - this.fzRecordList = response.rows; + this.fzRecordList = response.data.records; this.total = response.total; this.loading = false; }); diff --git a/src/views/inspection/inspectionGoods/index.vue b/src/views/inspection/inspectionGoods/index.vue index edbd6d9..e55854b 100644 --- a/src/views/inspection/inspectionGoods/index.vue +++ b/src/views/inspection/inspectionGoods/index.vue @@ -122,11 +122,11 @@ - - - - - + + + + + + +