|
@ -4,9 +4,10 @@ |
|
|
<div class="top_btn flex flex-end"> |
|
|
<div class="top_btn flex flex-end"> |
|
|
<div> |
|
|
<div> |
|
|
<el-button type="text" round @click="handelClickBack" icon="el-icon-back">返回</el-button> |
|
|
<el-button type="text" round @click="handelClickBack" icon="el-icon-back">返回</el-button> |
|
|
<el-button type="warning" @click="handleClickInspect">上传统计模板 |
|
|
<el-button type="warning" @click="handleClickInspect" v-if="pageType !=='info'">上传统计模板 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button type="success" @click="onClickUplond()"> 数据列表导出</el-button> |
|
|
<el-button type="success" @click="onClickUplond()"v-if="pageType !=='info'"> 数据列表导出</el-button> |
|
|
|
|
|
<el-button type="success" @click="onClickShowCondition()"v-if="pageType ==='info'"> 数据统计条件</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<el-button type="primary" @click="handleClickCurrencyEvent('submit')"> 导出</el-button> |
|
|
<el-button type="primary" @click="handleClickCurrencyEvent('submit')"> 导出</el-button> |
|
@ -20,6 +21,11 @@ |
|
|
:btnLoading="btnLoading" :pageType='`report`' :workBookId="workBookId" @saveLuckysheetHead="saveLuckysheet"> |
|
|
:btnLoading="btnLoading" :pageType='`report`' :workBookId="workBookId" @saveLuckysheetHead="saveLuckysheet"> |
|
|
</excelUploadData> |
|
|
</excelUploadData> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<el-dialog title="数据统计条件" v-if="showCondition" :visible.sync="showCondition" width="60%" |
|
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
|
<resi-search ref="resi_form" :infoObj="infoObj"></resi-search> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
@ -30,6 +36,7 @@ import { mapGetters } from 'vuex' |
|
|
import { requestPost, requestGet } from "@/js/dai/request"; |
|
|
import { requestPost, requestGet } from "@/js/dai/request"; |
|
|
import nextTick from "dai-js/tools/nextTick"; |
|
|
import nextTick from "dai-js/tools/nextTick"; |
|
|
import { exportSheetExcel } from "@/utils/export"; |
|
|
import { exportSheetExcel } from "@/utils/export"; |
|
|
|
|
|
import resiSearch from "./export-search.vue"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
@ -41,7 +48,9 @@ export default { |
|
|
currentTable: null, |
|
|
currentTable: null, |
|
|
currentId: '', |
|
|
currentId: '', |
|
|
btnLoading: false, |
|
|
btnLoading: false, |
|
|
workBookId: '' |
|
|
workBookId: '', |
|
|
|
|
|
infoObj:{}, |
|
|
|
|
|
showCondition:false |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
@ -71,10 +80,13 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
onClickShowCondition(){ |
|
|
|
|
|
this.showCondition = true |
|
|
|
|
|
}, |
|
|
async getSheetList() { |
|
|
async getSheetList() { |
|
|
const { data, code } = await requestGet('/actual/base/intellgentizeReport/detail', { id: this.infoIds.id }) |
|
|
const { data, code } = await requestGet('/actual/base/intellgentizeReport/detail', { id: this.infoIds.id }) |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
console.log(data); |
|
|
this.infoObj = data.searchForm |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleClickCurrencyEvent() { |
|
|
handleClickCurrencyEvent() { |
|
@ -160,7 +172,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
excelUploadData |
|
|
excelUploadData, |
|
|
|
|
|
resiSearch |
|
|
}, |
|
|
}, |
|
|
beforeDestroy() { |
|
|
beforeDestroy() { |
|
|
this.$store.state.sidebarFold = false; |
|
|
this.$store.state.sidebarFold = false; |
|
|