jiangping
2024-05-27 dbf48bf983b20754778ba5cd94a889b93738367e
最新版本
已修改5个文件
36 ■■■■ 文件已修改
admin/src/api/business/cars.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/api/business/hiddenDanger.js 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/base/BaseOpera.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/base/BaseTable.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/business/OperaHiddenDangerWindow.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/api/business/cars.js
@@ -6,6 +6,11 @@
    trim: true
  })
}
export function allList (data) {
  return request.post('/visitsAdmin/cloudService/business/cars/list', data, {
    trim: true
  })
}
// 创建
export function create (data) {
admin/src/api/business/hiddenDanger.js
@@ -21,7 +21,10 @@
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', {
admin/src/components/base/BaseOpera.vue
@@ -92,7 +92,7 @@
            this.$emit('success')
          })
          .catch(e => {
            this.$tip.apiFailed(e)
            // this.$tip.apiFailed(e)
          })
          .finally(() => {
            this.isWorking = false
@@ -114,7 +114,7 @@
            this.$emit('success')
          })
          .catch(e => {
            this.$tip.apiFailed(e)
            // this.$tip.apiFailed(e)
          })
          .finally(() => {
            this.isWorking = false
admin/src/components/base/BaseTable.vue
@@ -132,7 +132,7 @@
          this.tableData.pagination.total = data.total
        })
        .catch(e => {
          this.$tip.apiFailed(e)
          // this.$tip.apiFailed(e)
        })
        .finally(() => {
          this.isWorking.search = false
admin/src/components/business/OperaHiddenDangerWindow.vue
@@ -178,13 +178,16 @@
</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: '同意',
@@ -193,11 +196,26 @@
      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('--')