From 4e3b0ffb433f6e331cd2eae93bcd874d41b8de84 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期四, 23 五月 2024 17:37:07 +0800
Subject: [PATCH] 解决标准库bug
---
src/components/view/b2-standard.vue | 5 +++++
src/components/tool/value-table.vue | 5 +++--
static/js/menu.js | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index 0387ae4..57471ca 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -309,7 +309,7 @@
<el-dialog title="鏁版嵁瀵煎叆" :visible.sync="uploadDia" width="500px">
<div style="margin: 0 auto;">
<el-upload ref="upload" drag :action="javaApi + inputUrl" :headers="token" :file-list="fileList" name="file"
- :auto-upload="false" accept=".csv" :limit="1" :on-change="beforeUpload" :on-success="onSuccess"
+ :auto-upload="false" :accept="data.accept===undefined?'.csv':data.accept" :limit="1" :on-change="beforeUpload" :on-success="onSuccess"
:on-error="onError" :data="{param: data.uploadStr}">
<i class="el-icon-upload"></i>
<div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div>
@@ -964,7 +964,8 @@
this.uploadDia = true
},
beforeUpload(file, fileList) {
- if (file.raw.type != 'text/csv') {
+ console.log(file.raw.type);
+ if (file.raw.type != (this.data.inputType===undefined?'text/csv':this.data.inputType)) {
this.$message.error('涓婁紶鏂囦欢鏍煎紡涓嶆纭�');
this.$refs.upload.clearFiles()
return false;
diff --git a/src/components/view/b2-standard.vue b/src/components/view/b2-standard.vue
index 7bce4a9..dcbdf55 100644
--- a/src/components/view/b2-standard.vue
+++ b/src/components/view/b2-standard.vue
@@ -1341,6 +1341,11 @@
return this.$message.error('璇烽�夋嫨妫�楠岄」')
}
this.moreEditLoad = true
+ for(let a in this.moreInfo){
+ if(this.moreInfo[a]==''){
+ delete this.moreInfo[a]
+ }
+ }
this.$axios.post(this.$api.standardTree.upStandardProducts, {
ids: this.moreSelects.map(a => a.id),
standardProductList: this.moreInfo
diff --git a/static/js/menu.js b/static/js/menu.js
index 59f26eb..5569d0e 100644
--- a/static/js/menu.js
+++ b/static/js/menu.js
@@ -292,7 +292,7 @@
i: "font icon-erjidaohang",
u: "a6-personnel-overview",
g: "6.2 浜哄憳",
- p: "selectUserList"
+ p: "selectPersonnelOverview"
}, {
v: "浜哄憳鏄庣粏",
i: "font icon-erjidaohang",
--
Gitblit v1.9.3