|
|
|
|
@ -16,8 +16,8 @@ |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="{row}" slot="imgUrl2"> |
|
|
|
|
<img v-if="row.imgUrl" :src="website.filePrex + row.imgUrl" style="width:30px;height:30px;"/> |
|
|
|
|
<img v-else src="@/assets/image/hospital_logo.png" style="width:30px;height:30px;"/> |
|
|
|
|
<img v-if="row.imgUrl" :src="website.filePrex + row.imgUrl" style="width:30px;height:30px;" /> |
|
|
|
|
<img v-else src="@/assets/image/hospital_logo.png" style="width:30px;height:30px;" /> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="{row}" slot="deptCategory"> |
|
|
|
|
{{ row.deptCategoryName }} |
|
|
|
|
@ -37,6 +37,7 @@ import { |
|
|
|
|
} from "@/api/system/dept"; |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
// import website from '@/config/website'; |
|
|
|
|
import { Message } from 'element-ui'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
@ -90,15 +91,28 @@ export default { |
|
|
|
|
type: 'upload', |
|
|
|
|
listType: 'picture-img', |
|
|
|
|
span: 24, |
|
|
|
|
fileType: 'img',//img/video/audio |
|
|
|
|
fileType: 'img',//img/video/audio, |
|
|
|
|
accept: 'image/png, image/jpeg', |
|
|
|
|
propsHttp: { |
|
|
|
|
home: this.website.filePrex, |
|
|
|
|
res: 'data', |
|
|
|
|
url: "link", |
|
|
|
|
}, |
|
|
|
|
tip: '只能上传jpg/png用户头像,且不超过500kb', |
|
|
|
|
tip: '只能上传jpg/png格式文件,且不超过500kb', |
|
|
|
|
action: '/api/blade-resource/oss/endpoint/put-file', |
|
|
|
|
hide: true, |
|
|
|
|
uploadBefore: (file, done, loading) => { |
|
|
|
|
if (['image/png', 'image/jpeg'].indexOf(file.type) == -1) { |
|
|
|
|
Message({ |
|
|
|
|
message: '只能上传jpg/png格式文件', |
|
|
|
|
type: 'error' |
|
|
|
|
}); |
|
|
|
|
loading(); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
done(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "机构全称", |
|
|
|
|
@ -343,6 +357,4 @@ export default { |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
<style></style> |
|
|
|
|
|