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 {