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