上传服务

main
xuechunyuan 3 years ago
parent 1e823aac46
commit c9ba42ae61
  1. BIN
      src/assets/image/hospital_logo.png
  2. 16
      src/views/system/dept.vue
  3. 3
      vue.config.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -15,6 +15,10 @@
@click.stop="handleAdd(scope.row, scope.index)" v-if="userInfo.role_name.includes('admin')">新增子项
</el-button>
</template>
<template slot-scope="{row}" slot="imgUrl2">
<img v-if="row.imgUrl" :src="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 }}
</template>
@ -72,13 +76,14 @@ export default {
trigger: "blur"
}]
},
{
label: "机构logo",
prop: "imgUrl2",
slot: true,
},
{
label: "机构logo",
prop: "imgUrl",
html: true,
formatter: (val) => {
return `${val.imgUrl ? '<img src="' + val.imgUrl + '"/>' : ''}`
},
type: 'upload',
listType: 'picture-img',
span: 24,
@ -88,7 +93,8 @@ export default {
url: "link",
},
tip: '只能上传jpg/png用户头像,且不超过500kb',
action: '/api/blade-resource/oss/endpoint/put-file'
action: '/api/blade-resource/oss/endpoint/put-file',
hide: true,
},
{
label: "机构全称",

@ -26,7 +26,8 @@ module.exports = {
proxy: {
"/api": {
//本地服务接口地址
target: "http://192.168.1.3:8088",
// target: "http://192.168.1.3:8088",
target: "http://192.168.1.106:80",
//远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.vip/api',
ws: true,

Loading…
Cancel
Save