| | |
| | | import request from '@/router/axios'; |
| | | |
| | | export const getUsualList = (current, size) => { |
| | | export const getUsualList = (current, size,params) => { |
| | | return request({ |
| | | url: '/api/blade-log/usual/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getApiList = (current, size) => { |
| | | export const getApiList = (current, size,params) => { |
| | | return request({ |
| | | url: '/api/blade-log/api/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getErrorList = (current, size) => { |
| | | export const getErrorList = (current, size,params) => { |
| | | return request({ |
| | | url: '/api/blade-log/error/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | |
| | | { |
| | | label: "创建时间", |
| | | prop: "createTime", |
| | | type: "input", |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "修改人", |
| | |
| | | this.placeBox = !this.placeBox |
| | | }, |
| | | overHidden: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择活动地点", |
| | | trigger: "blur" |
| | | }], |
| | | }, |
| | | { |
| | | label: "经度", |
| | |
| | | }, |
| | | rowUpdate (row, index, done, loading) { |
| | | console.log('row', row) |
| | | if (!row.activityArea) { |
| | | this.$message.warning("请绘制活动区域") |
| | | loading() |
| | | return |
| | | } |
| | | if (!row.activityArea.startsWith("'LINESTRING")) { |
| | | row.activityArea = "'LINESTRING(" + row.activityArea + ")'" |
| | | } |
| | | row.position = row.longitude + " " + row.latitude |
| | | update(row).then(() => { |
| | | this.onLoad(this.page) |
| | |
| | | prop: "buildId", |
| | | type: "input", |
| | | }, |
| | | { |
| | | label: "创建时间", |
| | | prop: "createTime", |
| | | }, |
| | | ] |
| | | }, |
| | | data: [] |