diff --git a/project/qianxinan/AppIntegralRule/AppIntegralRule.vue b/project/qianxinan/AppIntegralRule/AppIntegralRule.vue index 088afefd..3dc4ab11 100644 --- a/project/qianxinan/AppIntegralRule/AppIntegralRule.vue +++ b/project/qianxinan/AppIntegralRule/AppIntegralRule.vue @@ -4,7 +4,7 @@ + + + + + {{item.name}} + , + + + + + + + + + + + + @@ -70,51 +96,34 @@ export default { }, page: {current: 1, size: 10, total: 0}, colConfigs: [ - { - prop: "type", - label: "类型", - dict: "srType", - }, - {prop: "category", label: "事件", dict: "srcategory"}, - {prop: "score", label: "规则"}, - { - prop: "cycle", - label: "周期范围", - dict: "srCycle", - }, - // {slot: "integral", label: "积分分值", align: "center"}, - // { - // prop: "validRangeType", - // label: "有效范围", - // formart: (v) => (v == 0 ? "全局" : "指定网格"), - // }, - { - prop: "status", - label: "状态", - align: "center", - width: 96, - dict: "srStatus", - }, - {slot: "options", label: "操作", align: "center"}, + {prop: "type", label: "类型", dict: "srType", width: 220}, + {prop: "category", label: "事件", dict: "srCategory", align: "center", width: 200}, + {prop: "remark", label: "规则"}, + {prop: "cycle", label: "周期范围", dict: "srCycle", align: "center", width: 100}, + {prop: "status", label: "状态", align: "center", width: 100, dict: "srStatus",}, + {slot: "options", label: "操作", align: "center", width: 100}, ], tableData: [], + dialog: false, + setInfo: {}, + isSetEdit: false, + chooseUserList: [], + personList: [] }; }, created() { - this.$dict.load('srStatus', 'srCategory', 'srType').then(() => { + this.$dict.load('srStatus', 'srCategory', 'srType', 'srCycle').then(() => { this.getList(); }); }, 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; @@ -122,7 +131,7 @@ export default { }); }, changeStatus(id, status) { - let text = status == 1 ? "启用" : "停用"; + let text = status == 1 ? "停用" : "启用" this.$confirm(`确定${text}该条规则?`).then(() => { this.instance.post(`/app/appscorerule/enable?id=${id}`).then((res) => { if (res.code == 0) { @@ -132,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 ceeefbc4..4e8259ce 100644 --- a/project/qianxinan/AppPointsDetails/components/List.vue +++ b/project/qianxinan/AppPointsDetails/components/List.vue @@ -58,7 +58,7 @@ - + @@ -115,7 +115,7 @@ export default { } }, created() { - this.$dict.load('integralCalcType') + this.$dict.load('srScoreCalcType') this.getTableData() this.getGridList() }, @@ -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) diff --git a/project/qianxinan/AppResidentsType/AppResidentsType.vue b/project/qianxinan/AppResidentsType/AppResidentsType.vue new file mode 100644 index 00000000..006b56e2 --- /dev/null +++ b/project/qianxinan/AppResidentsType/AppResidentsType.vue @@ -0,0 +1,324 @@ + + + + +