处理站点编辑时站点回显数据处理

This commit is contained in:
熊丽君
2022-01-18 18:41:28 +08:00
parent 5cbca31d98
commit e8db83e763
11 changed files with 70 additions and 14 deletions

View File

@ -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);
},