工作组导入导出

This commit is contained in:
庄新伟
2022-03-15 13:33:29 +08:00
parent d8c3a6ea6a
commit 483ac77bad
12 changed files with 1341 additions and 47 deletions
+220
View File
@@ -804,3 +804,223 @@ export function upFile(data) {
data
})
}
// 工作组协会信息数据统计导出
export function exportAssocInfos(params) {
return axios({
url: '/api/wgdCensusZ/wgd-assoc-info/exportAllAssocInfos',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组参与外部标准制修订信息统计导出
export function exportAllWbxds(params) {
return axios({
url: '/api/wgdCensusLeo/wgd-wbxd/exportAllWbxds',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组委员信息数据统计导出
export function exportAllCommiInfos(params) {
return axios({
url: '/api/wgdCensusZ/wgd-commi-info/exportAllCommiInfos',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组协会费用信息统计导出
export function exportAllAssocCosts(params) {
return axios({
url: '/api/wgdCensusZ/wgd-assoc-cost/exportAllAssocCosts',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组参与外部协会会议统计导出
export function exportAllWbtjs(params) {
return axios({
url: '/api/wgdCensusLeo/wgd-wbtj/exportAllWbtjs',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组参会费用信息统计导出
export function exportAllMeetCosts(params) {
return axios({
url: '/api/wgdCensusZ/wgd-meet-cost/exportAllMeetCosts',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组采购费用信息统计导出
export function exportAllCgfys(params) {
return axios({
url: '/api/wgdCensusLeo/wgd-cgfy/exportAllCgfys',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组参与外部标准制修订费用统计导出
export function exportAllExReviseCost(params) {
return axios({
url: '/api/wgdCensusZ/wgd-ex-revise-cost/exportAllExReviseCost',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组翻译费用信息统计导出
export function exportAllFyfys(params) {
return axios({
url: '/api/wgdCensusLeo/wgd-fyfy/exportAllFyfys',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组标准制修订补助资金收支统计收入表导出
export function exportAllSrbs(params) {
return axios({
url: '/api/wgdCensusLeo/wgd-srb/exportAllSrbs',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 工作组标准制修订补助资金收支统计支出表导出
export function exportAllZcbs(params) {
return axios({
url: '/api/wgdCensusLeo/wgd-zcb/exportAllZcbs',
params,
method: 'get',
responseType: 'blob',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 协会信息数据统计导入
export function importAllAssocInfos(data) {
return axios({
url: '/api/wgdCensusZ/wgd-assoc-info/importAllAssocInfos',
method: 'post',
data
})
}
// 委员信息数据统计导入
export function importAllCommiInfos(data) {
return axios({
url: '/api/wgdCensusZ/wgd-commi-info/importAllCommiInfos',
method: 'post',
data
})
}
// 参与外部协会会议统计导入
export function importAllAllWbtjs(data) {
return axios({
url: '/api/wgdCensusLeo/wgd-wbtj/importAllAllWbtjs',
method: 'post',
data
})
}
// 参与外部标准制修订信息统计导入
export function importAllWbxds(data) {
return axios({
url: '/api/wgdCensusLeo/wgd-wbxd/importAllWbxds',
method: 'post',
data
})
}
// 协会费用信息统计导入
export function importAssocCosts(data) {
return axios({
url: '/api/wgdCensusZ/wgd-assoc-cost/importAssocCosts',
method: 'post',
data
})
}
//参会费用信息统计导入
export function importMeetCost(data) {
return axios({
url: '/api/wgdCensusZ/wgd-meet-cost/importMeetCost',
method: 'post',
data
})
}
//参与外部标准制修订费用统计导入
export function importExReviseCost(data) {
return axios({
url: '/api/wgdCensusZ/wgd-ex-revise-cost/importExReviseCost',
method: 'post',
data
})
}
//采购费用信息统计导入
export function importAllCgfys(data) {
return axios({
url: '/api/wgdCensusLeo/wgd-cgfy/importAllCgfys',
method: 'post',
data
})
}
//翻译费用信息统计导入
export function importAllFyfys(data) {
return axios({
url: '/api/wgdCensusLeo/wgd-fyfy/importAllFyfys',
method: 'post',
data
})
}
//标准制修订补助资金收支统计收入表导入
export function importAllSrbs(data) {
return axios({
url: '/api/wgdCensusLeo/wgd-srb/importAllSrbs',
method: 'post',
data
})
}
//标准制修订补助资金收支统计支出表导入
export function importAllZcbs(data) {
return axios({
url: '/api/wgdCensusLeo/wgd-zcb/importAllZcbs',
method: 'post',
data
})
}
@@ -20,8 +20,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="dataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>
<el-button type="primary" size="small" @click="exportAllZcbs">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -149,18 +149,37 @@
</div>
</el-drawer>
<!-- <div>
&lt;!&ndash; 导入弹框 &ndash;&gt;
<el-dialog
title="导入文件"
:visible.sync="dialogVisible1"
width="30%"
>
<el-button class="leading-in">点击或拖拽上传文件</el-button>
</el-dialog>
</div>-->
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="dialogVisible1"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- <div>-->
<!-- &lt;!&ndash; 导入弹框 &ndash;&gt;-->
<!-- <el-dialog-->
<!-- title="导入文件"-->
<!-- :visible.sync="dialogVisible1"-->
<!-- width="30%"-->
<!-- >-->
<!-- <el-button class="leading-in">点击或拖拽上传文件</el-button>-->
<!-- </el-dialog>-->
<!-- </div>-->
</div>
@@ -170,6 +189,7 @@
<script>
import { exportQuery, exportEdit, exportAdd, exportDel } from '@/api/statisticsApi'
import { exportAllSrbs, exportAllZcbs, importAllSrbs, importAllZcbs } from '@/api/process'
export default {
name: "child2",
data() {
@@ -204,6 +224,8 @@ export default {
acceptShow: false,
annexDialog: false,
annexList: [],
ids:'',
dialogVisible1 : false
}
},
@@ -221,6 +243,36 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
exportAllZcbs(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllZcbs({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '标准制修订补助资金收支统计支出表' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
//新增方法
dataAdd() {
@@ -381,6 +433,42 @@ export default {
this.acceptShow = true
},*/
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllZcbs(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.dialogVisible1 = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
// 文件上传成功
handleOnsuccess(res, file, fileList) {
if (res.ok) {
@@ -19,8 +19,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="dataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllSrbs">导入</el-button>
<el-button type="primary" size="small" @click="exportAllSrbs">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -141,6 +141,27 @@
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- <div>
&lt;!&ndash; 导入弹框 &ndash;&gt;
<el-dialog
@@ -180,6 +201,7 @@
<script>
import { inComeQuery, inComeEdit, inComeAdd, inComeDel } from '@/api/statisticsApi'
import { exportAllFyfys, exportAllSrbs, importAllSrbs, importAssocCosts } from '@/api/process'
export default {
name: "child1",
data() {
@@ -207,7 +229,11 @@ export default {
drawerTable: false,
drawerTitle: '',
formRules: {},
submitLoading: false
submitLoading: false,
ids:'',
visible:{
uploadData : false
}
}
},
@@ -264,6 +290,77 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importAllSrbs(){
this.visible.uploadData =true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllSrbs(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllSrbs(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllSrbs({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '标准制修订补助资金收支统计收入表' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
//删除方法
deleteDetail() {
@@ -30,8 +30,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="formDataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllAllWbtjs">导入</el-button>
<el-button type="primary" size="small" @click="exportAllWbtjs">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail" icon="el-icon-delete">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -298,10 +298,36 @@
@click="addDrawerClose">取消</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
</div>
</template>
<script>
import {
exportAllWbtjs,
importAllAllWbtjs,
} from '@/api/process'
export default {
name: "child3",
data() {
@@ -378,6 +404,10 @@ export default {
drawerTitle: '',
drawerTable: false,
DrawerType: '',
ids:'',
visible:{
uploadData : false
}
}
},
mounted () {
@@ -407,6 +437,78 @@ export default {
}, // 获取数据
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importAllAllWbtjs(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllAllWbtjs(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllWbtjs(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllWbtjs({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '参与外部协会会议统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
submit() {
this.$refs['addForm'].validate((valid) => {
@@ -30,8 +30,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="formDataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllCommiInfos">导入</el-button>
<el-button type="primary" size="small" @click="exportAllCommiInfos">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail" icon="el-icon-delete">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -321,12 +321,35 @@
@click="addDrawerClose">取消</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
</div>
</template>
<script>
import { exportAllCommiInfos, importAllCommiInfos } from '@/api/process'
export default {
name: "child2",
data() {
@@ -412,6 +435,10 @@
remark: ''
},
DrawerType: '',
ids:'',
visible:{
uploadData : false
}
}
},
mounted() {
@@ -431,7 +458,16 @@
})
}, // 获取数据
handleSelectionChange(val) {
this.multipleSelection = val;
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
formDataAdd() {
this.DrawerType = 'add'
@@ -508,6 +544,70 @@
this.$message.warning('请选择要删除的数据')
}
},//删除方法
//导入
importAllCommiInfos(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllCommiInfos(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllCommiInfos(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllCommiInfos({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '委员信息数据统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
/** 查询 */
queryForm() {
this.form.page = 1
@@ -22,8 +22,8 @@
<el-divider/>
<div style="float: left;">
<el-button type="primary" size="small" @click="formDataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllAssocInfos">导入</el-button>
<el-button type="primary" size="small" @click="exportTestItem">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail" icon="el-icon-delete">
批量删除
</el-button>
@@ -419,6 +419,27 @@
@click="addDrawerClose">取消</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
</div>
@@ -426,6 +447,9 @@
<script>
import { interfaceUrl } from '@/sysConfig'
import { exportAssocInfos, importAllAssocInfos } from '@/api/process'
export default {
name: "child1",
components: {},
@@ -486,10 +510,16 @@ export default {
p31: '',
p32: '',
},
ids:'',
exportName: '',
// 新增,编辑框
drawerTitle: '',
drawerTable: false,
DrawerType: '',
visible: {
// 导入弹窗是否可见
uploadData: false
},
formRules: {
scName: [
{required: true, message: '请输入协会名称-标委会', trigger: 'blur'},
@@ -602,6 +632,7 @@ export default {
p32: [
{required: true, message: '请输入缴费信息', trigger: 'blur'},
],
},
}
@@ -693,6 +724,82 @@ export default {
this.$message.warning('请选择要删除的数据')
}
}, // 删除
//导入
importAllAssocInfos(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllAssocInfos(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
// 导出确定功能
exportTestItem() {
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAssocInfos({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '协会信息数据统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
/** 查询 */
queryForm() {
this.form.page = 1
@@ -706,9 +813,7 @@ export default {
this.form.page = 1
this.getData()
}, //清空
handleSelectionChange(val) {
this.multipleSelection = val;
},
/** 新增 */
formDataAdd() {
this.DrawerType = 'add'
@@ -22,8 +22,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="formDataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllWbxds">导入</el-button>
<el-button type="primary" size="small" @click="exportExReviseCost">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail" icon="el-icon-delete">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -408,10 +408,33 @@
@click="addDrawerClose">取消</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
</div>
</template>
<script>
import { exportAllWbxds, importAllAllWbtjs, importAllWbxds } from '@/api/process'
export default {
name: "child4",
data() {
@@ -520,6 +543,10 @@ export default {
],
},
DrawerType: '',
ids:'',
visible:{
uploadData : false
}
}
},
mounted () {
@@ -549,6 +576,15 @@ export default {
}, // 查询
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
submit () {
this.$refs['addForm'].validate((valid) => {
@@ -584,6 +620,71 @@ export default {
this.addForm = {}
this.drawerTable = false
}, // 关闭
//导入
importAllWbxds(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllWbxds(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportExReviseCost(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllWbxds({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '参与外部标准制修订信息统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
deleteDetail () {
if (this.multipleSelection.length) {
this.$confirm('您是否确认删除选中数据?', '提示', {
@@ -26,8 +26,8 @@
<el-divider/>
<div style="float: left;">
<el-button type="primary" size="small" @click="tableAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importExReviseCost">导入</el-button>
<el-button type="primary" size="small" @click="exportAllExReviseCost">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -148,7 +148,27 @@
<el-button size="small" type="primary" :loading="submitLoading" @click="submit()">提交</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- <div>
&lt;!&ndash; 导入弹框 &ndash;&gt;
<el-dialog
@@ -166,6 +186,7 @@
<script>
import { reviseAll, reviseEdit, reviseAdd, reviseDel } from '@/api/statisticsApi'
import { exportAllCgfys, exportAllExReviseCost, importAssocCosts, importExReviseCost } from '@/api/process'
export default {
name: "child3",
data() {
@@ -206,7 +227,11 @@ export default {
{ label: '类型1', value: '0' },
{ label: '类型2', value: '1' },
{ label: '类型3', value: '2' },
]
],
ids:'',
visible:{
uploadData : false
}
}
},
@@ -224,6 +249,77 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importExReviseCost(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importExReviseCost(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllExReviseCost(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllExReviseCost({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '参与外部标准制修订费用统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
//新增方法
tableAdd() {
@@ -20,8 +20,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="formDataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllCgfys">导入</el-button>
<el-button type="primary" size="small" @click="exportAllCgfys">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -135,7 +135,27 @@
<el-button size="small" type="primary" :loading="submitLoading" @click="submit()">提交</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- <div>
&lt;!&ndash; 导入弹框 &ndash;&gt;
<el-dialog
@@ -176,6 +196,7 @@
<script>
import { CgfysAll, CgfysEdit, CgfysAdd, CgfysDelMore } from '@/api/statisticsApi'
import { exportAllCgfys, exportAllMeetCosts, importAllCgfys, importExReviseCost } from '@/api/process'
export default {
name: "child4",
data() {
@@ -211,6 +232,10 @@ export default {
cost: [{ required: true, message: '请填写费用', trigger: 'blur' }],
},
submitLoading: false,
ids:'',
visible:{
uploadData : false
}
}
},
@@ -227,6 +252,77 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importAllCgfys(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllCgfys(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllCgfys(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllCgfys({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '采购费用信息统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
//新增方法
formDataAdd() {
@@ -37,8 +37,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="tableAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importMeetCost">导入</el-button>
<el-button type="primary" size="small" @click="exportAllMeetCosts">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -172,7 +172,27 @@
<el-button size="small" type="primary" :loading="submitLoading" @click="submit()">提交</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- <div>
&lt;!&ndash; 导入弹框 &ndash;&gt;
<el-dialog
@@ -213,6 +233,7 @@
<script>
import { meetAll, meetEdit, meetAdd, meetDel } from '@/api/statisticsApi'
import { exportAllCommiInfos, exportAllMeetCosts, importAssocCosts, importMeetCost } from '@/api/process'
export default {
name: "child2",
data() {
@@ -254,7 +275,11 @@ export default {
{ label: '列支1', value: '0' },
{ label: '列支2', value: '1' },
{ label: '列支3', value: '3' },
]
],
ids:'',
visible:{
uploadData : false
}
}
},
@@ -271,6 +296,78 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importMeetCost(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importMeetCost(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllMeetCosts(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllMeetCosts({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '参会费用信息统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
//新增方法
tableAdd() {
@@ -26,8 +26,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="formDataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAssocCosts">导入</el-button>
<el-button type="primary" size="small" @click="exportAllAssocCosts">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -163,7 +163,27 @@
>
<el-button class="leading-in">点击或拖拽上传文件</el-button>
</el-dialog>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
</div>
@@ -173,6 +193,7 @@
import {
statisticsAll,statisticsAdd,
statisticsEdit, delMore,queryStatistics } from '@/api/statisticsApi'
import { exportAllAssocCosts, importAllCommiInfos, importAssocCosts } from '@/api/process'
export default {
name: "child1",
@@ -220,7 +241,11 @@ export default {
payOptions: [
{ label: '已缴费', value: '0'},
{ label: '未缴费', value: '1'},
]
],
ids:'',
visible:{
uploadData : false
}
}
},
@@ -242,6 +267,78 @@ export default {
/** 表格多选 */
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importAssocCosts(){
this.visible.uploadData =true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAssocCosts(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllAssocCosts(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllAssocCosts({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '协会费用信息统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
// 新增、编辑的提交按钮
submit() {
@@ -19,8 +19,8 @@
<el-divider/>
<div style="float: left">
<el-button type="primary" size="small" @click="dataAdd">新增</el-button>
<!-- <el-button type="primary" size="small" @click="dialogVisible1 = true">导入</el-button>-->
<!-- <el-button type="primary" size="small" @click="dialogVisible2 = true">导出</el-button>-->
<el-button type="primary" size="small" @click="importAllFyfys">导入</el-button>
<el-button type="primary" size="small" @click="exportAllFyfys">导出</el-button>
<el-button type="danger" size="small" @click="deleteDetail">批量删除</el-button>
<!-- <el-button type="primary" size="small" onclick="">模板下载</el-button>-->
</div>
@@ -159,7 +159,27 @@
<el-button size="small" type="primary" :loading="submitLoading" @click="submit()">提交</el-button>
</div>
</el-drawer>
<!-- 导入 -->
<el-dialog
width="40%"
title="导入"
:visible.sync="visible.uploadData"
:show-footer="false"
>
<el-upload
class="upload-demo"
drag
action="string"
accept=".xlsx"
ref="file"
:http-request="uploadBank"
:before-upload="onbeforeunload"
:on-success="handleSuccess"
multiple style="text-align: center">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- <div>
&lt;!&ndash; 导入弹框 &ndash;&gt;
<el-dialog
@@ -199,6 +219,7 @@
<script>
import { fyQuery, fyDetail, fyEdit, fyAdd, fyDel } from '@/api/statisticsApi'
import { exportAllExReviseCost, exportAllFyfys, importAllCgfys, importAllFyfys } from '@/api/process'
export default {
name: "children",
data() {
@@ -229,6 +250,10 @@ export default {
drawerTitle: '',
formRules: {},
submitLoading: false,
ids:'',
visible:{
uploadData : false
}
}
},
@@ -245,6 +270,76 @@ export default {
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.ids = ''
val.forEach(item => {
if (this.ids.length < 1) {
this.ids =item.id
} else {
this.ids += ','
this.ids += item.id
}
})
},
//导入
importAllFyfys(){
this.visible.uploadData = true
},
/**
* 导入
*/
uploadBank(param){
const formData = new FormData()
formData.append('file', param.file)
importAllFyfys(formData).then(res=>{
if (res.ok === true){
this.$message.success("导入成功")
this.visible.uploadData = false
this.getTableData()
this.$refs.file.clearFiles()
}else {
this.$message.error(res.data)
}
})
},
// 导入前验证
onbeforeunload(file){
if (!file){
this.$message.error('请上传文件')
}
const maxFile = file.size / 1024 / 1024 < 10;
const isExcel = file.name.indexOf('.xls') >= 0
if (!isExcel){
this.$message.error('只能上传Excel文件!')
}
if (!maxFile){
this.$message.error('上传大小不能超过10M')
}
return maxFile && isExcel
},
handleSuccess(){
},
//导出
exportAllFyfys(){
const params = this.ids
this.$confirm('是否确认导出所有类型数据项?', '确认导出数据', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=> {
exportAllFyfys({ idList: params }).then(res => {
const blob = new Blob([res], {type: 'application/vnd.ms-excel'})
const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href
downloadElement.download = '翻译费用信息统计' + '.xlsx' // 下载后文件名
document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素
window.URL.revokeObjectURL(href)// 释放掉blob对象
})
this.$message.success('导出信息成功')
})
},
//新增方法
dataAdd() {