From e44c41e9b8c85839feef876707f4572068c5a414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Mon, 2 Dec 2024 15:30:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A3=E4=BC=A0=E7=8A=B6=E6=80=81=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E7=B3=BB=E7=BB=9F=E9=AB=98=E7=BA=A7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityParty/comPromotion/add.vue | 17 +-- .../communityParty/comPromotion/index.vue | 5 +- src/views/modules/home/index.vue | 1 + .../modules/workSys/sysConfigure/index.vue | 101 ++++-------------- 4 files changed, 33 insertions(+), 91 deletions(-) diff --git a/src/views/modules/communityParty/comPromotion/add.vue b/src/views/modules/communityParty/comPromotion/add.vue index 324e4025a..3be742de8 100644 --- a/src/views/modules/communityParty/comPromotion/add.vue +++ b/src/views/modules/communityParty/comPromotion/add.vue @@ -37,12 +37,12 @@ - + - - + + +
- +
-

设置“(部门)办结时限”默认值

@@ -42,9 +43,9 @@
-
+ --> -

文明币有效期设置

+ @@ -92,7 +93,9 @@ export default { data() { return { num:"", - HotlineShow:1 + HotlineShow:1, + customerId:"", + sysAdvancedList:[] }; }, components: { }, @@ -106,84 +109,24 @@ export default { watch: {}, mounted() { this.user = this.$store.state.user; + this.customerId=this.$store.state.customerId this.agencyId = this.user.agencyId; - this.getTableData(); + this.sysAdvancedPage(); }, methods: { - handleAdd(row, type) { - if (row.id) { - this.detailId = row.id; - this.dialogVisible=true; - } - }, - async handleHid(row) { - let status = ''; - if (row.status == '1') { - status = '0'; - } else { - status = '1'; - } - const url = '/actual/base/residentCategoryConfig/changeStatus'; + async sysAdvancedPage(row) { + const url = '/sys/sysAdvanced/page'; const param = { - id: row.id, - status: status + customerId: this.customerId, }; - // const url = 'http://yapi.elinkservice.cn/mock/330/actual/base/enterprise/list'; - const { pageSize, pageNo, formData } = this; const { data, code, msg } = await requestPost(url, param); if (code === 0) { - this.$message.success('操作成功'); - this.getTableData(); + this.sysAdvancedList=data.list } else { this.$message.error(msg); } }, - handleSearch(val) { - this.pageNo = 1; - this.getTableData(); - }, - handleClose() { - this.dialogVisible = false; - this.detailId = ''; - this.getTableData(); - }, - async getTableData() { - const url = '/actual/base/residentCategoryConfig/page'; - // const url = 'http://yapi.elinkservice.cn/mock/330/actual/base/enterprise/list'; - const { pageSize, pageNo, formData } = this; - const { data, code, msg } = await requestPost(url, { - pageSize, - pageNo, - ...formData - }); - if (code === 0) { - this.total = data.total || 0; - this.tableData = data.list - ? data.list.map(item => { - return item; - }) - : []; - } else { - this.$message.error(msg); - } - }, - handleSizeChange(val) { - this.pageSize = val; - window.localStorage.setItem('pageSize', val); - this.getTableData(); - }, - handleCurrentChange(val) { - this.pageNo = val; - this.getTableData(); - }, - resetSearch() { - this.formData = { - intelligentFlag: '', - warnFlag: '' - }; - this.pageNo = 1; - this.getTableData(); - } + } };