| | |
| | | trim: true |
| | | }) |
| | | } |
| | | export function allList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/cars/list', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // 创建 |
| | | export function create (data) { |
| | |
| | | export function deleteById (id) { |
| | | return request.get(`/visitsAdmin/cloudService/business/hiddenDanger/delete/${id}`) |
| | | } |
| | | |
| | | // 根据ID查询 |
| | | export function detail(id) { |
| | | return request.get(`/visitsAdmin/cloudService/business/hiddenDanger/${id}`) |
| | | } |
| | | // 批量删除 |
| | | export function deleteByIdInBatch (ids) { |
| | | return request.get('/visitsAdmin/cloudService/business/hiddenDanger/delete/batch', { |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | this.tableData.pagination.total = data.total |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.search = false |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | export default { |
| | | components: { GlobalWindow }, |
| | | extends: BaseOpera, |
| | | data() { |
| | | return { |
| | | title: '访客预约详情', |
| | | visible: false, |
| | | dataId:null, |
| | | model: { }, |
| | | isShowAppr: false, |
| | | apprTitle: '同意', |
| | |
| | | rules: {} |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | api: '/business/hiddenDanger', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open(title,target){ |
| | | this.title =title |
| | | this.visible=true |
| | | this.model = target |
| | | this.model = {} |
| | | this.dataId =target.id |
| | | this.getDetail() |
| | | |
| | | }, |
| | | getDetail(){ |
| | | this.api.detail(this.dataId) |
| | | .then(res =>{ |
| | | this.model = res |
| | | }) |
| | | }, |
| | | confirm() { |
| | | console.log('--') |