Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xulili
ybf
Commits
bf1133fb
Commit
bf1133fb
authored
Apr 14, 2020
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理系统加加载中,侧边栏修改未测
parent
3f3b03b5
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
90 additions
and
98 deletions
+90
-98
main.js
wx_application/src/main.js
+0
-44
addCoupon.vue
wx_application/src/views/coupon/addCoupon.vue
+1
-0
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+2
-5
addGroup.vue
ybf_admin/src/pages/in/contact/components/addGroup.vue
+23
-33
deleteGroup.vue
ybf_admin/src/pages/in/contact/components/deleteGroup.vue
+6
-2
editGroup.vue
ybf_admin/src/pages/in/contact/components/editGroup.vue
+6
-2
move.vue
ybf_admin/src/pages/in/contact/components/move.vue
+7
-2
mail.vue
ybf_admin/src/pages/in/contact/mail.vue
+17
-3
page.vue
ybf_admin/src/views/system/login/page.vue
+2
-0
package.json
ybf_wx/package.json
+1
-0
main.js
ybf_wx/src/main.js
+2
-0
home.vue
ybf_wx/src/views/home.vue
+10
-4
index.vue
ybf_wx/src/views/sideNav/discount/index.vue
+5
-1
index.vue
ybf_wx/src/views/sideNav/register/index.vue
+8
-2
No files found.
wx_application/src/main.js
View file @
bf1133fb
...
@@ -8,50 +8,6 @@ import Vant from 'vant';
...
@@ -8,50 +8,6 @@ import Vant from 'vant';
import
{
Toast
}
from
'vant'
;
import
{
Toast
}
from
'vant'
;
import
'vant/lib/index.css'
;
import
'vant/lib/index.css'
;
import
vConsole
from
'vconsole'
import
vConsole
from
'vconsole'
// import VeeValidate, { Validator } from 'vee-validate'
// import cn from 'vee-validate/dist/locale/zh_CN';
// Validator.addLocale(cn)
// Vue.use(VeeValidate, {
// locale: 'zh_CN'
// })
// const dictionary = {
// zh_CN: {
// messages: {
// required: (val) => {
// let msg = ''
// switch (val) {
// case 'logo':
// msg = 'logo'
// break
// case 'name':
// msg = '专柜名称'
// break
// case 'location':
// msg = '专柜地址'
// break
// case 'number':
// msg = '电话号码'
// break
// case 'summaryTitle':
// msg = '摘要信息'
// break
// case 'summary':
// msg = '正文内容'
// break
// case 'banner':
// msg = '轮播图'
// break
// default:;
// }
// msg = msg + '不能为空'
// return msg
// }
// }
// }
// }
// Validator.updateDictionary(dictionary)
Vue
.
prototype
.
$vConsole
=
new
vConsole
()
Vue
.
prototype
.
$vConsole
=
new
vConsole
()
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
...
...
wx_application/src/views/coupon/addCoupon.vue
View file @
bf1133fb
...
@@ -231,6 +231,7 @@
...
@@ -231,6 +231,7 @@
placeholder=
"请输入用券金额"
placeholder=
"请输入用券金额"
class=
"right"
class=
"right"
style=
"font-size:14px;"
style=
"font-size:14px;"
readonly
@
touchstart
.
native
.
stop=
"usageAmountShow = true"
@
touchstart
.
native
.
stop=
"usageAmountShow = true"
/>
/>
<van-number-keyboard
<van-number-keyboard
...
...
wx_application/src/views/mainSale/active/main/index.vue
View file @
bf1133fb
...
@@ -416,8 +416,8 @@ export default {
...
@@ -416,8 +416,8 @@ export default {
};
};
getStoreDetail
(
params
).
then
(
res
=>
{
getStoreDetail
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
stallInfo
!=
null
)
{
if
(
res
.
data
.
stallInfo
!=
null
)
{
this
.
test
.
manInfo
.
barName
=
res
.
data
.
stallInfo
.
name
;
this
.
test
.
manInfo
.
barName
=
res
.
data
.
stallInfo
.
name
sessionStorage
.
setItem
(
"barName"
,
res
.
data
.
stallInfo
.
name
)
;
sessionStorage
.
setItem
(
"barName"
,
res
.
data
.
stallInfo
.
name
)
}
}
});
});
},
},
...
@@ -459,9 +459,6 @@ export default {
...
@@ -459,9 +459,6 @@ export default {
handleCoupon
()
{
handleCoupon
()
{
this
.
$router
.
push
(
"coupon"
);
this
.
$router
.
push
(
"coupon"
);
},
},
buttonMainMarketingClick
()
{
// this.$router.push("home")
},
menuBarClick
(
inData
)
{
menuBarClick
(
inData
)
{
this
.
$router
.
push
(
inData
);
this
.
$router
.
push
(
inData
);
},
},
...
...
ybf_admin/src/pages/in/contact/components/addGroup.vue
View file @
bf1133fb
...
@@ -147,26 +147,26 @@ export default {
...
@@ -147,26 +147,26 @@ export default {
},
1000
);
},
1000
);
}
}
},
},
props
:
{
props
:
{
value
:
'id'
,
value
:
'id'
,
children
:
'children'
,
children
:
'children'
,
lazy
:
true
,
lazy
:
true
,
emitPath
:
false
,
emitPath
:
false
,
checkStrictly
:
true
,
checkStrictly
:
true
,
lazyLoad
(
node
,
resolve
)
{
lazyLoad
(
node
,
resolve
)
{
const
{
level
}
=
node
;
const
{
level
}
=
node
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
nodes
=
Array
.
from
(
level
)
const
nodes
=
Array
.
from
(
level
)
.
map
(
item
=>
({
.
map
(
item
=>
({
value
:
level
.
id
,
value
:
level
.
id
,
label
:
level
.
label
,
label
:
level
.
label
,
leaf
:
level
>=
2
leaf
:
level
>=
2
}))
}))
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
resolve
(
nodes
);
resolve
(
nodes
);
},
1000
);
},
1000
);
}
}
}
}
}
}
},
},
created
()
{
created
()
{
...
@@ -214,7 +214,8 @@ export default {
...
@@ -214,7 +214,8 @@ export default {
delete
data
.
clerkId
delete
data
.
clerkId
addGroup
(
data
).
then
(
res
=>
{
addGroup
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
isSuccessful
==
0
)
{
if
(
res
.
data
.
isSuccessful
==
0
)
{
this
.
$message
.
fail
(
res
.
data
.
msg
)
console
.
log
(
1
);
this
.
$message
.
error
(
res
.
data
.
msg
)
}
else
{
}
else
{
this
.
$emit
(
"handleAddFinish"
)
this
.
$emit
(
"handleAddFinish"
)
}
}
...
@@ -228,18 +229,7 @@ export default {
...
@@ -228,18 +229,7 @@ export default {
console
.
log
(
res
,
'人员'
)
console
.
log
(
res
,
'人员'
)
this
.
peopleList
=
res
.
data
this
.
peopleList
=
res
.
data
})
})
},
}
/* handleNodeClick(item, node, self) {
// console.log(item,node,self)
this.params.d_parentId = item.id;
this.paramsForShow.father_name = item.label;
},
checkChange(item, node, self) {},
showTreeData() {
this.showTree = !this.showTree;
},
*/
}
}
};
};
</
script
>
</
script
>
...
...
ybf_admin/src/pages/in/contact/components/deleteGroup.vue
View file @
bf1133fb
...
@@ -49,9 +49,13 @@ export default {
...
@@ -49,9 +49,13 @@ export default {
},
},
handleDeleteFinish
()
{
handleDeleteFinish
()
{
deleteGroup
({
id
:
this
.
nowNode
.
id
}).
then
(
res
=>
{
deleteGroup
({
id
:
this
.
nowNode
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
result
==
'success'
)
{
this
.
$emit
(
'handleDeleteFinish'
)
}
else
{
this
.
$message
.
error
(
'修改失败'
)
}
})
})
this
.
$emit
(
'handleDeleteFinish'
)
}
}
}
}
};
};
...
...
ybf_admin/src/pages/in/contact/components/editGroup.vue
View file @
bf1133fb
...
@@ -237,9 +237,13 @@ export default {
...
@@ -237,9 +237,13 @@ export default {
let
data
=
Object
.
assign
(
this
.
addForm
,{
clerkIds
})
let
data
=
Object
.
assign
(
this
.
addForm
,{
clerkIds
})
delete
data
.
clerkId
delete
data
.
clerkId
editDept
(
data
).
then
(
res
=>
{
editDept
(
data
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
result
==
'success'
)
{
this
.
$emit
(
"handleEditFinish"
)
}
else
{
this
.
$success
.
err
(
'修改失败'
)
}
})
})
this
.
$emit
(
"handleEditFinish"
)
},
},
// 获取所有人员
// 获取所有人员
getGroupMember
(
id
)
{
getGroupMember
(
id
)
{
...
...
ybf_admin/src/pages/in/contact/components/move.vue
View file @
bf1133fb
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
:visible
.
sync=
"moveDialog"
:visible
.
sync=
"moveDialog"
width=
"30%"
width=
"30%"
:show-close=
"false"
:show-close=
"false"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
>
>
<el-tree
<el-tree
ref=
"tree"
ref=
"tree"
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
node-key=
"id"
node-key=
"id"
@
node-click=
"handleNodeClick"
@
node-click=
"handleNodeClick"
@
check-change=
"checkChange"
@
check-change=
"checkChange"
v-loading=
"orgLoading"
element-loading-text=
"正在加载数据"
>
>
</el-tree>
</el-tree>
...
@@ -47,7 +49,8 @@ export default {
...
@@ -47,7 +49,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
treeData
:
[]
treeData
:
[],
orgLoading
:
false
};
};
},
},
created
()
{
created
()
{
...
@@ -87,9 +90,11 @@ export default {
...
@@ -87,9 +90,11 @@ export default {
},
},
getList
()
{
getList
()
{
this
.
orgLoading
=
true
getOrgTree
().
then
(
res
=>
{
getOrgTree
().
then
(
res
=>
{
console
.
log
(
res
.
data
.
organizations
)
console
.
log
(
res
.
data
.
organizations
)
this
.
treeData
=
[
res
.
data
.
organizations
];
this
.
treeData
=
[
res
.
data
.
organizations
];
this
.
orgLoading
=
false
});
});
}
}
}
}
...
...
ybf_admin/src/pages/in/contact/mail.vue
View file @
bf1133fb
<
template
>
<
template
>
<div
class=
"mail"
>
<div
class=
"mail"
>
<div
class=
"left"
>
<div
class=
"left"
>
<div>
<div
v-loading=
"orgLoading"
element-loading-text=
"正在加载中"
>
<div
class=
"title"
>
组织架构
</div>
<div
class=
"title"
>
组织架构
</div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
<div
class=
"ty"
@
click=
"getMailList(1)"
>
<div
class=
"ty"
@
click=
"getMailList(1)"
>
...
@@ -64,6 +64,8 @@
...
@@ -64,6 +64,8 @@
:data=
"tableData"
:data=
"tableData"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%"
style=
"width: 100%"
v-loading=
"tableLoading"
element-loading-text=
"正在加载中"
height=
"calc(100% - 140px)"
height=
"calc(100% - 140px)"
@
selection-change=
"handleMemberChange"
@
selection-change=
"handleMemberChange"
>
>
...
@@ -184,7 +186,9 @@ export default {
...
@@ -184,7 +186,9 @@ export default {
title
:
"全部"
,
title
:
"全部"
,
totalNumber
:
""
,
totalNumber
:
""
,
nowNode
:
{},
nowNode
:
{},
flag
:
0
flag
:
0
,
orgLoading
:
false
,
tableLoading
:
false
};
};
},
},
components
:
{
components
:
{
...
@@ -199,11 +203,13 @@ export default {
...
@@ -199,11 +203,13 @@ export default {
},
},
methods
:
{
methods
:
{
getOrgTree
()
{
getOrgTree
()
{
this
.
orgLoading
=
true
getOrgTree
().
then
(
res
=>
{
getOrgTree
().
then
(
res
=>
{
let
data
=
res
.
data
;
let
data
=
res
.
data
;
this
.
allNumber
=
data
.
numOfClerks
;
this
.
allNumber
=
data
.
numOfClerks
;
this
.
wNumber
=
data
.
numOfClerksArrangeNot
this
.
wNumber
=
data
.
numOfClerksArrangeNot
this
.
data1
=
[
data
.
organizations
];
this
.
data1
=
[
data
.
organizations
];
this
.
orgLoading
=
false
});
});
},
},
handleTreeClick
(
data
)
{
handleTreeClick
(
data
)
{
...
@@ -261,6 +267,7 @@ export default {
...
@@ -261,6 +267,7 @@ export default {
this
.
handleTypeChange
(
val
,
ctPage
)
this
.
handleTypeChange
(
val
,
ctPage
)
},
},
getMailList
(
page
,
ctPage
)
{
getMailList
(
page
,
ctPage
)
{
this
.
tableLoading
=
true
this
.
groupName
=
''
this
.
groupName
=
''
this
.
formData
.
keywords
=
''
this
.
formData
.
keywords
=
''
this
.
groupName
=
"全部"
this
.
groupName
=
"全部"
...
@@ -274,6 +281,7 @@ export default {
...
@@ -274,6 +281,7 @@ export default {
getAllMemberList
(
params
).
then
(
res
=>
{
getAllMemberList
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
pageInfo
.
list
;
this
.
tableData
=
res
.
data
.
pageInfo
.
list
;
this
.
page
.
total
=
this
.
totalNumber
=
this
.
allNumber
=
Number
(
res
.
data
.
pageInfo
.
total
);
this
.
page
.
total
=
this
.
totalNumber
=
this
.
allNumber
=
Number
(
res
.
data
.
pageInfo
.
total
);
this
.
tableLoading
=
false
});
});
},
},
handleShopowner
()
{},
handleShopowner
()
{},
...
@@ -376,21 +384,27 @@ export default {
...
@@ -376,21 +384,27 @@ export default {
},
},
addFinish
()
{
addFinish
()
{
this
.
addDialogShow
=
false
this
.
addDialogShow
=
false
// this.orgLoading = true
this
.
getOrgTree
();
this
.
getOrgTree
();
this
.
getMailList
(
1
,
1
);
this
.
getMailList
(
1
,
1
);
this
.
$message
.
success
(
'添加成功'
)
},
},
editFinish
()
{
editFinish
()
{
this
.
editDialogShow
=
false
this
.
editDialogShow
=
false
// this.orgLoading = true
this
.
getOrgTree
()
this
.
getOrgTree
()
this
.
getMailList
(
1
,
1
)
this
.
getMailList
(
1
,
1
)
this
.
$message
.
success
(
'编辑成功'
)
},
},
deleteChild
()
{
deleteChild
()
{
this
.
deleteDialogShow
=
true
this
.
deleteDialogShow
=
true
},
},
deleteFinish
()
{
deleteFinish
()
{
this
.
deleteDialogShow
=
false
this
.
deleteDialogShow
=
false
// this.orgLoading = true
this
.
getOrgTree
();
this
.
getOrgTree
();
this
.
getMailList
(
1
,
1
);
this
.
getMailList
(
1
,
1
)
this
.
$message
.
success
(
'删除成功'
)
}
}
}
}
};
};
...
...
ybf_admin/src/views/system/login/page.vue
View file @
bf1133fb
...
@@ -137,6 +137,8 @@ export default {
...
@@ -137,6 +137,8 @@ export default {
this
.
login
({
this
.
login
({
loginName
:
this
.
formLogin
.
username
,
loginName
:
this
.
formLogin
.
username
,
loginPwd
:
md5
(
this
.
formLogin
.
password
)
loginPwd
:
md5
(
this
.
formLogin
.
password
)
// loginPwd: this.formLogin.password
}).
then
(()
=>
{
}).
then
(()
=>
{
// 重定向对象不存在则返回顶层路径
// 重定向对象不存在则返回顶层路径
// this.$router.replace(this.$route.query.redirect || '/home/main')
// this.$router.replace(this.$route.query.redirect || '/home/main')
...
...
ybf_wx/package.json
View file @
bf1133fb
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
"jssdk"
:
"^0.0.1"
,
"jssdk"
:
"^0.0.1"
,
"qrcode"
:
"^1.4.4"
,
"qrcode"
:
"^1.4.4"
,
"vant"
:
"^2.3.3"
,
"vant"
:
"^2.3.3"
,
"vconsole"
:
"^3.3.4"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
"vuex"
:
"^3.1.2"
...
...
ybf_wx/src/main.js
View file @
bf1133fb
...
@@ -6,7 +6,9 @@ import store from './store'
...
@@ -6,7 +6,9 @@ import store from './store'
import
'./lib/rem'
;
import
'./lib/rem'
;
import
Vant
from
'vant'
;
import
Vant
from
'vant'
;
import
'vant/lib/index.css'
;
import
'vant/lib/index.css'
;
import
vConsole
from
'vconsole'
Vue
.
prototype
.
$vConsole
=
new
vConsole
()
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
use
(
Vant
);
Vue
.
use
(
Vant
);
...
...
ybf_wx/src/views/home.vue
View file @
bf1133fb
...
@@ -67,8 +67,13 @@
...
@@ -67,8 +67,13 @@
};
};
},
},
mounted
()
{
mounted
()
{
this
.
zReadyUserId
();
if
(
sessionStorage
.
getItem
(
"userId"
))
{
this
.
zTestGetNowUrlInfo
();
this
.
zcache
.
userId
=
sessionStorage
.
getItem
(
"userId"
)
}
else
{
this
.
zReadyUserId
();
this
.
zTestGetNowUrlInfo
();
}
},
},
created
()
{
created
()
{
},
},
...
@@ -134,9 +139,10 @@
...
@@ -134,9 +139,10 @@
headers
:
headerData
,
headers
:
headerData
,
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
zcache
.
userInfoResNew
=
"RESOK:"
+
res
.
data
.
data
.
userId
;
this
.
zcache
.
userInfoResNew
=
"RESOK:"
+
res
.
data
.
data
.
userId
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
;
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
);
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
);
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
this
.
zcache
.
userInfoResNew
=
"RESERR."
;
this
.
zcache
.
userInfoResNew
=
"RESERR."
;
...
...
ybf_wx/src/views/sideNav/discount/index.vue
View file @
bf1133fb
...
@@ -88,7 +88,11 @@ export default {
...
@@ -88,7 +88,11 @@ export default {
};
};
},
},
created
()
{
created
()
{
this
.
zcache
.
userId
=
this
.
$route
.
params
.
userId
;
if
(
this
.
$route
.
params
.
userId
)
{
this
.
zcache
.
userId
=
this
.
$route
.
params
.
userId
;
}
else
{
this
.
zcache
.
userId
=
sessionStorage
.
getItem
(
"userId"
)
}
this
.
zReadyGetUserFromId
();
this
.
zReadyGetUserFromId
();
this
.
getAgentAuth
();
this
.
getAgentAuth
();
// this.zReadySetVoucherList()
// this.zReadySetVoucherList()
...
...
ybf_wx/src/views/sideNav/register/index.vue
View file @
bf1133fb
...
@@ -30,16 +30,22 @@ import { getUserInfoByUserId } from "@/api/sidebar/voucher";
...
@@ -30,16 +30,22 @@ import { getUserInfoByUserId } from "@/api/sidebar/voucher";
}
}
],
],
storeCode
:
''
,
storeCode
:
''
,
oyStallCode
:
''
oyStallCode
:
''
,
userId
:
''
}
}
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
params
.
userId
)
{
this
.
userId
=
this
.
$route
.
params
.
userId
;
}
else
{
this
.
userId
=
sessionStorage
.
getItem
(
"userId"
)
}
this
.
zReadyGetUserFromId
()
this
.
zReadyGetUserFromId
()
this
.
getAgentAuth
()
this
.
getAgentAuth
()
},
},
methods
:{
methods
:{
zReadyGetUserFromId
()
{
zReadyGetUserFromId
()
{
let
userName
=
this
.
$route
.
params
.
userId
let
userName
=
this
.
userId
getUserInfoByUserId
({
userName
}).
then
(
res
=>
{
getUserInfoByUserId
({
userName
}).
then
(
res
=>
{
// alert('获取成功')
// alert('获取成功')
this
.
storeCode
=
res
.
data
[
0
].
oyStallMemberId
this
.
storeCode
=
res
.
data
[
0
].
oyStallMemberId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment