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

广场管理和活动成员管理

上级 6ff6a192
......@@ -211,37 +211,6 @@
},
data() {
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: '活动管理',
// curmbSecond: '直播管理',
curmbThird: '新建直播',// /live-manage?id=
......@@ -295,7 +264,7 @@
//Idtype:1,内部 2.外部
vm.idType = localStorage.getItem("storageIdType");
this.initRange();
this.init();
if(vm.idType == 1){
this.showImportFlag = true;
}
......@@ -317,32 +286,13 @@
mounted() {
},
methods: {
initRange() {
init() {
this.memberForm.pageNum = 1;
this.memberForm.name = "";
this.memberForm.orgName = "";
this.memberForm.source = 0
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() {
this.memberForm.pageNum = 1;
this.getList()
......@@ -376,7 +326,9 @@
//重置机构、人员查询
reset() {
this.initRange()
this.memberForm.hospitalName = "";
this.memberForm.doctorName = "";
this.init()
},
//机构table修改
handleSizeOrganization(val) {
......@@ -429,7 +381,7 @@
},
addPeople() {
this.dialogOrg = false
this.initRange()
this.init()
},
......@@ -471,7 +423,7 @@
vm.dialogTitle = "导入成功";
vm.importSuccessFlag = true;
vm.importNum = res.data.successNum;
vm.initRange();
vm.init();
// vm.searchOrganization();
// vm.$emit('refreshRenYuan');
}
......@@ -483,11 +435,6 @@
vm.importNum = res.data.failNum;
vm.errorFileUrl = res.data.file;
// this.$message({
// type: 'success',
// message: '导入成功!'
// });
}
}
else {
......@@ -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() {
......
......@@ -21,7 +21,7 @@
<el-select multiple :multiple-limit="5"
v-model="searchForm.diseaseIdList"
id="statusSelector"
placeholder="请选择发布状态"
placeholder="请选择疾病标签"
clearable
style="margin-left:20px;height: 32px;line-height: 32px;"
>
......@@ -41,7 +41,7 @@
<el-select multiple :multiple-limit="5"
v-model="searchForm.deptIdList"
id="statusSelector"
placeholder="请选择发布状态"
placeholder="请选择科室标签"
clearable
style="margin-left:20px;height: 32px;line-height: 32px;"
>
......@@ -59,7 +59,7 @@
<el-select multiple :multiple-limit="5"
v-model="searchForm.subjectIdList"
id="statusSelector"
placeholder="请选择发布状态"
placeholder="请选择学科标签"
clearable
style="margin-left:20px;height: 32px;line-height: 32px;"
>
......@@ -131,7 +131,7 @@
</div>
<el-dialog
title="title"
:title="title"
:visible.sync="dialogVisible"
width="700px"
:close-on-click-modal="false"
......@@ -414,12 +414,10 @@
this.getPlazaList("", "");
},
resetForm() {
console.log("重置alex");
// this.$router.push({
// path: '/role-manage',
// })
this.searchForm.liveName = "";
this.searchForm.liveStatus = "";
vm.searchForm.squareName = "";
vm.searchForm.deptIdList = [];
vm.searchForm.diseaseIdList = [];
vm.searchForm.subjectIdList = [];
this.search();
},
//添加专区
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册