gaosp
2024-01-14 8b405f8a0702b4239d79ca54cff93d8dd2caba6a
update
已修改3个文件
37 ■■■■ 文件已修改
src/api/Api.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/Map/Map.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/maintenance/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/Api.js
@@ -1,7 +1,7 @@
/*
 * @Date: 2024-01-10 20:37:45
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-14 16:17:20
 * @LastEditTime: 2024-01-14 16:44:10
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/api/Api.js
 */
import ajax from '@/utils/ajax'
@@ -46,6 +46,10 @@
        url: '/maintain/update',
        method: 'POST'
    },
    maintainDel: {
        url: '/maintain/delete',
        method: 'POST'
    },
    maintaindelete: {
        url: '/devicetype/delete',
        method: 'POST'
src/container/Map/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 23:47:53
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-14 15:07:18
 * @LastEditTime: 2024-01-14 16:50:48
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue
-->
<template>
@@ -279,12 +279,12 @@
            if (window.innerWidth - left < 100) {
                this.position = {
                    right: 0,
                    top: top - t + 10 + 'px'
                    top: top + 10 + 'px'
                }
            } else {
                this.position = {
                    left: left + 'px',
                    top: top -t + 10 + 'px'
                    top: top + 10 + 'px'
                }
            }
            
@@ -480,7 +480,7 @@
    overflow-x: scroll;
   
    .table-action {
        position: absolute;
        position: fixed;
        z-index: 999;
        color: #fff;
        width: 100px;
src/container/maintenance/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-14 16:13:57
 * @LastEditTime: 2024-01-14 18:55:28
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue
-->
<template>
@@ -194,8 +194,25 @@
                })
            }
        },
        deleteHandle() {
        deleteHandle(row) {
            this.$confirm('确定要永久删除此项?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                getRequest('maintainDel', { ids: [row.id] }).then(res => {
                    this.$message({
                        type: 'success',
                        message: '删除成功!'
                    })
                    this.submitForm()
                }).catch(() => {
                    this.$message({
                        type: 'info',
                        message: '已取消删除'
                    })
                })
            })
        },
        submitForm() {