diff --git a/ebts-ui/.env.development b/ebts-ui/.env.development
index 46be502..767fc82 100644
--- a/ebts-ui/.env.development
+++ b/ebts-ui/.env.development
@@ -4,7 +4,7 @@ ENV = 'development'
# EBTS/开发环境
#VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://localhost:8096/dev-api'
-#VUE_APP_BASE_API = 'https://api.ebts.top/dev-api'
+#VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/ebts-ui/src/api/sist/banner.js b/ebts-ui/src/api/sist/banner.js
new file mode 100644
index 0000000..ca905a7
--- /dev/null
+++ b/ebts-ui/src/api/sist/banner.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+
+// 查询首页banner图列表
+export function listBanner(data) {
+ return request({
+ url: '/sist/banner/list',
+ method: 'post',
+ data: data
+ })
+}
+
+// 导出首页banner图
+export function exportBanner(data) {
+ return request({
+ url: '/sist/banner/export',
+ method: 'post',
+ data: data
+ })
+}
+
+// 查询首页banner图详细
+export function getBanner(id) {
+ return request({
+ url: '/sist/banner/' + id,
+ method: 'get'
+ })
+}
+
+// 新增首页banner图
+export function addBanner(data) {
+ return request({
+ url: '/sist/banner',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改首页banner图
+export function updateBanner(data) {
+ return request({
+ url: '/sist/banner',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除首页banner图
+export function delBanner(id) {
+ return request({
+ url: '/sist/banner/' + id,
+ method: 'delete'
+ })
+}
\ No newline at end of file
diff --git a/ebts-ui/src/views/sist/banner/index.vue b/ebts-ui/src/views/sist/banner/index.vue
new file mode 100644
index 0000000..7ea50ca
--- /dev/null
+++ b/ebts-ui/src/views/sist/banner/index.vue
@@ -0,0 +1,382 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+ {{ ((queryParams.pageInfo.pageNum - 1) * queryParams.pageInfo.pageSize + scope.$index + 1)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ebts-ui/src/views/utils/uploadFile.vue b/ebts-ui/src/views/utils/uploadFile.vue
index ed267bf..8d22f60 100644
--- a/ebts-ui/src/views/utils/uploadFile.vue
+++ b/ebts-ui/src/views/utils/uploadFile.vue
@@ -60,10 +60,10 @@ export default {
FileUpload
},
props: {
- // value: {
- // type: String,
- // default: "",
- // },
+ value: {
+ type: String,
+ default: "",
+ },
/**
* 文件类型 图片:image 文件:file
*/
@@ -110,7 +110,7 @@ export default {
fileAddr: "",
unionId: this.unionId,
},
- staticUrl: "",
+ staticUrl: this.value,
// 文件夹列表
folderOptions: [],
// 角色列表
@@ -125,12 +125,14 @@ export default {
}
},
created() {
- getRoleAll().then(res => {
- this.roleOptions = res.data
- })
- getFolder().then(res => {
- this.folderOptions = res.data
- })
+ if (this.vPublic === null){
+ getRoleAll().then(res => {
+ this.roleOptions = res.data
+ })
+ getFolder().then(res => {
+ this.folderOptions = res.data
+ })
+ }
},
methods: {
/**
@@ -151,6 +153,7 @@ export default {
*/
changeAddress(addr) {
this.form.fileAddr = addr
+ this.uploadFile();
},
uploadFile() {
let flag = false