Merge remote-tracking branch 'origin/master'
| | |
| | | # 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' |
| | |
| | | <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 |
| | |
| | | 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: '' |
| | |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | }, |
| | | fileList: [] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | 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 |
| | |
| | | }, 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 |
| | |
| | | </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> |
| | |
| | | this.info.lablesList = this.info.lables.split(',') || [] |
| | | this.visible = true |
| | | }, |
| | | openFile() { |
| | | window.open(this.info.fullMutifileUrl) |
| | | }, |
| | | openT() { |
| | | this.formData.name = '' |
| | | this.formData.phone = '' |