Commit 13c4f54b by liwk

commit

1 parent c08202ee
......@@ -12,6 +12,7 @@ const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []
params.v = '1.0.0'
params.format = 'json'
params.locale = 'zh_CN'
console.log('开始')
let data = sign(params, noSignAttr)
return GlAxios.post('router', data)
}
......
......@@ -50,13 +50,21 @@ var mixin = {
}
})
connection.promise.then(parent => {
const cfg = _this.$get_session_config()
if (cfg) return
// const cfg = _this.$get_session_config()
// if (cfg) return
parent.getResources().then(config => {
_this.$set_session_config(config)
_this.init()
})
})
}
},
methods: {
init() {
this.$children[0].flag = true
this.$children[0].init()
}
},
}
const URL = 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
......@@ -66,7 +74,6 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => {
xhr.onreadystatechange = () => {
if (xhr.readyState === 4 && xhr.status === 200) {
let config = JSON.parse(xhr.responseText)
window.localStorage.setItem('GLSX_OSS_EQUITY_CONFIG', xhr.responseText)
resolve({
'vue': Vue,
'config': config
......@@ -86,7 +93,6 @@ const render = App => {
render: h => h(App)
})
}
getConfig()
export default {
render,
getConfig
......
......@@ -44,10 +44,11 @@ export default {
}
},
mounted() {
this.getCarList()
},
methods: {
/**汽车权益列表 */
getCarList() {
carEquityManageApi.getCarList().then(({ data }) => {
......
......@@ -45,7 +45,7 @@ export default {
}
},
mounted() {
this.getCategoryList()
},
methods: {
/**获取商品分类列表 */
......
......@@ -152,6 +152,10 @@ export default {
},
methods: {
init () {
this.getCarList()
this.getCategoryList()
},
addEquity (type) {
this.dialogType = type
this.showDialog = true
......
......@@ -66,6 +66,7 @@
</div>
<div class="table-box">
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
......@@ -85,6 +86,7 @@ export default {
mixins: [searchMixin],
data () {
return {
flag: false,
statusList: [{
label: '已结算',
value: 0
......
......@@ -113,6 +113,7 @@
>刷新余额</el-button>
</div>
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
......@@ -137,6 +138,7 @@ export default {
mixins: [orderMixin, searchMixin],
data () {
return {
flag: false,
price: 0,
tableParams: {
listName: 'list',
......
......@@ -76,6 +76,7 @@
</div>
<div class="table-box">
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
......@@ -95,6 +96,7 @@ export default {
mixins: [searchMixin],
data () {
return {
flag: false,
statusList: [{
label: '已支付',
value: 1
......
......@@ -93,6 +93,7 @@
>新增商品</el-button>
</div>
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
......@@ -147,6 +148,7 @@ export default {
mixins: [searchMixin],
data () {
return {
flag: false,
brandNameList: [],
supplierList: [
{
......
......@@ -118,6 +118,7 @@
></el-tab-pane>
</el-tabs>
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
......@@ -148,6 +149,7 @@ export default {
data () {
return {
tabIndex: '',
flag: false,
tableParams: {
listName: 'list',
getListApi: orderApi.getOrderList,
......
......@@ -115,6 +115,7 @@
></el-tab-pane>
</el-tabs>
<d2-table
v-if="flag"
ref="table"
:searchForm="searchObj"
:tableParams="tableParams"
......@@ -144,6 +145,7 @@ export default {
mixins: [orderMixin, searchMixin],
data () {
return {
flag: false,
tabIndex: '',
tableParams: {
listName: 'list',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!