MrShi
2025-09-22 ad054c369ed1ee164024f47d38b10824d41f9a9c
优化
已修改3个文件
52 ■■■■■ 文件已修改
frontWuhu/.env.development 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
frontWuhu/src/components/business/OperaApplicationInfoWindow.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
frontWuhu/src/components/business/OperaDetailsBWindow.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
frontWuhu/.env.development
@@ -8,8 +8,8 @@
# VVUE_APP_API_BASE_URL='http://192.168.0.102:10031'
# 任康本地
# VUE_APP_API_BASE_URL='http://192.168.1.54:10031'
VUE_APP_API_BASE_URL = 'http://wuhu.dtkey.cn/hfznzzzd'
VUE_APP_API_BASE_URL='http://192.168.1.54:10031'
# VUE_APP_API_BASE_URL = 'http://wuhu.dtkey.cn/hfznzzzd'
#焦松本地
# VUE_APP_API_BASE_URL='http://192.168.0.36:10011'
frontWuhu/src/components/business/OperaApplicationInfoWindow.vue
@@ -12,6 +12,21 @@
      <el-form-item label="应用LOGO" prop="logo">
        <UploadAvatarImage :uploadData="uploadData" :file="file" @uploadSuccess="getFiles" />
      </el-form-item>
      <el-form-item label="应用附件" prop="mutifileUrl">
        <el-upload
          class="upload-demo"
          :action="uploadImgUrl"
          :data="uploadData"
          accept=".pdf,.jpg,.png,.jpeg,.zip,.rar"
          :limit="1"
          :on-exceed="exceed"
          :on-remove="remove"
          :on-success="getFileSuccess"
          :file-list="fileList">
          <el-button size="small" type="primary">点击上传</el-button>
          <div slot="tip" class="el-upload__tip">只能上传PDF、图片、压缩包格式文件</div>
        </el-upload>
      </el-form-item>
      <el-form-item label="服务商" prop="serverId">
        <el-select v-model="form.serverId" placeholder="请选择">
          <el-option
@@ -47,12 +62,14 @@
  components: { GlobalWindow, UploadAvatarImage, RichEditor },
  data () {
    return {
      uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/uploadPicture',
      // 表单数据
      form: {
        id: null,
        serverId: '',
        name: '',
        logo: '',
        mutifileUrl: '',
        lables: '',
        introduction: '',
        details: ''
@@ -78,6 +95,7 @@
        imgurl: '',
        imgurlfull: ''
      },
      fileList: []
    }
  },
  created () {
@@ -89,12 +107,13 @@
  methods: {
    open (title, target) {
      this.title = title
      this.file.imgurl = ''
      this.file.imgurlfull = ''
      this.fileList = []
      this.getFetchList()
      this.visible = true
      // 新建
      if (target == null) {
        this.file.imgurl = ''
        this.file.imgurlfull = ''
        this.$nextTick(() => {
          this.$refs.form.resetFields()
          this.form[this.configData['field.id']] = null
@@ -111,8 +130,29 @@
        }, 500)
        this.file.imgurl = target.logo
        this.file.imgurlfull = target.fullLog
        if (target.fullMutifileUrl) {
          this.fileList.push({
            name: '应用附件',
            url: target.fullMutifileUrl
          })
        }
      })
    },
    getFileSuccess(response) {
      this.form.mutifileUrl = response.data.imgaddr
      // response.data.originname
      this.fileList.push({
        name: '应用附件',
        url: response.data.url
      })
    },
    exceed() {
      this.$message.warning('只能上传一个附件')
    },
    remove() {
      this.form.mutifileUrl = ''
      this.fileList = []
    },
    getFiles(e) {
      this.file.imgurl = e.imgurl
      this.file.imgurlfull = e.imgurlfull
frontWuhu/src/components/business/OperaDetailsBWindow.vue
@@ -16,6 +16,7 @@
        </div>
        <div class="com_info_text1">服务商:{{info.serverName}}</div>
        <div class="com_info_text">{{info.introduction}}</div>
        <div class="com_info_text" style="color: #216EEE; cursor: pointer;" v-if="info.fullMutifileUrl" @click="openFile">应用附件</div>
        <div class="com_info_btn" @click="openT" v-if="[1, 2].includes(userInfo.type)">联系我们</div>
        <div class="com_info_x"></div>
        <div class="com_info_content" v-html="info.details"></div>
@@ -87,6 +88,9 @@
      this.info.lablesList = this.info.lables.split(',') || []
      this.visible = true
    },
    openFile() {
      window.open(this.info.fullMutifileUrl)
    },
    openT() {
      this.formData.name = ''
      this.formData.phone = ''