expertform siteoptions 传入选项列表

This commit is contained in:
quantulr
2022-09-07 14:24:55 +08:00
parent ae74847c93
commit 0344e5d7b9
4 changed files with 124 additions and 80 deletions

View File

@ -85,7 +85,7 @@
<el-row>
<el-col :span="24">
<el-form-item label="所属站点:" prop="tenantId">
<SiteOptions v-model="modelValue.tenantId" />
<SiteOptions v-model="modelValue.tenantId" :site-list="siteList" />
</el-form-item>
</el-col>
</el-row>
@ -411,7 +411,6 @@ const validateForm = async () => {
}
const cityFormValid = await cityFormRef.value.validateForm();
const fieldFormValid = await fieldFormRef.value.validateForm();
console.log(fieldFormValid);
const keywordsFormValid = await keywordsFormRef.value.validateForm();
if (formType.value == 1) {
//个人
@ -437,6 +436,13 @@ const validateForm = async () => {
throw "未知的formType";
}
};
// 获取站点列表
const getSiteList = async () => {
const resp = await tenantSelect();
siteList.value = resp.rows;
};
getSiteList();
defineExpose({
validateForm,
});