提交 4904990e 编写于 作者: vino's avatar vino

广场管理和活动成员管理

上级 6ff6a192
...@@ -211,37 +211,6 @@ ...@@ -211,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=
...@@ -295,7 +264,7 @@ ...@@ -295,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;
} }
...@@ -317,32 +286,13 @@ ...@@ -317,32 +286,13 @@
mounted() { mounted() {
}, },
methods: { methods: {
initRange() { init() {
this.memberForm.pageNum = 1; this.memberForm.pageNum = 1;
this.memberForm.name = ""; this.memberForm.name = "";
this.memberForm.orgName = ""; this.memberForm.orgName = "";
this.memberForm.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.memberForm.pageNum = 1; this.memberForm.pageNum = 1;
this.getList() this.getList()
...@@ -376,7 +326,9 @@ ...@@ -376,7 +326,9 @@
//重置机构、人员查询 //重置机构、人员查询
reset() { reset() {
this.initRange() this.memberForm.hospitalName = "";
this.memberForm.doctorName = "";
this.init()
}, },
//机构table修改 //机构table修改
handleSizeOrganization(val) { handleSizeOrganization(val) {
...@@ -429,7 +381,7 @@ ...@@ -429,7 +381,7 @@
}, },
addPeople() { addPeople() {
this.dialogOrg = false this.dialogOrg = false
this.initRange() this.init()
}, },
...@@ -471,7 +423,7 @@ ...@@ -471,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');
} }
...@@ -483,11 +435,6 @@ ...@@ -483,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 {
...@@ -497,35 +444,7 @@ ...@@ -497,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() {
......
...@@ -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="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="700px" width="700px"
:close-on-click-modal="false" :close-on-click-modal="false"
...@@ -414,12 +414,10 @@ ...@@ -414,12 +414,10 @@
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();
}, },
//添加专区 //添加专区
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册