Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
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
office
haoban-3
Commits
ad8d7b02
Commit
ad8d7b02
authored
May 12, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加素材库链接
parent
96c97b5a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
dist/index.html
+2
-2
app.1c860c33f6259e67d53cdab085ee1fac.css
dist/static/css/app.1c860c33f6259e67d53cdab085ee1fac.css
+0
-0
21.1913d2f546983f94b276.js
dist/static/js/21.1913d2f546983f94b276.js
+2
-0
21.7be09bf90aac55c073b3.js
dist/static/js/21.7be09bf90aac55c073b3.js
+0
-2
manifest.a17edc786c3974310806.js
dist/static/js/manifest.a17edc786c3974310806.js
+2
-2
group-dialog.vue
src/components/set/group-dialog.vue
+2
-2
No files found.
dist/index.html
View file @
ad8d7b02
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.71a136fad28c0297df5fb9975d8eef1a.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.02784917425a1dbfd05b.js
></script><script
type=
text/javascript
src=
./static/js/vendor.ec5b5af1da21f97836b5.js
></script><script
type=
text/javascript
src=
./static/js/app.f29a33888aff181c4f47.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.1c860c33f6259e67d53cdab085ee1fac.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.a17edc786c3974310806.js
></script><script
type=
text/javascript
src=
./static/js/vendor.ec5b5af1da21f97836b5.js
></script><script
type=
text/javascript
src=
./static/js/app.f29a33888aff181c4f47.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
71a136fad28c0297df5fb9975d8eef1a
.css
→
dist/static/css/app.
1c860c33f6259e67d53cdab085ee1fac
.css
View file @
ad8d7b02
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/21.1913d2f546983f94b276.js
0 → 100644
View file @
ad8d7b02
webpackJsonp
([
21
],{
"6AAP"
:
function
(
t
,
e
){},
"q+Sm"
:
function
(
t
,
e
,
r
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
r
(
"mvHQ"
),
a
=
r
.
n
(
o
),
n
=
r
(
"fZjL"
),
i
=
r
.
n
(
n
),
s
=
r
(
"l46T"
),
c
=
r
(
"PI0u"
),
l
=
r
(
"P9l9"
),
u
=
r
(
"3E4D"
),
d
=
r
(
"Ch4/"
),
g
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryParentId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
s
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
categoryId
:
""
,
categoryName
:
""
,
categoryParentId
:
this
.
categoryParentId
},
rules
:{
categoryName
:[{
required
:
!
0
,
message
:
"请输入模块名称"
,
trigger
:
"blur"
}]}}},
methods
:{
toCancel
:
function
(){
this
.
$emit
(
"closeModule"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
t
){
this
.
$emit
(
"closeModule"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
c
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
categoryParentId
:
t
.
ruleForm
.
categoryParentId
||
"0"
,
categoryId
:
t
.
ruleForm
.
categoryId
,
categoryName
:
t
.
ruleForm
.
categoryName
};
Object
(
l
.
d
)(
"/haoban-manage3-web/mateial-add-category"
,
e
).
then
(
function
(
e
){
var
r
=
e
.
data
;
1
==
r
.
errorCode
?(
u
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitModule"
)):
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
t
){
i
()(
t
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
a
()(
t
)))}},
mounted
:
function
(){
i
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
a
()(
this
.
editRow
)))}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
r
=
t
.
_self
.
_c
||
e
;
return
r
(
"el-dialog"
,{
attrs
:{
title
:
t
.
editRow
.
categoryId
?
"编辑分组"
:
"新增分组"
,
visible
:
t
.
dialogVisible
,
width
:
"485px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
r
(
"div"
,{},[
r
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
ruleForm
,
rules
:
t
.
rules
,
"label-width"
:
"100px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"分组名称"
,
prop
:
"categoryName"
}},[
r
(
"limitInput"
,{
attrs
:{
inputWidth
:
400
,
inputValue
:
t
.
ruleForm
.
categoryName
,
holder
:
"请输入分组名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"categoryName"
,
e
)}}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
r
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
r
(
"VU/8"
)(
g
,
p
,
!
1
,
function
(
t
){
r
(
"q8eh"
)},
"data-v-32742376"
,
null
).
exports
,
h
=
{
props
:{},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
searchInput
:
""
,
currentCategoryId
:
"-1"
,
groupData
:[],
categoryParentId
:
""
,
addShow
:
!
1
,
editGroupRow
:{},
tableData
:[]}},
methods
:{
toInput
:
Object
(
c
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearSearch
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
addGroup
:
function
(){
this
.
addShow
=!
0
,
this
.
categoryParentId
=
""
,
this
.
editGroupRow
=
{}},
closeGroup
:
function
(){
this
.
addShow
=!
1
,
this
.
editGroupRow
=
{}},
submitGroup
:
function
(){
this
.
addShow
=!
1
,
this
.
editGroupRow
=
{},
this
.
getGroupData
()},
addChildGroup
:
function
(
t
){
this
.
editGroupRow
=
{},
this
.
categoryParentId
=
t
.
categoryId
,
this
.
addShow
=!
0
},
editGroup
:
function
(
t
){
this
.
addShow
=!
0
,
this
.
categoryParentId
=
""
,
this
.
editGroupRow
=
t
},
delGroup
:
function
(
t
){
var
e
=
this
;
e
.
$confirm
(
"是否删除当前选中的分组?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
postDelData
(
t
)}).
catch
(
function
(){})},
postDelData
:
function
(
t
){
var
e
=
this
,
r
=
{
categoryId
:
t
.
categoryId
};
Object
(
l
.
a
)(
"/haoban-manage3-web/category-del"
,
r
).
then
(
function
(
t
){
var
r
=
t
.
data
;
if
(
1
==
r
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getGroupData
();
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
treeData
:
function
(
t
){
var
e
=
t
.
filter
(
function
(
e
){
var
r
=
t
.
filter
(
function
(
t
){
return
e
.
categoryId
==
t
.
categoryParentId
});
return
r
.
length
>
0
&&
(
e
.
children
=
r
),
e
});
return
console
.
log
(
"tree:"
,
e
),
e
},
getGroupData
:
function
(
t
){
var
e
=
this
,
r
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
l
.
a
)(
"/haoban-manage3-web/category-list"
,
r
).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
d
.
a
.
errorMsg
(
r
):
e
.
groupData
=
e
.
treeData
(
r
.
result
)
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
3
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
groupDialog
:
f
}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
r
=
t
.
_self
.
_c
||
e
;
return
r
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
r
(
"div"
,{
staticClass
:
"daily-set-content border-box"
},[
r
(
"div"
,{
staticClass
:
"material-top"
},[
r
(
"el-input"
,{
staticStyle
:{
width
:
"394px"
},
attrs
:{
placeholder
:
"请输入素材名称"
,
clearable
:
""
},
on
:{
clear
:
t
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
e
){
return
r
=
e
,
t
.
toInput
(
r
,
t
.
searchInput
);
var
r
}},
model
:{
value
:
t
.
searchInput
,
callback
:
function
(
e
){
t
.
searchInput
=
e
},
expression
:
"searchInput"
}},[
r
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"material-body flex m-t-20"
},[
r
(
"div"
,{
staticClass
:
"material-left"
},[
r
(
"div"
,{
staticClass
:
"material-left-add text-center"
},[
r
(
"div"
,{
staticClass
:
"add-group font-14 color-909399"
,
on
:{
click
:
t
.
addGroup
}},[
r
(
"span"
,{
staticClass
:
"el-icon-plus"
}),
r
(
"span"
,{
staticClass
:
"p-l-5"
},[
t
.
_v
(
"新建分组"
)])])]),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"group-body"
},[
r
(
"div"
,{
class
:[
"no-group line-h-32 font-14 color-606266"
,
"-1"
==
t
.
currentCategoryId
?
"current-group"
:
""
]},[
t
.
_v
(
"未分组"
)]),
t
.
_v
(
" "
),
r
(
"ul"
,{
staticClass
:
"group-ul padding-lr-12"
},
t
.
_l
(
t
.
groupData
,
function
(
e
,
o
){
return
r
(
"li"
,{
key
:
o
+
"group"
,
staticClass
:
"group-cell"
},[
r
(
"div"
,[
r
(
"span"
,{
class
:[
e
.
expand
?
"el-icon-caret-bottom"
:
"el-icon-caret-right"
]}),
r
(
"span"
,{
class
:[
"font-14 color-606266"
,
t
.
currentCategoryId
==
e
.
categoryId
?
"current-group"
:
""
]},[
t
.
_v
(
t
.
_s
(
e
.
categoryName
))]),
r
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
width
:
"100"
,
trigger
:
"click"
}},[
r
(
"ul"
,[
r
(
"li"
,{
staticClass
:
"line-h-32 font-14 color-606266"
,
on
:{
click
:
function
(
r
){
t
.
addChildGroup
(
e
)}}},[
t
.
_v
(
"新增子分组"
)]),
t
.
_v
(
" "
),
r
(
"li"
,{
staticClass
:
"line-h-32 font-14 color-606266"
,
on
:{
click
:
function
(
r
){
t
.
editGroup
(
e
)}}},[
t
.
_v
(
"编辑"
)]),
t
.
_v
(
" "
),
e
.
children
.
length
?
t
.
_e
():
r
(
"li"
,{
staticClass
:
"line-h-32 font-14 color-606266"
,
on
:{
click
:
function
(
r
){
t
.
delGroup
(
e
)}}},[
t
.
_v
(
"删除"
)])]),
t
.
_v
(
" "
),
r
(
"span"
,{
staticClass
:
"iconfont icongengduo color-f0f2f5"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])}))])]),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"material-right"
})])]),
t
.
_v
(
" "
),
t
.
addShow
?
r
(
"group-dialog"
,{
attrs
:{
categoryParentId
:
t
.
categoryParentId
,
editRow
:
t
.
editGroupRow
},
on
:{
closeGroup
:
t
.
closeGroup
,
submitGroup
:
t
.
submitGroup
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
v
=
r
(
"VU/8"
)(
h
,
m
,
!
1
,
function
(
t
){
r
(
"6AAP"
)},
"data-v-1ee09dda"
,
null
);
e
.
default
=
v
.
exports
},
q8eh
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/21.7be09bf90aac55c073b3.js
deleted
100644 → 0
View file @
96c97b5a
webpackJsonp
([
21
],{
"6AAP"
:
function
(
t
,
e
){},
F76s
:
function
(
t
,
e
){},
"q+Sm"
:
function
(
t
,
e
,
r
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
r
(
"mvHQ"
),
a
=
r
.
n
(
o
),
n
=
r
(
"fZjL"
),
i
=
r
.
n
(
n
),
s
=
r
(
"l46T"
),
c
=
r
(
"PI0u"
),
l
=
r
(
"P9l9"
),
u
=
r
(
"3E4D"
),
d
=
r
(
"Ch4/"
),
g
=
{
props
:{
editRow
:{
type
:
Object
,
default
:
function
(){
return
{}}},
categoryParentId
:{
type
:
Object
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
s
.
a
},
data
:
function
(){
return
{
editPersion
:
localStorage
.
getItem
(
"userName"
),
dialogVisible
:
!
0
,
ruleForm
:{
categoryId
:
""
,
categoryName
:
""
,
categoryParentId
:
this
.
categoryParentId
},
rules
:{
categoryName
:[{
required
:
!
0
,
message
:
"请输入模块名称"
,
trigger
:
"blur"
}]}}},
methods
:{
toCancel
:
function
(){
this
.
$emit
(
"closeModule"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
handleClose
:
function
(
t
){
this
.
$emit
(
"closeModule"
),
this
.
$refs
.
ruleForm
.
resetFields
()},
submitForm
:
Object
(
c
.
a
)(
function
(
t
){
var
e
=
this
;
e
.
$refs
[
t
].
validate
(
function
(
t
){
t
&&
e
.
postSave
()})},
300
),
postSave
:
function
(){
var
t
=
this
,
e
=
{
categoryParentId
:
t
.
ruleForm
.
categoryParentId
||
"0"
,
categoryId
:
t
.
ruleForm
.
categoryId
,
categoryName
:
t
.
ruleForm
.
categoryName
};
Object
(
l
.
d
)(
"/haoban-manage3-operation-web/mateial-add-category"
,
e
).
then
(
function
(
e
){
var
r
=
e
.
data
;
1
==
r
.
errorCode
?(
u
.
a
.
showmsg
(
"操作成功"
,
"success"
),
t
.
$refs
.
ruleForm
.
resetFields
(),
t
.
$emit
(
"submitModule"
)):
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
editRow
:
function
(
t
){
i
()(
t
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
a
()(
t
)))}},
mounted
:
function
(){
i
()(
this
.
editRow
).
length
&&
(
this
.
ruleForm
=
JSON
.
parse
(
a
()(
this
.
editRow
)))}},
p
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
r
=
t
.
_self
.
_c
||
e
;
return
r
(
"el-dialog"
,{
attrs
:{
title
:
t
.
editRow
.
categoryId
?
"编辑分组"
:
"新增分组"
,
visible
:
t
.
dialogVisible
,
width
:
"485px"
,
"before-close"
:
t
.
handleClose
},
on
:{
"update:visible"
:
function
(
e
){
t
.
dialogVisible
=
e
}}},[
r
(
"div"
,{},[
r
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
t
.
ruleForm
,
rules
:
t
.
rules
,
"label-width"
:
"100px"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
"分组名称"
,
prop
:
"categoryName"
}},[
r
(
"limitInput"
,{
attrs
:{
inputWidth
:
400
,
inputValue
:
t
.
ruleForm
.
categoryName
,
holder
:
"请输入分组名称"
,
getByType
:
"word"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
e
){
t
.
$set
(
t
.
ruleForm
,
"categoryName"
,
e
)}}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
r
(
"el-button"
,{
on
:{
click
:
t
.
toCancel
}},[
t
.
_v
(
"取消"
)]),
t
.
_v
(
" "
),
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"ruleForm"
)}}},[
t
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
r
(
"VU/8"
)(
g
,
p
,
!
1
,
function
(
t
){
r
(
"F76s"
)},
"data-v-1c7ecfa2"
,
null
).
exports
,
h
=
{
props
:{},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
searchInput
:
""
,
currentCategoryId
:
"-1"
,
groupData
:[],
categoryParentId
:
""
,
addShow
:
!
1
,
editGroupRow
:{},
tableData
:[]}},
methods
:{
toInput
:
Object
(
c
.
a
)(
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
getTableList
()},
500
),
clearSearch
:
function
(){
this
.
currentPage
=
1
,
this
.
getTableList
()},
addGroup
:
function
(){
this
.
addShow
=!
0
,
this
.
categoryParentId
=
""
,
this
.
editGroupRow
=
{}},
closeGroup
:
function
(){
this
.
addShow
=!
1
,
this
.
editGroupRow
=
{}},
submitGroup
:
function
(){
this
.
addShow
=!
1
,
this
.
editGroupRow
=
{},
this
.
getGroupData
()},
addChildGroup
:
function
(
t
){
this
.
editGroupRow
=
{},
this
.
categoryParentId
=
t
.
categoryId
,
this
.
addShow
=!
0
},
editGroup
:
function
(
t
){
this
.
addShow
=!
0
,
this
.
categoryParentId
=
""
,
this
.
editGroupRow
=
t
},
delGroup
:
function
(
t
){
var
e
=
this
;
e
.
$confirm
(
"是否删除当前选中的分组?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
postDelData
(
t
)}).
catch
(
function
(){})},
postDelData
:
function
(
t
){
var
e
=
this
,
r
=
{
categoryId
:
t
.
categoryId
};
Object
(
l
.
a
)(
"/haoban-manage3-web/category-del"
,
r
).
then
(
function
(
t
){
var
r
=
t
.
data
;
if
(
1
==
r
.
errorCode
)
return
u
.
a
.
showmsg
(
"删除成功"
,
"success"
),
void
e
.
getGroupData
();
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
treeData
:
function
(
t
){
var
e
=
t
.
filter
(
function
(
e
){
var
r
=
t
.
filter
(
function
(
t
){
return
e
.
categoryId
==
t
.
categoryParentId
});
return
r
.
length
>
0
&&
(
e
.
children
=
r
),
e
});
return
console
.
log
(
"tree:"
,
e
),
e
},
getGroupData
:
function
(
t
){
var
e
=
this
,
r
=
{
wxEnterpriseId
:
e
.
wxEnterpriseId
};
Object
(
l
.
a
)(
"/haoban-manage3-web/category-list"
,
r
).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
d
.
a
.
errorMsg
(
r
):
e
.
groupData
=
e
.
treeData
(
r
.
result
)
||
[]}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{},
mounted
:
function
(){
this
.
$emit
(
"showTab"
,
3
),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
,
this
.
getData
()},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
groupDialog
:
f
}},
m
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
r
=
t
.
_self
.
_c
||
e
;
return
r
(
"div"
,{
staticClass
:
"daily-set-wrap "
},[
r
(
"div"
,{
staticClass
:
"daily-set-content border-box"
},[
r
(
"div"
,{
staticClass
:
"material-top"
},[
r
(
"el-input"
,{
staticStyle
:{
width
:
"394px"
},
attrs
:{
placeholder
:
"请输入素材名称"
,
clearable
:
""
},
on
:{
clear
:
t
.
clearSearch
},
nativeOn
:{
keyup
:
function
(
e
){
return
r
=
e
,
t
.
toInput
(
r
,
t
.
searchInput
);
var
r
}},
model
:{
value
:
t
.
searchInput
,
callback
:
function
(
e
){
t
.
searchInput
=
e
},
expression
:
"searchInput"
}},[
r
(
"i"
,{
staticClass
:
"el-input__icon el-icon-search"
,
attrs
:{
slot
:
"prefix"
},
slot
:
"prefix"
})])],
1
),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"material-body flex m-t-20"
},[
r
(
"div"
,{
staticClass
:
"material-left"
},[
r
(
"div"
,{
staticClass
:
"material-left-add text-center"
},[
r
(
"div"
,{
staticClass
:
"add-group font-14 color-909399"
,
on
:{
click
:
t
.
addGroup
}},[
r
(
"span"
,{
staticClass
:
"el-icon-plus"
}),
r
(
"span"
,{
staticClass
:
"p-l-5"
},[
t
.
_v
(
"新建分组"
)])])]),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"group-body"
},[
r
(
"div"
,{
class
:[
"no-group line-h-32 font-14 color-606266"
,
"-1"
==
t
.
currentCategoryId
?
"current-group"
:
""
]},[
t
.
_v
(
"未分组"
)]),
t
.
_v
(
" "
),
r
(
"ul"
,{
staticClass
:
"group-ul padding-lr-12"
},
t
.
_l
(
t
.
groupData
,
function
(
e
,
o
){
return
r
(
"li"
,{
key
:
o
+
"group"
,
staticClass
:
"group-cell"
},[
r
(
"div"
,[
r
(
"span"
,{
class
:[
e
.
expand
?
"el-icon-caret-bottom"
:
"el-icon-caret-right"
]}),
r
(
"span"
,{
class
:[
"font-14 color-606266"
,
t
.
currentCategoryId
==
e
.
categoryId
?
"current-group"
:
""
]},[
t
.
_v
(
t
.
_s
(
e
.
categoryName
))]),
r
(
"el-popover"
,{
attrs
:{
placement
:
"bottom"
,
width
:
"100"
,
trigger
:
"click"
}},[
r
(
"ul"
,[
r
(
"li"
,{
staticClass
:
"line-h-32 font-14 color-606266"
,
on
:{
click
:
function
(
r
){
t
.
addChildGroup
(
e
)}}},[
t
.
_v
(
"新增子分组"
)]),
t
.
_v
(
" "
),
r
(
"li"
,{
staticClass
:
"line-h-32 font-14 color-606266"
,
on
:{
click
:
function
(
r
){
t
.
editGroup
(
e
)}}},[
t
.
_v
(
"编辑"
)]),
t
.
_v
(
" "
),
e
.
children
.
length
?
t
.
_e
():
r
(
"li"
,{
staticClass
:
"line-h-32 font-14 color-606266"
,
on
:{
click
:
function
(
r
){
t
.
delGroup
(
e
)}}},[
t
.
_v
(
"删除"
)])]),
t
.
_v
(
" "
),
r
(
"span"
,{
staticClass
:
"iconfont icongengduo color-f0f2f5"
,
attrs
:{
slot
:
"reference"
},
slot
:
"reference"
})])],
1
)])}))])]),
t
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"material-right"
})])]),
t
.
_v
(
" "
),
t
.
addShow
?
r
(
"group-dialog"
,{
attrs
:{
categoryParentId
:
t
.
categoryParentId
,
editRow
:
t
.
editGroupRow
},
on
:{
closeGroup
:
t
.
closeGroup
,
submitGroup
:
t
.
submitGroup
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
v
=
r
(
"VU/8"
)(
h
,
m
,
!
1
,
function
(
t
){
r
(
"6AAP"
)},
"data-v-1ee09dda"
,
null
);
e
.
default
=
v
.
exports
}});
\ No newline at end of file
dist/static/js/manifest.
02784917425a1dbfd05b
.js
→
dist/static/js/manifest.
a17edc786c3974310806
.js
View file @
ad8d7b02
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
f
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
b
[
t
]
&&
u
.
push
(
b
[
t
][
0
]),
b
[
t
]
=
0
;
for
(
r
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
r
)
&&
(
e
[
r
]
=
f
[
r
]);
for
(
a
&&
a
(
c
,
f
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
b
=
{
76
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
b
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
b
.
exports
,
b
,
b
.
exports
,
d
),
b
.
l
=!
0
,
b
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
b
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
b
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
var
f
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"b34ffb148c94a0864421"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"95860c596ce8eeb79301"
,
3
:
"2a63ebede4a53ae4d5be"
,
4
:
"19d2794f24d3e9833c75"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"bf0bd72259e971cb5c5d"
,
7
:
"6d129ebb69dd65574768"
,
8
:
"5cbeb9fde8d49bf97a09"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"f64bf1b4c969dc8e4324"
,
11
:
"234de60fe9d347a9b246"
,
12
:
"39d6a9f43160a9b4f5bd"
,
13
:
"06a77c08775fb582d98b"
,
14
:
"0225e369d82f24077aba"
,
15
:
"592a2e6008db77975bcc"
,
16
:
"bc276325eab50b4b86c0"
,
17
:
"edf42ec3b001b6cfe65e"
,
18
:
"4b0922e27b6b34b18611"
,
19
:
"30252583b235f2c70040"
,
20
:
"ba2e2bd0823422a4de6c"
,
21
:
"7be09bf90aac55c073b3"
,
22
:
"a3681c6a337ad49aeb4b"
,
23
:
"e507c496e766217ec178"
,
24
:
"a89c78a7ed5ce6306ba7"
,
25
:
"d9ee9041561602fa561c"
,
26
:
"0e68f81c2d32fec5abdb"
,
27
:
"01b66b3d0ab23d2341c2"
,
28
:
"8606cc4adb654d067bac"
,
29
:
"485d7c81ce188c3fa687"
,
30
:
"6e3dad3ed142df770d0e"
,
31
:
"963d650c22609bb350cc"
,
32
:
"648e00249c751be0ef72"
,
33
:
"3b19f619921aacfda1e4"
,
34
:
"b57b41292517a536addb"
,
35
:
"8a132ad30fce01f4deb7"
,
36
:
"ae95aada03220eb5550d"
,
37
:
"5dc35c4db0da65b72ba3"
,
38
:
"67c2ba02c8cb8e2aeae7"
,
39
:
"cffc9df02e23624f15f7"
,
40
:
"f72c24c69c3d22cb365f"
,
41
:
"3e80f7c7164f36ab833d"
,
42
:
"9cfba776561a2683e1ce"
,
43
:
"491cbc97f03e6a9416fd"
,
44
:
"9a001dcb0b20412481a9"
,
45
:
"7d07ad63ee1aebc77c05"
,
46
:
"64a15dd24ae8e3144031"
,
47
:
"e158722e9154c479fd48"
,
48
:
"bf0f43e67bca163a8825"
,
49
:
"db237966421b9efea688"
,
50
:
"f22cbf7598ba1005cbcc"
,
51
:
"6a01d92850fef1ae9c8d"
,
52
:
"daeb4b3000f4e6f0622b"
,
53
:
"ed4f0a40a8c2ab4ef1b5"
,
54
:
"a63f3b2b05b73e8a3ed6"
,
55
:
"e08c75127132ad856135"
,
56
:
"958b7f1db9c52bb2abaf"
,
57
:
"b059e07220a79fb60d95"
,
58
:
"38bdda7d88dd6886fbed"
,
59
:
"ed1cfc8b4f8a46cebdfb"
,
60
:
"93a2ee002c3cd92e8e0e"
,
61
:
"c72abb8753a2004d6800"
,
62
:
"66e0ac1b58f6da721da0"
,
63
:
"8e1a0364cf1388ecfd3d"
,
64
:
"2e546d02be42fac0c64d"
,
65
:
"11f52cad03275c8aba4f"
,
66
:
"9fa3ca5124aa2b5a85ec"
,
67
:
"fe28b5cd6347bad40117"
,
68
:
"7c8716b3ed26ffda11fb"
,
69
:
"18f0e63b47a729fc63d0"
,
70
:
"b999d4bf8b805f03bd2b"
,
71
:
"d19b0a20ea22d410b91d"
,
72
:
"ae171a4233296a9ac4b4"
,
73
:
"0c069b06ad167faadfc6"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
b
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
b
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
f
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
f
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
b
[
t
]
&&
u
.
push
(
b
[
t
][
0
]),
b
[
t
]
=
0
;
for
(
r
in
f
)
Object
.
prototype
.
hasOwnProperty
.
call
(
f
,
r
)
&&
(
e
[
r
]
=
f
[
r
]);
for
(
a
&&
a
(
c
,
f
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
b
=
{
76
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
b
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
b
.
exports
,
b
,
b
.
exports
,
d
),
b
.
l
=!
0
,
b
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
b
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
b
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
var
f
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"b34ffb148c94a0864421"
,
1
:
"06c4e42e62c1f75191f0"
,
2
:
"95860c596ce8eeb79301"
,
3
:
"2a63ebede4a53ae4d5be"
,
4
:
"19d2794f24d3e9833c75"
,
5
:
"bf21cfa1832c94ed8d4c"
,
6
:
"bf0bd72259e971cb5c5d"
,
7
:
"6d129ebb69dd65574768"
,
8
:
"5cbeb9fde8d49bf97a09"
,
9
:
"f7c875c7689ffc18fc21"
,
10
:
"f64bf1b4c969dc8e4324"
,
11
:
"234de60fe9d347a9b246"
,
12
:
"39d6a9f43160a9b4f5bd"
,
13
:
"06a77c08775fb582d98b"
,
14
:
"0225e369d82f24077aba"
,
15
:
"592a2e6008db77975bcc"
,
16
:
"bc276325eab50b4b86c0"
,
17
:
"edf42ec3b001b6cfe65e"
,
18
:
"4b0922e27b6b34b18611"
,
19
:
"30252583b235f2c70040"
,
20
:
"ba2e2bd0823422a4de6c"
,
21
:
"1913d2f546983f94b276"
,
22
:
"a3681c6a337ad49aeb4b"
,
23
:
"e507c496e766217ec178"
,
24
:
"a89c78a7ed5ce6306ba7"
,
25
:
"d9ee9041561602fa561c"
,
26
:
"0e68f81c2d32fec5abdb"
,
27
:
"01b66b3d0ab23d2341c2"
,
28
:
"8606cc4adb654d067bac"
,
29
:
"485d7c81ce188c3fa687"
,
30
:
"6e3dad3ed142df770d0e"
,
31
:
"963d650c22609bb350cc"
,
32
:
"648e00249c751be0ef72"
,
33
:
"3b19f619921aacfda1e4"
,
34
:
"b57b41292517a536addb"
,
35
:
"8a132ad30fce01f4deb7"
,
36
:
"ae95aada03220eb5550d"
,
37
:
"5dc35c4db0da65b72ba3"
,
38
:
"67c2ba02c8cb8e2aeae7"
,
39
:
"cffc9df02e23624f15f7"
,
40
:
"f72c24c69c3d22cb365f"
,
41
:
"3e80f7c7164f36ab833d"
,
42
:
"9cfba776561a2683e1ce"
,
43
:
"491cbc97f03e6a9416fd"
,
44
:
"9a001dcb0b20412481a9"
,
45
:
"7d07ad63ee1aebc77c05"
,
46
:
"64a15dd24ae8e3144031"
,
47
:
"e158722e9154c479fd48"
,
48
:
"bf0f43e67bca163a8825"
,
49
:
"db237966421b9efea688"
,
50
:
"f22cbf7598ba1005cbcc"
,
51
:
"6a01d92850fef1ae9c8d"
,
52
:
"daeb4b3000f4e6f0622b"
,
53
:
"ed4f0a40a8c2ab4ef1b5"
,
54
:
"a63f3b2b05b73e8a3ed6"
,
55
:
"e08c75127132ad856135"
,
56
:
"958b7f1db9c52bb2abaf"
,
57
:
"b059e07220a79fb60d95"
,
58
:
"38bdda7d88dd6886fbed"
,
59
:
"ed1cfc8b4f8a46cebdfb"
,
60
:
"93a2ee002c3cd92e8e0e"
,
61
:
"c72abb8753a2004d6800"
,
62
:
"66e0ac1b58f6da721da0"
,
63
:
"8e1a0364cf1388ecfd3d"
,
64
:
"2e546d02be42fac0c64d"
,
65
:
"11f52cad03275c8aba4f"
,
66
:
"9fa3ca5124aa2b5a85ec"
,
67
:
"fe28b5cd6347bad40117"
,
68
:
"7c8716b3ed26ffda11fb"
,
69
:
"18f0e63b47a729fc63d0"
,
70
:
"b999d4bf8b805f03bd2b"
,
71
:
"d19b0a20ea22d410b91d"
,
72
:
"ae171a4233296a9ac4b4"
,
73
:
"0c069b06ad167faadfc6"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
b
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
b
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
f
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/set/group-dialog.vue
View file @
ad8d7b02
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-05-12 11:
27:03
* @LastEditTime: 2020-05-12 11:
32:42
-->
-->
<!--
<!--
<group-dialog @closeGroup="closeGroup" @submitGroup="submitGroup"></group-dialog>
<group-dialog @closeGroup="closeGroup" @submitGroup="submitGroup"></group-dialog>
...
@@ -89,7 +89,7 @@ export default {
...
@@ -89,7 +89,7 @@ export default {
categoryId
:
that
.
ruleForm
.
categoryId
,
categoryId
:
that
.
ruleForm
.
categoryId
,
categoryName
:
that
.
ruleForm
.
categoryName
categoryName
:
that
.
ruleForm
.
categoryName
};
};
postRequest
(
'/haoban-manage3-
operation-
web/mateial-add-category'
,
data
)
postRequest
(
'/haoban-manage3-web/mateial-add-category'
,
data
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
...
...
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