提交 acb1eccb 编写于 作者: bo.dang's avatar bo.dang

高级主管理员和设置背景图

上级 24a73710
......@@ -113,11 +113,13 @@
pageNum: 1,
pageSize: 10
},
roleType: null
}
},
mounted() {
// const { enterType, id } = this.$route.query;
this.circleId = vm.formData.id;
this.roleType = vm.formData.roleType;
this.initRange();
//Idtype:1,内部 2.外部
vm.idType = localStorage.getItem("storageIdType");
......@@ -271,11 +273,6 @@
}
let idType = localStorage.getItem("storageIdType");
console.log('administrativeIdItem', administrativeIdItem);
const highMainManager = localStorage.getItem('highMainManager');
const roleType = null;
if(this.highMainManager == "1"){
this.roleType = 4;
}
let req = {
circleId: this.circleId,
districtIds: administrativeIdItem,
......@@ -284,7 +281,7 @@
pageNo: this.formOrganization.pageNum,
pageSize: this.formOrganization.pageSize,
idType: idType,
roleType: roleType
roleType: this.roleType
};
openLoading(vm);
getMemberSelectOrgReq(req).then(res => {
......@@ -317,11 +314,6 @@
console.log(administrativeIdItem);
// let administrativeIdItem = "";
const highMainManager = localStorage.getItem('highMainManager');
const roleType = null;
if(this.highMainManager == "1"){
this.roleType = 4;
}
let req = {
circleId: this.circleId,
districtIds: administrativeIdItem,
......
......@@ -251,7 +251,7 @@
</div>
<el-form-item label="是否开启防录屏跑马灯">
<el-radio-group v-model="formData.canScreenCap" size="small">
<el-radio-group v-model="formData.antiScreenCap" size="small">
<el-radio label="0" :disabled="formData.liveStatus != 1 && formData.liveStatus != 2"></el-radio>
<el-radio label="1" :disabled="formData.liveStatus != 1 && formData.liveStatus != 2"></el-radio>
</el-radio-group>
......@@ -483,8 +483,8 @@
<el-form ref="setForm" :model="setForm">
<!--<input type="text" id="copyInput" class="hidden-input" />-->
<el-radio-group v-model="formData.backgroundImageId">
<div class="radio-background" v-for="(item, index) in formData.backgroundImages" :key="index">
<el-radio-group v-model="formData.backgroundImageIdTemp">
<div class="radio-background" v-for="(item, index) in formData.backgroundImages" :key="index" v-if="index < 5">
<el-radio :label="item.backgroundImageId"></el-radio>
<img class="background-img" :src="item.imageUrl" />
</div>
......@@ -505,6 +505,12 @@
<!--<img class="background-img" src="https://test1-file.yunqueyi.com/image/png/protal/project/20200720152355168.png" />-->
<!--</div>-->
</el-radio-group>
<el-radio-group v-model="formData.backgroundImageIdTemp" v-if="formData.backgroundImages && formData.backgroundImages.length > 5">
<div class="radio-background" v-for="(item, index) in formData.backgroundImages" :key="index" v-if="index > 4">
<el-radio :label="item.backgroundImageId"></el-radio>
<img class="background-img" :src="item.imageUrl" />
</div>
</el-radio-group>
<!--<el-radio-group>-->
<!--<div class="radio-background">-->
<!--<el-radio :label="3"></el-radio>-->
......@@ -629,8 +635,9 @@
rtcId: "",
},
canScreenCap: "0",
backgroundImageId: null
antiScreenCap: "0",
backgroundImageId: null,
backgroundImageIdTemp: null
},
introTextNum: 0,
rtcIntroducesText:[],
......@@ -1458,7 +1465,8 @@
this.changeStreamType();
this.formData.scope = String(this.formData.scope);
this.formData.canScreenCap = String(this.formData.canScreenCap);
this.formData.antiScreenCap = String(this.formData.antiScreenCap);
this.formData.backgroundImageIdTemp = String(this.formData.backgroundImageId);
if(this.formData.scope == "2"){
this.isCollectShow = true;
}
......@@ -1655,9 +1663,9 @@
// 提交设置背景图
submitBackground(){
this.dialogVisible = false;
this.formData.backgroundImageId = this.formData.backgroundImageIdTemp;
},
handleClose(){
this.dialogVisible = false;
},
......
......@@ -58,7 +58,8 @@
imgUrl2More: {},
introduce: '',
dynamicFlag: '',
idType: localStorage.getItem("storageIdType")
idType: localStorage.getItem("storageIdType"),
roleType: null
}
}
},
......@@ -66,9 +67,12 @@
vm = this;
// 根据ID是否有值判断编辑还是create
// debugger
const { enterType, id } = this.$route.query;
const { enterType, id, roleType } = this.$route.query;
this.id = id;
this.enterType = enterType;
this.roleType = roleType;
this.formData.roleType = this.roleType;
//edit
if (this.enterType == 2 && this.id != null) {
......
......@@ -283,7 +283,8 @@ export default {
path: `/create-range?enterType`,
query:{
id:row.id,
enterType:enterType
enterType:enterType,
roleType: row.roleId
}
})
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册