Commit 8f020ea9 authored by tanjunxin's avatar tanjunxin

fix: 工序检测及检测模版导入功能细节优化

parent 99c15111
......@@ -447,7 +447,8 @@ export default {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
const msg = response.msg ? response.msg : "导入失败";
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
this.getList();
},
/** 导出按钮操作 */
......
......@@ -231,8 +231,9 @@
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<div class="el-upload__tip text-center" slot="tip">
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport"/>
是否更新已经存在的用户数据
<!-- <el-checkbox v-model="upload.updateSupport"/>
是否更新已经存在的用户数据 -->
检测模板和工序重复则覆盖
</div>
<span>仅允许导入xls、xlsx格式文件。</span>
<el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;"
......@@ -342,7 +343,8 @@ export default {
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的用户数据
updateSupport: 0,
// updateSupport: 0,
updateSupport: true,
// 设置上传的请求头部
headers: {Authorization: "Bearer " + getToken()},
// 上传的地址
......@@ -514,7 +516,8 @@ export default {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", {dangerouslyUseHTMLString: true});
const msg = response.msg ? response.msg : "导入失败";
this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + msg + "</div>", "导入结果", {dangerouslyUseHTMLString: true});
this.getList();
},
/** 导入按钮操作 */
......
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