Przeglądaj źródła

绵阳受控文件调整

tianxinyu 2 tygodni temu
rodzic
commit
f74e61e3ca

+ 7 - 4
src/business/platform/file/attachment/editFile/editor.vue

@@ -69,13 +69,15 @@ export default {
       })
       })
       .then((res) => {
       .then((res) => {
         const [imgObj] = res.variables.data
         const [imgObj] = res.variables.data
+        console.log('111111', imgObj, res.variables.data)
         if (!imgObj) {
         if (!imgObj) {
-          this.imgUrl = ''
-          // this.$message.error(
-          //   '当前用户签名图片不存在请在个人信息维护中上传签字图文!'
-          // )
+          // this.imgUrl = ''
+          this.$message.error(
+            '当前用户签名图片不存在请在个人信息维护中上传签字图文!'
+          )
           return false
           return false
         }
         }
+        console.log('imgUrl22222222222', imgUrl)
         const imgUrl = getImage(imgObj.qian_zi_tu_wen_)
         const imgUrl = getImage(imgObj.qian_zi_tu_wen_)
         this.imgUrl = imgUrl
         this.imgUrl = imgUrl
       })
       })
@@ -154,6 +156,7 @@ export default {
 
 
     // 2. 整合函数:缩放后再插入
     // 2. 整合函数:缩放后再插入
     async insertResizedSignature() {
     async insertResizedSignature() {
+      console.log('insertResizedSignature', this.imgUrl)
       if (!this.imgUrl) {
       if (!this.imgUrl) {
         this.$message.error('签名图片不存在,请在个人信息维护中上传!')
         this.$message.error('签名图片不存在,请在个人信息维护中上传!')
         return
         return