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)
......
...@@ -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
......
<template> <template>
<div class="ForgetPassword">
<el-dialog <el-dialog
:visible.sync="AuthenticationShow" :visible.sync="AuthenticationShow"
:close-on-click-modal="false" :close-on-click-modal="false"
...@@ -23,13 +22,15 @@ ...@@ -23,13 +22,15 @@
<div style="position: relative"> <div style="position: relative">
<el-input v-model="password" maxlength="6" placeholder="请输入密码" label="密码" <el-input v-model="password" maxlength="6" placeholder="请输入密码" label="密码"
style="display: inline-block"></el-input> style="display: inline-block"></el-input>
<el-button style="display: inline-block" @click="Yanzheng" class="YanzhengBtn" :disabled="Btndisabled"> <el-button style="display: inline-block" @click="Yanzheng" class="YanzhengBtn"
:disabled="Btndisabled">
{{smscontent}} {{smscontent}}
</el-button> </el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item prop="password" v-if="passwordShow" class="PassWord" label="设置密码"> <el-form-item prop="password" v-if="passwordShow" class="PassWord" label="设置密码">
<el-input type="password" maxlength="16" placeholder="请输入密码" style="height: 46px" v-model="newpassword" <el-input type="password" maxlength="16" placeholder="请输入密码" style="height: 46px"
v-model="newpassword"
@keyup.enter.native="submitForm('ruleForm')"> @keyup.enter.native="submitForm('ruleForm')">
<i slot="suffix" class="el-icon-view" @click="changePass('show')"></i> <i slot="suffix" class="el-icon-view" @click="changePass('show')"></i>
</el-input> </el-input>
...@@ -59,7 +60,6 @@ ...@@ -59,7 +60,6 @@
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
</div>
</template> </template>
<script> <script>
...@@ -257,12 +257,15 @@ ...@@ -257,12 +257,15 @@
.ForgetPassword { .ForgetPassword {
width: 100%; width: 100%;
height: 100%; height: 100%;
.el-dialog__header, .el-dialog__body { .el-dialog__header, .el-dialog__body {
padding: 0; padding: 0;
} }
.el-dialog { .el-dialog {
width: 482px; width: 482px;
} }
.AuthenticationTop { .AuthenticationTop {
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;
...@@ -270,10 +273,12 @@ ...@@ -270,10 +273,12 @@
padding-top: 28px; padding-top: 28px;
padding-bottom: 24px; padding-bottom: 24px;
} }
.AuthenticationTosat { .AuthenticationTosat {
width: 100%; width: 100%;
height: 30px; height: 30px;
background: #fdf4e3; background: #fdf4e3;
span { span {
display: inline-block; display: inline-block;
width: 22px; width: 22px;
...@@ -283,6 +288,7 @@ ...@@ -283,6 +288,7 @@
vertical-align: middle; vertical-align: middle;
margin-left: 25px; margin-left: 25px;
} }
p { p {
font-size: 12px; font-size: 12px;
line-height: 30px; line-height: 30px;
...@@ -291,12 +297,15 @@ ...@@ -291,12 +297,15 @@
color: #ff8622; color: #ff8622;
} }
} }
.AuthenticationBoxSection { .AuthenticationBoxSection {
margin-left: 10px; margin-left: 10px;
margin-top: 50px; margin-top: 50px;
.AuthenticationTitle { .AuthenticationTitle {
height: 20px; height: 20px;
margin-bottom: 30px; margin-bottom: 30px;
span { span {
display: inline-block; display: inline-block;
width: 2px; width: 2px;
...@@ -304,6 +313,7 @@ ...@@ -304,6 +313,7 @@
background: #0487fd; background: #0487fd;
vertical-align: middle; vertical-align: middle;
} }
p { p {
vertical-align: middle; vertical-align: middle;
height: 100%; height: 100%;
...@@ -313,13 +323,16 @@ ...@@ -313,13 +323,16 @@
line-height: 20px; line-height: 20px;
} }
} }
.el-input--small { .el-input--small {
width: 350px; width: 350px;
height: 40px; height: 40px;
} }
.el-input--small .el-input__inner { .el-input--small .el-input__inner {
height: 40px; height: 40px;
} }
.YanzhengBtn { .YanzhengBtn {
border: none; border: none;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
...@@ -327,24 +340,27 @@ ...@@ -327,24 +340,27 @@
line-height: 2px; line-height: 2px;
position: absolute; position: absolute;
right: 30px; right: 30px;
top: 10px; top: 8px;
color: #7093ef; color: #7093ef;
} }
.AuthenticationTopBoxFooter { .AuthenticationTopBoxFooter {
padding-top: 20px; padding-top: 20px;
padding-bottom: 60px; padding-bottom: 60px;
text-align: center; text-align: center;
.AuthenticationTopBoxFooterBtn { .AuthenticationTopBoxFooterBtn {
width: 110px; padding: 10px 30px;
height: 30px; /*width: 110px;*/
margin: 0 auto; /*height: 30px;*/
/*margin: 0 auto;*/
} }
} }
} }
} }
::v-deep{ ::v-deep {
.el-button{ .el-button {
padding: 0; padding: 0;
} }
} }
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
icon="el-icon-plus" icon="el-icon-plus"
size="small" size="small"
@click="$refs.addDialog.showDialog({})" @click="$refs.addDialog.showDialog({})"
>新增原因</el-button >新增原因
</el-button
> >
</div> </div>
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
<el-table-column label="图标" align="center" width="120"> <el-table-column label="图标" align="center" width="120">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-avatar :size="50" shape="square"> <el-avatar :size="50" shape="square">
<img :src="row.labelImgurl" /> <img :src="row.labelImgurl"/>
</el-avatar> </el-avatar>
</template> </template>
</el-table-column> </el-table-column>
...@@ -44,10 +45,12 @@ ...@@ -44,10 +45,12 @@
<el-table-column label="操作" align="center" width="120"> <el-table-column label="操作" align="center" width="120">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" @click="$refs.addDialog.showDialog({ row })" <el-button type="text" @click="$refs.addDialog.showDialog({ row })"
>编辑</el-button >编辑
</el-button
> >
<el-button type="text" style="color: red" @click="DELcondition(row)" <el-button type="text" style="color: red" @click="DELcondition(row)"
>删除</el-button >删除
</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
...@@ -71,9 +74,10 @@ ...@@ -71,9 +74,10 @@
</template> </template>
<script> <script>
import { conditionList, delconditionList } from "@/port/set-request"; import {conditionList, delconditionList} from "@/port/set-request";
import addDialog from "./componenets/disposition/addDialog"; import addDialog from "./componenets/disposition/addDialog";
export default {
export default {
name: "disposition", name: "disposition",
data() { data() {
return { return {
...@@ -131,7 +135,7 @@ export default { ...@@ -131,7 +135,7 @@ export default {
}) })
.then(() => { .then(() => {
this.tableLoading = true; this.tableLoading = true;
let json = { labelId: row.id }; let json = {labelId: row.id};
delconditionList(json).then((res) => { delconditionList(json).then((res) => {
if (res.status == 200) { if (res.status == 200) {
this.$message({ this.$message({
...@@ -153,35 +157,37 @@ export default { ...@@ -153,35 +157,37 @@ export default {
}); });
}); });
}, },
tableRowStyle({ row, rowIndex }) { tableRowStyle({row, rowIndex}) {
if (rowIndex % 2 !== 0) { if (rowIndex % 2 !== 0) {
return { "background-color": "#e3f4ff" }; return {"background-color": "#e3f4ff"};
} }
}, },
// table变色,头 // table变色,头
tableHeaderColor({ row, column, rowIndex, columnIndex }) { tableHeaderColor({row, column, rowIndex, columnIndex}) {
return { "background-color": "#0099ff", color: "#ffffff" }; return {"background-color": "#0099ff", color: "#ffffff"};
}, },
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.search-form { .search-form {
margin: 5px 0 5px 0; margin: 5px 0 5px 0;
.el-form-item { .el-form-item {
margin-bottom: 5px; margin-bottom: 5px;
} }
} }
.pagination {
.pagination {
margin-top: 16px; margin-top: 16px;
text-align: right; text-align: right;
} }
.itemBtn {
.itemBtn {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
margin: 10px 0; margin: 10px 0;
} }
</style> </style>
...@@ -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