From e3d316d37485da0614b64c642e189ec8db922516 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 3 Jan 2023 15:28:15 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E9=BB=94=E8=A5=BF=E5=8D=97-=E5=B1=85?= =?UTF-8?q?=E6=B0=91=E5=88=86=E7=B1=BB=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppResidentsType/AppResidentsType.vue | 324 ++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 project/qianxinan/AppResidentsType/AppResidentsType.vue diff --git a/project/qianxinan/AppResidentsType/AppResidentsType.vue b/project/qianxinan/AppResidentsType/AppResidentsType.vue new file mode 100644 index 00000000..aa853aa1 --- /dev/null +++ b/project/qianxinan/AppResidentsType/AppResidentsType.vue @@ -0,0 +1,324 @@ + + + + + From fef2f1d781eccdf2e3447edf313fda3aac517614 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 4 Jan 2023 08:52:19 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/qianxinan/AppIntegralRule/AppIntegralRule.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/qianxinan/AppIntegralRule/AppIntegralRule.vue b/project/qianxinan/AppIntegralRule/AppIntegralRule.vue index 088afefd..d542f95f 100644 --- a/project/qianxinan/AppIntegralRule/AppIntegralRule.vue +++ b/project/qianxinan/AppIntegralRule/AppIntegralRule.vue @@ -4,7 +4,7 @@ - + + + + + + {{item.name}} + , + + + + + + + + + + + + @@ -78,6 +104,11 @@ export default { {slot: "options", label: "操作", align: "center", width: 100}, ], tableData: [], + dialog: false, + setInfo: {}, + isSetEdit: false, + chooseUserList: [], + personList: [] }; }, created() { @@ -87,14 +118,12 @@ export default { }, methods: { getList() { - this.instance - .post(`/app/appscorerule/list`, null, { + this.instance.post(`/app/appscorerule/list`, null, { params: { ...this.search, ...this.page, }, - }) - .then((res) => { + }).then((res) => { if (res?.data) { this.tableData = res.data.records; this.page.total = res.data.total; @@ -112,6 +141,42 @@ export default { }); }); }, + set(row) { + this.chooseUserList = [] + this.instance.post(`/app/appscorerule/queryDetailById?id=${row.id}`).then((res) => { + if (res?.data) { + if(res.data.massSendingConfigs && res.data.massSendingConfigs.length) { + this.chooseUserList = res.data.massSendingConfigs + } + } + }); + this.dialog = true + this.setInfo = {...row} + }, + selectPerson(val) { + console.log(val) + if (val) { + this.personList = val + } else { + this.personList = this.chooseUserList + } + }, + setConfirm() { + if(!this.personList.length) { + return this.$message.error("请选择成员!") + } + var params = { + id: this.setInfo.id, + massSendingConfigs: this.personList, + } + this.instance.post(`/app/appscorerule/editMassSendingConfig`, params).then((res) => { + if (res.code == 0) { + this.dialog = false + this.$message.success(`配置成功!`); + this.getList(); + } + }); + } }, }; diff --git a/project/qianxinan/AppPointsDetails/components/Detail.vue b/project/qianxinan/AppPointsDetails/components/Detail.vue index 98d9ef48..d150c550 100644 --- a/project/qianxinan/AppPointsDetails/components/Detail.vue +++ b/project/qianxinan/AppPointsDetails/components/Detail.vue @@ -111,9 +111,9 @@ export default { methods: { // 详情 getDetail() { - this.instance.post(`/app/appscoredetail/queryDetailById`, null, { + this.instance.post(`/app/appscoredetail/userInfo`, null, { params: { - id: this.params.id + sysUserId: this.params.id } }).then(res => { if (res?.data) { @@ -128,10 +128,9 @@ export default { getEventSummary() { this.instance.post(`/app/appscoredetail/detailTypeStatistics`, null, { params: { - id: this.params.id, startTime: this.startTime, endTime: this.endTime, - sysUserId: this.data.sysUserId + sysUserId: this.data.id } }).then(res => { if (res?.data) { @@ -148,8 +147,7 @@ export default { params: { ...this.search, //积分类型 total: this.total, - id: this.params.id, - sysUserId: this.data.sysUserId + sysUserId: this.data.id } }).then(res => { if (res?.data) { diff --git a/project/qianxinan/AppPointsDetails/components/List.vue b/project/qianxinan/AppPointsDetails/components/List.vue index 5c08ee70..4e8259ce 100644 --- a/project/qianxinan/AppPointsDetails/components/List.vue +++ b/project/qianxinan/AppPointsDetails/components/List.vue @@ -125,9 +125,9 @@ export default { return [ { prop: "name", label: '姓名', align: "left"}, { prop: "departName", label: '所属部门' }, - { prop: "nowScore", label: '积分余额', align: "center" }, + { prop: "score", label: '积分余额', align: "center" }, // { prop: "totalIntegral", label: '累计积分', align: "center", sortable: "custom" }, - { prop: "usedIntegral", label: '已用积分', align: "center" }, + { prop: "usedScore", label: '已用积分', align: "center" }, { slot: "options" }, ] }, @@ -143,7 +143,7 @@ export default { }, methods: { getTableData() { - this.instance.post(`/app/appscoredetail/list`,null,{ + this.instance.post(`/app/appscoredetail/userList`,null,{ params: { ...this.search, current: this.current, @@ -172,7 +172,7 @@ export default { this.dialog = true } else if(type ==1) { this.chooseUserList = [{ - sysUserId: row.sysUserId, + sysUserId: row.id, name: row.name }] this.form.ids = this.chooseUserList.map(e => e.sysUserId)