Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
2436494d
Commit
2436494d
authored
Dec 14, 2022
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:字典配置、推荐管理
parent
28eb0704
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
93 additions
and
52 deletions
+93
-52
src/App.vue
src/App.vue
+2
-2
src/bg-ui/bg-table-btns.vue
src/bg-ui/bg-table-btns.vue
+4
-4
src/main.js
src/main.js
+1
-1
src/page/main/config/dict/index.vue
src/page/main/config/dict/index.vue
+48
-28
src/page/main/home-config/recommend/edit/index.vue
src/page/main/home-config/recommend/edit/index.vue
+38
-17
No files found.
src/App.vue
View file @
2436494d
...
...
@@ -19,7 +19,7 @@
<page404></page404>
</div>
</div>
<
msg
v-model=
"readFlag"
></msg
>
<
!--
<msg
v-model=
"readFlag"
></msg>
--
>
</el-config-provider>
</div>
</
template
>
...
...
@@ -93,7 +93,7 @@ export default {
}
},
created
(){
this
.
initMsg
()
//
this.initMsg()
},
mounted
()
{
},
...
...
src/bg-ui/bg-table-btns.vue
View file @
2436494d
...
...
@@ -11,7 +11,7 @@
</bg-table-btn>
<a
class=
"bg-table-btn"
@
mouseenter=
"showM
O
reBtns"
@
mouseenter=
"showM
o
reBtns"
@
mouseleave=
"hideMoreBtns"
v-if=
"otherOperations.length > 0"
>
...
...
@@ -19,7 +19,7 @@
<bg-icon
style=
"font-size: 12px; color: #2b4695;"
icon=
"#bg-ic-s-more"
/>
<bg-table-btns-more
:operations=
"otherOperations"
@
mouseenter=
"showM
O
reBtns"
@
mouseenter=
"showM
o
reBtns"
@
mouseleave=
"hideMoreBtns"
v-if=
"showMore"
/>
...
...
@@ -50,7 +50,7 @@ export default {
return
this
.
operations
.
slice
(
0
,
this
.
operations
.
length
>
3
?
2
:
3
);
},
otherOperations
()
{
return
this
.
operations
.
slice
(
2
,
this
.
operations
.
length
);
return
this
.
operations
.
slice
(
this
.
operations
.
length
>
3
?
2
:
3
,
this
.
operations
.
length
);
},
},
methods
:
{
...
...
@@ -78,7 +78,7 @@ export default {
return
name
;
}
},
showM
O
reBtns
()
{
showM
o
reBtns
()
{
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
);
this
.
showMore
=
true
;
...
...
src/main.js
View file @
2436494d
...
...
@@ -46,7 +46,7 @@ function getMsgAppid() {
})
}
getMsgAppid
()
//
getMsgAppid()
for
(
const
[
key
,
component
]
of
Object
.
entries
(
ElementPlusIconsVue
))
{
createVue
.
component
(
key
,
component
)
...
...
src/page/main/config/dict/index.vue
View file @
2436494d
...
...
@@ -22,7 +22,7 @@
<div
class=
"flex_right"
>
<div
class=
"main_container"
>
<bg-filter-group
@
search=
"changeSearch"
v-model=
"filter.search"
placeholder=
"请输入关键字"
>
<template
v-slot:left_action
>
<template
v-slot:left_action
v-if=
"nodeClassifyId != '263758a4-0349-4d49-a816-e8ff8d33a8bb'"
>
<div
class=
"apaas_button"
>
<el-button
class=
"register_btn"
type=
"primary"
@
click=
"register"
>
<bg-icon
style=
"font-size: 12px; color: #fff; margin-right: 8px"
icon=
"#bg-ic-add"
></bg-icon>
...
...
@@ -317,6 +317,25 @@ const filterClear = () => {
}
// 重置筛选项
const
getOperations
=
(
row
)
=>
{
if
(
state
.
nodeClassifyId
==
'
263758a4-0349-4d49-a816-e8ff8d33a8bb
'
)
{
return
[
{
name
:
"
编辑
"
,
callback
:
()
=>
edit_row
(
row
),
disabled
:
row
.
state
==
1
,
},
{
name
:
"
上移
"
,
callback
:
()
=>
moveRow
(
row
,
1
),
disabled
:
!
row
.
canMoveUp
,
},
{
name
:
"
下移
"
,
callback
:
()
=>
moveRow
(
row
,
2
),
disabled
:
!
row
.
canMoveDown
,
},
]
}
else
{
return
[
{
name
:
"
编辑
"
,
...
...
@@ -339,6 +358,7 @@ const getOperations = (row) => {
disabled
:
!
row
.
canMoveDown
,
},
];
}
}
// 表格操作按钮
const
getTableRows
=
()
=>
{
...
...
src/page/main/home-config/recommend/edit/index.vue
View file @
2436494d
...
...
@@ -177,23 +177,43 @@ const state = reactive({
})
const
getDetail
=
(
id
)
=>
{
// axios
// .get(`/apaas/system/v5/banner/${id}`)
// .then(res => {
// if (res.data.code == 200) {
// const data = res.data.data
// typeFormRef.value.setForm({
// business_type_id: data.business_type_id,
// logo: data.logo ? [{url: data.logo}] : [],
// })
// state.formData.state = data.state
// }else {
// ElMessage.error(res.data.data)
// }
// })
// .catch(err => {
// console.log(err)
// })
axios
.
get
(
`/apaas/system/v5/recommend/ability/detail/
${
id
}
`
)
.
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
const
data
=
res
.
data
.
data
console
.
log
(
data
)
typeFormRef
.
value
.
setForm
({
business_type_id
:
data
.
business_type_id
,
logo
:
data
.
logo
?
[{
url
:
data
.
logo
}]
:
[],
})
state
.
selectArr
=
[]
state
.
selectArrNew
=
[]
state
.
formData
.
state
=
data
.
state
state
.
formData
.
business_type_id
=
data
.
business_type_id
state
.
selectArrNew
=
data
.
ability_list
||
[]
state
.
selectArrNew
.
forEach
((
e
,
i
)
=>
{
e
.
canDown
=
true
e
.
canUp
=
true
if
(
i
==
0
)
{
e
.
canUp
=
false
}
if
(
i
==
state
.
selectArrNew
.
length
-
1
)
{
e
.
canDown
=
false
}
})
state
.
selectArr
.
push
(...
state
.
selectArrNew
)
for
(
var
i
=
0
;
i
<
9
-
state
.
selectArrNew
.
length
;
i
++
)
{
state
.
selectArr
.
push
(
""
)
}
console
.
log
(
state
.
selectArr
)
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
}
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
}
const
getOrgList
=
()
=>
{
...
...
@@ -378,6 +398,7 @@ const submitFormData = (data) => {
id
:
+
route
.
query
.
id
,
abilitys
:
abilitys
}
delete
params
.
business_type_id
params
.
logo
=
params
.
logo
&&
params
.
logo
.
length
>
0
?
params
.
logo
[
0
].
url
:
''
console
.
log
(
params
)
axios
...
...
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