处理站点编辑时站点回显数据处理
This commit is contained in:
@ -14,6 +14,9 @@
|
||||
<script>
|
||||
import { tenantSelect } from "@/api/subPlatform/tenant";
|
||||
export default {
|
||||
props: {
|
||||
value: String,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tenantOptions: [],
|
||||
@ -21,6 +24,13 @@ export default {
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
value(newVal, oldVal) {
|
||||
if (newVal == "") {
|
||||
this.tenant_id = undefined;
|
||||
} else {
|
||||
this.tenant_id = newVal;
|
||||
}
|
||||
},
|
||||
tenant_id(newVal, oldVal) {
|
||||
this.$emit("handleChange", newVal);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user