Commit 671b4fdb by 周子尧

tijiao

1 parent aeb2b649
......@@ -31,7 +31,7 @@
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"node-sass": "^4.12.0",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
......
......@@ -19,7 +19,7 @@ module.exports = {
},
request: {
// baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL: 'scrm.dev.glsx.com.cn/',
baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -13,11 +13,11 @@ import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
// console.log(1111111)
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
// return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
......
......@@ -22,6 +22,7 @@
<div slot="giftInfo" slot-scope="scope">
<div>礼包明细</div>
<div>{{ scope.scope }}</div>
<GLTable ref="giftListRef" :getListApi="getGiftListApi" :hasNum="false" :noDataImg="url" :searchForm="giftSearchForm" :tableParams="giftParams" :pageConf="giftPageConf"></GLTable>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -92,6 +93,41 @@ export default {
}
]
},
//礼包表格
getGiftListApi: this.$apis.orderComment.getListApi,
giftParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '礼包明细',
prop: 'couponName'
},
{
label: '礼包数量',
name: 'discountType',
width: '100px',
formatter: cellValue => {
return 'X' + cellValue.numBer
}
},
{
label: '已核销',
prop: 'anticipatedCost ',
formatter: cellValue => {
return 'X' + cellValue.numBer
}
},
{
label: '可使用',
prop: 'getAmount',
formatter: cellValue => {
return 'X' + cellValue.numBer
}
}
]
},
giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 表格
getListApi: this.$apis.orderComment.getListApi,
tableParams: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!