Commit 9f47fa96 authored by 李苏's avatar 李苏 💬

履职 新增download

parent 638ea938
...@@ -36,12 +36,19 @@ ...@@ -36,12 +36,19 @@
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<!-- <AddButton ref="add" :app='app'></AddButton> <!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> --> <EditButton ref="edit" :app='app'></EditButton> -->
<AttachFileButton :app='app'></AttachFileButton> <AttachFileButton :app='app'></AttachFileButton>
<el-button @click="sclzbg" size='mini'
type="primary">生成履职报告</el-button>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!--<WorkFlowButton :app='this'></WorkFlowButton>--> <!--<WorkFlowButton :app='this'></WorkFlowButton>-->
...@@ -73,6 +80,9 @@ ...@@ -73,6 +80,9 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
/* 引入需要的接口*/ /* 引入需要的接口*/
import {
downloadJson
} from 'common/src/utils/request'
import { import {
doQuery, doQuery,
doQueryOwn, doQueryOwn,
...@@ -125,6 +135,16 @@ ...@@ -125,6 +135,16 @@
} }
}, },
methods: { methods: {
sclzbg(){
let params={
pageSize:this.$refs.TablePager.pageSize,
pageNo:this.$refs.TablePager.pageNo,
...this.queryParams
}
downloadJson('aqgl/rcgl/lzrw/exportWord',params,'履职报告.docx')
},
getRow: function(e) { getRow: function(e) {
this.rowItem = e this.rowItem = e
this.$refs.report.queryParams.rwid=e.id this.$refs.report.queryParams.rwid=e.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment