|
@@ -18,14 +18,17 @@
|
|
<template #actions="{ row }">
|
|
<template #actions="{ row }">
|
|
<m-button text type="primary" @click="onEdit(row)" size="small">编辑</m-button>
|
|
<m-button text type="primary" @click="onEdit(row)" size="small">编辑</m-button>
|
|
<m-button text type="danger" @click="onDelete(row)" size="small">删除</m-button>
|
|
<m-button text type="danger" @click="onDelete(row)" size="small">删除</m-button>
|
|
|
|
+ <m-button text type="primary" @click="onHistory(row)" size="small">历史配置记录</m-button>
|
|
</template>
|
|
</template>
|
|
</m-table>
|
|
</m-table>
|
|
<config-edit ref="editRefs" :title="title" @refresh="init"></config-edit>
|
|
<config-edit ref="editRefs" :title="title" @refresh="init"></config-edit>
|
|
|
|
+ <ConfigHistory ref="configHistoryRefs"></ConfigHistory>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import ConfigEdit from './configEdit'
|
|
import ConfigEdit from './configEdit'
|
|
|
|
+import ConfigHistory from './configHistory.vue'
|
|
import {
|
|
import {
|
|
getConfigPage,
|
|
getConfigPage,
|
|
getConfigCateGories,
|
|
getConfigCateGories,
|
|
@@ -34,7 +37,7 @@ import {
|
|
} from '@/api/salary'
|
|
} from '@/api/salary'
|
|
export default {
|
|
export default {
|
|
name: 'salary-config',
|
|
name: 'salary-config',
|
|
- components: { ConfigEdit },
|
|
|
|
|
|
+ components: { ConfigEdit, ConfigHistory },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
title: '',
|
|
title: '',
|
|
@@ -78,7 +81,8 @@ export default {
|
|
try {
|
|
try {
|
|
const { data } = await getConfigPage({
|
|
const { data } = await getConfigPage({
|
|
...this.searchValues,
|
|
...this.searchValues,
|
|
- ...this.pageInfo
|
|
|
|
|
|
+ ...this.pageInfo,
|
|
|
|
+ history: 0
|
|
})
|
|
})
|
|
this.items = data.records
|
|
this.items = data.records
|
|
this.total = data.total
|
|
this.total = data.total
|
|
@@ -136,6 +140,9 @@ export default {
|
|
onPageChange (index) {
|
|
onPageChange (index) {
|
|
this.pageInfo.current = index
|
|
this.pageInfo.current = index
|
|
this.init()
|
|
this.init()
|
|
|
|
+ },
|
|
|
|
+ onHistory (row) {
|
|
|
|
+ this.$refs.configHistoryRefs.open(row)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|