Browse Source

Merge branch 'dev-tuceng0616' into dev

feature
jiangyy 3 years ago
parent
commit
60fa0dcaa8
  1. 18
      src/views/modules/communityService/ninePlaces/places/places.vue
  2. 28
      src/views/modules/communityService/ninePlaces/places/placesForm.vue
  3. 209
      src/views/modules/communityService/sqzzz/index.vue
  4. 33
      src/views/modules/cpts/base/cpts/edit.vue
  5. 9
      src/views/modules/cpts/base/index.vue
  6. 1
      src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue
  7. 3
      src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue
  8. 10
      src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
  9. 1
      src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue
  10. 10
      src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

18
src/views/modules/communityService/ninePlaces/places/places.vue

@ -149,11 +149,15 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" <el-button type="text"
class="div-table-button--detail"
size="small"
@click="handleDetail(scope.row)">查看</el-button>
<el-button v-if="agencyId===scope.row.agencyId" type="text"
class="div-table-button--edit" class="div-table-button--edit"
size="small" size="small"
@click="handleEdit(scope.row)">修改</el-button> @click="handleEdit(scope.row)">修改</el-button>
<el-button type="text" <el-button v-if="agencyId===scope.row.agencyId" type="text"
class="div-table-button--delete" class="div-table-button--delete"
size="small" size="small"
@click="handleDelete(scope.row)">删除</el-button> @click="handleDelete(scope.row)">删除</el-button>
@ -182,7 +186,7 @@
class="dialog-h" class="dialog-h"
@closed="diaClose"> @closed="diaClose">
<places-form ref="ref_form" <places-form ref="ref_form"
:gridList="gridList" :agencyId="agencyId"
:scaleList="scaleList" :scaleList="scaleList"
:placeTypeList="placeTypeList" :placeTypeList="placeTypeList"
@dialogCancle="addFormCancle" @dialogCancle="addFormCancle"
@ -262,7 +266,8 @@ export default {
const url = "/gov/org/customergrid/gridoption" const url = "/gov/org/customergrid/gridoption"
let params = { let params = {
agencyId: this.agencyId agencyId: this.agencyId,
purpose:"query"
} }
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
@ -366,6 +371,13 @@ export default {
this.$refs.ref_form.initForm('edit', row.placeOrgId) this.$refs.ref_form.initForm('edit', row.placeOrgId)
}) })
}, },
handleDetail (row) {
this.formTitle = '详情'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('detail', row.placeOrgId)
})
},
addFormCancle () { addFormCancle () {
this.formShow = false this.formShow = false

28
src/views/modules/communityService/ninePlaces/places/placesForm.vue

@ -148,6 +148,7 @@ export default {
async initForm (type, placeOrgId) { async initForm (type, placeOrgId) {
this.$refs.ref_form.resetFields(); this.$refs.ref_form.resetFields();
this.loadGrid()
this.formType = type this.formType = type
if (placeOrgId) { if (placeOrgId) {
@ -156,6 +157,25 @@ export default {
await this.loadFormData() await this.loadFormData()
} }
},
async loadGrid () {
const url = "/gov/org/customergrid/gridoption"
let params = {
agencyId: this.agencyId,
purpose:"addorupdate"
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.gridList = data
} else {
this.$message.error(msg)
}
}, },
// //
@ -301,10 +321,6 @@ export default {
}, },
props: { props: {
gridList: {
type: Array,
default: []
},
scaleList: { scaleList: {
type: Array, type: Array,
default: [] default: []
@ -313,6 +329,10 @@ export default {
type: Array, type: Array,
default: [] default: []
}, },
agencyId: {
type: String,
default: ""
},
} }
} }
</script> </script>

209
src/views/modules/communityService/sqzzz/index.vue

@ -1,58 +1,72 @@
<template> <template>
<div class="resi-container"> <div class="resi-container">
<el-card ref="searchCard" <el-card ref="searchCard" class="search-card">
class="search-card"> <el-form
<el-form ref="searchForm" ref="searchForm"
:inline="true" :inline="true"
:model="fmData" :model="fmData"
class="demo-form-inline"> class="demo-form-inline"
<el-form-item label="组织名称" >
prop="organizationName"> <el-form-item label="组织名称" prop="organizationName">
<el-input v-model="fmData.organizationName" <el-input
v-model="fmData.organizationName"
class="resi-cell-input" class="resi-cell-input"
size="small" size="small"
clearable clearable
placeholder="请输入"> placeholder="请输入"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="创建时间" <el-form-item label="创建时间" prop="createTime">
prop="createTime"> <el-date-picker
<el-date-picker v-model="fmData.createTime" v-model="fmData.createTime"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd"
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="备注" <el-form-item label="备注" prop="remark">
prop="remark"> <el-input
<el-input v-model="fmData.remark" v-model="fmData.remark"
class="resi-cell-input" class="resi-cell-input"
size="small" size="small"
clearable clearable
placeholder="请输入"> placeholder="请输入"
>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="diy-button--search" <el-button
class="diy-button--search"
size="small" size="small"
@click="handleSearch">查询</el-button> @click="handleSearch"
<el-button class="diy-button--reset" >查询</el-button
>
<el-button
class="diy-button--reset"
size="small" size="small"
@click="resetForm('searchForm')">重置</el-button> @click="resetForm('searchForm')"
>重置</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
<el-card class="resi-card-table"> <el-card class="resi-card-table">
<div class="resi-row-btn"> <div class="resi-row-btn">
<el-button class="diy-button--add" <el-button class="diy-button--add" size="small" @click="handleAdd"
size="small" >新增</el-button
@click="handleAdd">新增</el-button> >
<el-button class="diy-button--export" <el-button
class="diy-button--export"
size="small" size="small"
@click="handleExportModule('room')">下载模板</el-button> @click="handleExportModule('room')"
<el-upload ref="upload" >下载模板</el-button
>
<el-upload
ref="upload"
class="upload-btn" class="upload-btn"
action="uploadUlr" action="uploadUlr"
:limit="1" :limit="1"
@ -63,73 +77,69 @@
:on-progress="handleProgress" :on-progress="handleProgress"
:on-success="handleExcelSuccess" :on-success="handleExcelSuccess"
:before-upload="beforeExcelUpload" :before-upload="beforeExcelUpload"
:http-request="uploadHttpRequest"> :http-request="uploadHttpRequest"
<el-button size="small" >
<el-button
size="small"
class="diy-button--delete" class="diy-button--delete"
:loading="importLoading">{{ importBtnTitle }}</el-button> :loading="importLoading"
>{{ importBtnTitle }}</el-button
>
</el-upload> </el-upload>
<el-button @click="handleChu" <el-button @click="handleChu" class="diy-button--reset" size="small"
class="diy-button--reset" >导出</el-button
size="small">导出</el-button> >
</div> </div>
<el-table :data="tableData" <el-table
:data="tableData"
border border
style="width: 100%" style="width: 100%"
class="resi-table" class="resi-table"
:height="maxTableHeight"> :height="maxTableHeight"
<el-table-column label="序号" >
type="index" <el-table-column label="序号" type="index" align="center" width="50" />
align="center" <el-table-column
width="50" /> prop="organizationName"
<el-table-column prop="organizationName"
label="组织名称" label="组织名称"
align="center"> align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<a class="name-a" <a class="name-a" @click="handleWatch(scope.$index)">
@click="handleWatch(scope.$index)">
{{ scope.row.organizationName }} {{ scope.row.organizationName }}
</a> </a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="categoryName" <el-table-column prop="categoryName" align="center" label="分类名称">
align="center"
label="分类名称">
</el-table-column> </el-table-column>
<el-table-column prop="organizationPersonCount" <el-table-column
prop="organizationPersonCount"
align="center" align="center"
label="组织人数"> label="组织人数"
>
</el-table-column> </el-table-column>
<el-table-column prop="serviceItem" <el-table-column
prop="serviceItem"
label="服务事项" label="服务事项"
align="center" align="center"
:show-overflow-tooltip="true"> :show-overflow-tooltip="true"
>
</el-table-column> </el-table-column>
<el-table-column prop="score" <el-table-column prop="score" width="100" align="center" label="积分">
width="100"
align="center"
label="积分">
</el-table-column> </el-table-column>
<el-table-column prop="principalName" <el-table-column prop="principalName" align="center" label="负责人">
align="center"
label="负责人">
</el-table-column> </el-table-column>
<el-table-column prop="principalPhone" <el-table-column prop="principalPhone" align="center" label="联系电话">
align="center"
label="联系电话">
</el-table-column> </el-table-column>
<el-table-column prop="remark" <el-table-column prop="remark" align="center" label="备注">
align="center"
label="备注">
</el-table-column> </el-table-column>
<el-table-column prop="organizationCreatedTime" <el-table-column
prop="organizationCreatedTime"
align="center" align="center"
label="创建时间"> label="创建时间"
>
</el-table-column> </el-table-column>
<el-table-column fixed="right" <el-table-column fixed="right" label="操作" align="center" width="160">
label="操作"
align="center"
width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button <!-- <el-button
@click="handleWatch(scope.$index)" @click="handleWatch(scope.$index)"
@ -137,64 +147,87 @@
size="small" size="small"
>查看</el-button >查看</el-button
> --> > -->
<el-button type="text" <el-button
type="text"
class="div-table-button--detail" class="div-table-button--detail"
size="small" size="small"
@click="handleScore(scope.row)">积分记录</el-button> @click="handleScore(scope.row)"
>积分记录</el-button
>
<el-button @click="handleEdit(scope.$index)" <el-button
@click="handleEdit(scope.$index)"
v-if="scope.row.agencyId == $store.state.user.agencyId"
type="text" type="text"
size="small" size="small"
class="div-table-button--edit">修改</el-button> class="div-table-button--edit"
>修改</el-button
>
<el-popconfirm title="删除之后无法回复,确认删除?" <el-popconfirm
title="删除之后无法回复,确认删除?"
v-if="scope.row.agencyId == $store.state.user.agencyId"
@onConfirm="handleDel(scope.row, scope.$index)" @onConfirm="handleDel(scope.row, scope.$index)"
@confirm="handleDel(scope.row, scope.$index)"> @confirm="handleDel(scope.row, scope.$index)"
<el-button slot="reference" >
<el-button
slot="reference"
type="text" type="text"
size="small" size="small"
class="div-table-button--delete" class="div-table-button--delete"
style="margin-left: 10px">删除</el-button> style="margin-left: 10px"
>删除</el-button
>
</el-popconfirm> </el-popconfirm>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div> <div>
<el-pagination @size-change="handleSizeChange" <el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="pageNo" :current-page.sync="pageNo"
:page-sizes="[20, 50, 100, 200]" :page-sizes="[20, 50, 100, 200]"
:page-size="parseInt(pageSize)" :page-size="parseInt(pageSize)"
layout="sizes, prev, pager, next, total" layout="sizes, prev, pager, next, total"
:total="total"> :total="total"
>
</el-pagination> </el-pagination>
</div> </div>
</el-card> </el-card>
<!-- 修改弹出框 --> <!-- 修改弹出框 -->
<el-dialog :visible.sync="formShow" <el-dialog
:visible.sync="formShow"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="formTitle" :title="formTitle"
width="850px" width="850px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="handleClose"> @closed="handleClose"
<edit-form ref="eleEditForm" >
<edit-form
ref="eleEditForm"
@dialogCancle="handleClose" @dialogCancle="handleClose"
@dialogOk="handleEditSuccess"></edit-form> @dialogOk="handleEditSuccess"
></edit-form>
</el-dialog> </el-dialog>
<!-- 积分记录 --> <!-- 积分记录 -->
<el-dialog :visible.sync="scoreDiaShow" <el-dialog
:visible.sync="scoreDiaShow"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:title="scoreDiaTitle" :title="scoreDiaTitle"
width="70%" width="70%"
top="5vh" top="5vh"
@closed="diaClose"> @closed="diaClose"
<score-record ref="ref_score" >
:serviceType="'community_org'"></score-record> <score-record
ref="ref_score"
:serviceType="'community_org'"
></score-record>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -478,7 +511,7 @@ export default {
this.$message.success("删除成功!"); this.$message.success("删除成功!");
this.getTableData(); this.getTableData();
} else { } else {
this.$message.error(msg) this.$message.error(msg);
// this.$message.success(""); // this.$message.success("");
} }
}, },
@ -501,7 +534,7 @@ export default {
}) })
: []; : [];
} else { } else {
this.$message.error(msg) this.$message.error(msg);
} }
}, },

