Kaynağa Gözat

3686

tags/v1.2.0
lixin 1 yıl önce
ebeveyn
işleme
2c49175527
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. +8
    -1
      src/views/early-warning/fire/components/FireModal.vue

+ 8
- 1
src/views/early-warning/fire/components/FireModal.vue Dosyayı Görüntüle

@@ -30,7 +30,7 @@
</p>
</div>
<p class="title">处理记录</p>
<p class="content">{{ fireDetail.checkResult }}</p>
<p class="content">核实结果:{{ fireDetail.checkResult }}</p>
<p class="content">处理人:{{ fireDetail.checkUser }}</p>
<p class="content">处理时间:{{ fireDetail.checkTime }}</p>
</template>
@@ -41,6 +41,7 @@
import { defineComponent, ref, reactive, computed, toRefs, onMounted } from 'vue'
import Modal from '@/components/Modal/index.vue'
import { fireDetail } from '@/api/early/fire.js'
import { EARLY_SOURCE } from '@/utils/dictionary.js'
export default defineComponent({
name: 'UserModal',
components: { Modal },
@@ -87,6 +88,12 @@ export default defineComponent({
const res = await fireDetail(props.data.id)
if (res.code === 0) {
data.fireDetail = res.data
EARLY_SOURCE?.map((item) => {
if (item.value === parseInt(data.fireDetail?.discoveryWay)) {
data.fireDetail.discoveryWay = item.label
}
})
console.log(data.fireDetail)
} else {
handleClose()
}

Yükleniyor…
İptal
Kaydet