提交 8b1fd400 编写于 作者: vino's avatar vino

广场管理

上级 3bf37802
...@@ -567,8 +567,14 @@ const vueFilter = { ...@@ -567,8 +567,14 @@ const vueFilter = {
let text = ""; let text = "";
if(value != null && value.length > 0){ if(value != null && value.length > 0){
for (let i = 0; i < value.length; i++) { for (let i = 0; i < value.length; i++) {
if(i == 0){
text = text + value[i].name; text = text + value[i].name;
} }
else {
text = text + "、" + value[i].name;
}
}
} }
return text; return text;
} }
......
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
placeholder="请选择发布状态" placeholder="请选择发布状态"
clearable clearable
style="margin-left:20px;height: 32px;line-height: 32px;" style="margin-left:20px;height: 32px;line-height: 32px;"
:disabled="editFlag"
> >
<el-option <el-option
v-for="item in selectPlazaList" v-for="item in selectPlazaList"
...@@ -343,7 +344,8 @@ ...@@ -343,7 +344,8 @@
diseaseList: [], diseaseList: [],
deptList: [], deptList: [],
subjectList: [], subjectList: [],
selectPlazaList: [] selectPlazaList: [],
editFlag: false
}; };
}, },
props:{ props:{
...@@ -418,10 +420,10 @@ ...@@ -418,10 +420,10 @@
}, },
//添加专区 //添加专区
createPlaza() { createPlaza() {
vm.plazaForm.businessId = "";
this.dialogVisible = true; vm.dialogVisible = true;
vm.editFlag = false;
this.getSelectPlazaList(); vm.getSelectPlazaList();
}, },
...@@ -597,8 +599,9 @@ ...@@ -597,8 +599,9 @@
//编辑专区 //编辑专区
editPlaza(row) { editPlaza(row) {
vm.editFlag = true;
vm.plazaForm.id = row.id; vm.plazaForm.id = row.id;
vm.plazaForm.businessId = row.businessId; // vm.plazaForm.businessId = row.businessId;
if(vm.selectPlazaList.length == 0){ if(vm.selectPlazaList.length == 0){
vm.getSelectPlazaList(); vm.getSelectPlazaList();
} }
...@@ -611,6 +614,7 @@ ...@@ -611,6 +614,7 @@
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];
} else { } else {
this.$message.error("添加失败,请重试"); this.$message.error("添加失败,请重试");
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册