[update] ASMS接口管理完善
This commit is contained in:
+4
-1
@@ -140,6 +140,8 @@ const editAsmsInterface = (params) => postAction('/docking/asms/api/lawsAsmsOpen
|
||||
const getAsmsInterfaceById = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/getInfoById', params)
|
||||
// ASMS接口管理-同步
|
||||
const syncAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/syncBatch', params)
|
||||
// ASMS接口管理-删除字典配置项
|
||||
const batchDelDictItemAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/removeDictItemBatch', params)
|
||||
|
||||
export {
|
||||
addRole,
|
||||
@@ -220,5 +222,6 @@ export {
|
||||
addAsmsInterface,
|
||||
editAsmsInterface,
|
||||
getAsmsInterfaceById,
|
||||
syncAsmsInterface
|
||||
syncAsmsInterface,
|
||||
batchDelDictItemAsmsInterface
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
<!-- 操作区域 -->
|
||||
<div class="table-operator">
|
||||
<a-button @click="handleAdd" type="primary" icon="plus">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button @click="handleBatchDelDictItem" type="primary">批量删除原字典配置项</a-button>
|
||||
<a-button @click="handleSync" type="primary">批量同步</a-button>
|
||||
<!-- 批量删除 -->
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel">
|
||||
@@ -68,7 +69,7 @@
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import JTable from '@comp/jero/JTable'
|
||||
import AsmsInterfaceModal from '@views/system/modules/AsmsInterfaceModal'
|
||||
import { getAsmsInterfaceById, syncAsmsInterface } from '@api/api'
|
||||
import { batchDelDictItemAsmsInterface, getAsmsInterfaceById, syncAsmsInterface } from '@api/api'
|
||||
|
||||
export default {
|
||||
name: 'AsmsInterfaceList',
|
||||
@@ -142,6 +143,34 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleBatchDelDictItem () {
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warning(this.$t('selectARecord'))
|
||||
} else {
|
||||
const ids = this.selectedRowKeys.join(',')
|
||||
const that = this
|
||||
this.$confirm({
|
||||
title: '批量删除原字典配置项',
|
||||
content: '确认批量删除原字典配置项',
|
||||
onOk: function () {
|
||||
that.loading = true
|
||||
batchDelDictItemAsmsInterface({ ids }).then((res) => {
|
||||
if (res.success) {
|
||||
// 重新计算分页问题
|
||||
that.reCalculatePage(that.selectedRowKeys.length)
|
||||
that.$message.success(res.message)
|
||||
that.loadData()
|
||||
that.onClearSelected()
|
||||
} else {
|
||||
that.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
that.loading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
handleSync () {
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warning(this.$t('selectARecord'))
|
||||
|
||||
Reference in New Issue
Block a user