feat: There is no way the, 操作日志导出
This commit is contained in:
@@ -72,6 +72,14 @@
|
|||||||
v-btn-permission="'c8605037fd040fd480b052d6e9dd8d13'"
|
v-btn-permission="'c8605037fd040fd480b052d6e9dd8d13'"
|
||||||
>清空</el-button>
|
>清空</el-button>
|
||||||
</el-form-item>
|
</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>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -118,14 +126,32 @@
|
|||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
></Role-tree>
|
></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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import {interfaceUrl} from '@/sysConfig'
|
||||||
export default {
|
export default {
|
||||||
name: "OperationLog",
|
name: "OperationLog",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
dataLoading: false,
|
dataLoading: false,
|
||||||
|
exportModelFlag: false,
|
||||||
|
exportLoading: false,
|
||||||
|
exportName: '',
|
||||||
total: 0,
|
total: 0,
|
||||||
data: [],
|
data: [],
|
||||||
typeList: [],
|
typeList: [],
|
||||||
@@ -150,6 +176,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
checkedRole (data) {
|
||||||
this.searchForm.account = data[0].id
|
this.searchForm.account = data[0].id
|
||||||
this.searchForm.accountName = data[0].name
|
this.searchForm.accountName = data[0].name
|
||||||
@@ -195,6 +235,10 @@
|
|||||||
this.searchForm.content = ''
|
this.searchForm.content = ''
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
|
exportStandard() {
|
||||||
|
this.exportName = ''
|
||||||
|
this.exportModelFlag = true
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getData()
|
this.getData()
|
||||||
|
|||||||
Reference in New Issue
Block a user