From f7ec289695fe29cbec3dd110024c41557126a7a9 Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86/=E8=AF=91=E6=96=87=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=B3=E8=AF=B7=E7=AE=A1=E7=90=86=20=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4/?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dardTranslationAcquisitionRequestModal.vue | 204 ++++++++++-------- 1 file changed, 115 insertions(+), 89 deletions(-) diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/standardTranslationAcquisitionRequestModal.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/standardTranslationAcquisitionRequestModal.vue index 43abf2885..ed22fadac 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/standardTranslationAcquisitionRequestModal.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/standardTranslationAcquisitionRequestModal.vue @@ -9,108 +9,105 @@ 新增标准/译文获取申请 导入 模版下载 - 批量删除 + 批量删除
- - - - - - + + +
保存 提交 - - + + @@ -127,50 +124,78 @@ export default { return { visible: false, tableLoading: false, - tableData: [], - serachForm: {}, - selectedList: [] + StandardApplyForEO: [], + selectedList: [], + page: 1, + pageSize: this.$store.getters.userInfo.configContent, + total: 0, + url: { + deleteUrl: '/lawss/standardApplyFor/batchUpdateValidFlag', + getList: '/lawss/standardApplyFor/queryStagingByPage' + } } }, methods: { showModal () { this.visible = true + this.StandardApplyForEO = [] + this.page = 1 + this.getList() }, handleClose () { this.visible = false }, - handleSelectionChange (value) { - this.selectedList = value - }, toView (id) { - this.$refs.addModalRef.detailModalRef(id) + this.$refs.addModalRef.showModal(id) }, edit (id) { this.$refs.addModalRef.showModal(id) }, - deletItem(id){ + importData () { }, templateDownload () { }, - batchDelete () { - if (this.selectedList.length === 0) { + getList () { + this.tableLoading = true + this.$http.get(this.url.getList, { page: this.page, pageSize: this.pageSize }, { + _this: this, + }, res => { + if (res.ok) { + this.StandardApplyForEO = res.data.list + this.total = res.data.total + }else { + this.StandardApplyForEO = [] + this.total = 0 + } + }) + }, + batchDelete (id) { + if (id.length === 0) { this.$message({ message: '请选择至少一条数据', type: 'warning', offset: 20 }) + return } + const ids = id.join(',') + this.$http.postData(this.url.deleteUrl, ids, { _this: this }, res => { + this.$message.success('操作成功') + this.getList() + }) }, - importData () { + submitData (tag) { + }, + handleSelectionChange (value) { + const ids = [] + value.forEach(item => { + ids.push(item.id) + }) + this.selectedList = [ ...ids ] }, standardTranslationAcquisitionRequestAdd () { this.$refs.addModalRef.showModal() }, - submitData (tag) { - if (tag) { - return - } - }, pageChange (page) { this.questionSerach.page = page this.getList() @@ -184,12 +209,13 @@ export default {