diff --git a/src/views/DataCollect/Channel/Save/index.vue b/src/views/DataCollect/Channel/Save/index.vue
index 8e01b54e..e05b3974 100644
--- a/src/views/DataCollect/Channel/Save/index.vue
+++ b/src/views/DataCollect/Channel/Save/index.vue
@@ -109,10 +109,7 @@
/>
{
const changeAuthType = (value: Array) => {
formData.value.configuration.authType = value[0];
};
+const isAuthType = computed(() => {
+ const { authType } = formData.value.configuration;
+ return isArray(authType)
+ ? authType[0] === 'username'
+ : authType === 'username';
+});
+const isSecurityMode = computed(() => {
+ const { securityMode } = formData.value.configuration;
+ return securityMode === 'SignAndEncrypt' || securityMode === 'Sign'
+ ? true
+ : false;
+});
const filterOption = (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
@@ -251,18 +258,22 @@ const filterOption = (input: string, option: any) => {
const getOptionsList = async () => {
for (let key in Options.value) {
const res: any = await queryOptionsList(key);
- Options.value[key] = res.result.map((item: any) => ({
- label: item?.text || item,
- value: item?.value || item,
- }));
+ if (res.status === 200) {
+ Options.value[key] = res.result.map((item: any) => ({
+ label: item?.text || item,
+ value: item?.value || item,
+ }));
+ }
}
};
const getCertificateList = async () => {
const res: any = await queryCertificateList();
- certificateList.value = res.result.map((item: any) => ({
- value: item.id,
- label: item.name,
- }));
+ if (res.status === 200) {
+ certificateList.value = res.result.map((item: any) => ({
+ label: item.name,
+ value: item.id,
+ }));
+ }
};
const getProvidersList = async () => {