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

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

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