保存进度!
This commit is contained in:
@@ -20,7 +20,7 @@ interface ImportBIReportRequest
|
||||
{
|
||||
filePath: string,
|
||||
reportType: number,
|
||||
hasCaption: boolean,
|
||||
firstRow: number,
|
||||
sheetIndex: number,
|
||||
}
|
||||
|
||||
|
@@ -14,13 +14,14 @@
|
||||
<el-col :span="4">
|
||||
<span>报表类型</span>
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<el-col :span="9">
|
||||
<el-select v-model="ui.selectedReportType">
|
||||
<el-option
|
||||
v-for="item in ui.reportType"
|
||||
:key="item.reportTypeCode"
|
||||
:label="item.reportTypeName"
|
||||
:value="item.reportTypeCode"
|
||||
width="100%"
|
||||
/>
|
||||
</el-select>
|
||||
</el-col>
|
||||
@@ -33,10 +34,13 @@
|
||||
</el-row>
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="4">
|
||||
<span>标题行</span>
|
||||
<span>起始行</span>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-switch v-model="ui.hasCaption" />
|
||||
<el-col :span="9">
|
||||
<el-input v-model.lazy.number="ui.firstRow" />
|
||||
</el-col>
|
||||
<el-col :span="11">
|
||||
<span style="text-align:left;color:red;">*从0开始计数</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -76,6 +80,7 @@ interface UI
|
||||
selectedReportType: number,
|
||||
reportType: BIReportType[],
|
||||
sheetIndex: number,
|
||||
firstRow: number,
|
||||
hasCaption: boolean,
|
||||
uploadParameters: any,
|
||||
showFileList: boolean,
|
||||
@@ -109,6 +114,7 @@ export default {
|
||||
reportTypeName: "部门车非渗透率续保率",
|
||||
},],
|
||||
sheetIndex: 0,
|
||||
firstRow: 2,
|
||||
hasCaption: true,
|
||||
uploadParameters: {
|
||||
"task-name": "1234",
|
||||
@@ -147,7 +153,7 @@ export default {
|
||||
const request: ImportBIReportRequest = {
|
||||
filePath: response.fileList[0],
|
||||
reportType: ui.selectedReportType,
|
||||
hasCaption: ui.hasCaption,
|
||||
firstRow: ui.firstRow,
|
||||
sheetIndex: ui.sheetIndex,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user