[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)
|
const getAsmsInterfaceById = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/getInfoById', params)
|
||||||
// ASMS接口管理-同步
|
// ASMS接口管理-同步
|
||||||
const syncAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/syncBatch', params)
|
const syncAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/syncBatch', params)
|
||||||
|
// ASMS接口管理-删除字典配置项
|
||||||
|
const batchDelDictItemAsmsInterface = (params) => getAction('/docking/asms/api/lawsAsmsOpenApi/removeDictItemBatch', params)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
addRole,
|
addRole,
|
||||||
@@ -220,5 +222,6 @@ export {
|
|||||||
addAsmsInterface,
|
addAsmsInterface,
|
||||||
editAsmsInterface,
|
editAsmsInterface,
|
||||||
getAsmsInterfaceById,
|
getAsmsInterfaceById,
|
||||||
syncAsmsInterface
|
syncAsmsInterface,
|
||||||
|
batchDelDictItemAsmsInterface
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
<!-- 操作区域 -->
|
<!-- 操作区域 -->
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">{{ $t('newlyAdded') }}</a-button>
|
<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 @click="handleSync" type="primary">批量同步</a-button>
|
||||||
<!-- 批量删除 -->
|
<!-- 批量删除 -->
|
||||||
<a-button icon="delete" type="primary" ghost @click="batchDel">
|
<a-button icon="delete" type="primary" ghost @click="batchDel">
|
||||||
@@ -68,7 +69,7 @@
|
|||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import JTable from '@comp/jero/JTable'
|
import JTable from '@comp/jero/JTable'
|
||||||
import AsmsInterfaceModal from '@views/system/modules/AsmsInterfaceModal'
|
import AsmsInterfaceModal from '@views/system/modules/AsmsInterfaceModal'
|
||||||
import { getAsmsInterfaceById, syncAsmsInterface } from '@api/api'
|
import { batchDelDictItemAsmsInterface, getAsmsInterfaceById, syncAsmsInterface } from '@api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AsmsInterfaceList',
|
name: 'AsmsInterfaceList',
|
||||||
@@ -142,6 +143,34 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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 () {
|
handleSync () {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
|
|||||||
Reference in New Issue
Block a user