提交 fb1786a8 编写于 作者: zhentian.jia's avatar zhentian.jia

屏蔽fix bug

上级 20a77de4
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
filterable filterable
change-on-select change-on-select
placeholder="请选择地区" placeholder="请选择地区"
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -123,7 +122,7 @@ export default { ...@@ -123,7 +122,7 @@ export default {
projectId: "", projectId: "",
shieldType: 0, shieldType: 0,
formInline: { formInline: {
region: [], region: ["0"],
administrativeId: "", administrativeId: "",
hospitalName: "", hospitalName: "",
doctorName: "", doctorName: "",
...@@ -157,7 +156,7 @@ export default { ...@@ -157,7 +156,7 @@ export default {
dialogShow: false, dialogShow: false,
shieldBlock: "", shieldBlock: "",
scopeRow: {}, scopeRow: {},
administrativeValue: '', administrativeValue: "",
props: { props: {
lazy: true, lazy: true,
lazyLoad(node, resolve) { lazyLoad(node, resolve) {
...@@ -233,15 +232,15 @@ export default { ...@@ -233,15 +232,15 @@ export default {
// }, // },
methods: { methods: {
handleChange(value) { handleChange(value) {
let areaId = '000'; let areaId = "000";
for(let i=0;i<value.length;i++) { for (let i = 0; i < value.length; i++) {
areaId += '_'+value[i]; areaId += "_" + value[i];
} }
vm.administrativeValue = areaId; vm.administrativeValue = areaId;
if(areaId == '000_0') { if (areaId == "000_0") {
vm.administrativeValue = ''; vm.administrativeValue = "";
} }
console.log(value,vm.administrativeValue); console.log(value, vm.administrativeValue);
}, },
//获取地区 //获取地区
getRegionOption() { getRegionOption() {
...@@ -293,8 +292,9 @@ export default { ...@@ -293,8 +292,9 @@ export default {
openLoading(vm); openLoading(vm);
vm.GET("portal/black/getScopeHospitalWithBlack", req).then(res => { vm.GET("portal/black/getScopeHospitalWithBlack", req).then(res => {
closeLoading(vm); closeLoading(vm);
vm.tableData = res.data.list; vm.setTable(res);
vm.totalRows = res.data.count; // vm.tableData = res.data.list;
// vm.totalRows = res.data.count;
}); });
} else if (vm.shieldType == 1) { } else if (vm.shieldType == 1) {
let req = { let req = {
...@@ -308,9 +308,20 @@ export default { ...@@ -308,9 +308,20 @@ export default {
openLoading(vm); openLoading(vm);
vm.GET("portal/black/getScopePeopleWithBlack", req).then(res => { vm.GET("portal/black/getScopePeopleWithBlack", req).then(res => {
closeLoading(vm); closeLoading(vm);
vm.setTable(res);
// vm.tableData = res.data.list;
// vm.totalRows = res.data.count;
});
}
},
setTable(res) {
vm.tableData = [];
vm.totalRows = 0;
if (res.code == "000000") {
vm.tableData = res.data.list; vm.tableData = res.data.list;
vm.totalRows = res.data.count; vm.totalRows = res.data.count;
}); } else {
vm.$message(res.message);
} }
}, },
openDialog(row) { openDialog(row) {
...@@ -371,6 +382,7 @@ export default { ...@@ -371,6 +382,7 @@ export default {
vm.formInline = Object.assign( vm.formInline = Object.assign(
{}, {},
{ {
region: ["0"],
administrativeId: "", administrativeId: "",
hospitalName: "", hospitalName: "",
doctorName: "", doctorName: "",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册