Browse Source

改bug

feature/dev_worklog2
dai 3 years ago
parent
commit
82ca8fb454
  1. 1528
      src/views/modules/communityService/fuwujilu/addForm.vue
  2. 7
      src/views/modules/visual/command/cpts/map.vue
  3. 76
      src/views/modules/visual/command/cpts/popup.vue
  4. 45
      src/views/modules/visual/command/cpts/serviceInfo.vue
  5. 19
      src/views/modules/visual/command/index.vue

1528
src/views/modules/communityService/fuwujilu/addForm.vue

File diff suppressed because it is too large

7
src/views/modules/visual/command/cpts/map.vue

@ -825,6 +825,13 @@ export default {
border-radius: 10px;
overflow: hidden;
/deep/ .l7-popup-content {
background: rgba(#020340, 0.58);
}
/deep/ .l7-popup-close-button {
color: #fff;
}
#app {
width: 100%;
height: 100%;

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

@ -1,7 +1,13 @@
<template>
<div class="m-pop" v-show="!hidden">
<div class="info">
<div v-if="placeType === 'resi' || placeType === 'special_resi'">
<div
v-if="
placeType === 'resi' ||
placeType === 'special_resi' ||
placeType === 'volunteer'
"
>
<div class="info-title">居民信息</div>
<div class="item">
姓名
@ -47,13 +53,25 @@
</div>
<div class="operate">
<div @click="handleClickBtn('watch-resi')" class="btn">查看更多</div>
<div
@click="handleClickBtn('create-demand')"
v-if="info.agencyId == $store.state.user.agencyId"
class="btn"
class="btn z-blue"
>
发布需求
</div>
<div
v-if="
info.agencyId == $store.state.user.agencyId &&
placeType === 'volunteer'
"
@click="handleClickBtn('create-service')"
class="btn z-yellow"
>
发起服务
</div>
</div>
</div>
@ -239,6 +257,14 @@
创建时间
<span>{{ info.organizationCreatedTime || "--" }}</span>
</div>
<div
v-if="info.agencyId == $store.state.user.agencyId"
@click="handleClickBtn('create-service')"
class="btn z-yellow"
>
发起服务
</div>
</div>
<div v-if="placeType === 'group_rent'">
@ -350,11 +376,19 @@
地理位置
<span>{{ info.address || "--" }}</span>
</div>
<div
v-if="info.agencyId == $store.state.user.agencyId"
@click="handleClickBtn('create-service')"
class="btn z-yellow"
>
发起服务
</div>
</div>
<div v-if="placeType === 'grid'">
<div class="operate">
<div @click="handleClickBtn('create-service')" class="btn">
<div @click="handleClickBtn('create-service')" class="btn z-yellow">
发起服务
</div>
</div>
@ -394,6 +428,7 @@ export default {
return {
hidden: true,
placeType: "",
srcItem: {},
info: {},
list: [],
};
@ -406,7 +441,11 @@ export default {
methods: {
handleClickBtn(type) {
this.$emit("operate", type, this.info);
this.$emit("operate", type, {
placeType: this.placeType,
id: this.srcItem.id,
...this.info,
});
},
handleClickListItem(item) {
@ -415,7 +454,7 @@ export default {
},
async show(item) {
console.log("-----------------show");
console.log("-----------------show:", item);
const { placeType, latitude, longitude } = item;
if (!placeType) {
return false;
@ -429,7 +468,15 @@ export default {
this.list = item.dataList;
}
if (placeType === "resi" || placeType === "special_resi") {
if (placeType === "grid") {
this.info = { ...item };
}
if (
placeType === "resi" ||
placeType === "special_resi" ||
placeType === "volunteer"
) {
await this.loadResi(item);
}
if (placeType === "public_service") {
@ -477,6 +524,7 @@ export default {
await this.loadEnterprisePartrol(item);
}
this.placeType = item.placeType;
this.srcItem = item;
this.hidden = false;
return true;
},
@ -795,7 +843,7 @@ export default {
.m-pop {
@include scrollBar2;
max-width: 380px;
color: #333;
color: #fff;
font-size: 14px;
line-height: 20px;
max-height: 600px;
@ -831,10 +879,20 @@ export default {
.btn {
margin-top: 20px;
margin-right: 20px;
width: 100px;
line-height: 30px;
width: 80px;
line-height: 24px;
border: 1px solid #eee;
text-align: center;
font-size: 14px;
border-radius: 2px;
&.z-blue {
background: #09a5ff;
border-color: #09a5ff;
}
&.z-yellow {
background: #fe6b53;
border-color: #fe6b53;
}
}
}
</style>

45
src/views/modules/visual/command/cpts/serviceInfo.vue

@ -15,6 +15,7 @@
ref="demandEditForm"
:source="'visiual'"
:formType="'add'"
:defaultData="defaultData"
@close="handleClose"
@handleClose="handleClose"
@handleOk="handleOk"
@ -27,14 +28,17 @@
<script>
import cptCard from "@/views/modules/visual/cpts/card";
import { requestPost } from "@/js/dai/request";
import addForm from "@/views/modules/communityService/fuwujilu/addForm";
export default {
name: "dialogInfo",
props: {},
props: {
defaultData: {
type: Object,
default: null,
},
},
components: {
cptCard,
@ -42,47 +46,18 @@ export default {
},
data() {
return {
loading: false,
pageType: "dispose",
eventId: "1529724450524061698",
eventDetailData: {},
};
return {};
},
async mounted() {
this.loading = false;
await this.handleSearch();
this.loading = true;
console.log('初始化serviceInfo', this.defaultData)
},
methods: {
async handleSearch() {
const url = "/gov/project/icEvent/detail";
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/detail";
const { data, code, msg } = await requestPost(url, {
icEventId: this.eventId,
});
if (code === 0) {
this.eventDetailData = { ...data };
this.pageType = "dispose";
} else {
this.$message.error(msg);
}
},
handleClose() {
this.pageType = "";
this.$emit("handleClose");
// this.eventId = ""
},
handleOk() {
this.pageType = "";
// this.eventId = ""
this.pageNo = 1;
this.handleClose();
},

19
src/views/modules/visual/command/index.vue

@ -188,6 +188,7 @@
<service-info
v-if="pageType === 'create-service'"
ref="ref_service"
:default-data="serviceDefaultData"
@handleClose="handleClose"
/>
@ -430,6 +431,7 @@ export default {
selGridId: "",
eventId: "",
enterpriseId: "",
serviceDefaultData: null,
};
},
@ -455,9 +457,23 @@ export default {
methods: {
handleClickDotBtn(type, info) {
this.pageType = type;
if (type == "create-service") {
//
if (
info.placeType == "volunteer" ||
info.placeType == "community_org" ||
info.placeType == "party_unit"
) {
this.serviceDefaultData = {
serviceOrgType:
info.placeType == "ic_user_volunteer" ? "" : info.placeType,
serviceOrgId: info.id,
};
} else if (info.placeType == "grid") {
this.serviceDefaultData = {
scopeIdArray: [info.id],
};
}
} else if (type == "watch-resi") {
this.toSubAgency("people", info.icResiUserId);
this.icResiUserId = info.icResiUserId;
@ -472,6 +488,7 @@ export default {
} else if (type == "watch-xuncha") {
this.enterpriseId = info.enterpriseId;
}
this.pageType = type;
},
handleClose() {

Loading…
Cancel
Save