diff --git a/.env.development b/.env.development
index 7a6d974..f1ab67d 100644
--- a/.env.development
+++ b/.env.development
@@ -1,7 +1,7 @@
ENV = 'development'
# 接口地址
-VUE_APP_BASE_API = 'http://192.168.0.110:8094'
+VUE_APP_BASE_API = 'http://192.168.0.114:8094'
VUE_APP_WS_API = 'ws://localhost:8088'
# 是否启用 babel-plugin-dynamic-import-node插件
diff --git a/.env.production b/.env.production
index fdb9aa0..39b7707 100644
--- a/.env.production
+++ b/.env.production
@@ -1,6 +1,6 @@
ENV = 'production'
# 接口地址
-VUE_APP_BASE_API = 'http://www.cyjyyjy.com:8095'
+VUE_APP_BASE_API = 'http://www.cyjyyjy.com:8094'
VUE_APP_WS_API = 'ws:///127.0.0.1:8001'
diff --git a/dist.rar b/dist.rar
index dbed048..2fae6b9 100644
Binary files a/dist.rar and b/dist.rar differ
diff --git a/src/api/ResourcesCagetory.js b/src/api/ResourcesCagetory.js
index da567c5..0320b1d 100644
--- a/src/api/ResourcesCagetory.js
+++ b/src/api/ResourcesCagetory.js
@@ -24,4 +24,5 @@ export function edit(data) {
})
}
+
export default { add, edit, del }
diff --git a/src/router/routers.js b/src/router/routers.js
index 70c2921..ac39b96 100644
--- a/src/router/routers.js
+++ b/src/router/routers.js
@@ -71,7 +71,7 @@ export const constantRouterMap = [
]
export default new Router({
- mode: 'history',
+ mode: 'hash',
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
})
diff --git a/src/views/shop/demandHall/authentication.vue b/src/views/shop/demandHall/authentication.vue
index b6315de..e5fddb5 100644
--- a/src/views/shop/demandHall/authentication.vue
+++ b/src/views/shop/demandHall/authentication.vue
@@ -208,7 +208,6 @@ export default {
})
},
showDialog(row){
- console.log(row)
this.authForm.examineId = row.id
row.authenticationState == 2 ? this.authForm.type = 1 : this.authForm.type = 0
this.authForm.reason = row.reason
diff --git a/src/views/shop/demandHall/projectList.vue b/src/views/shop/demandHall/projectList.vue
index efcb90b..01dcbd0 100644
--- a/src/views/shop/demandHall/projectList.vue
+++ b/src/views/shop/demandHall/projectList.vue
@@ -32,16 +32,18 @@
审核不通过
-
+
- {{scope.row.projectState == 0 ? '开启项目' : scope.row.projectState == 1 ?'项目进行中' : '项目已结束'}}
+
+ {{scope.row.examineState == 1 ? '审核' : ''}}
+
@@ -133,7 +135,7 @@ export default {
})
},
openProject(row){
- if(row.projectState == 0){
+ if(row.examineState == 1){
this.$confirm('是否确定开启项目?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
diff --git a/src/views/shop/projectManage/cooperationMode.vue b/src/views/shop/projectManage/cooperationMode.vue
index 9b2ffc9..96a30ea 100644
--- a/src/views/shop/projectManage/cooperationMode.vue
+++ b/src/views/shop/projectManage/cooperationMode.vue
@@ -41,7 +41,6 @@
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
{
+ console.log(res)
+ // this.categoryList = res.content
+ this.depts = []
+ const dept = { id: 0, label: '顶级类目', children: [] }
+ res.content.forEach((item)=>{
+ item.label = item.cagetoryName
+ item.children = item.categoryList
+ item.categoryList.forEach((child)=>{
+ child.label = child.cagetoryName
+ child.children = child.categoryList
+ })
+ })
+ this.tableData = res.content
+ console.log(this.tableData)
+ dept.children = res.content
+ this.depts.push(dept)
+ })
+ },
methods: {
// 获取数据前设置好接口地址
[CRUD.HOOK.beforeRefresh]() {
return true
}, // 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) {
+ initData('/api/ResourcesCagetory',{
+ page: 1,
+ size: 100,
+ sort: ['id,desc'],
+ }).then((res)=>{
+ console.log(res)
+ // this.categoryList = res.content
+ this.depts = []
+ const dept = { id: 0, label: '顶级类目', children: [] }
+ res.content.forEach((item)=>{
+ item.label = item.cagetoryName
+ item.children = item.categoryList
+ item.categoryList.forEach((child)=>{
+ child.label = child.cagetoryName
+ child.children = child.categoryList
+ })
+ })
+ this.tableData = res.content
+ console.log(this.tableData)
+ dept.children = res.content
+ this.depts.push(dept)
+ })
},
}
}
diff --git a/src/views/shop/user/index.vue b/src/views/shop/user/index.vue
index fb44a4b..c3499b0 100644
--- a/src/views/shop/user/index.vue
+++ b/src/views/shop/user/index.vue
@@ -33,6 +33,13 @@
@click="toQuery"
>刷新
会员转移
+ 导出
@@ -127,7 +134,9 @@ import { del, onStatus } from '@/api/yxUser'
import eForm from './form'
import pForm from './formp'
import detail from './detail'
-import { formatTime } from '@/utils/index'
+import { formatTime, downloadFile } from '@/utils/index'
+import request from '@/utils/request'
+import qs from 'qs'
export default {
components: { eForm, pForm, detail },
mixins: [initData],
@@ -160,6 +169,23 @@ export default {
})
},
methods: {
+ doExport(){
+ let params = {
+ page: this.page,
+ size: this.size,
+ sort: 'id,desc',
+ isModel: ''}
+ request({
+ url: 'api/member/download' + '?' + qs.stringify(params, { indices: false }),
+ method: 'get',
+ responseType: 'blob'
+ }).then(result => {
+
+ downloadFile(result, '会员充值数据', 'xlsx')
+ }).catch(() => {
+
+ })
+ },
selectionChangeHandler(val){
console.log(val)
},