value
2024-05-23 4e3b0ffb433f6e331cd2eae93bcd874d41b8de84
解决标准库bug
已修改3个文件
12 ■■■■ 文件已修改
src/components/tool/value-table.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b2-standard.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/menu.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
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
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",