feat: There is no way the, 操作日志导出
This commit is contained in:
@@ -72,6 +72,14 @@
|
||||
v-btn-permission="'c8605037fd040fd480b052d6e9dd8d13'"
|
||||
>清空</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="" class="search-item btn-box">
|
||||
<el-button class="common-button-default"
|
||||
@click="exportStandard()"
|
||||
size="mini"
|
||||
v-btn-permission="''"
|
||||
title="导出1年内的操作日志">导出
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -118,14 +126,32 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<!--导出文件改名字模态框-->
|
||||
<el-dialog :visible.sync="exportModelFlag" class="export-dialog" title="导出文件" width="300px">
|
||||
<el-form :inline="true" class="label-input-form search-area">
|
||||
<el-form-item label="导出名称" class="search-item">
|
||||
<el-input v-model="exportName" placeholder="请输入导出文件名称" :maxlength="30" clearable label="导出名称"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="demo-drawer-footer">
|
||||
<el-button size="mini" class="common-button-default" icon="el-icon-close" @click="cancal">取消</el-button>
|
||||
<el-button size="mini" type="primary" class="common-button-primary" icon="el-icon-check"
|
||||
:loading="exportLoading"
|
||||
@click="exportTestItem">提交</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {interfaceUrl} from '@/sysConfig'
|
||||
export default {
|
||||
name: "OperationLog",
|
||||
data () {
|
||||
return {
|
||||
dataLoading: false,
|
||||
exportModelFlag: false,
|
||||
exportLoading: false,
|
||||
exportName: '',
|
||||
total: 0,
|
||||
data: [],
|
||||
typeList: [],
|
||||
@@ -150,6 +176,20 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 导出取消按钮关闭模态、置空
|
||||
cancal() {
|
||||
this.exportModelFlag = false
|
||||
},
|
||||
exportTestItem() {
|
||||
this.exportLoading = true
|
||||
this.searchForm.exportType = ""
|
||||
this.searchForm.exportName = this.exportName
|
||||
this.searchForm.userId = this.$store.getters.userInfo.userId
|
||||
const exportJson = JSON.stringify(this.searchForm);
|
||||
window.open(interfaceUrl + 'sysLog/sys-log/exportSysLogExcelVOExcelData?exportJson='+exportJson)
|
||||
this.$message.success('导出信息成功')
|
||||
this.exportLoading = false
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.searchForm.account = data[0].id
|
||||
this.searchForm.accountName = data[0].name
|
||||
@@ -195,6 +235,10 @@
|
||||
this.searchForm.content = ''
|
||||
this.getData()
|
||||
},
|
||||
exportStandard() {
|
||||
this.exportName = ''
|
||||
this.exportModelFlag = true
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
this.getData()
|
||||
|
||||
Reference in New Issue
Block a user