Commit 1d2d4619 authored by danfuman's avatar danfuman

修改

parent 790a069f
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--<img class="tip-img" src="@/assets/images/icon.png" />--> <!--<img class="tip-img" src="@/assets/images/icon.png" />-->
数据导出 数据导出
</template> </template>
<div class="exportTitle"><span>文件名称</span><p>{{data.title}}</p></div> <div class="exportTitle"><span>文件名称</span><el-input style="width: 645px;display: inline-block;" v-model="title"></el-input></div>
<img class="exportImg" src="@/assets/images/export.png" /> <img class="exportImg" src="@/assets/images/export.png" />
<div class="table-item"> <div class="table-item">
<el-table :data="exportTableData"> <el-table :data="exportTableData">
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
exportTableData:[], exportTableData:[],
forData:[], forData:[],
value:'', value:'',
title:this.data.title
} }
}, },
watch: { watch: {
...@@ -91,7 +92,7 @@ export default { ...@@ -91,7 +92,7 @@ export default {
methods: { methods: {
handleEXCEL(){ handleEXCEL(){
this.$nextTick(() => { this.$nextTick(() => {
this.$emit('clickEXCEL',this.value) this.$emit('clickEXCEL',this.value,this.title)
}) })
}, },
handleCancel(){ handleCancel(){
......
...@@ -482,11 +482,11 @@ ...@@ -482,11 +482,11 @@
clickDialog(){ clickDialog(){
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.combineName+'-'+this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.exportCount=value this.dataEXCEL.exportCount=value
}else { }else {
......
...@@ -314,11 +314,11 @@ ...@@ -314,11 +314,11 @@
clickDialog(){ clickDialog(){
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.combineName+'-'+this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.exportCount=value this.dataEXCEL.exportCount=value
}else { }else {
......
...@@ -290,11 +290,11 @@ ...@@ -290,11 +290,11 @@
clickDialog(){ clickDialog(){
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.combineName+'-'+this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.exportCount=value this.dataEXCEL.exportCount=value
}else { }else {
......
...@@ -1000,11 +1000,11 @@ export default { ...@@ -1000,11 +1000,11 @@ export default {
clickDialog(){ clickDialog(){
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.pageSize=value this.dataEXCEL.pageSize=value
}else { }else {
......
...@@ -1433,6 +1433,7 @@ export default { ...@@ -1433,6 +1433,7 @@ export default {
dataEXCEL:{}, dataEXCEL:{},
exportData:{ exportData:{
title:'企业基本信息', title:'企业基本信息',
type:2,
dialogExportVisible:false, dialogExportVisible:false,
forData: [ forData: [
{label: '企业名称', prop: 'text1',slot: true,minWidth: '120'}, {label: '企业名称', prop: 'text1',slot: true,minWidth: '120'},
...@@ -2912,6 +2913,7 @@ export default { ...@@ -2912,6 +2913,7 @@ export default {
if(key === 1){ if(key === 1){
this.exportData={ this.exportData={
title:'企业资质', title:'企业资质',
type:1,
dialogExportVisible:false, dialogExportVisible:false,
forData: [ forData: [
{label: '企业名称', prop: 'text1',slot: true,minWidth: '120'}, {label: '企业名称', prop: 'text1',slot: true,minWidth: '120'},
...@@ -2972,6 +2974,7 @@ export default { ...@@ -2972,6 +2974,7 @@ export default {
if(key === 2){ if(key === 2){
this.exportData={ this.exportData={
title:'企业基本信息', title:'企业基本信息',
type:2,
dialogExportVisible:false, dialogExportVisible:false,
forData: [ forData: [
{label: '企业名称', prop: 'text1',slot: true,minWidth: '120'}, {label: '企业名称', prop: 'text1',slot: true,minWidth: '120'},
...@@ -3040,17 +3043,18 @@ export default { ...@@ -3040,17 +3043,18 @@ export default {
} }
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.exportCount=value this.dataEXCEL.exportCount=value
}else { }else {
this.dataEXCEL.exportCount=2000; this.dataEXCEL.exportCount=2000;
} }
if(this.exportData.title === '企业资质'){ //企业资质
if(this.exportData.type === 1){
api.aptitudeExport(this.dataEXCEL).then(res => { api.aptitudeExport(this.dataEXCEL).then(res => {
if(res.code === 200){ if(res.code === 200){
this.exportData.exportEXCEL=true; this.exportData.exportEXCEL=true;
...@@ -3059,7 +3063,8 @@ export default { ...@@ -3059,7 +3063,8 @@ export default {
} }
}) })
} }
if(this.exportData.title === '企业基本信息'){ //企业基本信息
if(this.exportData.title === 2){
api.infoExport(this.dataEXCEL).then(res => { api.infoExport(this.dataEXCEL).then(res => {
if(res.code === 200){ if(res.code === 200){
this.exportData.exportEXCEL=true; this.exportData.exportEXCEL=true;
......
...@@ -847,11 +847,11 @@ export default { ...@@ -847,11 +847,11 @@ export default {
clickDialog(){ clickDialog(){
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.pageSize=value this.dataEXCEL.pageSize=value
}else { }else {
......
...@@ -685,11 +685,11 @@ export default { ...@@ -685,11 +685,11 @@ export default {
clickDialog(){ clickDialog(){
this.exportData.dialogExportVisible=true; this.exportData.dialogExportVisible=true;
}, },
clickEXCEL(value) { clickEXCEL(value,title) {
if(value > 2000){ if(value > 2000){
return return
} }
this.dataEXCEL.exportExeclName=this.exportData.title; this.dataEXCEL.exportExeclName=title;
if(value){ if(value){
this.dataEXCEL.exportCount=value this.dataEXCEL.exportCount=value
}else { }else {
......
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