| | |
| | | /* |
| | | * @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' |
| | |
| | | url: '/maintain/update', |
| | | method: 'POST' |
| | | }, |
| | | maintainDel: { |
| | | url: '/maintain/delete', |
| | | method: 'POST' |
| | | }, |
| | | maintaindelete: { |
| | | url: '/devicetype/delete', |
| | | method: 'POST' |
| | |
| | | <!-- |
| | | * @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> |
| | |
| | | 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' |
| | | } |
| | | } |
| | | |
| | |
| | | overflow-x: scroll; |
| | | |
| | | .table-action { |
| | | position: absolute; |
| | | position: fixed; |
| | | z-index: 999; |
| | | color: #fff; |
| | | width: 100px; |
| | |
| | | <!-- |
| | | * @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> |
| | |
| | | }) |
| | | } |
| | | }, |
| | | 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() { |
| | | |