chenrui  vor 1 Jahr
Ursprung
Commit
256e718ebf

+ 1 - 1
src/views/systemSettings/messageTemplate/index.vue

@@ -214,7 +214,7 @@ const generalDataReception = async (formData) => {
     const { code } = await GeneralDataReception({
       serviceId: serviceId.value,
       dataContent: JSON.stringify(formData),
-      btnAuth: btnAuthMap[data.event],
+      // btnAuth: btnAuthMap[data.event],
     });
     if (code == 0) {
       ElMessage.success(`操作成功`);

+ 11 - 11
src/views/systemSettings/queryTemplate/queryTemplateAdd.vue

@@ -49,7 +49,7 @@
               </el-select>
             </el-form-item>
           </el-col>
-          <el-col :span="6">
+          <!-- <el-col :span="6">
             <el-form-item label="服务名称" size="default">
               <el-select
                 v-model="ruleForm.serviceID"
@@ -64,7 +64,7 @@
                 />
               </el-select>
             </el-form-item>
-          </el-col>
+          </el-col> -->
           <el-col :span="6">
             <el-form-item
               label="每页显示"
@@ -152,7 +152,7 @@ const preserFormer = async () => {
     const res = await GeneralDataReception({
       serviceId: SERVICE_ID.sysQueryTabId,
       dataContent: JSON.stringify(params),
-      btnAuth: 'add_query_template_button',
+      btnAuth: "add_query_template_button",
     });
     if (Number(res.code) === 0) {
       ElMessage.success(`成功`);
@@ -168,14 +168,6 @@ const preserFormer = async () => {
   }
   // router.push({ path: "/systemSettings/queryTemplate" });
 };
-const getDataSourceList = async () => {
-  const dataSourceLists = await getSelectOption(13);
-  dataSourceList.value = dataSourceLists.map((item) => {
-    item[item.setlabel] = item.k;
-    item[item.setvalue] = item.v;
-    return item;
-  });
-};
 const getSelectOption = async (ID) => {
   try {
     const listValues = await myQuery(ID);
@@ -185,6 +177,14 @@ const getSelectOption = async (ID) => {
     return [];
   }
 };
+const getDataSourceList = async () => {
+  const dataSourceLists = await getSelectOption("13");
+  dataSourceList.value = dataSourceLists.map((item) => {
+    item[item.setlabel] = item.k;
+    item[item.setvalue] = item.v;
+    return item;
+  });
+};
 const queryServiceList = async (ID) => {
   const serviceLists = await getSelectOption(DATACONTENT_ID.sysServiceTable);
   serviceList.value = serviceLists.map((item) => {

+ 4 - 4
src/views/systemSettings/queryTemplate/queryTemplateEdit.vue

@@ -49,7 +49,7 @@
               </el-select>
             </el-form-item>
           </el-col>
-          <el-col :span="6">
+          <!-- <el-col :span="6">
             <el-form-item label="服务名称" size="default">
               <el-select
                 v-model="ruleForm.serviceID"
@@ -64,7 +64,7 @@
                 />
               </el-select>
             </el-form-item>
-          </el-col>
+          </el-col> -->
           <el-col :span="6">
             <el-form-item
               label="每页显示"
@@ -155,7 +155,7 @@ const preserFormer = async () => {
     const res = await GeneralDataReception({
       serviceId: SERVICE_ID.sysQueryTabId,
       dataContent: JSON.stringify(params),
-      btnAuth: 'query_template_editing_button'
+      btnAuth: "query_template_editing_button",
     });
     if (Number(res.code) === 0) {
       ElMessage.success(`成功`);
@@ -172,7 +172,7 @@ const preserFormer = async () => {
   // router.push({ path: "/systemSettings/queryTemplate" });
 };
 const getDataSourceList = async () => {
-  const dataSourceLists = await getSelectOption(13);
+  const dataSourceLists = await getSelectOption("13");
   dataSourceList.value = dataSourceLists.map((item) => {
     item[item.setlabel] = item.k;
     item[item.setvalue] = item.v;