Commit 920d5425 by crushh

update: dist

parent 22ccf6c1
......@@ -80,9 +80,6 @@ Vue.axios.interceptors.response.use(
}
return data;
}
if (data && data.result && data.result.pageInfo) {
data.result.pageInfo.total = Number(data.result.pageInfo.total);
}
return data;
},
err => {
......
......@@ -188,8 +188,9 @@ export default {
postJsonRequest('/haoban-manage3-web/welcome/list', { ...this.form, wxEnterpriseId: this.wxEnterpriseId, type: this.type })
.then(res => {
let resData = res.data;
console.log(resData);
if (resData.code == 0 && resData.result) {
this.tableData = resData.result.list;
this.tableData = resData.result.result;
this.tableData.forEach(item => {
item.suitDepartmentName = [];
if (item.suitDepartmentList && item.suitDepartmentList.length) {
......@@ -198,7 +199,7 @@ export default {
});
}
});
this.total = Number(resData.result.pageInfo.total);
this.total = resData.result.totalCount;
this.$nextTick(() => {
const span = document.createElement('span');
span.style.position = 'fixed';
......
......@@ -127,10 +127,10 @@ export default {
this.loading = true;
guidePageList(param)
.then(res => {
const { result } = res.data;
const { result, totalCount } = res.data.result;
if (result) {
this.total = result.pageInfo.total;
this.list = result.list;
this.total = totalCount;
this.list = result;
}
})
.finally(_ => {
......@@ -155,9 +155,9 @@ export default {
},
deleteTemp(item) {
guidePageRelation({ pageId: item.pageId }).then(res => {
const { result } = res.data;
if (result.list && result.list.length) {
this.$confirm(`当前模板已关联链接(${result.pageInfo.total}),请确认投放链接已投放结束,取消关联后才可删除该模板`, '无法删除该模板', {
const { totalCount } = res.data.result;
if (totalCount) {
this.$confirm(`当前模板已关联链接(${totalCount}),请确认投放链接已投放结束,取消关联后才可删除该模板`, '无法删除该模板', {
confirmButtonText: '关联详情',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -31,7 +31,7 @@ export default {
pageSize: 20
},
loading: false,
total: 50,
total: 0,
tableData: []
};
},
......@@ -61,11 +61,10 @@ export default {
this.loading = true;
guidePageRelation(this.form)
.then(res => {
console.log(res);
const { result } = res.data;
const { totalCount, result } = res.data.result;
if (result) {
this.total = result.pageInfo.total;
this.tableData = result.list;
this.total = totalCount;
this.tableData = result;
}
})
.finally(_ => {
......
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