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
629149c9
Commit
629149c9
authored
Feb 28, 2023
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改能力封面图片取值,删除部分console
parent
a8ebd64a
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
2 additions
and
38 deletions
+2
-38
src/App.vue
src/App.vue
+1
-4
src/bg-ui/bg-code-editor.vue
src/bg-ui/bg-code-editor.vue
+0
-1
src/bg-ui/bg-detail-table.vue
src/bg-ui/bg-detail-table.vue
+0
-2
src/bg-ui/bg-table-btns2.vue
src/bg-ui/bg-table-btns2.vue
+0
-3
src/bg-ui/bg-upload-image.vue
src/bg-ui/bg-upload-image.vue
+0
-2
src/components/ability-card.vue
src/components/ability-card.vue
+1
-1
src/components/bg-menu.vue
src/components/bg-menu.vue
+0
-2
src/main.js
src/main.js
+0
-3
src/msg-sdk/index.js
src/msg-sdk/index.js
+0
-1
src/msg-sdk/lib/msg.vue
src/msg-sdk/lib/msg.vue
+0
-4
src/page/main/home-config/banner/edit/banner-form.vue
src/page/main/home-config/banner/edit/banner-form.vue
+0
-1
src/page/main/system/organization/org-detail/index.vue
src/page/main/system/organization/org-detail/index.vue
+0
-1
src/page/main/system/organization/tree.vue
src/page/main/system/organization/tree.vue
+0
-1
src/page/main/system/role/index.vue
src/page/main/system/role/index.vue
+0
-3
src/router/function.js
src/router/function.js
+0
-4
src/router/index.js
src/router/index.js
+0
-4
vite.config.js
vite.config.js
+0
-1
No files found.
src/App.vue
View file @
629149c9
...
...
@@ -62,9 +62,6 @@ export default {
},
nowParent
(){
if
(
this
.
pageShow
&&
this
.
$store
.
state
.
userInfo
){
// console.log(2222222)
// console.log(this.navMenu)
// console.log(this.rowPath)
return
this
.
rowPath
?
this
.
navMenu
[
this
.
rowPath
.
slice
(
1
,
2
)]:
''
}
else
{
...
...
@@ -140,7 +137,7 @@ export default {
return
pathArr
.
includes
(
this
.
$route
.
path
)
},
ada
(){
console
.
log
(
12312
);
}
}
}
...
...
src/bg-ui/bg-code-editor.vue
View file @
629149c9
...
...
@@ -85,7 +85,6 @@ const codeChange = () => {
onMounted
(()
=>
{
let
obj
=
""
;
// console.log(typeof JSON.parse(this.datas));
try
{
if
(
typeof
JSON
.
parse
(
props
.
modelValue
)
==
"
object
"
)
{
obj
=
JSON
.
stringify
(
JSON
.
parse
(
props
.
modelValue
),
null
,
"
\t
"
);
...
...
src/bg-ui/bg-detail-table.vue
View file @
629149c9
...
...
@@ -43,7 +43,6 @@
<
script
setup
>
import
{
reactive
,
ref
,
onBeforeMount
,
toRefs
,
watch
}
from
"
vue
"
;
import
helper
from
"
./utils/index.js
"
;
console
.
log
(
helper
);
const
props
=
defineProps
({
data
:
{
type
:
Array
,
...
...
@@ -82,7 +81,6 @@ watch(
const
down_file
=
(
url
)
=>
{
if
(
url
)
{
console
.
log
(
url
);
const
a
=
document
.
createElement
(
"
a
"
);
// 创建a标签
a
.
setAttribute
(
"
download
"
,
""
);
// download属性
a
.
setAttribute
(
"
href
"
,
url
);
// href链接
...
...
src/bg-ui/bg-table-btns2.vue
View file @
629149c9
...
...
@@ -65,9 +65,6 @@ const calcTabs = () => {
if
(
tabSlots
)
{
tabSlots
.
forEach
((
e
,
idx
)
=>
{
if
(
idx
+
2
>
props
.
limit
&&
tabSlots
.
length
>
props
.
limit
&&
e
.
props
)
{
// console.log(e);
// console.log(e.props);
state
.
lastChildren
.
push
(
e
.
props
);
}
});
...
...
src/bg-ui/bg-upload-image.vue
View file @
629149c9
...
...
@@ -213,8 +213,6 @@ const updateFileList = (fileList) => {
state
.
fileList
=
fileList
;
console
.
log
(
values
);
emit
(
"
update:modelValue
"
,
values
);
emit
(
"
change
"
,
values
);
};
...
...
src/components/ability-card.vue
View file @
629149c9
...
...
@@ -12,7 +12,7 @@
v-model=
"props.item.checked"
@
change=
"change_check"
></el-checkbox>
<div
class=
"logo"
>
<img
v-if=
"props.item.ability_logo"
:src=
"
props.item.ability_logo
"
alt=
""
/>
<img
v-if=
"props.item.ability_logo"
:src=
"
JSON.parse(props.item.ability_logo)[0].url
"
alt=
""
/>
<img
v-else
src=
"../assets/imgs/img_cover_ability.png"
alt=
""
/>
</div>
<div
class=
"info"
>
...
...
src/components/bg-menu.vue
View file @
629149c9
...
...
@@ -234,7 +234,6 @@ export default {
},
created
()
{
console
.
log
(
this
.
userInfo
);
this
.
getLogo
()
if
(
this
.
userInfo
)
{
// this.getUserDetail(this.userInfo.user_id)
...
...
@@ -243,7 +242,6 @@ export default {
}
},
mounted
()
{
console
.
log
(
this
.
currentMenuIndex
);
this
.
$nextTick
(
this
.
scrollAction
);
window
.
addEventListener
(
"
scroll
"
,
this
.
scrollAction
,
true
);
...
...
src/main.js
View file @
629149c9
...
...
@@ -79,7 +79,6 @@ function getMenuObj(menu,parentRowPath,menuObj){
Promise
.
all
([
getUser
(),
getMenu
(
'
dadb2d3f-e263-48d1-9389-42acb9ea49f8
'
)]).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
[
0
].
data
.
code
==
200
&&
res
[
1
].
data
.
code
==
200
)
{
//已登录则记录菜单和用户信息
let
data
=
res
[
1
].
data
.
data
&&
res
[
1
].
data
.
data
[
0
].
children
||
[]
...
...
@@ -88,14 +87,12 @@ Promise.all([getUser(),getMenu('dadb2d3f-e263-48d1-9389-42acb9ea49f8')]).then(re
// if (res[0].data.data.userType == 1) {//超管
store
.
commit
(
'
setMenu
'
,
data
)
menu
.
menuToRouter
(
data
)
console
.
log
(
menu
);
store
.
commit
(
'
setRoute
'
,
data
)
//存储菜单对象信息
let
menuObj
=
{}
getMenuObj
(
data
,
''
,
menuObj
)
store
.
commit
(
'
setMenuObj
'
,
menuObj
)
console
.
log
(
menuObj
);
// }
}
...
...
src/msg-sdk/index.js
View file @
629149c9
...
...
@@ -68,7 +68,6 @@ const transitionOptions = (_options, options) => {
}
const
install
=
(
Vue
,
options
=
{})
=>
{
console
.
log
(
"
执行以下
"
)
init
(
options
);
if
(
Vue
.
prototype
)
{
Vue
.
prototype
.
$trace
=
{
...
methods
,
option
};
...
...
src/msg-sdk/lib/msg.vue
View file @
629149c9
...
...
@@ -86,7 +86,6 @@ import detailTable2 from "./detail-table2.vue";
import
MarkdownIt
from
"
markdown-it
"
;
import
axios
from
"
axios
"
;
import
{
h
}
from
'
vue
'
console
.
log
(
h
);
var
md
=
new
MarkdownIt
();
export
default
{
// model: {
...
...
@@ -152,7 +151,6 @@ export default {
},
watch
:
{
modelValue
(
n
,
o
){
console
.
log
(
n
)
if
(
n
==
true
){
this
.
getUnreadNum
();
this
.
changeRead
(
0
)
...
...
@@ -226,8 +224,6 @@ export default {
getDetail
(
id
)
{
this
.
dialogVisible
=
true
;
//刷新未读数量
console
.
log
(
id
);
axios
.
get
(
`
${
this
.
$trace
.
option
.
requestUrl
}
/msg/api/my/msg/detail`
,
{
params
:
{
...
...
src/page/main/home-config/banner/edit/banner-form.vue
View file @
629149c9
...
...
@@ -56,7 +56,6 @@ const emit = defineEmits(["action"]);
const
submitForm
=
async
()
=>
{
if
(
!
form
)
return
;
console
.
log
(
form
.
value
);
await
form
.
value
.
validate
((
valid
,
fields
)
=>
{
if
(
valid
)
{
emit
(
"
action
"
,
state
.
formData
);
...
...
src/page/main/system/organization/org-detail/index.vue
View file @
629149c9
...
...
@@ -166,7 +166,6 @@ const getDetail = () => {
};
const
getSystemInfo
=
()
=>
{
console
.
log
(
11111111
);
const
params
=
{
...
filter
,
organization_id
:
route
.
query
.
id
};
axios
.
get
(
`/apaas/system/v5/org/business/msg`
,
{
params
}).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
...
...
src/page/main/system/organization/tree.vue
View file @
629149c9
...
...
@@ -248,7 +248,6 @@ const showAction = (e, data, node) => {
height
=
parseInt
(
height
);
//判断弹窗位置是否超过屏幕,超过则吸底展示
if
(
height
+
rect
.
y
-
17
>
allHeight
-
bottomGap
.
value
)
{
console
.
log
(
123
);
acBottom
.
value
=
bottomGap
.
value
+
"
px
"
;
acLeft
.
value
=
rect
.
x
+
35
+
"
px
"
;
}
else
{
...
...
src/page/main/system/role/index.vue
View file @
629149c9
...
...
@@ -342,12 +342,10 @@ const clearRoleSelection = () => {
};
const
register
=
()
=>
{
console
.
log
(
"
新增角色
"
);
router
.
push
(
"
/system/role/add
"
);
};
// 新增角色
const
edit_row
=
(
row
)
=>
{
console
.
log
(
row
,
"
编辑角色
"
);
router
.
push
({
path
:
"
/system/role/edit
"
,
query
:
{
...
...
@@ -365,7 +363,6 @@ const distribute_user = (row) => {
const
getUserList
=
()
=>
{
nextTick
(()
=>
{
console
.
log
(
userTable
);
clearUserSelection
();
});
let
params
=
{
...
...
src/router/function.js
View file @
629149c9
...
...
@@ -271,7 +271,6 @@ function getViews(path) {
break
;
}
// 然后动态路由的时候这样来取
console
.
log
(
modules
[
"
../page/main
"
+
path
+
"
/index.vue
"
]);
return
modules
[
"
../page/main
"
+
path
+
"
/index.vue
"
];
}
...
...
@@ -287,15 +286,12 @@ var menuToRouter = (menu) => {
//叶子层级需要加载到对应文件
//对首页做兼容
if
(
e
.
source
){
console
.
log
(
`@/page/main
${
e
.
source
}
/index.vue`
);
e
.
component
=
getViews
(
e
.
source
);
}
else
{
console
.
log
(
`@/page/main
${
e
.
path
}
/index.vue`
);
e
.
component
=
getViews
(
e
.
path
);
}
menuToRouter
(
e
.
children
);
}
else
{
console
.
log
(
`@/page/main
${
e
.
path
}
/index.vue`
);
//叶子层级需要加载到对应文件
//对首页做兼容
if
(
e
.
path
==
"
/
"
)
{
...
...
src/router/index.js
View file @
629149c9
...
...
@@ -49,7 +49,6 @@ function inWhiteList(toPath) {
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
const
userInfo
=
store
.
state
.
userInfo
console
.
log
(
store
.
state
.
route
);
//已登录不可跳转登陆页
if
(
userInfo
&&
(
to
.
path
==
'
/login
'
||
to
.
path
==
'
/
'
)){
...
...
@@ -113,9 +112,6 @@ export function generateRoutes() {
redirect
:
'
/404
'
}
)
console
.
log
(
router
.
getRoutes
());
}
//新创建一个router替代之前的router,并把matcher方法替换成新的router的matcher
...
...
vite.config.js
View file @
629149c9
...
...
@@ -2,7 +2,6 @@ import { defineConfig } from 'vite'
import
vue
from
'
@vitejs/plugin-vue
'
const
path
=
require
(
'
path
'
)
console
.
log
(
__dirname
);
function
resolve_path
(
dir
)
{
return
path
.
join
(
__dirname
,
'
./
'
,
dir
)
...
...
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