| | |
| | | <el-table-column v-if="tableData.length != 0" fixed label="序号" type="index" width="55"> |
| | | </el-table-column> |
| | | <!-- 生命周期--> |
| | | <el-table-column v-for="(item,index) in lcstatusArray" |
| | | v-if=" lcstatusArray.length >= 0 && !item.hidden" |
| | | key="index" :show-overflow-tooltip="true" :sortable="item.sortable" |
| | | :width="item.width" align="center" label="生命周期值" |
| | | prop="lcstatus"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.lcstatus_text }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column v-for="(item,index) in lcstatusArray"--> |
| | | <!-- v-if=" lcstatusArray.length >= 0 && !item.hidden"--> |
| | | <!-- key="index" :show-overflow-tooltip="true" :sortable="item.sortable"--> |
| | | <!-- :width="item.width" align="center" label="生命周期值"--> |
| | | <!-- prop="lcstatus">--> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <span>{{ scope.row.lcstatus_text }}</span>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <!-- 编号--> |
| | | <el-table-column v-for="(item, index) in CodeArray" v-if="CodeArray.length !== 0 && !item.hidden" |
| | | key="index" :label="item.label" :prop="item.prop" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in this.tableHeadFindData" |
| | | v-if="!item.hidden && item.prop !== 'id' && item.prop !== 'lcstatus' && Object.keys(item.referConfig).length <= 0" |
| | | v-if="!item.hidden && item.prop !== 'id'" |
| | | :key="item.id" |
| | | :formatter="item.formatter" |
| | | :label="item.label" :prop="item.prop" |
| | | :label="item.label" |
| | | :prop="item.prop" |
| | | :show-overflow-tooltip="true" |
| | | :sortable="item.sortable" |
| | | :width="item.width" |
| | | align="center"> |
| | | </el-table-column> |
| | | <!-- 参照数据--> |
| | | <el-table-column v-for="(item,index) in referArray" |
| | | v-if="item.referConfig && Object.keys(item.referConfig).length > 0 && !item.hidden" |
| | | :key="index" |
| | | :label="item.title" :show-overflow-tooltip="true" |
| | | :sortable="item.sortable" :width="item.width" align="center" |
| | | prop="jiliangdw"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.jiliangdwname }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | }, |
| | | // 主数据按钮 |
| | | masterVrBtnList: [], |
| | | fileOptions: { |
| | | ownbizOid: "0", |
| | | ownbizBtm: "0", |
| | | fileDocClassify: '!=processAuditSuggest', |
| | | fileDocClassifyName: '', |
| | | hasDownload: true, |
| | | hasUpload: true, |
| | | height: 110 |
| | | }, |
| | | fileOptions:{}, |
| | | result: '', |
| | | elapsedTime: '', |
| | | }; |
| | |
| | | }, |
| | | tableDataArray: { |
| | | handler(newval, oldval) { |
| | | // console.log('tableData',newval) |
| | | this.tableData = newval; |
| | | this.searchResults = newval |
| | | this.doLayout(); |
| | | this.fileOptions= { |
| | | ownbizOid: "0", |
| | | ownbizBtm: "0", |
| | | fileDocClassify: '!=processAuditSuggest', |
| | | fileDocClassifyName: '', |
| | | hasDownload: true, |
| | | hasUpload: true, |
| | | height: 'auto' |
| | | } |
| | | }, |
| | | }, |
| | | tableHeadFindData: { |
| | | handler(newval, oldval) { |
| | | // console.log(newval) |
| | | newval.forEach((record, _index) => { |
| | | if (record.queryField == 'id' && validatenull(record.templet)) { |
| | | //企业编码的默认添加超链接,暂未实现 |
| | |
| | | exportGroupCodeExcel({ |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }).then(res => { |
| | | let reader = new FileReader(); |
| | | reader.readAsText(res.data) |
| | | reader.onload = (result) => { |
| | | try { |
| | | let resData = JSON.parse(result.target.result); // 解析对象成功 |
| | | if (!resData.success) { |
| | | console.log("resData", resData) |
| | | this.$message.error(resData.msg); |
| | | this.isLoading = false; |
| | | } |
| | | } catch (err) { |
| | | // console.log("err",err)// 解析成对象失败,说明是正常的文件流 |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('下载成功,请查看!'); |
| | | this.isLoading = false; |
| | | } |
| | | }; |
| | | |
| | | // let reader = new FileReader(); |
| | | // reader.readAsText(res.data); |
| | | // reader.onload = () => { |
| | | // try { |
| | | // let resData = JSON.parse(reader.result); // 解析对象成功 |
| | | // if (!resData.success) { |
| | | // this.$message.error(resData.msg); |
| | | // this.isLoading = false; |
| | | // } |
| | | // } catch (err) { |
| | | // // 解析成对象失败,说明是正常的文件流 |
| | | // func.downloadFileByBlobHandler(res); |
| | | // this.$message.success('下载成功,请查看!'); |
| | | // this.isLoading = false; |
| | | // } |
| | | // }; |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('下载成功,请查看!'); |
| | | this.isLoading = false; |
| | | }).catch(error=>{ |
| | | this.$message.error(error); |
| | | }); |
| | | }, |
| | | //标准申请 |
| | |
| | | <style lang="scss" scoped> |
| | | //固定列高度 |
| | | /deep/ .el-table__fixed { |
| | | height: calc(100vh - 370px) !important; |
| | | height: calc(100vh - 365px) !important; |
| | | } |
| | | |
| | | // 滚动条样式修改 |
| | |
| | | |
| | | .top { |
| | | overflow-y: scroll; |
| | | min-height: 55%; |
| | | min-height: 40%; |
| | | } |
| | | |
| | | .bottom { |