This commit is contained in:
曹辉 2023-01-11 10:30:52 +08:00
parent 8d96312c82
commit ca1adb157d

View File

@ -125,6 +125,7 @@
<el-table-column label="偏远地区" align="center" prop="remoteSigns"> <el-table-column label="偏远地区" align="center" prop="remoteSigns">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-hasPermi="['system:area:updateRemoteSigns']"
v-model="scope.row.remoteSigns" v-model="scope.row.remoteSigns"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
@ -311,11 +312,19 @@ export default {
// //
areaName(val) { areaName(val) {
if (val) { if (val) {
selectAreaListquery(val).then((res) => { if (val == " ") {
this.deptOptions = res.data; this.areaName = "";
}); return;
} else {
selectAreaListquery(val).then((res) => {
this.deptOptions = res.data;
});
}
} else { } else {
this.selectAreaListin(); if (val == "") {
} else {
this.selectAreaListin();
}
} }
}, },
}, },