|
@@ -98,12 +98,12 @@
|
|
<el-form-item label="数据来源" prop="dataSourceID">
|
|
<el-form-item label="数据来源" prop="dataSourceID">
|
|
<el-select v-model="serviceForm.dataSourceID" clearable>
|
|
<el-select v-model="serviceForm.dataSourceID" clearable>
|
|
<el-option
|
|
<el-option
|
|
- v-for="dataSource in selectOptionMap[
|
|
|
|
- queryTemplateIDMap.dataSourceName
|
|
|
|
|
|
+ v-for="option in selectOptionMap[
|
|
|
|
+ queryTemplateIDMap.protocolName
|
|
]"
|
|
]"
|
|
- :key="dataSource.dataSourceID"
|
|
|
|
- :value="dataSource.dataSourceID"
|
|
|
|
- :label="dataSource.dataSourceName"
|
|
|
|
|
|
+ :key="option[option.setvalue]"
|
|
|
|
+ :value="option[option.setvalue]"
|
|
|
|
+ :label="option[option.setlabel]"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -246,7 +246,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <!-- <el-col :span="12">
|
|
<el-form-item
|
|
<el-form-item
|
|
label="日志存储位置"
|
|
label="日志存储位置"
|
|
label-width="100px"
|
|
label-width="100px"
|
|
@@ -276,7 +276,7 @@
|
|
clearable
|
|
clearable
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col> -->
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
</Dialog>
|
|
</Dialog>
|
|
@@ -382,10 +382,10 @@ const getSelectOptions = async (id: number) => {
|
|
return [];
|
|
return [];
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-onMounted(async () => {
|
|
|
|
|
|
+onBeforeMount(async () => {
|
|
queryTemplateIDMap.protocolName = DATACONTENT_ID.protocolOptions;
|
|
queryTemplateIDMap.protocolName = DATACONTENT_ID.protocolOptions;
|
|
selectOptionMap[queryTemplateIDMap.protocolName] = await getSelectOptions(
|
|
selectOptionMap[queryTemplateIDMap.protocolName] = await getSelectOptions(
|
|
- queryTemplateIDMap.protocolName
|
|
|
|
|
|
+ 518
|
|
);
|
|
);
|
|
});
|
|
});
|
|
|
|
|
|
@@ -618,11 +618,11 @@ const deleteService = async () => {
|
|
return Promise.reject(error);
|
|
return Promise.reject(error);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-const addServiceDialogShow = () => {
|
|
|
|
|
|
+const addServiceDialogShow = async () => {
|
|
serviceDialogType.value = "add";
|
|
serviceDialogType.value = "add";
|
|
msgTitle.value = "新增服务管理";
|
|
msgTitle.value = "新增服务管理";
|
|
serviceDialogVisible.value = true;
|
|
serviceDialogVisible.value = true;
|
|
- // console.log(queryTemplateIDMap, selectOptionMap);
|
|
|
|
|
|
+ console.log(selectOptionMap[queryTemplateIDMap.protocolName]);
|
|
};
|
|
};
|
|
const addServiceDialogHide = () => {
|
|
const addServiceDialogHide = () => {
|
|
serviceFormRef.value?.resetFields();
|
|
serviceFormRef.value?.resetFields();
|