|
@@ -128,7 +128,7 @@
|
|
<el-button
|
|
<el-button
|
|
hc-btn
|
|
hc-btn
|
|
color="green"
|
|
color="green"
|
|
- @click="uploadFileClick()"
|
|
|
|
|
|
+ @click="uploadFileClick"
|
|
>
|
|
>
|
|
<HcIcon name="upload" />
|
|
<HcIcon name="upload" />
|
|
<span>导入表格数据</span>
|
|
<span>导入表格数据</span>
|
|
@@ -193,7 +193,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { onActivated, onDeactivated, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
|
|
|
|
+import { nextTick, onActivated, onDeactivated, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
import { arrToId, downloadBlob, getArrValue, getObjVal, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
import { arrToId, downloadBlob, getArrValue, getObjVal, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
import DateCalendar from './dateCalendar/index.vue'
|
|
import DateCalendar from './dateCalendar/index.vue'
|
|
//import HcTableForm from "~com/table-form/index.vue";
|
|
//import HcTableForm from "~com/table-form/index.vue";
|
|
@@ -943,6 +943,10 @@ const uploadFileClick = () => {
|
|
tableFormData.value = {}
|
|
tableFormData.value = {}
|
|
}
|
|
}
|
|
window.$message.success('文件上传成功')
|
|
window.$message.success('文件上传成功')
|
|
|
|
+ await nextTick()
|
|
|
|
+
|
|
|
|
+ isTableForm.value = true
|
|
|
|
+
|
|
},
|
|
},
|
|
error: () => {
|
|
error: () => {
|
|
window.$message.error('文件上传失败')
|
|
window.$message.error('文件上传失败')
|