Commit e82045b6 authored by renjintao's avatar renjintao

openInfoModal

parent 35e953b7
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</Form> </Form>
</template> </template>
</DataGrid> </DataGrid>
<FooterToolbar v-if="excelData.length>0&&sheetNames.length>1"> <FooterToolbar v-if="sheetNames.length>1">
<Form inline> <Form inline>
<FormItem> <FormItem>
<Tabs :animated="false" :value="0" @on-click="sheetClick"> <Tabs :animated="false" :value="0" @on-click="sheetClick">
...@@ -645,10 +645,14 @@ export default { ...@@ -645,10 +645,14 @@ export default {
this.tdHeightExcel = window.innerHeight - 180; this.tdHeightExcel = window.innerHeight - 180;
}, },
openInfoModal() { openInfoModal() {
if (this.pageType != undefined) { if (this.excelData.length > 0 && this.pageType != undefined) {
this.infoModal = true this.infoModal = true
} else { } else {
this.$Message.error("请选择需要批量导入到的模块!") if (this.excelData.length == 0) {
this.$Message.error("没有可导入的数据!")
} else if (this.pageType == undefined) {
this.$Message.error("请选择需要批量导入到的模块!")
}
} }
}, },
//导入按钮操作 //导入按钮操作
......
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