k94314517
2024-05-27 ea8dea301e82be074187b10bdbe130c9802bede0
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('--')