From 6199670532a58fda109834f676228904e027bf88 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Fri, 5 Aug 2022 10:02:23 +0800
Subject: [PATCH 1/6] dd
---
src/views/modules/shequzhili/xiangmu/index.vue | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/views/modules/shequzhili/xiangmu/index.vue b/src/views/modules/shequzhili/xiangmu/index.vue
index e5fd933ed..608d5e6dd 100644
--- a/src/views/modules/shequzhili/xiangmu/index.vue
+++ b/src/views/modules/shequzhili/xiangmu/index.vue
@@ -15,7 +15,8 @@
prop="orgId">
@@ -619,8 +620,8 @@ export default {
handleCalscChange(val) {
console.log('val-----', val)
const arr = val.split('-')
- this.fmData.orgId = arr[1]
- this.fmData.orgType = arr[0]
+ this.fmData.orgId = arr[0]
+ this.fmData.orgType = arr[1] === 'grid' ? 'grid' : 'agency'
},
handleCheckbox(val) {
const { user } = this.$store.state
@@ -822,14 +823,18 @@ export default {
}
this.$http
// .post('/gov/org/userhouse/service/serviceScopeTree')
- .post('/data/aggregator/org/agencytree', params)
+ // .post('/data/aggregator/org/agencytree', params)
// .post('/gov/org/customeragency/staffinagencylist')
+ .post('/gov/org/customeragency/agencygridtree')
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取查询详情成功', res.data)
- this.optionsA = this.deepTree(res.data, 'subOrgList')
+ // let { agencyList, subAgencyList } = res.data
+ let _arr = []
+ _arr.push(res.data)
+ this.optionsA = this.deepTree(_arr, 'subAgencyList')
console.log('optionsA----', this.optionsA)
}
})
@@ -840,7 +845,7 @@ export default {
deepTree(arr, child) {
if (Array.isArray(arr) && arr.length > 0) {
return arr.map(item => {
- if (child === 'subOrgList') item.value = item.orgType + '-' + item.orgId
+ // if (child === 'subAgencyList') item.value = item.orgType + '-' + item.orgId
return {
...item,
[child]: item[child] && item[child].length > 0 && this.deepTree(item[child], child) || null
From dce39149c7d1a34976f269c72a7e03864ace3ad5 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Fri, 5 Aug 2022 17:22:44 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E7=81=B5=E5=B1=B1=E5=8D=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/shequzhili/xiangmu/index.vue | 465 ++-------
.../shequzhili/xiangmu/xiangmu-ling.vue | 949 ++++++++++++++++++
2 files changed, 1042 insertions(+), 372 deletions(-)
create mode 100644 src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue
diff --git a/src/views/modules/shequzhili/xiangmu/index.vue b/src/views/modules/shequzhili/xiangmu/index.vue
index 608d5e6dd..886314332 100644
--- a/src/views/modules/shequzhili/xiangmu/index.vue
+++ b/src/views/modules/shequzhili/xiangmu/index.vue
@@ -10,127 +10,72 @@
class="demo-form-inline"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
- 至
-
+ 至
+
-
-
+
+
+
+
+
+
+
+ 查询
+ 重置
- 查询
- 重置
@@ -175,7 +120,7 @@
导出导出
@@ -196,115 +141,59 @@
-
- {{ scope.row.firstName + '-' + scope.row.secondName }}
-
-
- {{ scope.row.publicReply }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{//这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键
- let nowData = Date.now()
- if (this.fmData.startTime) {
- let startTime = new Date(this.fmData.startTime)
- return time.getTime() > nowData || time.getTime() < startTime || time.getTime() === startTime
- } else {
- return time.getTime() > nowData
- }
-
- }
- let startDisabledDate = (time) => {//这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键
- let nowData = Date.now()
- return time.getTime() > nowData
- }
return {
pageType: "list", // 列表list 处理dispose 详情info 议题详情issue-info
@@ -426,46 +288,25 @@ export default {
optionsStatus: [
{
value: "pending",
- label: "处理中",
+ label: "未结案",
},
{
value: "closed",
label: "已结案",
},
],
- qudaoArray: [
- {
- value: "agency",
- label: "网格上报",
- },
- {
- value: "ic_event",
- label: "居民上报",
- },
- {
- value: "work_event",
- label: "巡查上报",
- },
- {
- value: "issue",
- label: "议题上报",
- }
- ],
- orgId: '',
- checkStaffId: false,
- exportLoading: false,
- cateOptions: [],
- optionsA: [],
- fmData: { ..._form },
- endPickerOptions: {
- disabledDate: endDisabledDate
- },
- startPickerOptions: {
- disabledDate: startDisabledDate
+
+ fmData: {
+ title: "",
+ status: "",
+ startDate: "",
+ endDate: "",
+ date: ["", ""],
},
+
importBtnTitle: "导入",
importLoading: false,
- eventTypeCheck: [],
+
currentProject: {
projectId: "",
userId: "",
@@ -476,8 +317,8 @@ export default {
computed: {
maxTableHeight() {
return this.$store.state.inIframe
- ? this.clientHeight - 410 + this.iframeHeigh
- : this.clientHeight - 410;
+ ? this.clientHeight - 360 + this.iframeHeigh
+ : this.clientHeight - 360;
},
...mapGetters(["clientHeight", "iframeHeight"]),
},
@@ -494,8 +335,6 @@ export default {
},
mounted() {
this.getTableData();
- this.getGridList()
- this.getCateOptions()
},
methods: {
async handleExportModule() {
@@ -571,12 +410,12 @@ export default {
message: "导入中,请到系统管理-导入记录中查看进度",
duration: 0,
});
- const fmData = new FormData(); //FormData对象,添加参数只能通过append('key', value)的形式添加
- fmData.append("file", file.file); //添加文件对象
+ const formData = new FormData(); //FormData对象,添加参数只能通过append('key', value)的形式添加
+ formData.append("file", file.file); //添加文件对象
await this.$http
.post(
"/heart/iccommunityselforganization/importcommunityselforganization",
- fmData
+ formData
)
.then((res) => {
console.log("res-up", res);
@@ -595,7 +434,7 @@ export default {
// window.SITE_CONFIG["apiURL"] +
// "/heart/iccommunityselforganization/importcommunityselforganization",
// method: "post",
- // data: fmData,
+ // data: formData,
// // responseType: "blob",
// })
// .then((res) => {
@@ -617,48 +456,7 @@ export default {
this.importBtnTitle = "导入";
this.$refs.upload.clearFiles();
},
- handleCalscChange(val) {
- console.log('val-----', val)
- const arr = val.split('-')
- this.fmData.orgId = arr[0]
- this.fmData.orgType = arr[1] === 'grid' ? 'grid' : 'agency'
- },
- handleCheckbox(val) {
- const { user } = this.$store.state
- console.log('val---', val)
- if (val) this.fmData.staffId = user.id
- else this.fmData.staffId = ''
- },
- handleEventType(val) {
- // console.log('val-----eee', val)
- console.log('nodes---', this.$refs.cascaderEvent.getCheckedNodes())
- const nodes = this.$refs.cascaderEvent.getCheckedNodes()
- this.fmData.firstIdList = []
- this.fmData.secondIdList = []
- let level1 = nodes.filter(item => item.level === 1)
- let level2 = nodes.filter(item => item.level === 2)
- console.log('level2----1', level2)
- level1.forEach(item => {
- console.log('level2----2', level2)
- if (item.hasChildren) {
- for (let i = level2.length - 1; i >= 0; i--) {
- if (level2[i].parent.value === item.value) level2.splice(i, 1)
- }
- }
- })
- this.fmData.firstIdList = level1.map(item => item.value)
- this.fmData.secondIdList = level2.map(item => item.value)
- },
- cascaderClick (node, nodeData) {
- console.log('node---', node)
- console.log('nodeData---', nodeData)
- // this.fmData.agencyId = nodeData.objectId;
- // this.fmData.level = nodeData.objectType
- // this.$refs.cascaderUnit.checkedValue = nodeData.id;
- // this.$refs.cascaderUnit.computePresentText();
- // this.$refs.cascaderUnit.toggleDropDownVisible(false);
- },
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
@@ -672,26 +470,18 @@ export default {
},
handleSearch(val) {
- console.log(JSON.stringify(this.fmData));
+ console.log(this.fmData);
this.pageNo = 1;
this.getTableData();
},
resetForm(formName) {
this.$refs[formName].resetFields();
- this.fmData = {
- ..._form
- }
- this.eventTypeCheck = []
- this.orgId = ''
- this.checkStaffId = false
this.handleSearch();
},
async handleChu() {
- // const url = "/gov/project/project/project-list-export";
- const url = '/gov/project/project/orgprojectexport'
+ const url = "/gov/project/project/project-list-export";
const { pageSize, pageNo, fmData } = this;
- this.exportLoading = true
axios({
url: window.SITE_CONFIG["apiURL"] + url,
method: "post",
@@ -717,10 +507,8 @@ export default {
aLink.click();
document.body.removeChild(aLink); //下载完成移除元素
window.URL.revokeObjectURL(url); //释放掉blob对象
- this.exportLoading = false
})
.catch((err) => {
- this.exportLoading = false
console.log("获取导出情失败", err);
return this.$message.error("网络错误");
});
@@ -775,8 +563,7 @@ export default {
async getTableData() {
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/project-list";
- // const url = "/gov/project/project/project-list";
- const url ='/gov/project/project/orgprojectlist'
+ const url = "/gov/project/project/project-list";
const { pageSize, pageNo, fmData } = this;
const { data, code, msg } = await requestPost(url, {
pageSize,
@@ -788,71 +575,12 @@ export default {
this.total = data.total || 0;
this.tableData = data.list
? data.list.map((item) => {
- return {
- ...item,
- urlList: item.urlList && item.urlList.map(n => n.url)
- };
+ return item;
})
: [];
} else {
}
},
- async getCateOptions() {
- const url = "/gov/issue/issueprojectcategorydict/list";
-
- const { data, code, msg } = await requestPost(url, {});
-
- if (code === 0) {
- // this.cateOptions = data.map((item) => {
- // item.subCategory.forEach((subitem) => {
- // delete subitem.subCategory;
- // });
- // return item;
- // });
- this.cateOptions = this.deepTree(data, 'subCategory')
- } else {
- this.$message.error(msg);
- }
- },
- getGridList() {
- const { user } = this.$store.state
- this.dataListLoading = true
- const params = {
- agencyId: user.agencyId,
- client: 'gov'
- }
- this.$http
- // .post('/gov/org/userhouse/service/serviceScopeTree')
- // .post('/data/aggregator/org/agencytree', params)
- // .post('/gov/org/customeragency/staffinagencylist')
- .post('/gov/org/customeragency/agencygridtree')
- .then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- } else {
- console.log('获取查询详情成功', res.data)
- // let { agencyList, subAgencyList } = res.data
- let _arr = []
- _arr.push(res.data)
- this.optionsA = this.deepTree(_arr, 'subAgencyList')
- console.log('optionsA----', this.optionsA)
- }
- })
- .catch(() => {
- return this.$message.error('网络错误')
- })
- },
- deepTree(arr, child) {
- if (Array.isArray(arr) && arr.length > 0) {
- return arr.map(item => {
- // if (child === 'subAgencyList') item.value = item.orgType + '-' + item.orgId
- return {
- ...item,
- [child]: item[child] && item[child].length > 0 && this.deepTree(item[child], child) || null
- }
- })
- }
- }
},
};
@@ -934,13 +662,6 @@ export default {
.resi-cell-select:last-child {
margin-right: 0;
}
- .item_width_2 {
- width: 200px;
- }
-}
-
-.data-tag {
- margin: 0 5px;
}
.mt10 {
diff --git a/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue b/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue
new file mode 100644
index 000000000..608d5e6dd
--- /dev/null
+++ b/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue
@@ -0,0 +1,949 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 至
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 新增
+ 下载模板
+
+ {{ importBtnTitle }}
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+ {{ scope.row.firstName + '-' + scope.row.secondName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.publicReply }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 处理
+
+ 查看
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From c69cf57afc65de34139c0377a5900477b41a3cce Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 8 Aug 2022 13:47:48 +0800
Subject: [PATCH 3/6] dd
---
.../modules/shequzhili/xiangmu/cpts/project-info.vue | 3 +--
.../visual/communityGovern/shijianchuli/event-info.vue | 8 ++++----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
index 4860e5939..53ea7053c 100644
--- a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
+++ b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
@@ -335,9 +335,8 @@
>
-
+
diff --git a/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue b/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
index 2aed96664..8668aad4b 100644
--- a/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
+++ b/src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
@@ -97,13 +97,13 @@
{{ item.departmentName }}
-
+
From f9862ee9bc5776179ceb07dd8b4955956f67bc39 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Mon, 8 Aug 2022 13:50:32 +0800
Subject: [PATCH 4/6] dd
---
src/views/modules/shequzhili/xiangmu/cpts/project-info.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
index 53ea7053c..a174146c8 100644
--- a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
+++ b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
@@ -335,7 +335,7 @@
>
-
+
Date: Tue, 9 Aug 2022 16:53:18 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/shequzhili/statics/index.vue | 462 ++++++++++++++++++
1 file changed, 462 insertions(+)
create mode 100644 src/views/modules/shequzhili/statics/index.vue
diff --git a/src/views/modules/shequzhili/statics/index.vue b/src/views/modules/shequzhili/statics/index.vue
new file mode 100644
index 000000000..396935fda
--- /dev/null
+++ b/src/views/modules/shequzhili/statics/index.vue
@@ -0,0 +1,462 @@
+
+
+
+
+
+
+
+
+
+ 截止累计值
+ 区间新增值
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+ 总计
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 6817d22353977bda33f29e3a213fea204fa14028 Mon Sep 17 00:00:00 2001
From: 13176889840 <13176889840@163.com>
Date: Wed, 10 Aug 2022 10:18:01 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1123?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/shequzhili/statics/index.vue | 60 ++++++++++---------
1 file changed, 32 insertions(+), 28 deletions(-)
diff --git a/src/views/modules/shequzhili/statics/index.vue b/src/views/modules/shequzhili/statics/index.vue
index 396935fda..5897a5d08 100644
--- a/src/views/modules/shequzhili/statics/index.vue
+++ b/src/views/modules/shequzhili/statics/index.vue
@@ -13,18 +13,18 @@
-->
+ prop="endTime" label-width="100px">
截止累计值
区间新增值
-
-
+
+
+ {{scope.row.orgName}}
+
+
+
@@ -120,13 +126,6 @@ import { dateFormats } from '@/utils/index'
export default {
data () {
return {
- mixinViewModuleOptions: {
- getDataListURL: '/data/stats/factAgencyUserHouseDaily/page',
- getDataListIsPage: true,
- deleteURL: '/data/stats/factAgencyUserHouseDaily',
- deleteIsBatch: true,
- exportURL: '/data/stats/factAgencyUserHouseDaily/export'
- },
exportLoading: false,
dataListLoading: false,
optionsA: [],
@@ -140,9 +139,9 @@ export default {
timeRange: '',
dataForm: {
customerId: this.$store.state.user.customerId,
- agencyId: '',
- startTime: dateFormats('YYYY-mm-dd HH:MM:SS', new Date()),
- endTime: '',
+ agencyId: this.$store.state.user.agencyId,
+ startTime: '',
+ endTime: dateFormats('YYYY-mm-dd HH:MM:SS', new Date()),
type: 'end'
},
total: 0,
@@ -168,6 +167,7 @@ export default {
this.dataForm.startTime = "";
this.dataForm.endTime = "";
}
+ console.log('startTime----w', this.dataForm.startTime)
}
},
computed: {
@@ -187,13 +187,13 @@ export default {
this.$refs[formName].resetFields();
this.timeRange = "";
this.dataForm.startTime = "";
- this.dataForm.endTime = "";
+ this.dataForm.endTime = dateFormats('YYYY-mm-dd HH:MM:SS', new Date())
this.dataForm.type = 'end';
this.pageNo = 1
this.getTableList()
},
handleSearch() {
- this.dataForm.type = 1
+ // this.dataForm.type = 1
this.pageNo = 1
this.getTableList()
},
@@ -213,12 +213,15 @@ export default {
this.dataForm.startTime = ''
this.dataForm.endTime = ''
if (val == 'end') {
- this.dataForm.startTime = dateFormats('YYYY-mm-dd HH:MM:SS', new Date())
+ this.$nextTick(() => {
+ this.dataForm.endTime = dateFormats('YYYY-mm-dd HH:MM:SS', new Date())
+ })
+ console.log('endTime----', this.dataForm.endTime)
}
},
exportHandle () {
- const url = '/data/aggregator/org/orgProjectDetailList/export'
- this.dataForm.type = 1
+ const url = '/data/aggregator/datastats/nowstatsdataexport'
+ // this.dataForm.type = 1
this.exportLoading = true
this.$http({
method: 'Post',
@@ -277,12 +280,13 @@ export default {
pcEventCount += item.pcEventCount
projectCount += item.projectCount
issueProjectCount += item.issueProjectCount
- resiUicEventProjectCountserCount += item.icEventProjectCount
+ icEventProjectCount += item.icEventProjectCount
agencyProjectCount += item.agencyProjectCount
})
}
this.tableData.push({
+ orgName: this.$store.state.user.agencyName,
resiUserCount,
partyMemberCount,
icEventCount,
@@ -313,8 +317,8 @@ export default {
const { user } = this.$store.state
const _data = {
...this.dataForm,
- pageNo: this.pageNo,
- pageSize: this.pageSize
+ // pageNo: this.pageNo,
+ // pageSize: this.pageSize
}
this.$http
.post('/data/aggregator/datastats/nowstatsdata', _data)
@@ -322,8 +326,8 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
- this.dataList = res.data.list
- this.total = res.data.total
+ this.dataList = res.data
+ // this.total = res.data.total
}
})
.catch(() => {
@@ -349,7 +353,7 @@ export default {
let { agencyList, subAgencyList } = res.data
// this.optionsA = res.data
// console.log(this.optionsA);
- this.dataForm.agencyId = agencyList.agencyId
+ // this.dataForm.agencyId = agencyList.agencyId
const _arr = [{...agencyList, subAgencyList: [...subAgencyList] }]
this.optionsA = this.deepTree(_arr)
console.log('optionsA----', this.optionsA)