提交 d20d9c47 编写于 作者: kai.wang's avatar kai.wang

Merge branch 'dev-circle-nine-20201231' of...

Merge branch 'dev-circle-nine-20201231' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-circle-nine-20201231
...@@ -70,6 +70,7 @@ export const removeDoc = (params) => { ...@@ -70,6 +70,7 @@ export const removeDoc = (params) => {
method: 'post', method: 'post',
data: params, data: params,
description: '后台管理--专区活动成员移除', description: '后台管理--专区活动成员移除',
withCredentials: true
}) })
}; };
......
...@@ -57,8 +57,9 @@ export const delPlaza = (params) => { ...@@ -57,8 +57,9 @@ export const delPlaza = (params) => {
headers, headers,
url: getBaseUrl(`circle/sso/square/remove`), url: getBaseUrl(`circle/sso/square/remove`),
method: 'delete', method: 'delete',
data: params, params: params,
description: '后台管理--广场内专区移除', description: '后台管理--广场内专区移除',
withCredentials: true
}) })
}; };
...@@ -74,10 +75,10 @@ export const getPlaza = (params) => { ...@@ -74,10 +75,10 @@ export const getPlaza = (params) => {
}) })
}; };
export const getSelectPlazaList = () => { export const getSelectPlazaList = (params) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`circle/sso/square/circle/list`), url: getBaseUrl(`circle/sso/square/circle/list/${params.businessId}`),
method: 'get', method: 'get',
description: '后台管理--待选专区列表', description: '后台管理--待选专区列表',
}) })
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-select multiple :multiple-limit="5" <el-select multiple :multiple-limit="5"
v-model="searchForm.diseaseIdList" v-model="searchForm.diseaseIdList"
id="statusSelector" id="statusSelector"
placeholder="请选择发布状态" placeholder="请选择疾病标签"
clearable clearable
style="margin-left:20px;height: 32px;line-height: 32px;" style="margin-left:20px;height: 32px;line-height: 32px;"
> >
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-select multiple :multiple-limit="5" <el-select multiple :multiple-limit="5"
v-model="searchForm.deptIdList" v-model="searchForm.deptIdList"
id="statusSelector" id="statusSelector"
placeholder="请选择发布状态" placeholder="请选择科室标签"
clearable clearable
style="margin-left:20px;height: 32px;line-height: 32px;" style="margin-left:20px;height: 32px;line-height: 32px;"
> >
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<el-select multiple :multiple-limit="5" <el-select multiple :multiple-limit="5"
v-model="searchForm.subjectIdList" v-model="searchForm.subjectIdList"
id="statusSelector" id="statusSelector"
placeholder="请选择发布状态" placeholder="请选择学科标签"
clearable clearable
style="margin-left:20px;height: 32px;line-height: 32px;" style="margin-left:20px;height: 32px;line-height: 32px;"
> >
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
</div> </div>
<el-dialog <el-dialog
title="添加专区" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="700px" width="700px"
:close-on-click-modal="false" :close-on-click-modal="false"
...@@ -305,9 +305,9 @@ ...@@ -305,9 +305,9 @@
plazaForm: { plazaForm: {
id:'', id:'',
businessId: "", businessId: "",
deptIdList: [], diseaseTagIds: [],
diseaseIdList: [], deptTagIds: [],
subjectIdList: [] subjectTagIds: []
}, },
disabledOpenFlag: false, // 开启回放是否可点 disabledOpenFlag: false, // 开启回放是否可点
downloadVideoFlag: true,// 拉流直播不显示下载 downloadVideoFlag: true,// 拉流直播不显示下载
...@@ -345,7 +345,8 @@ ...@@ -345,7 +345,8 @@
deptList: [], deptList: [],
subjectList: [], subjectList: [],
selectPlazaList: [], selectPlazaList: [],
editFlag: false editFlag: false,
title: "",
}; };
}, },
props:{ props:{
...@@ -397,8 +398,11 @@ ...@@ -397,8 +398,11 @@
}, },
getSelectPlazaList(){ getSelectPlazaList(businessId){
getSelectPlazaList().then(res => { let params = {
businessId: businessId
};
getSelectPlazaList(params).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
vm.selectPlazaList = res.data; vm.selectPlazaList = res.data;
} }
...@@ -410,20 +414,19 @@ ...@@ -410,20 +414,19 @@
this.getPlazaList("", ""); this.getPlazaList("", "");
}, },
resetForm() { resetForm() {
console.log("重置alex"); vm.searchForm.squareName = "";
// this.$router.push({ vm.searchForm.deptIdList = [];
// path: '/role-manage', vm.searchForm.diseaseIdList = [];
// }) vm.searchForm.subjectIdList = [];
this.searchForm.liveName = "";
this.searchForm.liveStatus = "";
this.search(); this.search();
}, },
//添加专区 //添加专区
createPlaza() { createPlaza() {
vm.plazaForm.businessId = ""; vm.plazaForm.businessId = "";
vm.dialogVisible = true; vm.dialogVisible = true;
vm.title = "添加专区";
vm.editFlag = false; vm.editFlag = false;
vm.getSelectPlazaList(); vm.getSelectPlazaList(0);
}, },
...@@ -601,10 +604,6 @@ ...@@ -601,10 +604,6 @@
editPlaza(row) { editPlaza(row) {
vm.editFlag = true; vm.editFlag = true;
vm.plazaForm.id = row.id; vm.plazaForm.id = row.id;
// vm.plazaForm.businessId = row.businessId;
if(vm.selectPlazaList.length == 0){
vm.getSelectPlazaList();
}
let params = { let params = {
id:row.id id:row.id
} }
...@@ -614,7 +613,8 @@ ...@@ -614,7 +613,8 @@
if(res.code == "000000") { if(res.code == "000000") {
vm.dialogVisible = true; vm.dialogVisible = true;
vm.plazaForm = res.data; vm.plazaForm = res.data;
vm.plazaForm.diseaseIdList = [780,781]; vm.title = "编辑专区";
vm.getSelectPlazaList(vm.plazaForm.businessId);
} else { } else {
this.$message.error("添加失败,请重试"); this.$message.error("添加失败,请重试");
} }
...@@ -625,32 +625,24 @@ ...@@ -625,32 +625,24 @@
}, },
//删除专区 //删除专区
delPlaza(row) { delPlaza(row) {
this.$confirm(`移除专区后,用户将无法在广场中看到,但不会删除专区本身,确定移除?`, "", {
// 直播中
if(row.liveStatus == 2){
vm.$message({
type: "warning",
message: "直播中无法删除,请直播结束后重试"
});
}
// 1:直播预告;4:直播结束后,可以删除
else if(row.liveStatus == 1 || row.liveStatus == 4){
this.$confirm(`确定删除“${row.name}”吗?`, "", {
confirmButtonText: "删除", confirmButtonText: "删除",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
// customClass: 'range-make-box', // customClass: 'range-make-box',
}) })
.then(() => { .then(() => {
let params = {
id: row.id
}
// confirm // confirm
vm.DELETE("rtc/liveAdmin/" + row.id, {}).then(res => { delPlaza(params).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
vm.$message({ vm.$message({
type: "success", type: "success",
message: "删除成功" message: "删除成功"
}); });
this.getLiveList("", ""); this.getPlazaList("", "");
} else { } else {
vm.$message({ vm.$message({
type: "warning", type: "warning",
...@@ -660,10 +652,6 @@ ...@@ -660,10 +652,6 @@
}); });
}) })
.catch(() => {}); .catch(() => {});
}
}, },
// //编辑直播 // //编辑直播
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册