chenrui  1 anno fa
parent
commit
316f2afdd8
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      src/views/systemSettings/serviceManagement/index.vue

+ 11 - 11
src/views/systemSettings/serviceManagement/index.vue

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