提交 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: '后台管理--待选专区列表',
}) })
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
<!--</el-upload>--> <!--</el-upload>-->
</el-col> </el-col>
<el-col class="organization-search"> <el-col class="organization-search">
<el-form :inline="true" :model="formOrganization" class="demo-form-inline" > <el-form :inline="true" :model="memberForm" class="demo-form-inline" >
<el-form-item label="机构:"> <el-form-item label="机构:">
<el-input style="width:140px;" size="small" v-model="formOrganization.orgName" placeholder="请输入机构名称"></el-input> <el-input style="width:140px;" size="small" v-model="memberForm.hospitalName" placeholder="请输入机构名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="姓名:"> <el-form-item label="姓名:">
<el-input style="width:140px;" size="small" v-model="formOrganization.name" placeholder="请输入人员姓名"></el-input> <el-input style="width:140px;" size="small" v-model="memberForm.doctorName" placeholder="请输入人员姓名"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button size="small" type="primary" @click="serch()">搜索</el-button> <el-button size="small" type="primary" @click="serch()">搜索</el-button>
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
</el-form> </el-form>
</el-col> </el-col>
</el-row> </el-row>
<el-table class="rim" ref="multipleOrganization" :data="peoplesDtoList" tooltip-effect="dark" style="width: 100%"> <el-table class="rim" ref="multipleOrganization" :data="activityDoctorModelList" tooltip-effect="dark" style="width: 100%">
<el-table-column prop="name" label="人员" min-width="100" align="center"></el-table-column> <el-table-column prop="doctorName" label="人员" min-width="100" align="center"></el-table-column>
<el-table-column prop="department" label="所属科室" align="center"></el-table-column> <el-table-column prop="departmentName" label="所属科室" align="center"></el-table-column>
<el-table-column prop="hospital" label="所属医院" align="center"></el-table-column> <el-table-column prop="hospitalName" label="所属医院" align="center"></el-table-column>
<el-table-column prop="provinceName" label="所属省份" align="center"></el-table-column> <el-table-column prop="provinceName" label="所属省份" align="center"></el-table-column>
<el-table-column prop="cityName" label="所属城市" align="center"></el-table-column> <el-table-column prop="cityName" label="所属城市" align="center"></el-table-column>
<el-table-column prop="countyName" label="所属区县" align="center"></el-table-column> <el-table-column prop="countyName" label="所属区县" align="center"></el-table-column>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</el-table> </el-table>
<div class="pagination"> <div class="pagination">
<el-pagination background @size-change="handleSizeOrganization" @current-change="handleCurrentOrganization" <el-pagination background @size-change="handleSizeOrganization" @current-change="handleCurrentOrganization"
:current-page="formOrganization.pageNum" :page-sizes="[10, 30, 50, 100, 200]" :page-size="formOrganization.pageSize" :current-page="memberForm.pageNum" :page-sizes="[10, 30, 50, 100, 200]" :page-size="memberForm.pageSize"
layout="total, sizes, prev, pager, next, jumper" :total="totalPeople"></el-pagination> layout="total, sizes, prev, pager, next, jumper" :total="totalPeople"></el-pagination>
</div> </div>
<el-dialog <el-dialog
...@@ -149,37 +149,41 @@ ...@@ -149,37 +149,41 @@
</el-dialog> </el-dialog>
<el-dialog
title="批量导入"
:visible.sync="dialogImportVisible"
width="650px"
:close-on-click-modal="false"
@close="handleImportClose"
center>
<div style="float:left;width: 250px;">
<span>1.下载模板,填写信息</span>
<br>
<div>
<el-button type="primary" size="small" style="float:left; margin-top: 30px;" @click="download1">下载模板1</el-button>
<span style="float:left; margin-top: 72px;margin-left: -90px;">填写人员明细导入</span>
</div>
<div>
<el-button type="primary" size="small" style="margin-top: 30px;margin-left: 48px;" @click="download2">下载模板2</el-button>
<span style="float: right;margin-top:10px;">填写人员ID导入</span>
</div>
</div>
<div style="float:left;margin-left: 90px;width: 1px;height: 100px; background: #c8cbd2;"></div>
<div style="margin-left: 400px;height: 130px;">
<span>2.上传填写好的文件</span>
<br>
<el-upload
class="bg-uploader"
action="#"
:show-file-list="false"
:before-upload="beforeUploadDoc">
<el-button type="primary" size="small" style="margin-top: 30px;">上传文件</el-button>
</el-upload>
<el-dialog
title="批量导入"
:visible.sync="dialogImportVisible"
width="650px"
:close-on-click-modal="false"
@close="handleImportClose"
center>
<div style="float:left;width: 250px;">
<span>1.下载模板,填写信息</span>
<br>
<div>
<el-button type="primary" size="small" style="float:left; margin-top: 30px;" @click="download1">下载模板</el-button>
</div> </div>
</div> </el-dialog>
<div style="float:left;margin-left: 40px;width: 1px;height: 100px; background: #c8cbd2;"></div>
<div style="margin-left: 400px;height: 130px;">
<span>2.上传填写好的文件</span>
<br>
<el-upload
class="bg-uploader"
action="#"
:show-file-list="false"
:before-upload="beforeUploadDoc">
<el-button type="primary" size="small" style="margin-top: 30px;">上传文件</el-button>
</el-upload>
</div>
</el-dialog>
</div> </div>
</div> </div>
...@@ -207,37 +211,6 @@ ...@@ -207,37 +211,6 @@
}, },
data() { data() {
return { return {
props: {
lazy: true,
lazyLoad(node, resolve) {
const { level } = node;
if (node.level == 1) {
let req = {
provinceId: node.data.value
};
vm.GET("basic-data/position/cities", req).then(res => {
let newData = vm.setMoreOption(res.data.cityList, "cities");
resolve(newData);
});
} else if (node.level == 2) {
let req = {
cityId: node.data.value
};
vm.GET("basic-data/position/counties", req).then(res => {
let newData = vm.setMoreOption(res.data.countyList, "counties");
resolve(newData);
});
} else if (node.level == 3) {
let req = {
countyId: node.data.value
};
vm.GET("basic-data/position/towns", req).then(res => {
let newData = vm.setMoreOption(res.data.townList, "towns");
resolve(newData);
});
}
}
},
curmbFirst: '活动管理', curmbFirst: '活动管理',
// curmbSecond: '直播管理', // curmbSecond: '直播管理',
curmbThird: '新建直播',// /live-manage?id= curmbThird: '新建直播',// /live-manage?id=
...@@ -258,10 +231,10 @@ ...@@ -258,10 +231,10 @@
value: 2 value: 2
}, },
], ],
peoplesDtoList: [], activityDoctorModelList: [],
totalPeople: 10, totalPeople: 10,
selectionList:[], selectionList:[],
formOrganization: { memberForm: {
name: '', name: '',
orgName: '', orgName: '',
source: 0, source: 0,
...@@ -291,7 +264,7 @@ ...@@ -291,7 +264,7 @@
//Idtype:1,内部 2.外部 //Idtype:1,内部 2.外部
vm.idType = localStorage.getItem("storageIdType"); vm.idType = localStorage.getItem("storageIdType");
this.initRange(); this.init();
if(vm.idType == 1){ if(vm.idType == 1){
this.showImportFlag = true; this.showImportFlag = true;
} }
...@@ -313,46 +286,25 @@ ...@@ -313,46 +286,25 @@
mounted() { mounted() {
}, },
methods: { methods: {
initRange() { init() {
this.formOrganization.pageNum = 1; this.memberForm.pageNum = 1;
this.formOrganization.name = ""; this.memberForm.name = "";
this.formOrganization.orgName = ""; this.memberForm.orgName = "";
this.formOrganization.source = 0 this.memberForm.source = 0
this.getList(1) this.getList(1)
}, },
setMoreOption(data, type) {
let option = [];
for (let i = 0; i < data.length; i++) {
let obj = data[i];
if (type == "cities") {
obj.label = data[i].cityName;
obj.value = data[i].cityId;
} else if (type == "counties") {
obj.label = data[i].countyName;
obj.value = data[i].countyId;
} else if (type == "towns") {
obj.label = data[i].townName;
obj.value = data[i].townId;
obj.leaf = true;
}
option.push(obj);
}
return option;
},
serch() { serch() {
this.formOrganization.pageNum = 1; this.memberForm.pageNum = 1;
this.getList() this.getList()
}, },
getList(first) { getList(first) {
let idType = localStorage.getItem("storageIdType"); let idType = localStorage.getItem("storageIdType");
let req = { let req = {
circleId: this.circleId, activityId: this.id,
countryFlag: true, hospitalName: this.memberForm.hospitalName,
name: this.formOrganization.name.trim(), doctorName: this.memberForm.hospitalName,
orgName: this.formOrganization.orgName.trim(), pageNo: this.memberForm.pageNum,
pageNo: this.formOrganization.pageNum, pageSize: this.memberForm.pageSize
pageSize: this.formOrganization.pageSize,
source: this.formOrganization.source,
}; };
openLoading(vm); openLoading(vm);
getActivityDocList(req).then(res => { getActivityDocList(req).then(res => {
...@@ -361,7 +313,7 @@ ...@@ -361,7 +313,7 @@
} }
if (res.code == "000000") { if (res.code == "000000") {
this.peoplesDtoList = res.data.peoplesDtoList; this.activityDoctorModelList = res.data.activityDoctorModelList;
this.totalPeople = res.data.total; this.totalPeople = res.data.total;
this.setPleTotal() this.setPleTotal()
} else { } else {
...@@ -374,36 +326,40 @@ ...@@ -374,36 +326,40 @@
//重置机构、人员查询 //重置机构、人员查询
reset() { reset() {
this.initRange() this.memberForm.hospitalName = "";
this.memberForm.doctorName = "";
this.init()
}, },
//机构table修改 //机构table修改
handleSizeOrganization(val) { handleSizeOrganization(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
this.formOrganization.pageSize = val; this.memberForm.pageSize = val;
this.getList(); this.getList();
}, },
handleCurrentOrganization(val) { handleCurrentOrganization(val) {
//console.log(`当前页: ${val}`); //console.log(`当前页: ${val}`);
this.formOrganization.pageNum = val; this.memberForm.pageNum = val;
this.getList(); this.getList();
}, },
detel(item) { detel(item) {
this.detelMessage = `删除后 "${item.name}" 将无法访问本圈, 确定删除么?` this.detelMessage = `删除后 "${item.doctorName}" 将无法看到该活动, 确定删除么?`
this.deleteVisible = true this.deleteVisible = true
this.clickItem = item this.clickItem = item
}, },
confirmDelete() { confirmDelete() {
let params = { let params = {
circleId: this.circleId, // activityDoctorRemoveReq: {
docIds: [this.clickItem.id] activityId: this.id,
removeDoctorId: this.clickItem.doctorId
// }
} }
mprDeleteOrg(params).then((res) => { removeDoc(params).then((res) => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
}); });
this.deleteVisible = false this.deleteVisible = false
this.formOrganization.pageNum = 1; this.memberForm.pageNum = 1;
this.getList() this.getList()
}).catch(() => { }).catch(() => {
this.$message.error('删除失败,请稍后重试'); this.$message.error('删除失败,请稍后重试');
...@@ -425,7 +381,7 @@ ...@@ -425,7 +381,7 @@
}, },
addPeople() { addPeople() {
this.dialogOrg = false this.dialogOrg = false
this.initRange() this.init()
}, },
...@@ -450,12 +406,12 @@ ...@@ -450,12 +406,12 @@
openLoading(vm); openLoading(vm);
let formData = new FormData(); let formData = new FormData();
formData.append("circleId", vm.circleId); formData.append("activityId", vm.id);
formData.append("file", file); formData.append("file", file);
// let files = new window.File(); // let files = new window.File();
uploadDoc(formData).then(res => { importDoc(formData).then(res => {
closeLoading(vm); closeLoading(vm);
if (res.code == "000000") { if (res.code == "000000") {
...@@ -467,7 +423,7 @@ ...@@ -467,7 +423,7 @@
vm.dialogTitle = "导入成功"; vm.dialogTitle = "导入成功";
vm.importSuccessFlag = true; vm.importSuccessFlag = true;
vm.importNum = res.data.successNum; vm.importNum = res.data.successNum;
vm.initRange(); vm.init();
// vm.searchOrganization(); // vm.searchOrganization();
// vm.$emit('refreshRenYuan'); // vm.$emit('refreshRenYuan');
} }
...@@ -479,11 +435,6 @@ ...@@ -479,11 +435,6 @@
vm.importNum = res.data.failNum; vm.importNum = res.data.failNum;
vm.errorFileUrl = res.data.file; vm.errorFileUrl = res.data.file;
// this.$message({
// type: 'success',
// message: '导入成功!'
// });
} }
} }
else { else {
...@@ -493,35 +444,7 @@ ...@@ -493,35 +444,7 @@
}); });
} }
// if (res.code == "000000") {
//
//
// if(res.data.successNum == 0 && res.data.wrongDataList.length > 0){
//
// this.dialogVisible = true;
//
// this.dialogErrorData = res.data.wrongDataList;
// }
// else {
// this.$message({
// type: 'success',
// message: '导入成功!'
// });
// vm.initRange();
// }
//
// }
// else {
// this.$message({
// type: 'error',
// message: res.message
// });
// }
// vm.setDialog(res);
}); });
// };
// reader.readAsDataURL(file);
}, },
handleErrorClose() { handleErrorClose() {
...@@ -537,11 +460,16 @@ ...@@ -537,11 +460,16 @@
this.dialogImportVisible = false; this.dialogImportVisible = false;
}, },
// 下载模板 // 下载模板1
download1(){ download1(){
const url = "https://files.yunqueyi.com/template/import_people_by_name_mobile.xlsx"; const url = "https://files.yunqueyi.com/template/import_people_by_name_mobile.xlsx";
window.location.href = url; window.location.href = url;
}, },
// 下载模板2
download2(){
const url = "https://files.yunqueyi.com/template/import_hospital_by_id.xlsx";
window.location.href = url;
},
// 下载错误数据文件 // 下载错误数据文件
downloadFile(){ downloadFile(){
window.location.href = vm.errorFileUrl; window.location.href = vm.errorFileUrl;
...@@ -551,11 +479,10 @@ ...@@ -551,11 +479,10 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.organization {
.add-organization { .add-organization {
margin-left: 20px; margin-left: 20px;
line-height: 20px; line-height: 20px;
width: 60px; width: 100px;
cursor: pointer; cursor: pointer;
padding-top: 10px; padding-top: 10px;
i { i {
...@@ -569,5 +496,4 @@ ...@@ -569,5 +496,4 @@
margin-right: 10px; margin-right: 10px;
text-align: right; text-align: right;
} }
}
</style> </style>
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册