zhouwx
2025-03-26 915aa9658845f54442ccf2eeb0cc60e97323e808
src/views/templateManage/components/templateDialog.vue
@@ -43,7 +43,7 @@
                  v-model:file-list="state.form.fileList"
                  :action="uploadFileUrl"
                  :headers="state.header"
                  :remove="handleRemove"
                  :on-remove="handleRemove"
                  :on-success="handleAvatarSuccess"
                  :on-change="handleChange"
                  accept=".pdf,.word"
@@ -61,11 +61,13 @@
        <el-form-item label="签署效果预览:" style="display: flex;flex-direction: column;align-items: flex-start;width: 100%">
          <div style="width: 100%;height: auto;margin-left: 50px">
            <iframe
                v-if="state.iframeSrc"
                :src="state.iframeSrc"
                width="100%"
                height="750px"
                class="custom-iframe"
            ></iframe>
            <el-empty v-else></el-empty>
          </div>
        </el-form-item>
      </el-form>
@@ -133,7 +135,6 @@
      }
      state.form.fileList = [obj]
      state.iframeSrc = import.meta.env.VITE_APP_BASE_API + state.form.filePath
      console.log('xx',state.iframeSrc)
    }else {
      state.form.fileList = []
    }