Browse Source

fix: 项目结构调整;drawer样式修复

master
guoapeng 4 months ago
parent
commit
505ac5ba0d
  1. 5
      src/apis/matrix.ts
  2. 6
      src/apis/matrixCraft.ts
  3. 0
      src/components/home/Stop/index.vue
  4. 2
      src/views/main/index.vue
  5. 5
      src/views/matrix/index.d.ts
  6. 6
      src/views/matrixCraft/index.d.ts
  7. 4
      src/views/spray/index.vue

5
src/apis/matrix.ts

@ -1,10 +1,5 @@
import http from 'libs/http'
export interface MatrixQuery {
pageNum: number
pageSize: number
matrixName?: string | undefined
}
export const list = (params: MatrixQuery): Promise<any> => http.post('matrix/list', params)
export const add = (params: any): Promise<any> => http.post('matrix/add', params)
export const update = (params: any): Promise<any> => http.put('matrix', params)

6
src/apis/matrixCraft.ts

@ -1,11 +1,5 @@
import http from 'libs/http'
export interface MatrixCraftQuery {
pageNum: number
pageSize: number
matrixCraftName?: string | undefined
matrixId?: number | undefined
}
export const list = (params: MatrixCraftQuery): Promise<any> => http.post('matrixCraft/list', params)
export const getListByMatrixId = (matrixId: number) => http.get(`matrixCraft/getListByMatrixId/${matrixId}`)
export const add = (params: any) => http.post(`matrixCraft/add`, params)

0
src/components/home/stop/index.vue → src/components/home/Stop/index.vue

2
src/views/main/index.vue

@ -2,7 +2,7 @@
import { getDeviceStatus } from 'apis/system'
import FtStream from 'components/common/FTStream/index.vue'
import Check from 'components/home/Check/index.vue'
import Stop from 'components/home/stop/index.vue'
import Stop from 'components/home/Stop/index.vue'
import { ElMessageBox } from 'element-plus'
import { FtMessage } from 'libs/message'
import { isClose, socket } from 'libs/socket'

5
src/views/matrix/index.d.ts

@ -0,0 +1,5 @@
interface MatrixQuery {
pageNum: number
pageSize: number
matrixName?: string | undefined
}

6
src/views/matrixCraft/index.d.ts

@ -0,0 +1,6 @@
interface MatrixCraftQuery {
pageNum: number
pageSize: number
matrixCraftName?: string | undefined
matrixId?: number | undefined
}

4
src/views/spray/index.vue

@ -183,7 +183,6 @@ const startWork = async () => {
console.log('valid', valid)
if (!valid) {
FtMessage.error('请检查参数配置')
return
}
const position = checkPosition()
@ -659,4 +658,7 @@ const addCraft = () => {
.tray-name {
color: var(--el-color-primary);
}
:deep(.el-drawer) {
width: 33% !important;
}
</style>
Loading…
Cancel
Save