企标计划导出
This commit is contained in:
@@ -0,0 +1,61 @@
|
|||||||
|
<template>
|
||||||
|
<!--导出文件改名字模态框-->
|
||||||
|
<el-dialog :visible.sync="exportModelFlag" 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 class="common-button-default" icon="el-icon-close" @click="cancal">取消</el-button>
|
||||||
|
<el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="submit">提交</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "exportDialog",
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
exportModelFlag: false,
|
||||||
|
exportName: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
openModel () {
|
||||||
|
this.exportName = ''
|
||||||
|
this.exportModelFlag = true
|
||||||
|
},
|
||||||
|
cancal () {
|
||||||
|
this.exportModelFlag = false
|
||||||
|
},
|
||||||
|
submit () {
|
||||||
|
this.$emit('exportName', this.exportName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/deep/ .label-input-form .add-form-item .el-form-item__content .el-input .el-input__inner {
|
||||||
|
width: 280px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__header {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #17233d;
|
||||||
|
font-weight: bold;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__body {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__footer .el-button {
|
||||||
|
height: 32px;
|
||||||
|
padding: 8px 23px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -67,10 +67,11 @@
|
|||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- @click=""><i class="iconfont"></i>导入-->
|
<!-- @click=""><i class="iconfont"></i>导入-->
|
||||||
<!-- </el-button>-->
|
<!-- </el-button>-->
|
||||||
<!-- <el-button class="common-button-default export-button"-->
|
<el-button class="common-button-default export-button"
|
||||||
<!-- size="mini"-->
|
size="mini"
|
||||||
<!-- @click=""><i class="iconfont"></i>导出-->
|
v-btn-permission="'f919276a703d3c9062f6a69f6f0400cc'"
|
||||||
<!-- </el-button>-->
|
@click="exportData"><i class="iconfont"></i>导出
|
||||||
|
</el-button>
|
||||||
<!-- <el-button class="common-button-default"-->
|
<!-- <el-button class="common-button-default"-->
|
||||||
<!-- size="mini" @click=""><i class="iconfont"></i>下载-->
|
<!-- size="mini" @click=""><i class="iconfont"></i>下载-->
|
||||||
<!-- </el-button>-->
|
<!-- </el-button>-->
|
||||||
@@ -740,14 +741,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
<!--导出文件改名字模态框-->
|
||||||
|
<exportDialog ref="exportDialogRef" @exportName="handleExport" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CustomInputForAllStandards2 from '@/components/CustomFormComponents/InputForAllStandards2'
|
import CustomInputForAllStandards2 from '@/components/CustomFormComponents/InputForAllStandards2'
|
||||||
|
import exportDialog from './components/exportDialog'
|
||||||
export default {
|
export default {
|
||||||
name: "enterpriseStandardPlan",
|
name: "enterpriseStandardPlan",
|
||||||
components: {
|
components: {
|
||||||
|
exportDialog,
|
||||||
CustomInputForAllStandards2
|
CustomInputForAllStandards2
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -904,6 +909,29 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
exportData () {
|
||||||
|
this.$refs.exportDialogRef.openModel()
|
||||||
|
},
|
||||||
|
handleExport (exportName) {
|
||||||
|
const params = {
|
||||||
|
...this.form,
|
||||||
|
exportName: exportName,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
exportIds: this.ids.join(',')
|
||||||
|
}
|
||||||
|
let query = '?'
|
||||||
|
for(let i in params){
|
||||||
|
if (params[i] && params[i]!=='') {
|
||||||
|
query = query + i + '=' + params[i] + '&'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
query = query.slice(0,-1)
|
||||||
|
window.open('/api/esRevisePlan/es-revise-plan/exportEsRevisePlanInfoExcel' + query)
|
||||||
|
this.$message({
|
||||||
|
message: '导出信息成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
},
|
||||||
validationRqbJson(rule, value, callback){
|
validationRqbJson(rule, value, callback){
|
||||||
if(this.addForm.reviseStatus === '2'){
|
if(this.addForm.reviseStatus === '2'){
|
||||||
if(!this.addForm.rqbJson || this.addForm.rqbJson === ''){
|
if(!this.addForm.rqbJson || this.addForm.rqbJson === ''){
|
||||||
|
|||||||
Reference in New Issue
Block a user