Commit 3e4bc47f authored by 李苏's avatar 李苏 💬

导入修改,动态列头初次加载概率异常bug

parent 59998b94
...@@ -620,6 +620,7 @@ ...@@ -620,6 +620,7 @@
}) })
}, },
initsltdo3(apidata) { initsltdo3(apidata) {
/* 预算执行分析-标准成本-8月(单位).xlsx图例生成*/ /* 预算执行分析-标准成本-8月(单位).xlsx图例生成*/
let colorList = ['#f18c6e', '#d5f69b', '#22f2e5', '#2ca4fb'] let colorList = ['#f18c6e', '#d5f69b', '#22f2e5', '#2ca4fb']
const charts = this.$echarts.init(this.$refs["slt3"]); const charts = this.$echarts.init(this.$refs["slt3"]);
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<!-- right--> <!-- right-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<!-- <ToolButton :app='app'></ToolButton> --> <!-- <ToolButton :app='app'></ToolButton> -->
<ImportTempButton @success='success' url="hafms/yszhcxlog//excel/import" :params="{ <ImportTempButton @success='success' url="hafms/yszxfxlog//excel/import" :params="{
lx:'B'
}" /> }" />
<!-- 导入--> <!-- 导入-->
<el-button @click="del" size="mini" type="danger">删除当前报表</el-button> <el-button @click="del" size="mini" type="danger">删除当前报表</el-button>
...@@ -148,7 +148,6 @@ ...@@ -148,7 +148,6 @@
methods: { methods: {
/* 切换新表头*/ /* 切换新表头*/
transXbt(lx) { transXbt(lx) {
console.log(this.$refs.TablePager.newGridList)
if (lx == 'BZDW') { if (lx == 'BZDW') {
this.$refs.TablePager.newGridList = [ this.$refs.TablePager.newGridList = [
{ {
...@@ -553,7 +552,10 @@ ...@@ -553,7 +552,10 @@
if (res.data && res.data.records && res.data.records.length != 0) { if (res.data && res.data.records && res.data.records.length != 0) {
this.paneList = res.data.records || [] this.paneList = res.data.records || []
if (this.paneList[0]) { if (this.paneList[0]) {
setTimeout(()=>{
this.transXbt(this.paneList[0].lx) this.transXbt(this.paneList[0].lx)
},100)
this.activeName = this.paneList[0].id this.activeName = this.paneList[0].id
this.showTabData(this.paneList[0].id) this.showTabData(this.paneList[0].id)
/* 查询第一个list*/ /* 查询第一个list*/
......
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