expertform siteoptions 传入选项列表
This commit is contained in:
@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user