Explorar el Código

Merge branch 'msg-sever' of git.sagacloud.cn:web/ibms into msg-sever

zhangyu hace 5 años
padre
commit
b9ba31ec90
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      src/components/ledger/system/table/cenoteTable.vue

+ 5 - 4
src/components/ledger/system/table/cenoteTable.vue

@@ -44,7 +44,7 @@
 </template>
 
 <script>
-import { queryLinkSys, queryShaftType, shthroughshUnlink } from "@/api/scan/request";
+import { queryLinkSys, queryShaftType, syinshUnlink } from "@/api/scan/request";
 import { mapGetters } from "vuex";
 import addCenoteDialog from "@/components/ledger/system/dialog/addCenoteDialog"
 export default {
@@ -101,14 +101,15 @@ export default {
     },
     // 删除关系
     handleDelete(index, row) {
+      let sysId = this.$route.query.SysID
       this.$confirm("确认删除该关系?", "提示", {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
         let params = {
-          ShaftOtherId: row.ShaftID,
-          ShaftId: this.params.ShaftID
+          ShaftId: row.ShaftID,
+          SysId: sysId
         }
         this.deleteShThroughSh(params);
       }).catch(() => {
@@ -117,7 +118,7 @@ export default {
     },
     // 删除设备所在空间关系
     deleteShThroughSh(params) {
-      shthroughshUnlink(params, res => {
+      syinshUnlink(params, res => {
         this.$message.success('删除成功')
         this.getTableData()
       })