|
|
@ -58,7 +58,10 @@ |
|
|
|
<el-button @click="getTotal()">{{ '总计' }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="success" @click="exportHandle()">{{ $t('export') }}</el-button> |
|
|
|
<el-button type="success" @click="exportHandle()">{{ '数据导出' }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="success" @click="exportHandleTotal()">{{ '统计导出' }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button v-if="$hasPermission('points:activepointlog:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button> |
|
|
@ -118,6 +121,8 @@ |
|
|
|
<script> |
|
|
|
import mixinViewModule from '@/mixins/view-module' |
|
|
|
import AddOrUpdate from './activepointlog-add-or-update' |
|
|
|
import Cookies from 'js-cookie' |
|
|
|
import qs from 'qs' |
|
|
|
export default { |
|
|
|
mixins: [mixinViewModule], |
|
|
|
data () { |
|
|
@ -127,7 +132,8 @@ export default { |
|
|
|
getDataListIsPage: true, |
|
|
|
deleteURL: '/points/activepointlog', |
|
|
|
deleteIsBatch: true, |
|
|
|
exportURL: '/points/activepointlog/export' |
|
|
|
exportURL: '/points/activepointlog/export', |
|
|
|
exportTotalURL: '/points/activepointlog/exportTotal' |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
id: '', |
|
|
@ -204,6 +210,13 @@ export default { |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
exportHandleTotal () { |
|
|
|
var params = qs.stringify({ |
|
|
|
'token': Cookies.get('token'), |
|
|
|
...this.dataForm |
|
|
|
}) |
|
|
|
window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportTotalURL}?${params}` |
|
|
|
}, |
|
|
|
btKeyUpuserName (e) { |
|
|
|
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '') |
|
|
|
this.dataForm.userName = e.target.value |
|
|
|