Browse Source

Merge branch 'dev_shequzhili'

shibei_master
jiangyy 3 years ago
parent
commit
f35d7f3fe4
  1. 31
      src/views/modules/shequzhili/event/cpts/add.vue
  2. 27
      src/views/modules/shequzhili/event/cpts/event-detail.vue
  3. 11
      src/views/modules/shequzhili/event/cpts/event-info.vue
  4. 31
      src/views/modules/shequzhili/event/cpts/process-form-demand.vue
  5. 20
      src/views/modules/shequzhili/event/cpts/process-form-project.vue
  6. 5
      src/views/modules/shequzhili/event/cpts/process-form.vue
  7. 6
      src/views/modules/shequzhili/event/eventList.vue
  8. 2
      src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
  9. 2
      src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue
  10. 2
      src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

31
src/views/modules/shequzhili/event/cpts/add.vue

@ -201,11 +201,11 @@
<el-form-item label="所属网格" <el-form-item label="所属网格"
label-width="150px"> label-width="150px">
<el-select class="cell-width-1" <el-select class="cell-width-1"
disabled v-model.trim="selGridId"
v-model.trim="formData.gridId"
placeholder="请选择" placeholder="请选择"
clearable> clearable>
<el-option v-for="item in gridList" <el-option v-for="item in gridList"
@click.native="handleChangeGrid"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value">
@ -307,21 +307,7 @@ export default {
], ],
formData: iniFmData(), formData: iniFmData(),
formDataTemp: {
address: "山东省青岛市市南区徐州路21号戊",
// categoryList: ["1015", "1016"],
eventContent: "asdfasdfasdfasdf",
gridId: "63d5ff92ea981b1c58e4914ac894c610",
happenTime: "2022-05-05 12:00:00",
idCard: "211103190909090909",
imageList: ["https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20220518/0818246db4cc4ac7bcd84bea69a8b38c.png"],
latitude: 36.07120507831775,
longitude: 120.38806572319174,
mobile: "15111111111",
name: "张三",
reportUserId: "",
sourceType: "1",
},
// //
@ -406,6 +392,10 @@ export default {
"formData.reportUserId": function (val) { "formData.reportUserId": function (val) {
this.$emit("changeUserId", val) this.$emit("changeUserId", val)
}, },
"formData.gridId": function (val) {
this.selGridId = val
this.$emit("changeGridId", val)
}
}, },
async mounted () { async mounted () {
@ -415,9 +405,7 @@ export default {
this.getCategoryList() this.getCategoryList()
this.initMap() this.initMap()
// this.formData = {
// ...this.formDataTemp
// }
}, },
methods: { methods: {
@ -442,7 +430,6 @@ export default {
this.formData.mobile = selPerson.demandUserMobile this.formData.mobile = selPerson.demandUserMobile
this.formData.reportUserId = selPerson.demandUserId this.formData.reportUserId = selPerson.demandUserId
this.formData.idCard = selPerson.idCard this.formData.idCard = selPerson.idCard
console.log(selPerson)
this.personTableShow = false; this.personTableShow = false;
@ -460,7 +447,7 @@ export default {
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/epidemicPrevention/page" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/epidemicPrevention/page"
let params = { let params = {
agencyId: '', agencyId: '',
gridId: this.formData.gridId, gridId: this.selGridId,
name: "", name: "",
} }

27
src/views/modules/shequzhili/event/cpts/event-detail.vue

@ -70,18 +70,29 @@
<div class="line" <div class="line"
@click="handleToDemand">查看需求</div> @click="handleToDemand">查看需求</div>
</div> </div>
<div v-if="info.satisfactionName"
class="info-prop">
<span class="info-title-2">满意度</span>
<div @click="handleToDemand">{{info.satisfactionName}}</div>
</div>
</div> </div>
</div> </div>
<div v-if="info.operationId&&info.status!=='closed_case'" <div v-if="info.operationId||!(info.status==='closed_case'&&!info.satisfactionName && user.id===info.createdUserId)"
class="div-btn "> class="div-btn ">
<el-button size="small" <el-button size="small"
@click="handleCloseEvent">关闭</el-button> @click="handleCloseEvent">关闭</el-button>
</div> </div>
<!-- <div class="div-btn ">
<el-button size="small"
@click="handleCloseEvent">关闭</el-button>
</div> -->
</el-card> </el-card>
<el-card v-if=" info.status==='closed_case'">
<el-card v-if="info.status==='closed_case'&&!info.satisfactionName && user.id===info.createdUserId">
<h3>满意度评价</h3> <h3>满意度评价</h3>
<div class="m-row"> <div class="m-row">
<div class="m-info"> <div class="m-info">
@ -106,13 +117,11 @@
</div> </div>
</div> </div>
<div v-if="info.operationId||info.status==='closed_case'" <div class="div-btn ">
class="div-btn ">
<el-button size="small" <el-button size="small"
@click="handleCloseEvent">关闭</el-button> @click="handleCloseEvent">关闭</el-button>
<el-button v-if="info.status==='closed_case'&&!info.satisfactionName && user.id===info.createdUserId" <el-button size="small"
size="small"
type="primary" type="primary"
@click="handleComfirmSatisfy">确定</el-button> @click="handleComfirmSatisfy">确定</el-button>
@ -225,9 +234,9 @@ export default {
this.info = JSON.parse(JSON.stringify(this.eventDetailData)); this.info = JSON.parse(JSON.stringify(this.eventDetailData));
// //
if (this.info.status === 'closed_case' && this.info.satisfactionName) { // if (this.info.status === 'closed_case' && this.info.satisfactionName) {
this.changeSatisfyType(this.info.satisfaction) // this.changeSatisfyType(this.info.satisfaction)
} // }
} }
// this.getApiData(); // this.getApiData();

11
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -6,7 +6,8 @@
<event-add ref="ref_add" <event-add ref="ref_add"
@changeName="changeName" @changeName="changeName"
@changeMobile="changeMobile" @changeMobile="changeMobile"
@changeUserId="changeUserId"></event-add> @changeUserId="changeUserId"
@changeGridId="changeGridId"></event-add>
</el-card> </el-card>
<div class="process-form"> <div class="process-form">
@ -15,7 +16,8 @@
<process-form ref="ref_processinfo_add" <process-form ref="ref_processinfo_add"
:demandUserId="demandUserId" :demandUserId="demandUserId"
:demandUserName="demandUserName" :demandUserName="demandUserName"
:demandUserMobile="demandUserMobile"></process-form> :demandUserMobile="demandUserMobile"
:gridId="gridId"></process-form>
<div class="div-btn "> <div class="div-btn ">
<el-button size="small" <el-button size="small"
@ -228,6 +230,7 @@ function iniData () {
demandUserId: '', demandUserId: '',
demandUserName: '', demandUserName: '',
demandUserMobile: '', demandUserMobile: '',
gridId: '',
eventDetailCopy: {}, eventDetailCopy: {},
@ -306,6 +309,10 @@ export default {
this.demandUserId = val this.demandUserId = val
}, },
changeGridId (val) {
this.gridId = val
},
// //
async getProjectProcess () { async getProjectProcess () {

31
src/views/modules/shequzhili/event/cpts/process-form-demand.vue

@ -207,22 +207,6 @@ export default {
customerId: localStorage.getItem("customerId"), customerId: localStorage.getItem("customerId"),
demandOptions: [], demandOptions: [],
serviceOptions: [ serviceOptions: [
{
label: "志愿者",
value: "volunteer",
},
// {
// label: '',
// value: 'social_org'
// },
{
label: "社区自组织",
value: "community_org",
},
{
label: "区域党建单位",
value: "party_unit",
},
], ],
serviceOptiondList: [], serviceOptiondList: [],
@ -331,6 +315,7 @@ export default {
this.agencyId = user.agencyId this.agencyId = user.agencyId
this.getCategoryList(); this.getCategoryList();
this.getDemandOptions(); this.getDemandOptions();
this.getServiceOption()
// this.formData = { ...this.formDataTemp } // this.formData = { ...this.formDataTemp }
this.initMap() this.initMap()
@ -428,6 +413,20 @@ export default {
}, },
async getServiceOption () {
const url = "/sys/dict/data/dictlist"
let params = { dictType: "user_demand_service_type", }
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.serviceOptions = data;
} else {
this.$message.error(msg)
}
},
getTreeData (data) { getTreeData (data) {
if (!Array.isArray(data)) return []; if (!Array.isArray(data)) return [];
let arr = data.map((item) => { let arr = data.map((item) => {

20
src/views/modules/shequzhili/event/cpts/process-form-project.vue

@ -128,14 +128,15 @@
</div> </div>
</fold-text> </fold-text>
<el-popover placement="bottom" <el-popover placement="top"
width="400" width="450"
height="400" height="450"
v-model="visibleTagPanel"> v-model="visibleTagPanel">
<div class="f" <div class="f"
style="min-height: 120px"> style="min-height: 120px">
<h2>选择标签</h2> <h2>选择标签</h2>
<el-select v-model="selectedTagData" <el-select style="width: 350px"
v-model="selectedTagData"
multiple multiple
allow-create allow-create
filterable filterable
@ -298,6 +299,10 @@ export default {
}, },
props: { props: {
gridId: {//id
type: String,
default: "",
},
eventId: { eventId: {
type: String, type: String,
default: "", default: "",
@ -310,6 +315,11 @@ export default {
}, },
}, },
watch: { watch: {
gridId: function (val) {
this.formData.gridId = val
},
"formData.assistanceUnitIndex": function (val) { "formData.assistanceUnitIndex": function (val) {
if (val === "" || this.assistanceUnitList.length === 0) { if (val === "" || this.assistanceUnitList.length === 0) {
@ -365,6 +375,7 @@ export default {
// this.formData = { ...this.formDataTemp } // this.formData = { ...this.formDataTemp }
if (this.eventId) { if (this.eventId) {
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData));
this.formData.gridId = this.eventDetailCopy.gridId
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) {
this.selCategoryArray = [] this.selCategoryArray = []
@ -380,6 +391,7 @@ export default {
this.formData.categoryList.push(this.selCateObj) this.formData.categoryList.push(this.selCateObj)
} }
} else { } else {
this.formData.gridId = this.gridId
} }
}, },

5
src/views/modules/shequzhili/event/cpts/process-form.vue

@ -32,6 +32,7 @@
<div v-if="operationType==='1'"> <div v-if="operationType==='1'">
<process-form-project ref="ref_process_form_project" <process-form-project ref="ref_process_form_project"
:eventDetailData="eventDetailData" :eventDetailData="eventDetailData"
:gridId="gridId"
:eventId="eventId"></process-form-project> :eventId="eventId"></process-form-project>
</div> </div>
@ -118,6 +119,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
gridId: {
type: String,
default: "",
},
eventId: { eventId: {
type: String, type: String,
default: "", default: "",

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

@ -254,11 +254,11 @@
size="small" size="small"
class="div-table-button--edit">处理</el-button> class="div-table-button--edit">处理</el-button>
<!-- <el-button v-else-if="scope.row.status==='closed_case' && !scope.row.satisfactionName && user.id===scope.row.createdUserId" <el-button v-else-if="scope.row.status==='closed_case' && !scope.row.satisfactionName && user.id===scope.row.createdUserId"
@click="handleSatisfy(scope.row)" @click="handleWatch(scope.row)"
type="text" type="text"
size="small" size="small"
class="div-table-button--edit">评价</el-button> --> class="div-table-button--edit">评价</el-button>
<el-button v-else <el-button v-else
@click="handleWatch(scope.row)" @click="handleWatch(scope.row)"
type="text" type="text"

2
src/views/modules/visual/communityGovern/shijianchuli/event-info.vue

@ -18,7 +18,7 @@
<span>{{ eventInfo.gridName }}</span> <span>{{ eventInfo.gridName }}</span>
</div> </div>
<div class="info-prop"> <div class="info-prop">
<span>上报时间</span> <span>发生时间</span>
<span>{{ eventInfo.createdTime }}</span> <span>{{ eventInfo.createdTime }}</span>
</div> </div>

2
src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue

@ -298,6 +298,8 @@ export default {
await this.getLineChart() await this.getLineChart()
this.dataLoading = false this.dataLoading = false
console.log(this.orgType)
console.log(this.orgId)
// this.assignData() // this.assignData()

2
src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

@ -104,6 +104,8 @@
</div> </div>
<event-info v-if="showProject" <event-info v-if="showProject"
:eventId="eventId" :eventId="eventId"
:orgId="tableOrgId ? tableOrgId : orgId"
:orgType="tableOrgType ? tableOrgType : orgType"
@close="showProject = false" /> @close="showProject = false" />
</cpt-card> </cpt-card>
</template> </template>

Loading…
Cancel
Save