小小儁爺
11 小时以前 7aa96df3596971484ee1827047dbb084525e6a24
1.sop上传控制文件大小10MB
已修改4个文件
18 ■■■■ 文件已修改
.env.development 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sopManager/sopDevice.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sopManager/sopRoute.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sopManager/sopWorkOrder.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -6,5 +6,5 @@
# 文件下载地址   下载数据模板地址
# 本地服务器
VUE_APP_BASE_API_FILE = 'http://192.168.1.21:9000/'
VUE_APP_BASE_API_FILE = 'http://121.196.36.24:8049/'
src/views/sopManager/sopDevice.vue
@@ -444,9 +444,9 @@
        return this.$message.info('请选择文件上传!')
      }
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 1024
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 10
      if (!isLt100M) {
        return this.$message.info('请检查,上传文件大小不能超过1024MB!')
        return this.$message.info('请检查,上传文件大小不能超过10MB!')
      }
      this.$refs.dialogForm.validate(valid => {
src/views/sopManager/sopRoute.vue
@@ -527,14 +527,14 @@
    },
    // 对话框确认
    dialogVisibleConfirm() {
      console.log(this.$refs.uploadFileRef.uploadFiles[0])
      // console.log(this.$refs.uploadFileRef.uploadFiles[0])
      if (!this.$refs.uploadFileRef.uploadFiles[0]) {
        this.$message.info('请选择文件上传!')
        return this.$message.info('请选择文件上传!')
      }
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 1024
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 10
      if (!isLt100M) {
        return this.$message.info('请检查,上传文件大小不能超过1024MB!')
        return this.$message.info('请检查,上传文件大小不能超过10MB!')
      }
      this.$refs.dialogForm.validate(valid => {
src/views/sopManager/sopWorkOrder.vue
@@ -471,9 +471,9 @@
        this.$message.info('请选择文件上传!')
      }
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 1024
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 10
      if (!isLt100M) {
        return this.$message.info('请检查,上传文件大小不能超过1024MB!')
        return this.$message.info('请检查,上传文件大小不能超过10MB!')
      }
      this.$refs.dialogForm.validate(valid => {