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
865102e6
Commit
865102e6
authored
Dec 12, 2022
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 对接部分能力推荐接口
parent
609aa0c2
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
155 additions
and
407 deletions
+155
-407
src/components/api-type/grpc.vue
src/components/api-type/grpc.vue
+1
-1
src/components/api-type/mq.vue
src/components/api-type/mq.vue
+1
-1
src/components/api-type/socket.vue
src/components/api-type/socket.vue
+1
-1
src/components/api-type/ui.vue
src/components/api-type/ui.vue
+1
-1
src/components/api-type/web-sdk.vue
src/components/api-type/web-sdk.vue
+1
-1
src/components/api-type/websocket.vue
src/components/api-type/websocket.vue
+1
-1
src/msg-sdk/lib/msg.vue
src/msg-sdk/lib/msg.vue
+1
-1
src/page/main/config/dict/index.vue
src/page/main/config/dict/index.vue
+2
-2
src/page/main/develop/menu/index.vue
src/page/main/develop/menu/index.vue
+1
-1
src/page/main/home-config/banner/index.vue
src/page/main/home-config/banner/index.vue
+1
-2
src/page/main/home-config/recommend/edit/index.vue
src/page/main/home-config/recommend/edit/index.vue
+64
-278
src/page/main/home-config/recommend/edit/type-form.vue
src/page/main/home-config/recommend/edit/type-form.vue
+10
-23
src/page/main/home-config/recommend/index.vue
src/page/main/home-config/recommend/index.vue
+68
-92
src/page/main/system/role/index.vue
src/page/main/system/role/index.vue
+2
-2
No files found.
src/components/api-type/grpc.vue
View file @
865102e6
...
...
@@ -29,7 +29,7 @@
<!-- 测试结果弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box result_box"
class=
"dialog_box result_box"
title=
"提示"
v-model=
"showDialog"
width=
"400px"
...
...
src/components/api-type/mq.vue
View file @
865102e6
...
...
@@ -71,7 +71,7 @@
<!-- 测试结果弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box result_box"
class=
"dialog_box result_box"
title=
"提示"
v-model=
"showDialog"
width=
"400px"
...
...
src/components/api-type/socket.vue
View file @
865102e6
...
...
@@ -28,7 +28,7 @@
<!-- 测试结果弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box result_box"
class=
"dialog_box result_box"
title=
"提示"
v-model=
"showDialog"
width=
"400px"
...
...
src/components/api-type/ui.vue
View file @
865102e6
...
...
@@ -75,7 +75,7 @@
<!-- 测试结果弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box result_box"
class=
"dialog_box result_box"
title=
"提示"
v-model=
"showDialog"
width=
"400px"
...
...
src/components/api-type/web-sdk.vue
View file @
865102e6
...
...
@@ -41,7 +41,7 @@
<!-- 测试结果弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box result_box"
class=
"dialog_box result_box"
title=
"提示"
v-model=
"showDialog"
width=
"400px"
...
...
src/components/api-type/websocket.vue
View file @
865102e6
...
...
@@ -28,7 +28,7 @@
<!-- 测试结果弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box result_box"
class=
"dialog_box result_box"
title=
"提示"
v-model=
"showDialog"
width=
"400px"
...
...
src/msg-sdk/lib/msg.vue
View file @
865102e6
<
template
>
<div
class=
"msg-container-bdx12"
@
click
.
stop
>
<el-dialog
title=
"详情"
v-model=
"dialogVisible"
width=
"640px"
c
ustom-c
lass=
"dialog_box1"
>
<el-dialog
title=
"详情"
v-model=
"dialogVisible"
width=
"640px"
class=
"dialog_box1"
>
<div>
<detail-table2
:list=
"detailData"
>
<template
v-slot:action=
"
{data}">
...
...
src/page/main/config/dict/index.vue
View file @
865102e6
...
...
@@ -83,7 +83,7 @@
</div>
<!-- 新建/编辑弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box"
class=
"dialog_box"
:title=
" addType == 1 ? '新建' : '编辑'"
v-model=
"addDialog"
width=
"758px"
...
...
@@ -148,7 +148,7 @@
</el-dialog>
<!-- 删除弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box"
class=
"dialog_box"
title=
"提示"
v-model=
"dialogDelete"
width=
"400px"
...
...
src/page/main/develop/menu/index.vue
View file @
865102e6
...
...
@@ -93,7 +93,7 @@
</div>
<!-- 删除弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box"
class=
"dialog_box"
title=
"提示"
v-model=
"delDialog"
width=
"400px"
...
...
src/page/main/home-config/banner/index.vue
View file @
865102e6
...
...
@@ -39,7 +39,7 @@
</div>
<!-- 删除弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box"
class=
"dialog_box"
title=
"提示"
v-model=
"dialogDelete"
width=
"400px"
...
...
@@ -202,7 +202,6 @@ const moveRow = (row,type) => {
sort
:
row
.
sort
}
]
console
.
log
(
params
)
axios
.
post
(
`/apaas/system/v5/banner/sort`
,[...
params
])
.
then
((
res
)
=>
{
...
...
src/page/main/home-config/recommend/edit/index.vue
View file @
865102e6
This diff is collapsed.
Click to expand it.
src/page/main/home-config/recommend/edit/type-form.vue
View file @
865102e6
...
...
@@ -7,12 +7,12 @@
class=
"form"
>
<el-form-item
label=
"能力类型"
prop=
"business_type_id"
>
<el-select
v-model=
"formData.business_type_id"
placeholder=
"请选择能力类型"
style=
"width: 100%"
@
change=
"changeType"
>
<el-select
v-model=
"formData.business_type_id"
placeholder=
"请选择能力类型"
style=
"width: 100%"
@
change=
"changeType"
:disabled=
"route.query.id"
>
<el-option
v-for=
"item in
Type
List"
v-for=
"item in
props.business
List"
:key=
"item.dict_id"
:label=
"item.name"
:value=
"item.
dict_
id"
:value=
"item.id"
/>
</el-select>
</el-form-item>
...
...
@@ -30,6 +30,12 @@ import { useRoute, useRouter } from 'vue-router'
const
router
=
useRouter
()
const
route
=
useRoute
()
const
form
=
ref
(
null
)
const
props
=
defineProps
({
businessList
:
{
type
:
Array
,
default
:
[]
}
})
const
state
=
reactive
({
formData
:
{
business_type_id
:
""
,
...
...
@@ -43,7 +49,6 @@ const state = reactive({
{
required
:
true
,
message
:
'
请上传图标
'
,
trigger
:
'
change
'
},
],
},
TypeList
:
[],
})
const
emit
=
defineEmits
([
'
action
'
,
'
changeType
'
])
...
...
@@ -73,31 +78,13 @@ const setForm = (data) => {
Object
.
assign
(
state
.
formData
,
data
);
}
const
getTypeList
=
()
=>
{
axios
.
get
(
"
/apaas/system/v5/dictionary/alllist
"
)
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
res
.
data
.
data
||
[]
data
.
forEach
(
e
=>
{
if
(
e
.
classify_id
==
"
eb9c7d70-c123-42b7-8e61-dde1b022b669
"
)
{
state
.
TypeList
=
e
.
list
||
[];
}
})
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
}
})
}
onBeforeMount
(()
=>
{
getTypeList
()
})
const
{
formData
,
formRules
,
TypeList
,
}
=
toRefs
(
state
)
defineExpose
({
submitForm
,
clearForm
,
setForm
})
...
...
src/page/main/home-config/recommend/index.vue
View file @
865102e6
...
...
@@ -24,8 +24,8 @@
:isIndex=
"true"
:stripe=
"true"
>
<
template
v-slot:state=
"{ row }"
>
<bg-switch
@
click=
"changeUseRow(row)"
:labels=
"['否','是']"
:values=
"[0,1]"
v-model=
"row.state"
></bg-switch>
<
template
v-slot:
recommend_
state=
"{ row }"
>
<bg-switch
@
click=
"changeUseRow(row)"
:labels=
"['否','是']"
:values=
"[0,1]"
v-model=
"row.
recommend_
state"
></bg-switch>
</
template
>
<
template
v-slot:action=
"{ row }"
>
<bg-table-btns
:operations=
"getOperations(row)"
/>
...
...
@@ -36,7 +36,7 @@
</div>
<!-- 删除弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box"
class=
"dialog_box"
title=
"提示"
v-model=
"dialogDelete"
width=
"400px"
...
...
@@ -69,7 +69,7 @@ const state = reactive({
headers
:
[
{
label
:
"
能力类型
"
,
prop
:
"
ability_typ
e
"
,
prop
:
"
business_type_nam
e
"
,
},
{
label
:
"
创建人
"
,
...
...
@@ -77,11 +77,11 @@ const state = reactive({
},
{
label
:
"
更新时间
"
,
prop
:
"
update
_time
"
,
prop
:
"
created
_time
"
,
},
{
label
:
"
是否启用
"
,
prop
:
"
state
"
,
prop
:
"
recommend_
state
"
,
},
{
label
:
"
操作
"
,
...
...
@@ -96,48 +96,11 @@ const state = reactive({
})
const
getRoleRows
=
()
=>
{
state
.
tableRows
=
[
{
id
:
1
,
ability_type
:
"
数据服务
"
,
created_user
:
"
admin
"
,
update_time
:
"
2022-11-29 14:30:34
"
,
state
:
1
,
sort
:
1
,
},
{
id
:
2
,
ability_type
:
"
视频服务
"
,
created_user
:
"
admin
"
,
update_time
:
"
2022-11-29 14:30:34
"
,
state
:
0
,
sort
:
2
,
},
{
id
:
3
,
ability_type
:
"
综合服务
"
,
created_user
:
"
admin
"
,
update_time
:
"
2022-11-29 14:30:34
"
,
state
:
1
,
sort
:
3
,
},
{
id
:
4
,
ability_type
:
"
融合服务
"
,
created_user
:
"
admin
"
,
update_time
:
"
2022-11-29 14:30:34
"
,
state
:
0
,
sort
:
4
,
},
{
id
:
5
,
ability_type
:
"
时空服务
"
,
created_user
:
"
admin
"
,
update_time
:
"
2022-11-29 14:30:34
"
,
state
:
1
,
sort
:
5
,
},
]
axios
.
get
(
`/apaas/system/v5/recommend/ability/classify/list`
)
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
state
.
tableRows
=
res
.
data
.
data
||
[]
if
(
state
.
tableRows
.
length
>
0
)
{
state
.
tableRows
.
forEach
(
e
=>
{
e
.
canMoveUp
=
true
...
...
@@ -146,23 +109,10 @@ const getRoleRows = () => {
state
.
tableRows
[
0
].
canMoveUp
=
false
state
.
tableRows
[
state
.
tableRows
.
length
-
1
].
canMoveDown
=
false
}
// axios
// .get(`/apaas/service/v5/ability/query/list`,)
// .then((res) => {
// if (res.data.code == 200) {
// state.tableRows = res.data.data || []
// if (state.tableRows.length > 0) {
// state.tableRows.forEach(e => {
// e.canMoveUp = true
// e.canMoveDown = true
// })
// state.tableRows[0].canMoveUp = false
// state.tableRows[state.tableRows.length - 1].canMoveDown = false
// }
// }else {
// ElMessage.error(res.data.data)
// }
// })
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
}
})
}
// 获取列表
const
getOperations
=
(
row
)
=>
{
...
...
@@ -170,12 +120,12 @@ const getOperations = (row) => {
{
name
:
"
编辑
"
,
callback
:
()
=>
edit_row
(
row
),
disabled
:
row
.
state
==
1
,
disabled
:
row
.
recommend_
state
==
1
,
},
{
name
:
"
删除
"
,
callback
:
()
=>
delete_row
(
row
),
disabled
:
row
.
state
==
1
,
disabled
:
row
.
recommend_
state
==
1
,
},
{
name
:
"
上移
"
,
...
...
@@ -197,17 +147,34 @@ const addBanner = () => {
const
edit_row
=
(
row
)
=>
{
console
.
log
(
"
去编辑
"
)
router
.
push
({
path
:
"
/home-config/recommend/edit
"
,
query
:
{
id
:
row
.
id
}
})
}
const
delete_row
=
(
row
)
=>
{
state
.
actionRow
=
row
state
.
dialogDelete
=
true
console
.
log
(
"
删除
"
)
}
const
deleteData
=
()
=>
{
console
.
log
(
"
确定删除
"
,
state
.
actionRow
)
let
params
=
{
id
:
state
.
actionRow
.
id
}
axios
.
delete
(
`/apaas/system/v5/recommend/ability/delete`
,{
data
:
params
})
.
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
ElMessage
.
success
(
res
.
data
.
msg
)
state
.
dialogDelete
=
false
getRoleRows
()
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
}
})
}
const
moveRow
=
(
row
,
type
)
=>
{
...
...
@@ -233,24 +200,33 @@ const moveRow = (row,type) => {
sort
:
row
.
sort
}
]
console
.
log
(
params
)
// axios
// .put(``,[...params])
// .then((res) => {
// if (res.data.code == 200) {
// ElMessage.success(res.data.msg)
// getRoleRows()
// }else {
// ElMessage.error(res.data.data)
// }
// })
// .catch((err) => {
// console.log(err)
// })
axios
.
post
(
`/apaas/system/v5/recommend/ability/sort`
,[...
params
])
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
ElMessage
.
success
(
res
.
data
.
msg
)
getRoleRows
()
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
)
})
}
const
changeUseRow
=
(
row
)
=>
{
console
.
log
(
row
)
axios
.
get
(
`/apaas/system/v5/recommend/ability/state/
${
row
.
id
}
/
${
row
.
recommend_state
}
`
)
.
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
ElMessage
.
success
(
res
.
data
.
msg
)
getRoleRows
()
}
else
{
ElMessage
.
error
(
res
.
data
.
data
)
row
.
recommend_state
=
row
.
recommend_state
==
0
?
1
:
0
}
})
}
onBeforeMount
(()
=>
{
...
...
src/page/main/system/role/index.vue
View file @
865102e6
...
...
@@ -80,7 +80,7 @@
</div>
<!-- 删除弹窗 -->
<el-dialog
c
ustom-c
lass=
"dialog_box"
class=
"dialog_box"
title=
"提示"
v-model=
"delDialog"
width=
"400px"
...
...
@@ -100,7 +100,7 @@
</el-dialog>
<!-- 分配用户 -->
<el-dialog
c
ustom-c
lass=
"distribute_dialog"
class=
"distribute_dialog"
title=
"分配用户"
v-model=
"distributeDialog"
width=
"1062px"
...
...
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