33
src/views/modules/cpts/base/cpts/edit.vue

@ -265,10 +265,26 @@
</div> </div>
</el-form> </el-form>
<slot v-bind:id="formId" v-bind:info="fmData" v-bind:formType="formType"></slot> <div class="div_btn resi-btns" v-if="!formBtnFixed">
<el-button size="small" @click="handleCancle"> </el-button>
<el-button
v-if="formType != 'watch'"
type="primary"
size="small"
:disabled="btnDisable"
@click="handleComfirm"
> </el-button
>
</div>
<slot
v-bind:id="formId"
v-bind:info="fmData"
v-bind:formType="formType"
></slot>
</div> </div>
<div class="div_btn resi-btns"> <div class="div_btn resi-btns" v-if="formBtnFixed">
<el-button size="small" @click="handleCancle"> </el-button> <el-button size="small" @click="handleCancle"> </el-button>
<el-button <el-button
v-if="formType != 'watch'" v-if="formType != 'watch'"
@ -303,6 +319,10 @@ export default {
type: String, type: String,
default: "info", default: "info",
}, },
formBtnFixed: {
type: Boolean,
default: true,
},
idName: { idName: {
type: String, type: String,
default: "", default: "",
@ -431,8 +451,13 @@ export default {
// init // init
initMap(item) { initMap(item) {
let { latitude, longitude } = this.$store.state.user;
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
// //
var center = new window.TMap.LatLng(36.0722275, 120.38945519); var center = new window.TMap.LatLng(latitude, longitude);
// map TMap.Map() // map TMap.Map()
map = new window.TMap.Map(document.getElementById("app"), { map = new window.TMap.Map(document.getElementById("app"), {
center: center, // center: center, //
@ -545,7 +570,7 @@ export default {
console.log("------------------------------------info", this.fmData); console.log("------------------------------------info", this.fmData);
await nextTick(800); await nextTick(800);
if (map) { if (map && data.latitude) {
map.setCenter(new TMap.LatLng(data.latitude, data.longitude)); map.setCenter(new TMap.LatLng(data.latitude, data.longitude));
} }
} else { } else {

9
src/views/modules/cpts/base/index.vue

@ -212,6 +212,7 @@
:editParams="editParams" :editParams="editParams"
:editParamsDiv="editParamsDiv" :editParamsDiv="editParamsDiv"
:editFixedParams="editFixedParams" :editFixedParams="editFixedParams"
:formBtnFixed="formBtnFixed"
@close="handleClose" @close="handleClose"
@afterEdit="handleEditSuccess" @afterEdit="handleEditSuccess"
> >
@ -318,6 +319,11 @@ export default {
type: String, type: String,
default: "id", default: "id",
}, },
formBtnFixed: {
type: Boolean,
default: true,
},
}, },
data() { data() {
@ -535,11 +541,12 @@ export default {
handleClose() { handleClose() {
this.formShow = false; this.formShow = false;
this.getTableData();
}, },
handleEditSuccess() { handleEditSuccess() {
this.handleClose(); this.handleClose();
this.getTableData(); // this.getTableData();
}, },
async handleDelete(rowData, rowIndex) { async handleDelete(rowData, rowIndex) {

1
src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue

@ -12,6 +12,7 @@
:importUrl="importUrl" :importUrl="importUrl"
:mubanUrl="mubanUrl" :mubanUrl="mubanUrl"
:editParams="editParams" :editParams="editParams"
:editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
idName="icDangerousChemicalsId" idName="icDangerousChemicalsId"
></base-page> ></base-page>
</div> </div>

3
src/views/modules/shequzhili/tuceng/anquan/xuncha/cpts/record.vue

@ -192,7 +192,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column v-if="!disabled" label="操作" align="center" width="120"> <el-table-column v-if="!disabled" fixed="right" label="操作" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.isEdit"> <template v-if="scope.row.isEdit">
<el-button <el-button
@ -224,6 +224,7 @@
v-if="formType == 'edit'" v-if="formType == 'edit'"
title="删除之后无法恢复,确认删除?" title="删除之后无法恢复,确认删除?"
@onConfirm="del(scope.row)" @onConfirm="del(scope.row)"
@confirm="del(scope.row)"
> >
<el-button <el-button
slot="reference" slot="reference"

10
src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue

@ -17,10 +17,16 @@
:editFixedParams="editFixedParams" :editFixedParams="editFixedParams"
:editParamsDiv="5" :editParamsDiv="5"
:editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')" :editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
:formBtnFixed="false"
idName="enterpriseId" idName="enterpriseId"
> >
<template v-slot:editElse="{ id, formType, info }"> <template v-slot:editElse="{ id, formType, info }">
<record v-if="formType != 'add' && id" :formType="formType" :enterpriseId="id" :enterpriseInfo="info"></record> <record
v-if="formType != 'add' && id"
:formType="formType"
:enterpriseId="id"
:enterpriseInfo="info"
></record>
</template> </template>
</base-page> </base-page>
</div> </div>
@ -93,7 +99,7 @@ export default {
{ field: "场所名称", keyName: "placeOrgName", type: "text" }, { field: "场所名称", keyName: "placeOrgName", type: "text" },
{ field: "场所地址", keyName: "address", type: "text" }, { field: "场所地址", keyName: "address", type: "text" },
{ field: "场所类型", keyName: "placeTypeName", type: "text" }, { field: "场所类型", keyName: "placeTypeName", type: "text" },
{ field: "规模", keyName: "scale", type: "text" }, { field: "规模", keyName: "scaleName", type: "text" },
{ field: "负责人", keyName: "personInCharge", type: "text" }, { field: "负责人", keyName: "personInCharge", type: "text" },
{ field: "联系电话", keyName: "mobile", type: "text" }, { field: "联系电话", keyName: "mobile", type: "text" },
{ field: "最新检查时间", keyName: "latestPatrolTime", type: "text" }, { field: "最新检查时间", keyName: "latestPatrolTime", type: "text" },

1
src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue

@ -12,6 +12,7 @@
:importUrl="importUrl" :importUrl="importUrl"
:mubanUrl="mubanUrl" :mubanUrl="mubanUrl"
:editParams="editParams" :editParams="editParams"
:editBtnName="(item) => (item.latitude == '' ? '待完善' : '修改')"
idName="icSuperiorResourceId" idName="icSuperiorResourceId"
></base-page> ></base-page>
</div> </div>

10
src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

@ -391,7 +391,7 @@ import { Circle as CircleStyle, Icon, Fill, Stroke, Style, Text } from 'ol/style
import nextTick from 'dai-js/tools/nextTick' import nextTick from 'dai-js/tools/nextTick'
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //Loading import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request"; import { requestPost, requestGet } from "@/js/dai/request";
import cptTb from "@/views/modules/visual/cpts/tb"; import cptTb from "@/views/modules/visual/cpts/tb";
@ -1030,6 +1030,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
@ -1125,12 +1126,17 @@ const vueGis = {
this.getMapTable(); this.getMapTable();
}, },
handleSearch () { handleSearch () {
this.demand.pageNo = 1
this.getTable();
this.getMapTable();
}, },
// //
handleClickRow (index) { handleClickRow (index) {
let selData = this.tableList[index] let selData = this.tableList[index]
if (selData.longitude && selData.latitude) {
mapView.setCenter([selData.longitude, selData.latitude]); mapView.setCenter([selData.longitude, selData.latitude]);
}
this.clickMapVolunteer(selData) this.clickMapVolunteer(selData)
// alert(index) // alert(index)

Loading…
Cancel
Save