提交 381deb5a 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

Merge branch 'dev-patients-20190513' of...

Merge branch 'dev-patients-20190513' of http://192.168.110.53/com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-patients-20190513
......@@ -83,6 +83,7 @@
<script>
import fetch from '@/utils/fetch'
import { envConfig } from '@/utils/env-config'
import { uploadImg } from '@/utils/index'
import { getQiniuToken, submitFeedback } from '@/utils/patients/patientsapi'
export default {
......@@ -103,7 +104,7 @@
]
},
addImageDisabled: false,
imgLimit: 3,// 最多允许上传的图片个数
imgLimit: 5,// 最多允许上传的图片个数
action: 'https://upload.qiniup.com/',
token: '',
headers: {
......@@ -149,7 +150,6 @@
submitFrom(formName){
this.$refs[formName].validate((valid) => {
if (valid) {
console.log(this.urlString)
const data = {
input_text: this.form.opinion,
system_type: 'workStation',
......@@ -187,7 +187,8 @@
},
handleRemove(){},
handleSuccess(response, file, fileList){
this.urlString += 'https://test1-file.yunqueyi.com/s' + response.key + ';'
const imgDomin = uploadImg();
this.urlString += `${imgDomin}/${response.key};`
this.$message.success(`上传成功!`);
if(fileList.length>=this.imgLimit){
this.addImageDisabled = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册