Parcourir la source

服务管理修改

zhongxiaoyu il y a 2 ans
Parent
commit
48dc5632a5

+ 3 - 0
public/demo.js

@@ -239,6 +239,9 @@ const SERVICE_ID = {
 
   /***-----系统设置------***/
   sysProtoTabId: 1, //系统设置-协议管理-表格-增删改
+  sysServiceOutputEdit: 2, // 系统设置-服务管理-编辑服务-输出
+  sysServiceEdit: 3, //系统设置-服务管理-新增/编辑
+  sysServiceMachineEdit: 4, //系统设置-服务管理-编辑服务-部署机器-多选框
   sysQueryTabId: 5, //系统设置-查询模板-表格-增删改
   sysDataTabId: 9, //系统设置-数据结构-数据项-表格-增删改
   sysServiceAddXyId: 10, //系统设置-服务管理-新增服务-新增数据源-提交

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

@@ -560,7 +560,7 @@ const deleteService = async () => {
       event: 3,
     }
     const { code, message } = await GeneralDataReception({
-      serviceId: DATACONTENT_ID.sysServiceTable,
+      serviceId: SERVICE_ID.sysServiceEdit,
       dataContent: JSON.stringify(dataContent),
     })
     if (Number(code) === 0) {
@@ -646,7 +646,7 @@ const createService = async () => {
     })
     const dataContent = { ...serviceForm, event: 1 }
     const { code, message } = await GeneralDataReception({
-      serviceId: DATACONTENT_ID.sysServiceTable,
+      serviceId: SERVICE_ID.sysServiceEdit,
       dataContent: JSON.stringify(dataContent),
     })
     if (Number(code) === 0) {

+ 2 - 2
src/views/systemSettings/serviceManagement/serviceEdit.vue

@@ -698,7 +698,7 @@ const serviceSubmitHandler = async () => {
       }
     })
     const { code, message } = await GeneralDataReception({
-      serviceId: DATACONTENT_ID.sysServiceTable,
+      serviceId: SERVICE_ID.sysServiceEdit,
       dataContent: JSON.stringify(dataContent),
     })
     if (Number(code) === 0) {
@@ -838,7 +838,7 @@ const outputSubmitHandler = async () => {
         break
     }
     const { code, message } = await GeneralDataReception({
-      serviceId: DATACONTENT_ID.sysServiceOutTable,
+      serviceId: SERVICE_ID.sysServiceOutputEdit,
       dataContent: JSON.stringify(dataContent),
     })
     if (Number(code) === 0) {