diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue index e0335a6cb..9393d5d9d 100644 --- a/src/views/modules/base/community/buildForm.vue +++ b/src/views/modules/base/community/buildForm.vue @@ -372,9 +372,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue index c3d8f4203..13f0437a2 100644 --- a/src/views/modules/base/community/communityForm.vue +++ b/src/views/modules/base/community/communityForm.vue @@ -285,9 +285,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 7853ade91..8833356ca 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -728,11 +728,20 @@ + + {{ data.label }} + ({{ data.typeName }}) + + @@ -1254,24 +1263,7 @@ export default { roleList: [], // 级联数据 - options: [ - { - value: "", - label: "", - children: [ - { - value: "", - label: "", - children: [], - }, - { - value: "", - label: "", - children: [], - }, - ], - }, - ], + options: [], selectValue: [], // 顶部 面包屑 breadcrumbArr: [], @@ -1358,30 +1350,24 @@ export default { }, methods: { // 点击后获取id - handleChange(e) { - this.transferForm.orgId = e[1]; - if (this.transferForm.orgId != null || "") { - if (this.transferForm.orgId === 0) { - if (e[2] == null || "") { - this.transferForm.orgType = "dept"; - this.transferForm.orgId = "14f572e724eecf7668b655505d789cab"; - } else { - this.transferForm.orgId = e[2]; - this.transferForm.orgType = "dept"; - } + handleChangeTransferCascader(e) { + console.log("*********************"); + function findItem(valueArr, coll) { + console.log("--------------------"); + console.log(valueArr); + let copyArr = [...valueArr]; + let firstValue = copyArr.shift(); + let item = coll.find((a) => a.value == firstValue); + console.log(item); + if (copyArr.length > 0) { + return findItem(copyArr, item.children); } else { - if (e[2] == null || "") { - this.transferForm.orgType = "grid"; - this.transferForm.orgId = "63d5ff92ea981b1c58e4914ac894c610"; - } else { - this.transferForm.orgId = e[2]; - this.transferForm.orgType = "grid"; - } + return item; } - } else { - this.transferForm.orgId = e[0]; - this.transferForm.orgType = "agency"; } + let item = findItem(e, this.options); + this.transferForm.orgId = item.value; + this.transferForm.orgType = item.type; }, /** 查询系统工作人员角色(职责) */ async getDutyList() { @@ -2166,31 +2152,32 @@ export default { const { data, code, msg } = await requestPost(url, params); if (code === 0) { - this.options[0].label = data.agencyName; - this.options[0].value = data.agencyId; - - console.log("--------", this.options); - let depart = Array.from(data.departmentList); - let gr = Array.from(data.gridList); - - depart.forEach((item) => { - const ob = { - value: item.deptId, - label: item.deptName, - }; - this.options[0].children[0].children.push(ob); - }); - this.options[0].children[0].value = 0; - this.options[0].children[0].label = "部门"; - this.options[0].children[1].value = 1; - this.options[0].children[1].label = "网格"; - gr.forEach((item) => { - const obj = { - value: item.gridId, - label: item.gridName, + function computeOption(opt) { + return { + label: opt.agencyName, + value: opt.agencyId, + type: "agency", + children: [ + ...(opt.departmentList || []).map((item) => ({ + label: item.deptName, + value: item.deptId, + type: "dept", + typeName: "部门", + })), + ...(opt.gridList || []).map((item) => ({ + label: item.gridName, + value: item.gridId, + type: "grid", + typeName: "网格", + })), + ...(opt.subAgencyList || []).map((item) => computeOption(item)), + ], }; - this.options[0].children[1].children.push(obj); - }); + } + if (data) { + this.options = [computeOption(data)]; + console.log("树树树树树树树树树树", this.options[0]); + } } else { this.$message.error("树查询失败", msg); } @@ -2477,7 +2464,7 @@ export default { const url = "/gov/org/agency/addagency-v2"; let params = { - parentAgencyId: this.parentAgencyId, + parentAgencyId: this.currentAgencyId, agencyName: this.agencyForm.agencyName, level: this.agencyForm.level, areaCodeSwitch: "closed", diff --git a/src/views/modules/communityParty/heart/heartForm.vue b/src/views/modules/communityParty/heart/heartForm.vue index 1203f9cf5..093b3e690 100644 --- a/src/views/modules/communityParty/heart/heartForm.vue +++ b/src/views/modules/communityParty/heart/heartForm.vue @@ -1,221 +1,279 @@ - - + - - - - - + + + - - + + - - + + 选择图片 - - - + + 至 - + - - + + - - + + - - + + - - - + + - + - - + - (选中后报名参加活动人员可以直接审核通过) - + (选中后报名参加活动人员可以直接审核通过) - - + + - - + + - - + + 至 - + - - + + - + - + - 查询 - + 查询 + - - - + + - + - + @@ -282,6 +358,10 @@ export default { type: String, default: "", }, + delMultipleUrl: { + type: String, + default: "", + }, infoUrl: { type: String, default: "", @@ -346,9 +426,19 @@ export default { type: Boolean, default: true, }, + + operateCol: { + type: Boolean, + default: true, + }, + + cookTableData: { + type: Function, + default: (val) => val, + }, }, - data () { + data() { return { tableData: [], @@ -362,11 +452,13 @@ export default { formType: "", // 列表list 新增add 修改edit 详情info ref_search_height: 100, + + multipleSelection: [], }; }, computed: { - maxTableHeight () { + maxTableHeight() { const { ref_search_height } = this; return this.$store.state.inIframe ? this.clientHeight - ref_search_height - 265 + this.iframeHeight @@ -377,7 +469,7 @@ export default { watch: {}, - async mounted () { + async mounted() { console.log(this.$store.state); this.user = this.$store.state.user; @@ -391,19 +483,24 @@ export default { this.computeSearchHeight(); }, - activated () { + activated() { console.log("-------------activated"); this.$refs["ref_table"].doLayout(); }, methods: { - computeSearchHeight () { + handleSelectionChange(val) { + console.log(val); + this.multipleSelection = val; + }, + + computeSearchHeight() { this.ref_search_height = this.$refs["ref_search"].clientHeight; console.log(this.$refs["ref_search"]); console.log(this.ref_search_height); }, - iniSearchData () { + iniSearchData() { const { searchParams } = this; searchParams.forEach((item, index) => { if (item.type == "select" || item.type == "cascader") { @@ -419,7 +516,7 @@ export default { }); }, - async getFmOptions (index, url, params, cookFn) { + async getFmOptions(index, url, params, cookFn) { const { data, code, msg } = await requestPost(url, { ...params, }); @@ -432,19 +529,19 @@ export default { } }, - handleChangeCascader (vals, item) { + handleChangeCascader(vals, item) { if (typeof item.handleChangeFn == "function") { item.handleChangeFn(vals, item); } }, - handleSearch (val) { + handleSearch(val) { this.pageNo = 1; this.getTableData(); }, - beforeExcelUpload (file) { + beforeExcelUpload(file) { console.log("file", file); const isType = file.type === "application/vnd.ms-excel"; const isTypeComputer = @@ -462,7 +559,7 @@ export default { return fileType && isLt1M; }, - async uploadHttpRequest (file) { + async uploadHttpRequest(file) { let { importUrl: url } = this; if (!url) return; @@ -491,7 +588,7 @@ export default { }); }, - async handleExportModule () { + async handleExportModule() { let { mubanUrl: url } = this; if (!url) return; @@ -528,7 +625,7 @@ export default { }); }, - async handleExport () { + async handleExport() { const { exportUrl: url } = this; if (!url) return; @@ -566,13 +663,13 @@ export default { }); }, - handleAdd () { + handleAdd() { this.formType = "add"; this.formTitle = "新增"; this.formShow = true; }, - handleWatch (row) { + handleWatch(row) { const { idName } = this; this.formType = "watch"; this.formId = row[idName]; @@ -580,7 +677,7 @@ export default { this.formShow = true; }, - handleEdit (row) { + handleEdit(row) { const { idName } = this; this.formType = "edit"; this.formId = row[idName]; @@ -588,17 +685,35 @@ export default { this.formShow = true; }, - handleClose () { + handleClose() { this.formShow = false; this.getTableData(); }, - handleEditSuccess () { + handleEditSuccess() { this.handleClose(); // this.getTableData(); }, - async handleDelete (rowData, rowIndex) { + async handleDeleteMultiple() { + let { delMultipleUrl: url } = this; + if (!url) return; + + const { multipleSelection, idName } = this; + + const { data, code, msg } = await requestPost(url, [ + ...multipleSelection.map((item) => item[idName]), + ]); + + if (code === 0) { + this.$message.success("批量删除成功!"); + this.getTableData(); + } else { + this.$message.error("操作失败!"); + } + }, + + async handleDelete(rowData, rowIndex) { console.log(rowData, rowIndex); let { delUrl: url } = this; if (!url) return; @@ -621,7 +736,7 @@ export default { } }, - computeFmData () { + computeFmData() { let fmData = {}; this.searchParams.forEach((item) => { fmData[item.keyName] = item.value; @@ -634,11 +749,11 @@ export default { return fmData; }, - refresh () { + refresh() { this.getTableData(); }, - async getTableData () { + async getTableData() { const { tableUrl: url } = this; if (!url) return; @@ -651,27 +766,23 @@ export default { if (code === 0) { this.total = data.total || 0; - this.tableData = data.list - ? data.list.map((item) => { - return item; - }) - : []; + this.tableData = data.list ? this.cookTableData(data.list) : []; } else { this.$message.error(msg); } }, - handleSizeChange (val) { + handleSizeChange(val) { this.pageSize = val; window.localStorage.setItem("pageSize", val); this.getTableData(); }, - handleCurrentChange (val) { + handleCurrentChange(val) { this.pageNo = val; this.getTableData(); }, - resetSearch () { + resetSearch() { console.log("----------------resetSearch", this.searchParams); this.searchParams.forEach((item) => { if (typeof item.value == "string") { diff --git a/src/views/modules/partymember/icpartyorg-add-or-update.vue b/src/views/modules/partymember/icpartyorg-add-or-update.vue index 74a482bd4..31444e936 100644 --- a/src/views/modules/partymember/icpartyorg-add-or-update.vue +++ b/src/views/modules/partymember/icpartyorg-add-or-update.vue @@ -1,82 +1,134 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + - - - - - - - - 查询 - - - - - - - - - {{ $t('cancel') }} - {{ $t('confirm') }} - - + + + + + {{ $t("cancel") }} + {{ + $t("confirm") + }} + + - - diff --git a/src/views/modules/renFangTongJi/index.vue b/src/views/modules/renFangTongJi/index.vue new file mode 100644 index 000000000..8fcd403d7 --- /dev/null +++ b/src/views/modules/renFangTongJi/index.vue @@ -0,0 +1,364 @@ + + + + + + {{ item.num }} + {{ item.name }} + + + + 较上月 + + {{ item.variationAbs }} + - {{ item.variationAbs }} + + + + + + + 下级平台使用进度汇总 + + + + + + + {{ + scope.row.usingCommunityNum + }} + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/modules/shequzhili/csgltc/csglForm.vue b/src/views/modules/shequzhili/csgltc/csglForm.vue index cdde575ea..854e03e15 100644 --- a/src/views/modules/shequzhili/csgltc/csglForm.vue +++ b/src/views/modules/shequzhili/csgltc/csglForm.vue @@ -307,7 +307,7 @@ export default { // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 - zoom: 17.2, // 设置地图缩放级别 + zoom: 16.2, // 设置地图缩放级别 pitch: 43.5, // 设置俯仰角 rotation: 45 // 设置地图旋转角度 }) @@ -352,9 +352,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.formData.address, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index dfb95312d..fd2048832 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -625,7 +625,7 @@ export default { // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById("app"), { center: center, // 设置地图中心点坐标 - zoom: 17.2, // 设置地图缩放级别 + zoom: 16.2, // 设置地图缩放级别 pitch: 43.5, // 设置俯仰角 rotation: 45, // 设置地图旋转角度 }); @@ -670,9 +670,11 @@ export default { markers.setGeometries([]); // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds(), + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result; diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue index ceeb3ab97..c4b6d3bdc 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue @@ -284,7 +284,7 @@ export default { // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 - zoom: 17.2, // 设置地图缩放级别 + zoom: 16.2, // 设置地图缩放级别 pitch: 43.5, // 设置俯仰角 rotation: 45 // 设置地图旋转角度 }) @@ -329,9 +329,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.formData.address, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/shujuduibi/canji.vue b/src/views/modules/shujuduibi/canji.vue new file mode 100644 index 000000000..0d7a877c7 --- /dev/null +++ b/src/views/modules/shujuduibi/canji.vue @@ -0,0 +1,178 @@ + + + + + 批量更新 + + + + 全部更新 + + + + + 对比信息 + + + + + + + + + + + + + + diff --git a/src/views/modules/shujuduibi/siwang.vue b/src/views/modules/shujuduibi/siwang.vue new file mode 100644 index 000000000..274c8566a --- /dev/null +++ b/src/views/modules/shujuduibi/siwang.vue @@ -0,0 +1,122 @@ + + + + + 批量更新 + + + + 全部更新 + + + + + + + +