1.增加模板导入功能

master
董哲奇 1 year ago
parent d92f79e6c0
commit 14c05ca927

@ -3,7 +3,6 @@
<el-header style="width: 100%; height: 30px;font-size: 12px"> <el-header style="width: 100%; height: 30px;font-size: 12px">
<el-form :inline="true" label-width="90px" > <el-form :inline="true" label-width="90px" >
<el-row> <el-row>
<el-col :span="20"> <el-col :span="20">
<el-form-item label="工程编号:" > <el-form-item label="工程编号:" >
<el-select v-model="queryParam.czbh" filterable placeholder="工程编号" @change="czbhChange" > <el-select v-model="queryParam.czbh" filterable placeholder="工程编号" @change="czbhChange" >
@ -15,46 +14,37 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item style="float: right" > <el-form-item style="float: right" >
<el-button type="success" @click="loadData()"></el-button> <el-button type="success" @click="loadData()"></el-button>
<el-button type="success" @click.native="uploadExcel"> <el-upload <el-button type="success" @click.native="uploadExcel">
:action="uploadAction" <el-upload
:show-file-list="false" :action="uploadAction"
:before-upload="beforeAvatarUpload" :show-file-list="false"
:data="uploadData" :before-upload="beforeAvatarUpload"
:on-success="handleAvatarSuccess" :data="uploadData"
:disabled="uploadState==0?true:false" :on-success="handleAvatarSuccess"
:headers="heads" :disabled="uploadState==0?true:false"
> :headers="heads">
直观图模板导入 直观图模板导入
</el-upload> </el-button> </el-upload>
</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</el-header> </el-header>
<el-divider></el-divider> <hr style="margin: 0.5%">
<el-container style="padding-top: 0px"> <el-container style="padding-top: 0px">
<!-- <el-container >-->
<el-main> <el-main>
<div class="mytablefdt" style="display: flex;justify-content: center;align-items: center;">
<div class="mytablefdt" >
<vxe-grid <vxe-grid
id="id" id="id"
ref="xGridFd" ref="xGridFd"
:empty-text="emtext" :empty-text="emtext"
show-footer show-footer
:height="500" :height="520"
resizable resizable
:columns="tableColumn" :columns="tableColumn"
:data="tableData" :data="tableData"
@ -64,12 +54,8 @@
border=none border=none
:cell-style="cellStyle" :cell-style="cellStyle"
> >
</vxe-grid> </vxe-grid>
</div> </div>
<el-tabs v-model="activeName" > <el-tabs v-model="activeName" >
<el-tab-pane label="汇总" name="first"> <el-tab-pane label="汇总" name="first">
<span slot="label" class="fontClass">汇总</span> <span slot="label" class="fontClass">汇总</span>
@ -89,14 +75,12 @@
show-header-overflow show-header-overflow
:cell-style="cellStyle1" :cell-style="cellStyle1"
> >
<template #tpbh="{ row }"> <template #tpbh="{ row }">
<span style="cursor:pointer;color: blue" @click="tpbhClcik(row)">{{ row.tpbh }}</span> <span style="cursor:pointer;color: blue" @click="tpbhClcik(row)">{{ row.tpbh }}</span>
</template> </template>
<template #fdh="{ row }"> <template #fdh="{ row }">
<span style="cursor:pointer;color: blue" @click="fdhClcik(row)">{{ row.fdh }}</span> <span style="cursor:pointer;color: blue" @click="fdhClcik(row)">{{ row.fdh }}</span>
</template> </template>
</vxe-grid> </vxe-grid>
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -120,20 +104,13 @@
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:show-footer="true" :show-footer="true"
> >
</vxe-grid> </vxe-grid>
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-main> </el-main>
</el-container> </el-container>
</el-container> </el-container>
</template> </template>
<script> <script>
@ -153,8 +130,6 @@ export default {
defaultHeight: { height: '' }, defaultHeight: { height: '' },
tableDataMain:[], tableDataMain:[],
tableDataMainAll:[], tableDataMainAll:[],
// tableData: [],
tableColumnMx: [ tableColumnMx: [
{ type: 'seq', width: 60, title: '序号' }, { type: 'seq', width: 60, title: '序号' },
{ field: 'jhqh', title: '计划期号', width: 100 , { field: 'jhqh', title: '计划期号', width: 100 ,
@ -1002,9 +977,6 @@ export default {
}); });
}) })
} }
//this.tableDataMx=[]
// this.tableDataMainAll.filter(item => searchProps.some(key => XEUtils.toString(item[key]).toLowerCase().indexOf(filterName)
}, },
tpbhClcik(row){ tpbhClcik(row){
findTPxqjh({czbh1:row.czbh,tpbh1:row.tpbh}).then(res=>{ findTPxqjh({czbh1:row.czbh,tpbh1:row.tpbh}).then(res=>{
@ -1075,7 +1047,6 @@ export default {
}, },
rowClassName({ row, rowIndex ,column}){ rowClassName({ row, rowIndex ,column}){
console.log(row.qfpsrq)
if(row.qfpsrq!=='' && row.qfpsrq!==undefined && row.qfpsrq!==null){ if(row.qfpsrq!=='' && row.qfpsrq!==undefined && row.qfpsrq!==null){
return 'row-green' return 'row-green'
}else if(row.xqtsc<-7){ }else if(row.xqtsc<-7){

Loading…
Cancel
Save