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

屏蔽fix bug

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