Browse Source

修改联建活动详情及事件样式

v1.1
战立标 2 years ago
parent
commit
3defa576a1
  1. 57
      src/views/modules/communityParty/regionalParty/activitysDetail.vue
  2. 31
      src/views/modules/goverhotline/index.vue
  3. 2
      src/views/modules/shequzhili/event/eventList.vue

57
src/views/modules/communityParty/regionalParty/activitysDetail.vue

@ -62,6 +62,7 @@
<script>
import { Loading } from "element-ui"; // Loading
import daiMap from "@/utils/dai-map";
import {requestPost} from "@/js/dai/request";
var map;
let loading; //
@ -89,6 +90,7 @@ export default {
},
async initForm (row) {
console.log(row,'rowrowrow')
this.startLoading();
const { user } = this.$store.state;
this.agencyId = user.agencyId;
@ -97,29 +99,41 @@ export default {
row.serviceMatterShow = item.label;
}
}
this.formData = { ...row };
const url = '/heart/icpartyactivity/detail'
// const url = 'http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/detail'
let params = {
id: row.id
}
this.initLoading = true;
const { data, code, msg } = await requestPost(url, params)
let { latitude, longitude } = this.$store.state.user;
console.log("lat" + latitude + ",lon" + longitude);
if (this.formData.latitude && this.formData.longitude) {
latitude = this.formData.latitude;
longitude = this.formData.longitude;
}
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
this.$nextTick(() => {
if (!map) {
this.initMap(latitude, longitude);
} else {
map.setCenter(latitude, longitude);
map.setMarker(latitude, longitude);
}
});
if (code === 0) {
this.formData = data
console.log(this.formData.content)
let style_img = "style='width:50px;height:40px;' "
this.initLoading = true;
let {latitude, longitude} = this.$store.state.user;
console.log("lat" + latitude + ",lon" + longitude);
if (this.formData.latitude && this.formData.longitude) {
latitude = this.formData.latitude;
longitude = this.formData.longitude;
}
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
this.$nextTick(() => {
if (!map) {
this.initMap(latitude, longitude);
} else {
map.setCenter(latitude, longitude);
map.setMarker(latitude, longitude);
}
});
} else {
this.$message.error(msg)
}
this.endLoading();
},
@ -196,4 +210,7 @@ export default {
justify-content: flex-end;
margin-right: 16px;
}
.u-info-title-2 {
white-space: nowrap;
}
</style>

31
src/views/modules/goverhotline/index.vue

@ -108,11 +108,15 @@
<h2 style="font-size: 20px; font-weight: bold;"> 同地点同类型事件重复投诉 </h2>
</div>
<el-table :data="addressData" border class="m-table-item" style="width: 100%" @row-click="clickAddressData">
<el-table :data="addressData" border class="m-table-item" style="width: 100%">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="address" align="center" label="地点" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="categoryName" align="center" label="类型" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="amount" align="center" label="投诉次数" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="amount" align="center" label="投诉次数" :show-overflow-tooltip="true">
<template slot-scope="{row}">
<el-button style="width: 100%" type="text" @click="clickAddressData(row)">{{row.amount}}</el-button>
</template>
</el-table-column>
<el-table-column prop="content" align="center" label="投诉内容" :show-overflow-tooltip="true"></el-table-column>
</el-table>
@ -122,7 +126,7 @@
<h2 style="font-size: 20px; font-weight: bold;"> 同一人员重复投诉</h2>
</div>
<el-table :data="mobileData" border class="m-table-item" style="width: 100%" @row-click="clickMobileData">
<el-table :data="mobileData" border class="m-table-item" style="width: 100%">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="mobile" align="center" label="联系方式" :show-overflow-tooltip="true">
<template slot-scope="scope">
@ -139,7 +143,11 @@
</span>
</template>
</el-table-column>
<el-table-column prop="amount" align="center" label="投诉次数" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="amount" align="center" label="投诉次数" :show-overflow-tooltip="true">
<template slot-scope="{row}">
<el-button style="width: 100%" type="text" @click="clickMobileData(row)">{{row.amount}}</el-button>
</template>
</el-table-column>
<el-table-column prop="content" align="center" label="投诉内容" :show-overflow-tooltip="true"></el-table-column>
</el-table>
@ -149,11 +157,15 @@
<h2 style="font-size: 20px; font-weight: bold;"> 同一区域不同类型投诉</h2>
</div>
<el-table :data="addressMobileData" border class="m-table-item" style="width: 100%" :span-method="objectSpanMethod" @row-click="clickAddressMobileData">
<el-table :data="addressMobileData" border class="m-table-item" style="width: 100%" :span-method="objectSpanMethod">
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="address" align="center" label="地点" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="categoryName" align="center" label="类型" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="amount" align="center" label="投诉次数" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="amount" align="center" label="投诉次数" :show-overflow-tooltip="true">
<template slot-scope="{row}">
<el-button style="width: 100%" type="text" @click="clickAddressMobileData(row)">{{row.amount}}</el-button>
</template>
</el-table-column>
<el-table-column prop="content" align="center" label="投诉内容" :show-overflow-tooltip="true"></el-table-column>
</el-table>
@ -168,11 +180,14 @@
border
class="m-table-item"
style="width: 100%"
@row-click="clickAwoFlagData"
>
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="categoryName" align="center" label="类型" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="awoNum" align="center" label="追加内容次数" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="awoNum" align="center" label="追加内容次数" :show-overflow-tooltip="true">
<template slot-scope="{row}">
<el-button style="width: 100%" type="text" @click="clickAwoFlagData(row)">{{row.awoNum}}</el-button>
</template>
</el-table-column>
<el-table-column prop="content" align="center" label="投诉内容" :show-overflow-tooltip="true"></el-table-column>
</el-table>

2
src/views/modules/shequzhili/event/eventList.vue

@ -162,7 +162,7 @@
:show-overflow-tooltip="true" />
<el-table-column prop="eventContent" label="追加" width="80" align="center">
<template slot-scope="{row}">
<a @click="showAwoList(row)">{{row.awoNum}}</a>
<el-button style="width: 100%" type="text" @click="showAwoList(row)">{{row.awoNum}}</el-button>
</template>
</el-table-column>
<!-- <el-table-column prop="imageList" align="center" width="80" label="图片">

Loading…
Cancel
Save