|
|
@ -1,15 +1,14 @@ |
|
|
|
<template> |
|
|
|
<div class="app-container"> |
|
|
|
<div v-show="visible"> |
|
|
|
<div v-show="viewState == 1"> |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>合同模板管理</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" @click="handleCreate()">新增</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleUpdate()">编辑</el-button> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> |
|
|
|
<el-button type="success" size="small" @click="handleDaoRu()">导入</el-button> |
|
|
|
<el-button type="success" size="small" @click="handleDaoChu()">导出</el-button> |
|
|
|
<!-- <el-button type="info" size="small" @click="handleReturn()">返回</el-button> --> |
|
|
|
<!-- <el-button type="success" size="small" @click="handleDaoRu()">导入</el-button>--> |
|
|
|
<!-- <el-button type="success" size="small" @click="handleDaoChu()">导出</el-button>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="webcon"> |
|
|
@ -19,22 +18,17 @@ |
|
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header"> |
|
|
|
<el-form-item label="合同类型" class="searchlist"> |
|
|
|
<el-select v-model="listQuery.params.contractTypeKey" placeholder="请选择" class="filter-item"> |
|
|
|
<el-option v-for="item in typeList" :key="item.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
<el-option v-for="item in typeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="人员类型" class="searchlist"> |
|
|
|
<el-select v-model="listQuery.params.objectTypeKey" placeholder="请选择" class="filter-item"> |
|
|
|
<el-option v-for="items in personnelTypeList" :key="items.dictKey" :label="items.dictValue" |
|
|
|
:value="items.dictKey"/> |
|
|
|
<el-option v-for="items in personnelTypeList" :key="items.dictKey" :label="items.dictValue" :value="items.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="项目类型" class="searchlist"> |
|
|
|
|
|
|
|
<el-select v-model="listQuery.params.projectTypeKey" placeholder="请选择" class="filter-item"> |
|
|
|
<el-option v-for="ite in projectTypeList" :key="ite.dictKey" :label="ite.dictValue" |
|
|
|
:value="ite.dictKey"/> |
|
|
|
<el-option v-for="ite in projectTypeList" :key="ite.dictKey" :label="ite.dictValue" :value="ite.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="文件名称" class="searchlist"> |
|
|
@ -47,18 +41,15 @@ |
|
|
|
<el-button type="primary" @click="handleFilter">查询</el-button> |
|
|
|
<el-button type="primary" @click="handleReset">重置</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">合同模板列表</div> |
|
|
|
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" |
|
|
|
class="pagination" @pagination="getList"/> |
|
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</div> |
|
|
|
<div class=""> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column width="50px" type="selection" align="center"/> |
|
|
|
<el-table-column width="80px" label="编号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column label="合同类型" align="center"> |
|
|
@ -68,7 +59,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="文件名称" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.fileName }}</span> |
|
|
|
<span>{{ scope.row.fileName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="文件类型" align="center"> |
|
|
@ -106,314 +97,233 @@ |
|
|
|
<div class="pages"> |
|
|
|
<div class="tit"/> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" |
|
|
|
class="pagination" @pagination="getList"/> |
|
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-dialog title="查看" :visible.sync="contractPdfView" width="45%" height="320"> |
|
|
|
<embed v-show="pdfShow" id="plugin" width="100%" height="600" name="plugin" :src="contractPdf" |
|
|
|
type="application/pdf" internalinstanceid="119"> |
|
|
|
<el-image v-for="url in pictureUrls" v-show="imageShow" :key="url" :src="url" lazy |
|
|
|
style="width:200px;height:200px" :preview-src-list="pictureUrls"/> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- <el-dialog style="margin-top: -15vh!important;" width="60%" :append-to-body="true" :visible.sync="contractPdfView" title="">--> |
|
|
|
<!-- <embed id="plugin" width="100%" height="600" name="plugin" :src="contractPdf" type="application/pdf" internalinstanceid="119">--> |
|
|
|
<!-- </el-dialog>--> |
|
|
|
<hetongmobanguanli-add ref="addAndUpdate" @handleReturn="visible = true" @created="dataCreated" |
|
|
|
@updated="dataUpdated"/> |
|
|
|
<hetongmobanguanli-info ref="openInfo" @handleReturn="visible = true"/> |
|
|
|
<hetongmobanguanli-add v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="restState"/> |
|
|
|
<hetongmobanguanli-info v-show="viewState == 4" ref="divInfo" @doback="restState"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import {mapGetters} from 'vuex' |
|
|
|
import { |
|
|
|
getTemplatePageList, |
|
|
|
deleteTemplateByids, |
|
|
|
basefinbankTemplateExportExcel, |
|
|
|
} from '@/api/jichuxinxi/contract' |
|
|
|
// import { setuser, getuser } from '@/utils/baocun' |
|
|
|
import {dictType} from '@/api/salesManagement/orderManagement' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import hetongmobanguanliAdd from './hetongmobanguanliAdd.vue' |
|
|
|
import hetongmobanguanliInfo from './hetongmobanguanliInfo.vue' |
|
|
|
import { |
|
|
|
getTemplatePageList, |
|
|
|
deleteTemplateByids, |
|
|
|
basefinbankTemplateExportExcel |
|
|
|
} from '@/api/jichuxinxi/contract' |
|
|
|
import { dictType } from '@/api/salesManagement/orderManagement' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import hetongmobanguanliAdd from './hetongmobanguanliAdd.vue' |
|
|
|
import hetongmobanguanliInfo from './hetongmobanguanliInfo.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'Hetongdanganguanli', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
|
pageye, |
|
|
|
hetongmobanguanliAdd, |
|
|
|
hetongmobanguanliInfo, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pictureUrls: [], |
|
|
|
pdfShow: false, |
|
|
|
imageShow: false, |
|
|
|
contractPdfView: false, |
|
|
|
contractPdf: '', |
|
|
|
projectTypeList: [], |
|
|
|
typeList: [], |
|
|
|
personnelTypeList: [], |
|
|
|
isSearchShow: false, |
|
|
|
searchxianshitit: '隐藏查询条件', |
|
|
|
// 查询 ----------- |
|
|
|
tableKey: 0, |
|
|
|
sids: [], |
|
|
|
// list: [], |
|
|
|
list: [{name: '123'}], |
|
|
|
total: 1, |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
|
size: 20, |
|
|
|
params: { |
|
|
|
contractType: '', |
|
|
|
objectType: '', |
|
|
|
projectType: '', |
|
|
|
fileName: '', |
|
|
|
ver: '', |
|
|
|
}, |
|
|
|
export default { |
|
|
|
name: 'Hetongdanganguanli', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
|
pageye, |
|
|
|
hetongmobanguanliAdd, |
|
|
|
hetongmobanguanliInfo |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
projectTypeList: [], |
|
|
|
typeList: [], |
|
|
|
personnelTypeList: [], |
|
|
|
isSearchShow: false, |
|
|
|
viewState: 1, |
|
|
|
searchxianshitit: '隐藏查询条件', |
|
|
|
// 查询 ----------- |
|
|
|
tableKey: 0, |
|
|
|
sids: [], |
|
|
|
list: [], |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
|
size: 20, |
|
|
|
params: { |
|
|
|
contractType: '', |
|
|
|
objectType: '', |
|
|
|
projectType: '', |
|
|
|
fileName: '', |
|
|
|
ver: '' |
|
|
|
}, |
|
|
|
selectDate: undefined, |
|
|
|
temp: {}, // 添加和修改 |
|
|
|
templook: {}, // 查看实体 |
|
|
|
dialogStatus: '', // 对话框状态 |
|
|
|
visible: true, |
|
|
|
total: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
// 加载列表 |
|
|
|
this.getList() |
|
|
|
this.DictType() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
DictType() { |
|
|
|
dictType({ type: 'contractType' }).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.typeList = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
// 获取人员类型 |
|
|
|
dictType({ type: 'personnelType' }).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.personnelTypeList = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
// 获取项目类型 |
|
|
|
dictType({ type: 'projectType' }).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.projectTypeList = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
computed: {}, |
|
|
|
created() { |
|
|
|
// 加载列表 |
|
|
|
this.getList() |
|
|
|
this.getType() |
|
|
|
this.getPeopleType() |
|
|
|
this.getProjectTypes() |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow() { |
|
|
|
this.isSearchShow = !this.isSearchShow |
|
|
|
if (this.isSearchShow) { |
|
|
|
this.searchxianshitit = '隐藏查询条件' |
|
|
|
} else { |
|
|
|
this.searchxianshitit = '显示查询条件' |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleCheck(row) { |
|
|
|
// this.pdfShow = false |
|
|
|
this.imageShow = true |
|
|
|
this.pictureUrls = [] |
|
|
|
const da = row.templateUrl.split(',') |
|
|
|
da.forEach((e) => { |
|
|
|
if (e.endsWith('pdf')) { |
|
|
|
this.contractPdf = e |
|
|
|
} else if (e !== '') { |
|
|
|
this.pictureUrls.push(e) |
|
|
|
console.log('88888', this.pictureUrls) |
|
|
|
} |
|
|
|
}) |
|
|
|
if (row.templateUrl && row.templateUrl !== '') { |
|
|
|
this.contractPdfView = true |
|
|
|
this.contractPdf = row.templateUrl |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '没有文件!!', |
|
|
|
type: 'warning', |
|
|
|
duration: 2000, |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow() { |
|
|
|
this.isSearchShow = !this.isSearchShow |
|
|
|
if (this.isSearchShow) { |
|
|
|
this.searchxianshitit = '隐藏查询条件' |
|
|
|
// 序号 |
|
|
|
indexMethod(index) { |
|
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|
|
|
var pageindex = index + 1 + pagestart |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
getTemplatePageList(this.listQuery).then((response) => { |
|
|
|
this.listLoading = false |
|
|
|
if (response.code === '200' && response.data && response.data.total > 0) { |
|
|
|
this.list = response.data.records |
|
|
|
this.listQuery.total = response.data.total |
|
|
|
} else { |
|
|
|
this.searchxianshitit = '显示查询条件' |
|
|
|
this.list = [] |
|
|
|
this.listQuery.total = 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|
indexMethod(index) { |
|
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|
|
|
var pageindex = index + 1 + pagestart |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
getTemplatePageList({ |
|
|
|
current: this.listQuery.current, |
|
|
|
size: this.listQuery.size, |
|
|
|
params: this.listQuery.params, |
|
|
|
}).then((response) => { |
|
|
|
this.listLoading = false |
|
|
|
if ( |
|
|
|
response.code === '200' && |
|
|
|
response.data && |
|
|
|
response.data.total > 0 |
|
|
|
) { |
|
|
|
this.list = response.data.records |
|
|
|
this.total = response.data.total |
|
|
|
} else { |
|
|
|
this.list = [] |
|
|
|
this.total = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 查询按钮 |
|
|
|
handleFilter() { |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
|
|
|
|
// 合同类型 |
|
|
|
getType() { |
|
|
|
dictType({type: 'contractType'}).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.typeList = response.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取人员类型 |
|
|
|
getPeopleType() { |
|
|
|
dictType({type: 'personnelType'}).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.personnelTypeList = response.data |
|
|
|
} |
|
|
|
// 重置 |
|
|
|
handleReset() { |
|
|
|
this.listQuery = { |
|
|
|
current: 1, |
|
|
|
size: 20, |
|
|
|
params: { |
|
|
|
contractType: '', |
|
|
|
objectType: '', |
|
|
|
projectType: '', |
|
|
|
fileName: '', |
|
|
|
ver: '' |
|
|
|
}, |
|
|
|
total: 0 |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
row.forEach((element) => { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
}, |
|
|
|
// 打开添加 |
|
|
|
handleCreate() { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divAdd'].showAdd() |
|
|
|
}, |
|
|
|
// 打开修改 |
|
|
|
handleUpdate() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divAdd'].showEdit(this.sids) |
|
|
|
} else if (this.sids.length > 1) { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '不能选中多个修改!', |
|
|
|
type: 'info', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取项目类型 |
|
|
|
getProjectTypes() { |
|
|
|
dictType({type: 'projectType '}).then((response) => { |
|
|
|
if (response.code === '200' && response.data) { |
|
|
|
this.projectTypeList = response.data |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '没有选择!', |
|
|
|
type: 'error', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 查询按钮 |
|
|
|
handleFilter() { |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 重置 |
|
|
|
handleReset() { |
|
|
|
this.listQuery.params.contractTypeKey = '' |
|
|
|
this.listQuery.params.objectTypeKey = '' |
|
|
|
this.listQuery.params.projectTypeKey = '' |
|
|
|
this.listQuery.params.fileName = '' |
|
|
|
this.listQuery.params.ver = '' |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
// ----------------------------------方法-------------------- |
|
|
|
// 添加前数据初始化 |
|
|
|
resetTemp() { |
|
|
|
this.temp = {} |
|
|
|
}, |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
row.forEach((element) => { |
|
|
|
aa.push(element.sid) |
|
|
|
// setuser(this.sids) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
}, |
|
|
|
// 打开添加 |
|
|
|
handleCreate() { |
|
|
|
this.$refs.addAndUpdate.openCreate(() => { |
|
|
|
this.visible = false |
|
|
|
// 打开查看 |
|
|
|
lookDetails(row) { |
|
|
|
this.viewState = 4 |
|
|
|
this.$refs['divInfo'].showInfo(row) |
|
|
|
}, |
|
|
|
// 根据本行ID删除数据 |
|
|
|
handleDelete() { |
|
|
|
if (this.sids.length === 0) { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '没有选择!!', |
|
|
|
type: 'warning', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 打开修改 |
|
|
|
handleUpdate() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.$refs.addAndUpdate.openUpdate(this.sids[0], () => { |
|
|
|
this.visible = false |
|
|
|
}) |
|
|
|
} else if (this.sids.length > 1) { |
|
|
|
return |
|
|
|
} |
|
|
|
deleteTemplateByids(this.sids).then((response) => { |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '不能选中多个修改!!', |
|
|
|
type: 'info', |
|
|
|
duration: 2000, |
|
|
|
message: '删除成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
this.getList() |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '没有选择!!', |
|
|
|
type: 'error', |
|
|
|
duration: 2000, |
|
|
|
title: '删除失败', |
|
|
|
message: response.msg, |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 打开查看 |
|
|
|
lookDetails(row) { |
|
|
|
this.$refs.openInfo.openCreate(row.sid, () => { |
|
|
|
this.visible = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 根据本行ID删除数据 |
|
|
|
handleDelete() { |
|
|
|
if (this.sids.length === 0) { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '没有选择!!', |
|
|
|
type: 'warning', |
|
|
|
duration: 2000, |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
deleteTemplateByids(this.sids).then((response) => { |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '删除成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000, |
|
|
|
}) |
|
|
|
this.getList() |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '删除失败', |
|
|
|
message: response.msg, |
|
|
|
type: 'error', |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
restState() { |
|
|
|
this.viewState = 1 |
|
|
|
this.handleReset() |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
handleDaoChu() { |
|
|
|
if (this.sids.length > 0) { |
|
|
|
this.listQuery.params.sids = this.sids.join(',') |
|
|
|
} |
|
|
|
console.log(this.listQuery.params) |
|
|
|
basefinbankTemplateExportExcel(this.listQuery.params).then((res) => { |
|
|
|
const blob = new Blob([res], { |
|
|
|
type: 'application/vnd.ms-excel' |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 修改保存完成 |
|
|
|
dataUpdated() { |
|
|
|
this.$forceUpdate() |
|
|
|
this.getList() |
|
|
|
this.visible = true |
|
|
|
}, |
|
|
|
// 添加保存完成 |
|
|
|
dataCreated() { |
|
|
|
this.$forceUpdate() |
|
|
|
this.getList() |
|
|
|
this.visible = true |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
handleDaoChu() { |
|
|
|
if (this.sids.length > 0) { |
|
|
|
this.listQuery.params.sids = this.sids.join(',') |
|
|
|
} |
|
|
|
console.log(this.listQuery.params) |
|
|
|
basefinbankTemplateExportExcel(this.listQuery.params).then((res) => { |
|
|
|
const blob = new Blob([res], { |
|
|
|
type: 'application/vnd.ms-excel', |
|
|
|
}) |
|
|
|
|
|
|
|
const objectUrl = URL.createObjectURL(blob) |
|
|
|
window.location.href = objectUrl |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '导出成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000, |
|
|
|
}) |
|
|
|
const objectUrl = URL.createObjectURL(blob) |
|
|
|
window.location.href = objectUrl |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '导出成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
/* .listcon{height: calc(100vh - 550px);overflow-y: auto;overflow-x: hidden;} */ |
|
|
|
</style> |
|
|
|