Browse Source

fix(plcInfo,commProtocol):方法名修改

HMY 11 tháng trước cách đây
mục cha
commit
4ac91cec61

+ 2 - 2
ui/src/views/dcsForm2/commProtocol/index.vue

@@ -109,7 +109,7 @@
 </template>
 
 <script setup name="Protocol">
-import { listProtocol, getProtocol, delProtocol, addProtocol, updateProtocol, changeProtocolStatus } from "@/api/hnyz/commProtocol";
+import { listProtocol, getProtocol, delProtocol, addProtocol, updateProtocol, changeStatus } from "@/api/hnyz/commProtocol";
 
 const { proxy } = getCurrentInstance();
 const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
@@ -198,7 +198,7 @@ function handleSelectionChange(selection) {
 function handleStatusChange(row) {
   let text = row.status == "0" ? "启用" : "停用";
   proxy.$modal.confirm('确认要"' + text + '"协议名为"' + row.protocolName + '"的数据项吗?').then(function () {
-    return changeProtocolStatus(row.protocolId, row.status);
+    return changeStatus(row.protocolId, row.status);
   }).then(() => {
     proxy.$modal.msgSuccess(text + "成功");
   }).catch(function () {

+ 2 - 2
ui/src/views/dcsForm2/plcInfo/index.vue

@@ -106,7 +106,7 @@
 </template>
 
 <script setup name="Info">
-import { listInfo, getInfo, delInfo, addInfo, updateInfo, changePlcStatus } from "@/api/hnyz/plcInfo";
+import { listInfo, getInfo, delInfo, addInfo, updateInfo, changeStatus } from "@/api/hnyz/plcInfo";
 
 const { proxy } = getCurrentInstance();
 const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
@@ -203,7 +203,7 @@ function resetQuery() {
 function handleStatusChange(row) {
   let text = row.status == "0" ? "启用" : "停用";
   proxy.$modal.confirm('确认要"' + text + '""' + row.plcName + '"吗?').then(function () {
-    return changePlcStatus(row.plcId, row.status);
+    return changeStatus(row.plcId, row.status);
   }).then(() => {
     proxy.$modal.msgSuccess(text + "成功");
   }).catch(function () {