小小儁爺
2024-06-19 f2cf3c86f4c76ac5471c4c8bccb0c6dab5e0b280
src/views/sopManager/sopDevice.vue
@@ -228,8 +228,8 @@
              :on-exceed="handleExceed"
              :auto-upload="false"
              :multiple="false"
              accept=".mp4,.pdf,.png,.jpeg,.svg,.txt,.xlsx,.xls"
            >
              <!--              accept=".mp4,.pdf"-->
              <el-button
                v-waves
                type="primary"
@@ -368,6 +368,7 @@
    handleExceed() {
      this.$message.info('暂不支持多文件上传!')
    },
    async devicetypecodeChange(eqptypecode) {
      const { data: res } = await EqpTypecodeSeachEqpPermissions({ eqptypecode })
      this.deviceArr = res
@@ -432,8 +433,14 @@
    // 对话框确认
    dialogVisibleConfirm() {
      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
      if (!isLt100M) {
        return this.$message.info('请检查,上传文件大小不能超过1024MB!')
      }
      this.$refs.dialogForm.validate(valid => {