Commit 6262cb00 by weix

修改bug

parent 4f10ff57
......@@ -28,7 +28,7 @@ export default {
await this.$store.dispatch('user/PlatformCode')
await this.mustFun();
/** 测试环境需要解注 */
// await this.getEnvironment();
await this.getEnvironment();
},
mounted () {
console.log(process.env.VUE_APP_BASE_API5)
......@@ -143,4 +143,9 @@ export default {
margin-bottom: 0;
}
}
.pagination {
margin-top: 16px;
text-align: right;
}
</style>
......@@ -38,29 +38,23 @@
</el-option>
</el-select>
</div>
<div v-if="selectResult.pageLocation == 1" class="rotationIndex">
<div class="rotationIndex">
<img
v-if="selectResult.pageLocationOrder == 1"
src="@/assets/img/rotation-rigthgg.jpg"
v-if="selectResult.pageLocation == 1"
src="@/assets/img/rotation-rigthgg.png"
alt=""
/>
<img
v-if="selectResult.pageLocationOrder == 2"
src="@/assets/img/rotation-wzgg.jpg"
v-if="selectResult.pageLocation == 2"
src="@/assets/img/rotation-wzgg.png"
alt=""
/>
<img
v-if="selectResult.pageLocationOrder == 3"
src="@/assets/img/rotation-ddxq.jpg"
v-if="selectResult.pageLocation == 3"
src="@/assets/img/rotation-ddxq.png"
alt=""
/>
</div>
<div v-if="selectResult.pageLocation == 3" class="rotationIndex">
<img src="@/assets/img/rotation-ddxq.jpg" alt=""/>
</div>
<div v-if="selectResult.pageLocation == 2" class="rotationIndex">
<img src="@/assets/img/rotation-home.jpg" alt=""/>
</div>
</el-card>
</el-aside>
<el-main>
......@@ -133,7 +127,8 @@
justify="space-between"
>
<el-col :span="24">
<el-form-item label="模块图片:" prop="pictureUrl">
<el-form-item label="模块图片:" prop="pictureUrl" class="picture-url-item"
style="width: 100%">
<el-upload
class="avatar-uploader"
list-type="picture-card"
......@@ -145,21 +140,31 @@
name="image"
:on-success="photoUrlSuccess"
>
<img
v-if="ruleForm.pictureUrl"
<el-image
:src="ruleForm.pictureUrl"
lazy
class="avatar"
/>
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
>
<div slot="error" class="image-slot">
<i class="el-icon-plus avatar-uploader-icon"></i>
</div>
</el-image>
<!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>-->
</el-upload>
<div style="width: 100%;">
<span class="prompt"
v-if="selectResult.pageLocationOrder == 1"
>只能上传1张,支持jpg/png文件,建议图片比例为1:1(其他比例图片上传后将会影响展示效果)</span
>只能上传1张,支持jpg/png文件,建议图片比例为2:1(其他比例图片上传后将会影响展示效果)</span
>
<span class="prompt"
v-if="selectResult.pageLocationOrder != 1"
>只能上传1张,支持jpg/png文件,建议图片比例为5:1(其他比例图片上传后将会影响展示效果)</span
v-if="selectResult.pageLocationOrder == 2"
>只能上传1张,支持jpg/png文件,建议图片大小为359px*90px(其他比例图片上传后将会影响展示效果)</span
>
<span class="prompt"
v-if="selectResult.pageLocationOrder == 3"
>只能上传1张,支持jpg/png文件,建议图片大小为359px*100px(其他比例图片上传后将会影响展示效果)</span
>
</div>
<!-- <span class="prompt"
>只能上传1张,支持jpg/png文件,{{
selectResult.pageLocation == 1
......@@ -179,23 +184,27 @@
<!-- >全部-->
<!-- </el-button>-->
<el-select
v-model="ruleForm.codeList"
multiple
collapse-tags
placeholder="选择区域"
:disabled="checked"
>
<el-option
v-for="item in restaurants"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-cascader clearable v-model="ruleForm.codeList" :disabled="checked"
:show-all-levels="false" style="width: 100%;max-width: 221px;"
:props="props"></el-cascader>
<!-- <el-select-->
<!-- v-model="ruleForm.codeList"-->
<!-- multiple-->
<!-- collapse-tags-->
<!-- placeholder="选择区域"-->
<!-- :disabled="checked"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in restaurants"-->
<!-- :key="item.value"-->
<!-- :label="item.label"-->
<!-- :value="item.value"-->
<!-- >-->
<!-- </el-option>-->
<!-- </el-select>-->
<el-checkbox style="margin-left: 10px;" v-model="checked" @change="changeCodeList">全选
<el-checkbox style="margin-left: 10px;" :disabled="selectResult.pageLocation == 1"
v-model="checked" @change="changeCodeList">全选
</el-checkbox>
<!-- <div class="prompt">
说明:若页面跳转关联至活动,则展示区域以活动设置的展示区域为准
......@@ -297,6 +306,9 @@ import {
} from "@/port/set-request";
import {addCarousel} from "@/port/pass/pass";
import {
getAllprovinceAndCity,
} from "@/port/set-request";
import {
getRegionManageList,
} from '@/port/region/regionManage';
......@@ -304,6 +316,34 @@ export default {
name: "paddDetail",
data() {
return {
props: {
checkStrictly: true,
lazy: true,
lazyLoad(node, resolve) {
const {level} = node
console.log(node)
let parent
if (level == 0) {
parent = 100000
} else {
parent = node.value
}
getAllprovinceAndCity(parent).then(res => {
if (res.status == 200) {
let list = res.data
const nodes = list.map(item => {
return {
value: item.id,
label: item.fullname,
leaf: level >= 2,
disabled: parent == 100000 ? true : false,
}
})
resolve(nodes)
}
})
}
},
checked: true,
configData: [],
UnderLineUpdata: {
......@@ -332,12 +372,12 @@ export default {
name: "顶部轮播图",
},
{
pid: "2",
pid: "3",
id: "2",
name: "中部轮播图",
},
{
pid: "3",
pid: "2",
id: "3",
name: "页底广告位",
},
......@@ -442,19 +482,36 @@ export default {
this.selectResult.pageLocationOrder = "1";
}
if (this.selectResult.pageLocation == 2) {
this.selectResult.pageLocationOrder = "2";
this.selectResult.pageLocationOrder = "3";
}
if (this.selectResult.pageLocation == 3) {
this.selectResult.pageLocationOrder = "3";
this.selectResult.pageLocationOrder = "2";
}
this.$refs["ruleForm"].resetFields();
// this.ruleForm = {
// positionIndex: "0",
// codeList: [],
// codeArry: ['000000'],
// activityName: "",
// insideJumpUrl: ""
// };
this.ruleForm = {
displayPage: "",
positionInPage: "",
modelName: "",
positionIndex: "0",
pictureUrl: "",
codeList: [],
codeArry: ['000000'],
activityId: "",
activityName: "",
areaBelongSrting: "",
pageJumpFlag: "",
pageJumpUrl: "",
pageJumpText: "",
otherType: 0,
insideJumpUrl: ""
};
},
this.interiorSkip = [
{
label: '邀请好友',
......@@ -749,7 +806,9 @@ export default {
photoUrlSuccess(response, file, fileList) {
let that = this;
if (file.response.status == 200) {
this.$nextTick(() => {
that.ruleForm.pictureUrl = file.response.data[0].url;
})
}
},
codeListReset() {
......@@ -760,6 +819,12 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep.picture-url-item {
.el-form-item__content {
width: 100%;
}
}
.title {
border-left: 5px solid #5692ff;
text-align: left;
......@@ -782,6 +847,7 @@ export default {
> img {
width: 100%;
margin-top: 10px;
height: 650px;
}
}
......
......@@ -147,6 +147,17 @@
</template>
</el-table-column>
</el-table>
<div class="pagination" v-if="total > 10">
<el-pagination
background
layout="prev, pager, next, jumper, total"
:current-page="page"
@current-change="current_change"
:total="total"
>
</el-pagination>
</div>
</el-card>
</template>
......@@ -196,6 +207,10 @@ export default {
await this.getAllData();
},
methods: {
current_change(page) {
this.page = page;
this.getAllData();
},
delRow(row) {
this.$confirm('是否删除', "提示", {
confirmButtonText: "确定",
......@@ -262,7 +277,7 @@ export default {
val = Number(val);
switch (val) {
case 1:
return "无跳转"
return "跳转链接"
case 2:
return "不跳转"
case 3:
......
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