更换文件上传配置
This commit is contained in:
parent
c852f77bee
commit
29689b2319
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2022-04-11 10:11:40
|
* @Date: 2022-04-11 10:11:40
|
||||||
* @LastEditors: hisense.wuhongjian
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-06-13 11:21:09
|
* @LastEditTime: 2022-06-16 15:52:33
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
-->
|
-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -28,8 +28,8 @@
|
||||||
'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配)
|
'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配)
|
||||||
};
|
};
|
||||||
// window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/#/vueTemplateDemo';
|
// window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/#/vueTemplateDemo';
|
||||||
// window.SITE_CONFIG['frontUrl'] = 'http://124.222.94.39:9796/#/vueTemplateDemo';
|
window.SITE_CONFIG['frontUrl'] = 'http://124.222.94.39:9796/#/vueTemplateDemo';
|
||||||
window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo';
|
// window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo';
|
||||||
window.SITE_CONFIG['menuList'] = []; // 左侧菜单列表(后台返回,未做处理)
|
window.SITE_CONFIG['menuList'] = []; // 左侧菜单列表(后台返回,未做处理)
|
||||||
window.SITE_CONFIG['permissions'] = []; // 页面按钮操作权限(后台返回,未做处理)
|
window.SITE_CONFIG['permissions'] = []; // 页面按钮操作权限(后台返回,未做处理)
|
||||||
window.SITE_CONFIG['dynamicRoutes'] = []; // 动态路由列表
|
window.SITE_CONFIG['dynamicRoutes'] = []; // 动态路由列表
|
||||||
|
@ -67,10 +67,10 @@
|
||||||
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
|
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin';
|
window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin';
|
||||||
|
|
||||||
// window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
|
// window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
|
||||||
window.SITE_CONFIG['apiURL'] = 'http://15.72.183.90:8000/renren-admin';
|
// window.SITE_CONFIG['apiURL'] = 'http://15.72.183.90:8000/renren-admin';
|
||||||
// WebSocket地址
|
// WebSocket地址
|
||||||
window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket';
|
window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket';
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<!--
|
<!--
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-09 15:41:19
|
* @Date: 2022-06-09 15:41:19
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-06-10 15:44:37
|
* @LastEditTime: 2022-06-16 16:54:05
|
||||||
* @Description: 上传组件
|
* @Description: 上传组件
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<a-upload
|
<a-upload
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
list-type="picture"
|
list-type="picture"
|
||||||
class="upload-list-inline"
|
class="upload-list-inline"
|
||||||
:maxCount="props.maxCount"
|
:maxCount="props.maxCount"
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, defineProps } from 'vue'
|
import { ref, defineProps } from 'vue'
|
||||||
import { baseURL } from '@/config'
|
// import { baseURL } from '@/config'
|
||||||
import { message, Upload } from 'ant-design-vue'
|
import { message, Upload } from 'ant-design-vue'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
<a-upload
|
<a-upload
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
name="file"
|
name="file"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
|
@ -251,7 +251,7 @@
|
||||||
} from '@/api/home'
|
} from '@/api/home'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
import { sgcDel, getApplyForm } from '@/api/personalCenter'
|
import { sgcDel, getApplyForm } from '@/api/personalCenter'
|
||||||
import { baseURL } from '@/config'
|
// import { baseURL } from '@/config'
|
||||||
// import AsideMenu from './components/asideMenu.vue'
|
// import AsideMenu from './components/asideMenu.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -561,7 +561,7 @@
|
||||||
handleChange,
|
handleChange,
|
||||||
applySuccess,
|
applySuccess,
|
||||||
disabled,
|
disabled,
|
||||||
baseURL,
|
// baseURL,
|
||||||
beforeUpload,
|
beforeUpload,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<a-upload
|
<a-upload
|
||||||
v-if="itemchild.name == '上传图片'"
|
v-if="itemchild.name == '上传图片'"
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
@preview="handlePreview"
|
@preview="handlePreview"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
itemchild.name == '子系统一图片'
|
itemchild.name == '子系统一图片'
|
||||||
"
|
"
|
||||||
v-model:file-list="fileListone"
|
v-model:file-list="fileListone"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
@preview="handlePreviewone"
|
@preview="handlePreviewone"
|
||||||
@change="handleChangeone"
|
@change="handleChangeone"
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
itemchild.name == '子系统二图片'
|
itemchild.name == '子系统二图片'
|
||||||
"
|
"
|
||||||
v-model:file-list="fileListtwo"
|
v-model:file-list="fileListtwo"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
@preview="handlePreviewtwo"
|
@preview="handlePreviewtwo"
|
||||||
@change="handleChangetwo"
|
@change="handleChangetwo"
|
||||||
|
@ -136,7 +136,7 @@
|
||||||
itemchild.name == '子系统三图片'
|
itemchild.name == '子系统三图片'
|
||||||
"
|
"
|
||||||
v-model:file-list="fileListthree"
|
v-model:file-list="fileListthree"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
@preview="handlePreviewthree"
|
@preview="handlePreviewthree"
|
||||||
@change="handleChangethree"
|
@change="handleChangethree"
|
||||||
|
@ -416,7 +416,7 @@
|
||||||
updateRes,
|
updateRes,
|
||||||
relaunch,
|
relaunch,
|
||||||
} from '@/api/home'
|
} from '@/api/home'
|
||||||
import { baseURL } from '@/config'
|
// import { baseURL } from '@/config'
|
||||||
import { message } from 'ant-design-vue'
|
import { message } from 'ant-design-vue'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const showKey = ref(0)
|
const showKey = ref(0)
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<a-upload
|
<a-upload
|
||||||
v-model:file-list="fileList"
|
v-model:file-list="fileList"
|
||||||
name="file"
|
name="file"
|
||||||
:action="`${baseURL}/upload`"
|
:action="`${window.SITE_CONFIG.apiURL}/upload`"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
>
|
>
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
getDemandForm,
|
getDemandForm,
|
||||||
updateDemandForm,
|
updateDemandForm,
|
||||||
} from '@/api/personalCenter'
|
} from '@/api/personalCenter'
|
||||||
import { baseURL } from '@/config'
|
// import { baseURL } from '@/config'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -346,7 +346,7 @@
|
||||||
disabled,
|
disabled,
|
||||||
signOut,
|
signOut,
|
||||||
processStartHandle,
|
processStartHandle,
|
||||||
baseURL,
|
// baseURL,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue