Commit 6188c695 by weix

修改bug、修改新登录页相关问题

parent 6262cb00
...@@ -23,8 +23,8 @@ VUE_APP_BASE_API1 = 'https://apps.xoado.com' ...@@ -23,8 +23,8 @@ VUE_APP_BASE_API1 = 'https://apps.xoado.com'
VUE_APP_BASE_API2 = 'https://core.xoado.com' VUE_APP_BASE_API2 = 'https://core.xoado.com'
VUE_APP_BASE_API2_ = 'https://core.xoado.com' VUE_APP_BASE_API2_ = 'https://core.xoado.com'
VUE_APP_BASE_API3 = 'https://api.xoado.com' VUE_APP_BASE_API3 = 'https://api.xoado.com'
VUE_APP_BASE_API4 = 'https://hgxd.99zcx.com' VUE_APP_BASE_API4 = 'http://aitransport.xoado.com:8181'
VUE_APP_BASE_API5 = 'https://hgxd.99zcx.com/brand' VUE_APP_BASE_API5 = 'http://aitransport.xoado.com:8181/brand'
VUE_APP_BASE_API6 = 'https://projects.xoado.com/transport' VUE_APP_BASE_API6 = 'https://projects.xoado.com/transport'
VUE_APP_BASE_API7 = 'https://projects.xoado.com/operate' VUE_APP_BASE_API7 = 'https://projects.xoado.com/operate'
VUE_APP_BASE_API8 = 'https://projects.xoado.com/trace' VUE_APP_BASE_API8 = 'https://projects.xoado.com/trace'
......
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
await this.$store.dispatch('user/PlatformCode') await this.$store.dispatch('user/PlatformCode')
await this.mustFun(); await this.mustFun();
/** 测试环境需要解注 */ /** 测试环境需要解注 */
await this.getEnvironment(); // await this.getEnvironment();
}, },
mounted () { mounted () {
console.log(process.env.VUE_APP_BASE_API5) console.log(process.env.VUE_APP_BASE_API5)
......
...@@ -145,4 +145,4 @@ body { ...@@ -145,4 +145,4 @@ body {
} }
.el-input__suffix{ .el-input__suffix{
height: 32px; height: 32px;
} }
\ No newline at end of file
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<div></div> <div></div>
</div> </div>
<div> <div>
<Table v-if="flag" :config="config" @getData="getData" @orderClick="orderClick" <Table :config="config" @orderClick="orderClick"
@sortChange="sortChange"></Table> @sortChange="sortChange"></Table>
</div> </div>
<div class="bottom-part"> <div class="bottom-part">
...@@ -506,6 +506,7 @@ export default { ...@@ -506,6 +506,7 @@ export default {
await this.getOpenAreaListFun() await this.getOpenAreaListFun()
await this.getTransport() await this.getTransport()
await this.getOrderHeaders() await this.getOrderHeaders()
await this.getData()
}, },
methods: { methods: {
async getTransport() { async getTransport() {
...@@ -542,7 +543,7 @@ export default { ...@@ -542,7 +543,7 @@ export default {
await this.getData() await this.getData()
}, },
async getAllPlatform() { async getAllPlatform() {
await getplatformList().then((res) => { await getplatformList().then(async (res) => {
if (res.status == 200) { if (res.status == 200) {
res.data.forEach((element) => { res.data.forEach((element) => {
if(element.brandUrl) { if(element.brandUrl) {
...@@ -552,10 +553,10 @@ export default { ...@@ -552,10 +553,10 @@ export default {
}); });
} }
}); });
this.platform = this.platformList.length > 0 ? this.platformList[0].value : ''; this.platform = this.platformList.length > 0 ? this.platformList[0].value : '';
this.brandUrl = sessionStorage.getItem('test') ? '' : JSON.parse(this.platformList[0].value).brandUrl; this.brandUrl = sessionStorage.getItem('test') ? '' : JSON.parse(this.platformList[0].value).brandUrl;
this.plat = sessionStorage.getItem('test') ? '' : JSON.parse(this.platformList[0].value).platformId; this.plat = sessionStorage.getItem('test') ? '' : JSON.parse(this.platformList[0].value).platformId;
// await this.getData();
} }
}); });
}, },
...@@ -598,7 +599,7 @@ export default { ...@@ -598,7 +599,7 @@ export default {
* 获取自定义列表数据 * 获取自定义列表数据
* */ * */
async getOrderHeaders() { async getOrderHeaders() {
this.flag = false // this.flag = false
let json = { let json = {
key: this.$store.getters.platformId key: this.$store.getters.platformId
} }
...@@ -609,9 +610,9 @@ export default { ...@@ -609,9 +610,9 @@ export default {
headers: [], headers: [],
data: [] data: []
} }
let {data} = await getAllOrderList(json1) // let {data} = await getAllOrderList(json1)
obj.data = data.content; // obj.data = data.content;
this.total = data.total // this.total = data.total
await getOrderListData(json).then(res => { await getOrderListData(json).then(res => {
if (res.status == 200) { if (res.status == 200) {
let DataSource = res.data let DataSource = res.data
...@@ -642,20 +643,20 @@ export default { ...@@ -642,20 +643,20 @@ export default {
} else { } else {
this.config.data = obj.data this.config.data = obj.data
} }
this.flag = true // this.flag = true
console.log(this.config) console.log(this.config)
} else { } else {
this.config.data = obj.data this.config.data = obj.data
} }
}) })
this.loading = false this.loading = false
this.flag = true // this.flag = true
}, },
/** /**
* 存储自定义表头 * 存储自定义表头
* */ * */
async setHeaders(val) { async setHeaders(val) {
this.flag = false // this.flag = false
// val是传过来的头部数组信息 // val是传过来的头部数组信息
console.info(val) console.info(val)
let json = { let json = {
...@@ -681,7 +682,7 @@ export default { ...@@ -681,7 +682,7 @@ export default {
}) })
this.config.headers = NewArray this.config.headers = NewArray
this.$nextTick(() => { this.$nextTick(() => {
this.flag = true; // this.flag = true;
}) })
this.dialogVisible = false this.dialogVisible = false
}, },
...@@ -694,7 +695,9 @@ export default { ...@@ -694,7 +695,9 @@ export default {
async getData() { async getData() {
let json = this.selectResult; let json = this.selectResult;
json.pageVo.page = this.page; json.pageVo.page = this.page;
let {data} = await getAllOrderList(json, this.brandUrl, this.plat)
let that = this;
let {data} = await getAllOrderList(json, that.brandUrl, that.plat)
this.loading = false this.loading = false
this.config.data = [] this.config.data = []
this.config.data = data.content this.config.data = data.content
......
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
alt="" alt=""
/> />
<img <img
v-if="selectResult.pageLocation == 2" v-if="selectResult.pageLocation == 3"
src="@/assets/img/rotation-wzgg.png" src="@/assets/img/rotation-wzgg.png"
alt="" alt=""
/> />
<img <img
v-if="selectResult.pageLocation == 3" v-if="selectResult.pageLocation == 2"
src="@/assets/img/rotation-ddxq.png" src="@/assets/img/rotation-ddxq.png"
alt="" alt=""
/> />
...@@ -464,12 +464,17 @@ export default { ...@@ -464,12 +464,17 @@ export default {
async created() { async created() {
// await this.getAllDatas(); // await this.getAllDatas();
// await this.getEligible(); // await this.getEligible();
await this.getAllOpendAreaListFun(); // await this.getAllOpendAreaListFun();
this.headers = { this.headers = {
XOADOAPPACCESSCODE: this.$store.state.user.code, XOADOAPPACCESSCODE: this.$store.state.user.code,
XOADOTOKENID: this.$store.state.user.token, XOADOTOKENID: this.$store.state.user.token,
XOADOPLATFORMID: this.$store.getters.platformId, XOADOPLATFORMID: this.$store.getters.platformId,
}; };
console.log('==================================')
console.log(this.$store.state.user.code)
console.log(this.$store.state.user.token)
console.log(this.$store.getters.platformId)
console.log('----------------------------------')
}, },
methods: { methods: {
changeCodeList(val) { changeCodeList(val) {
...@@ -745,6 +750,7 @@ export default { ...@@ -745,6 +750,7 @@ export default {
// pageJumpUrl: this.ruleForm.pageJumpFlag == 1 ? this.ruleForm.pageJumpUrl : this.ruleForm.insideJumpUrl, // pageJumpUrl: this.ruleForm.pageJumpFlag == 1 ? this.ruleForm.pageJumpUrl : this.ruleForm.insideJumpUrl,
// pageJumpText: this.ruleForm.pageJumpText, // pageJumpText: this.ruleForm.pageJumpText,
// }; // };
debugger
let json = { let json = {
"platformId": this.$store.getters.platformId,// (平台ID) "platformId": this.$store.getters.platformId,// (平台ID)
"displayPage": this.selectResult.pageLocation,// (展示页面) "displayPage": this.selectResult.pageLocation,// (展示页面)
...@@ -752,7 +758,7 @@ export default { ...@@ -752,7 +758,7 @@ export default {
"modelName": this.ruleForm.modelName,// (广告模块名称) "modelName": this.ruleForm.modelName,// (广告模块名称)
"positionIndex": this.ruleForm.positionIndex,// (位数) "positionIndex": this.ruleForm.positionIndex,// (位数)
"pictureUrl": this.ruleForm.pictureUrl, "pictureUrl": this.ruleForm.pictureUrl,
"areaBelong": this.checked ? ['000000'] : this.ruleForm.codeList,//(配置的区域) "areaBelong": this.checked ? ['000000'] : [this.ruleForm.codeList[this.ruleForm.codeList.length - 1]+''],//(配置的区域)
"activityId": this.ruleForm.activityId,// (关联的活动Id) "activityId": this.ruleForm.activityId,// (关联的活动Id)
"activityName": this.ruleForm.activityName,// (关联的活动名称) "activityName": this.ruleForm.activityName,// (关联的活动名称)
"pageJumpFlag": this.ruleForm.pageJumpFlag,// (跳转标记) "pageJumpFlag": this.ruleForm.pageJumpFlag,// (跳转标记)
......
...@@ -129,11 +129,11 @@ ...@@ -129,11 +129,11 @@
<div v-if="false">/</div> <div v-if="false">/</div>
<el-switch <el-switch
v-else v-else
v-model="row.operationStats" v-model="row.isOnline"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
:active-value="'1'" :active-value="1"
:inactive-value="'0'" :inactive-value="0"
@change="operatingStatuct(row)" @change="operatingStatuct(row)"
> >
</el-switch> </el-switch>
...@@ -256,13 +256,14 @@ export default { ...@@ -256,13 +256,14 @@ export default {
*弹窗开关切换 *弹窗开关切换
* **/ * **/
async operatingStatuct(val) { async operatingStatuct(val) {
debugger
let {data, status} = await upOrDown({}, val.advertId, val.isOnline); let {data, status} = await upOrDown({}, val.advertId, val.isOnline);
if (status == 200) { if (status == 200) {
this.$message.success("操作成功"); this.$message.success("操作成功");
} else { } else {
val.operationStats == "0" val.isOnline == "0"
? (val.operationStats = "1") ? (val.isOnline = "1")
: (val.operationStats = "0"); : (val.isOnline = "0");
this.$confirm(data, "提示", { this.$confirm(data, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
......
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