Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
5 years ago
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理系统加加载中,侧边栏修改未测
parent
3f3b03b5
master
No related merge requests found
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';
import
{
Toast
}
from
'vant'
;
import
'vant/lib/index.css'
;
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
.
config
.
productionTip
=
false
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/coupon/addCoupon.vue
View file @
bf1133fb
...
...
@@ -231,6 +231,7 @@
placeholder=
"请输入用券金额"
class=
"right"
style=
"font-size:14px;"
readonly
@
touchstart
.
native
.
stop=
"usageAmountShow = true"
/>
<van-number-keyboard
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/mainSale/active/main/index.vue
View file @
bf1133fb
...
...
@@ -416,8 +416,8 @@ export default {
};
getStoreDetail
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
stallInfo
!=
null
)
{
this
.
test
.
manInfo
.
barName
=
res
.
data
.
stallInfo
.
name
;
sessionStorage
.
setItem
(
"barName"
,
res
.
data
.
stallInfo
.
name
)
;
this
.
test
.
manInfo
.
barName
=
res
.
data
.
stallInfo
.
name
sessionStorage
.
setItem
(
"barName"
,
res
.
data
.
stallInfo
.
name
)
}
});
},
...
...
@@ -459,9 +459,6 @@ export default {
handleCoupon
()
{
this
.
$router
.
push
(
"coupon"
);
},
buttonMainMarketingClick
()
{
// this.$router.push("home")
},
menuBarClick
(
inData
)
{
this
.
$router
.
push
(
inData
);
},
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/components/addGroup.vue
View file @
bf1133fb
...
...
@@ -147,26 +147,26 @@ export default {
},
1000
);
}
},
props
:
{
value
:
'id'
,
children
:
'children'
,
lazy
:
true
,
emitPath
:
false
,
checkStrictly
:
true
,
lazyLoad
(
node
,
resolve
)
{
const
{
level
}
=
node
;
setTimeout
(()
=>
{
const
nodes
=
Array
.
from
(
level
)
.
map
(
item
=>
({
value
:
level
.
id
,
label
:
level
.
label
,
leaf
:
level
>=
2
}))
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
resolve
(
nodes
);
},
1000
);
}
}
props
:
{
value
:
'id'
,
children
:
'children'
,
lazy
:
true
,
emitPath
:
false
,
checkStrictly
:
true
,
lazyLoad
(
node
,
resolve
)
{
const
{
level
}
=
node
;
setTimeout
(()
=>
{
const
nodes
=
Array
.
from
(
level
)
.
map
(
item
=>
({
value
:
level
.
id
,
label
:
level
.
label
,
leaf
:
level
>=
2
}))
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
resolve
(
nodes
);
},
1000
);
}
}
}
},
created
()
{
...
...
@@ -214,7 +214,8 @@ export default {
delete
data
.
clerkId
addGroup
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
isSuccessful
==
0
)
{
this
.
$message
.
fail
(
res
.
data
.
msg
)
console
.
log
(
1
);
this
.
$message
.
error
(
res
.
data
.
msg
)
}
else
{
this
.
$emit
(
"handleAddFinish"
)
}
...
...
@@ -228,18 +229,7 @@ export default {
console
.
log
(
res
,
'人员'
)
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
>
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/components/deleteGroup.vue
View file @
bf1133fb
...
...
@@ -49,9 +49,13 @@ export default {
},
handleDeleteFinish
()
{
deleteGroup
({
id
:
this
.
nowNode
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
result
==
'success'
)
{
this
.
$emit
(
'handleDeleteFinish'
)
}
else
{
this
.
$message
.
error
(
'修改失败'
)
}
})
this
.
$emit
(
'handleDeleteFinish'
)
}
}
};
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/components/editGroup.vue
View file @
bf1133fb
...
...
@@ -237,9 +237,13 @@ export default {
let
data
=
Object
.
assign
(
this
.
addForm
,{
clerkIds
})
delete
data
.
clerkId
editDept
(
data
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
result
==
'success'
)
{
this
.
$emit
(
"handleEditFinish"
)
}
else
{
this
.
$success
.
err
(
'修改失败'
)
}
})
this
.
$emit
(
"handleEditFinish"
)
},
// 获取所有人员
getGroupMember
(
id
)
{
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/components/move.vue
View file @
bf1133fb
...
...
@@ -5,7 +5,7 @@
:visible
.
sync=
"moveDialog"
width=
"30%"
:show-close=
"false"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
>
<el-tree
ref=
"tree"
...
...
@@ -16,6 +16,8 @@
node-key=
"id"
@
node-click=
"handleNodeClick"
@
check-change=
"checkChange"
v-loading=
"orgLoading"
element-loading-text=
"正在加载数据"
>
</el-tree>
...
...
@@ -47,7 +49,8 @@ export default {
},
data
()
{
return
{
treeData
:
[]
treeData
:
[],
orgLoading
:
false
};
},
created
()
{
...
...
@@ -87,9 +90,11 @@ export default {
},
getList
()
{
this
.
orgLoading
=
true
getOrgTree
().
then
(
res
=>
{
console
.
log
(
res
.
data
.
organizations
)
this
.
treeData
=
[
res
.
data
.
organizations
];
this
.
orgLoading
=
false
});
}
}
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/mail.vue
View file @
bf1133fb
<
template
>
<div
class=
"mail"
>
<div
class=
"left"
>
<div>
<div
v-loading=
"orgLoading"
element-loading-text=
"正在加载中"
>
<div
class=
"title"
>
组织架构
</div>
<div
class=
"bottom"
>
<div
class=
"ty"
@
click=
"getMailList(1)"
>
...
...
@@ -64,6 +64,8 @@
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: 100%"
v-loading=
"tableLoading"
element-loading-text=
"正在加载中"
height=
"calc(100% - 140px)"
@
selection-change=
"handleMemberChange"
>
...
...
@@ -184,7 +186,9 @@ export default {
title
:
"全部"
,
totalNumber
:
""
,
nowNode
:
{},
flag
:
0
flag
:
0
,
orgLoading
:
false
,
tableLoading
:
false
};
},
components
:
{
...
...
@@ -199,11 +203,13 @@ export default {
},
methods
:
{
getOrgTree
()
{
this
.
orgLoading
=
true
getOrgTree
().
then
(
res
=>
{
let
data
=
res
.
data
;
this
.
allNumber
=
data
.
numOfClerks
;
this
.
wNumber
=
data
.
numOfClerksArrangeNot
this
.
data1
=
[
data
.
organizations
];
this
.
orgLoading
=
false
});
},
handleTreeClick
(
data
)
{
...
...
@@ -261,6 +267,7 @@ export default {
this
.
handleTypeChange
(
val
,
ctPage
)
},
getMailList
(
page
,
ctPage
)
{
this
.
tableLoading
=
true
this
.
groupName
=
''
this
.
formData
.
keywords
=
''
this
.
groupName
=
"全部"
...
...
@@ -274,6 +281,7 @@ export default {
getAllMemberList
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
pageInfo
.
list
;
this
.
page
.
total
=
this
.
totalNumber
=
this
.
allNumber
=
Number
(
res
.
data
.
pageInfo
.
total
);
this
.
tableLoading
=
false
});
},
handleShopowner
()
{},
...
...
@@ -376,21 +384,27 @@ export default {
},
addFinish
()
{
this
.
addDialogShow
=
false
// this.orgLoading = true
this
.
getOrgTree
();
this
.
getMailList
(
1
,
1
);
this
.
$message
.
success
(
'添加成功'
)
},
editFinish
()
{
this
.
editDialogShow
=
false
// this.orgLoading = true
this
.
getOrgTree
()
this
.
getMailList
(
1
,
1
)
this
.
$message
.
success
(
'编辑成功'
)
},
deleteChild
()
{
this
.
deleteDialogShow
=
true
},
deleteFinish
()
{
this
.
deleteDialogShow
=
false
// this.orgLoading = true
this
.
getOrgTree
();
this
.
getMailList
(
1
,
1
);
this
.
getMailList
(
1
,
1
)
this
.
$message
.
success
(
'删除成功'
)
}
}
};
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/views/system/login/page.vue
View file @
bf1133fb
...
...
@@ -137,6 +137,8 @@ export default {
this
.
login
({
loginName
:
this
.
formLogin
.
username
,
loginPwd
:
md5
(
this
.
formLogin
.
password
)
// loginPwd: this.formLogin.password
}).
then
(()
=>
{
// 重定向对象不存在则返回顶层路径
// this.$router.replace(this.$route.query.redirect || '/home/main')
...
...
This diff is collapsed.
Click to expand it.
ybf_wx/package.json
View file @
bf1133fb
...
...
@@ -17,6 +17,7 @@
"jssdk"
:
"^0.0.1"
,
"qrcode"
:
"^1.4.4"
,
"vant"
:
"^2.3.3"
,
"vconsole"
:
"^3.3.4"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
...
...
This diff is collapsed.
Click to expand it.
ybf_wx/src/main.js
View file @
bf1133fb
...
...
@@ -6,7 +6,9 @@ import store from './store'
import
'./lib/rem'
;
import
Vant
from
'vant'
;
import
'vant/lib/index.css'
;
import
vConsole
from
'vconsole'
Vue
.
prototype
.
$vConsole
=
new
vConsole
()
Vue
.
config
.
productionTip
=
false
Vue
.
use
(
Vant
);
...
...
This diff is collapsed.
Click to expand it.
ybf_wx/src/views/home.vue
View file @
bf1133fb
...
...
@@ -67,8 +67,13 @@
};
},
mounted
()
{
this
.
zReadyUserId
();
this
.
zTestGetNowUrlInfo
();
if
(
sessionStorage
.
getItem
(
"userId"
))
{
this
.
zcache
.
userId
=
sessionStorage
.
getItem
(
"userId"
)
}
else
{
this
.
zReadyUserId
();
this
.
zTestGetNowUrlInfo
();
}
},
created
()
{
},
...
...
@@ -134,9 +139,10 @@
headers
:
headerData
,
})
.
then
(
res
=>
{
this
.
zcache
.
userInfoResNew
=
"RESOK:"
+
res
.
data
.
data
.
userId
;
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
;
this
.
zcache
.
userInfoResNew
=
"RESOK:"
+
res
.
data
.
data
.
userId
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
);
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
})
.
catch
(
err
=>
{
this
.
zcache
.
userInfoResNew
=
"RESERR."
;
...
...
This diff is collapsed.
Click to expand it.
ybf_wx/src/views/sideNav/discount/index.vue
View file @
bf1133fb
...
...
@@ -88,7 +88,11 @@ export default {
};
},
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
.
getAgentAuth
();
// this.zReadySetVoucherList()
...
...
This diff is collapsed.
Click to expand it.
ybf_wx/src/views/sideNav/register/index.vue
View file @
bf1133fb
...
...
@@ -30,16 +30,22 @@ import { getUserInfoByUserId } from "@/api/sidebar/voucher";
}
],
storeCode
:
''
,
oyStallCode
:
''
oyStallCode
:
''
,
userId
:
''
}
},
created
()
{
if
(
this
.
$route
.
params
.
userId
)
{
this
.
userId
=
this
.
$route
.
params
.
userId
;
}
else
{
this
.
userId
=
sessionStorage
.
getItem
(
"userId"
)
}
this
.
zReadyGetUserFromId
()
this
.
getAgentAuth
()
},
methods
:{
zReadyGetUserFromId
()
{
let
userName
=
this
.
$route
.
params
.
userId
let
userName
=
this
.
userId
getUserInfoByUserId
({
userName
}).
then
(
res
=>
{
// alert('获取成功')
this
.
storeCode
=
res
.
data
[
0
].
oyStallMemberId
...
...
This diff is collapsed.
Click to expand it.
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