Browse Source

修复bug

feature/dev_worklog2
dai 3 years ago
parent
commit
aa60c18341
  1. 10
      src/views/modules/visual/command/cpts/popup.vue
  2. 83
      src/views/modules/visual/command/cpts/qsydw.vue

10
src/views/modules/visual/command/cpts/popup.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="m-pop" v-show="!hidden"> <div class="m-pop" ref="pop" @mousewheel="handleWheel" v-show="!hidden">
<div class="info"> <div class="info">
<div <div
v-if=" v-if="
@ -440,6 +440,12 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
handleWheel(e) {
if (this.$refs.pop.clientHeight >= 321) {
e.stopPropagation();
}
},
handleClickBtn(type) { handleClickBtn(type) {
this.$emit("operate", type, { this.$emit("operate", type, {
placeType: this.placeType, placeType: this.placeType,
@ -846,7 +852,7 @@ export default {
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
max-height: 600px; max-height: 321px;
overflow-y: auto; overflow-y: auto;
.info { .info {

83
src/views/modules/visual/command/cpts/qsydw.vue

@ -7,14 +7,12 @@
<span>企事业单位巡查详情</span> <span>企事业单位巡查详情</span>
</div> </div>
<div class="btn-close" <div class="btn-close" @click="handleClose">
@click="handleClose">
<img src="@/assets/img/shuju/people/close.png" /> <img src="@/assets/img/shuju/people/close.png" />
</div> </div>
<div class="list-wr"> <div class="list-wr">
<div class="list"> <div class="list">
<div class="item"> <div class="item">
<span class="item-field">场所类型</span> <span class="item-field">场所类型</span>
<span>{{ eventDetailData.placeTypeName }}</span> <span>{{ eventDetailData.placeTypeName }}</span>
@ -31,12 +29,13 @@
<span class="item-field">联系电话</span> <span class="item-field">联系电话</span>
<span>{{ eventDetailData.mobile }}</span> <span>{{ eventDetailData.mobile }}</span>
</div> </div>
</div> </div>
<div class="list"> <div class="list">
<div class="item"> <div class="item">
<span class="item-field">场所区域</span> <span class="item-field">场所区域</span>
<span>{{ eventDetailData.agencyName+eventDetailData.gridName }}</span> <span>{{
eventDetailData.agencyName + eventDetailData.gridName
}}</span>
</div> </div>
<div class="item"> <div class="item">
<span class="item-field">场所地址</span> <span class="item-field">场所地址</span>
@ -46,20 +45,18 @@
<span class="item-field">负责人</span> <span class="item-field">负责人</span>
<span>{{ eventDetailData.personInCharge }}</span> <span>{{ eventDetailData.personInCharge }}</span>
</div> </div>
</div> </div>
</div> </div>
<div class="div_record"> <div class="div_record">
<record :formType="'edit'" <record
:source="'visiual'" :formType="'edit'"
:enterpriseId="enterpriseId" :source="'visiual'"
:enterpriseInfo="enterpriseInfo"></record> :enterpriseId="enterpriseId"
:enterpriseInfo="enterpriseInfo"
></record>
</div> </div>
<div class="div-btn " <div class="div-btn" style="padding-bottom: 10px">
style="padding-bottom:10px"> <el-button size="small" @click="handleClose">关闭</el-button>
<el-button size="small"
@click="handleClose">关闭</el-button>
</div> </div>
</cpt-card> </cpt-card>
</div> </div>
@ -72,47 +69,43 @@ import cptCard from "@/views/modules/visual/cpts/card";
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import record from "@/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record"; import record from "@/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record";
export default { export default {
name: "dialogInfo", name: "dialogInfo",
props: { props: {
enterpriseId: { enterpriseId: {
type: String, type: String,
required: 'true' required: "true",
}, },
}, },
components: { components: {
cptCard, cptCard,
record record,
}, },
data () { data() {
return { return {
loading: false, loading: false,
pageType: 'dispose', pageType: "dispose",
eventDetailData: {}, eventDetailData: {},
enterpriseInfo: {}, enterpriseInfo: {},
// enterpriseId: '', // enterpriseId: '',
}; };
}, },
async mounted () { async mounted() {
this.loading = false this.loading = false;
await this.loadInfo() await this.loadInfo();
this.loading = true this.loading = true;
}, },
methods: { methods: {
async loadInfo () { async loadInfo() {
const url = "/gov/org/enterprise/detail/" + this.enterpriseId; const url = "/gov/org/enterprise/detail/" + this.enterpriseId;
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/detail"; // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/detail";
@ -120,28 +113,24 @@ export default {
const { data, code, msg } = await requestPost(url); const { data, code, msg } = await requestPost(url);
if (code === 0) { if (code === 0) {
this.eventDetailData = { ...data }; this.eventDetailData = { ...data };
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
handleClose () { handleClose() {
this.pageType = ""; this.pageType = "";
this.$emit("handleClose") this.$emit("handleClose");
}, },
handleOk () { handleOk() {
this.pageType = ""; this.pageType = "";
this.pageNo = 1 this.pageNo = 1;
}, },
handleEditSuccess () { handleEditSuccess() {
this.handleClose(); this.handleClose();
}, },
}, },
}; };
@ -223,4 +212,24 @@ export default {
.div_record { .div_record {
// padding-bottom: 30px; // padding-bottom: 30px;
} }
/deep/ .el-table {
color: #ffffff;
border-color: rgba(#000, 0.1) !important;
th {
background: rgba(8, 37, 134, 0.85) !important;
}
tr {
background: rgba(16, 75, 164, 0.85) !important;
&:hover,
td {
background: rgba(16, 75, 164, 0.85) !important;
}
.el-button {
color: #e4dc00;
}
}
}
</style> </style>

Loading…
Cancel
Save