Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
total-platform
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
total-platform
Commits
04a845c2
提交
04a845c2
authored
11月 13, 2023
作者:
宋雄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
2abf71a5
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
30 行增加
和
15 行删除
+30
-15
.env.development
.env.development
+2
-2
.env.production
.env.production
+2
-1
settings.json
.vscode/settings.json
+6
-0
JSelectDepart.vue
src/components/jeecgbiz/JSelectDepart.vue
+1
-0
JSelectDepartModal.vue
src/components/jeecgbiz/modal/JSelectDepartModal.vue
+9
-4
UserModal.vue
src/views/system/modules/UserModal.vue
+10
-8
没有找到文件。
.env.development
浏览文件 @
04a845c2
NODE_ENV=development
NODE_ENV=development
# VUE_APP_API_BASE_URL='http://220.203.25.212:9998
'
VUE_APP_API_BASE_URL='http://220.203.25.212:9999
'
VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
#
VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
...
...
.env.production
浏览文件 @
04a845c2
NODE_ENV=production
NODE_ENV=production
VUE_APP_API_BASE_URL=http://220.203.25.212:999
8
VUE_APP_API_BASE_URL=http://220.203.25.212:999
9
VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
\ No newline at end of file
.vscode/settings.json
0 → 100644
浏览文件 @
04a845c2
{
"i18n-ally.localesPaths"
:
[
"public/tinymce/langs"
]
}
\ No newline at end of file
src/components/jeecgbiz/JSelectDepart.vue
浏览文件 @
04a845c2
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
},
},
openModal
(){
openModal
(){
this
.
$refs
.
innerDepartSelectModal
.
show
()
this
.
$refs
.
innerDepartSelectModal
.
show
()
console
.
log
(
'11111111'
)
},
},
handleOK
(
rows
)
{
handleOK
(
rows
)
{
if
(
!
rows
&&
rows
.
length
<=
0
)
{
if
(
!
rows
&&
rows
.
length
<=
0
)
{
...
...
src/components/jeecgbiz/modal/JSelectDepartModal.vue
浏览文件 @
04a845c2
...
@@ -69,7 +69,9 @@
...
@@ -69,7 +69,9 @@
},
},
watch
:{
watch
:{
departId
(){
departId
(){
this
.
initDepartComponent
()
console
.
log
(
'departId变化'
)
console
.
log
(
this
.
departId
)
// this.initDepartComponent()
},
},
visible
:
{
visible
:
{
handler
(
newV
)
{
handler
(
newV
)
{
...
@@ -113,7 +115,7 @@
...
@@ -113,7 +115,7 @@
let
arr
=
[...
res
.
result
]
let
arr
=
[...
res
.
result
]
this
.
reWriterWithSlot
(
arr
)
this
.
reWriterWithSlot
(
arr
)
this
.
treeData
=
arr
this
.
treeData
=
arr
this
.
initDepartComponent
()
//
this.initDepartComponent()
if
(
this
.
rootOpened
){
if
(
this
.
rootOpened
){
this
.
initExpandedKeys
(
res
.
result
)
this
.
initExpandedKeys
(
res
.
result
)
}
}
...
@@ -208,8 +210,11 @@
...
@@ -208,8 +210,11 @@
if
(
!
this
.
checkedKeys
||
this
.
checkedKeys
.
length
==
0
){
if
(
!
this
.
checkedKeys
||
this
.
checkedKeys
.
length
==
0
){
this
.
$emit
(
"ok"
,
''
)
this
.
$emit
(
"ok"
,
''
)
}
else
{
}
else
{
let
checkRow
=
this
.
getCheckedRows
(
this
.
checkedKeys
)
let
arr
=
this
.
checkedKeys
.
filter
((
item
,
index
)
=>
this
.
checkedKeys
.
findIndex
(
row
=>
row
===
item
)
===
index
)
let
keyStr
=
this
.
checkedKeys
.
join
(
","
)
let
checkRow
=
this
.
getCheckedRows
(
arr
)
console
.
log
(
this
.
checkedKeys
)
console
.
log
(
arr
)
let
keyStr
=
arr
.
join
(
","
)
this
.
$emit
(
"ok"
,
checkRow
,
keyStr
)
this
.
$emit
(
"ok"
,
checkRow
,
keyStr
)
}
}
this
.
handleClear
()
this
.
handleClear
()
...
...
src/views/system/modules/UserModal.vue
浏览文件 @
04a845c2
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
:options="rolesOptions"
:options="rolesOptions"
placeholder="请选择角色">
placeholder="请选择角色">
</j-multi-select-tag> -->
</j-multi-select-tag> -->
<a-select
v-model=
"model.selectedroles"
>
<a-select
v-model=
"model.selectedroles"
placeholder=
"请选择角色"
:getPopupContainer=
"(target) => target.parentNode"
>
<a-select-option
<a-select-option
v-for=
"(item,index) in rolesOptions"
v-for=
"(item,index) in rolesOptions"
:key=
"index"
:key=
"index"
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
//根据屏幕宽度自适应抽屉宽度
//根据屏幕宽度自适应抽屉宽度
this
.
resetScreenSize
();
this
.
resetScreenSize
();
that
.
userId
=
record
.
id
;
that
.
userId
=
record
.
id
;
that
.
model
=
Object
.
assign
({},{
selected
roles
:
''
,
selected
departs
:
''
},
record
);
that
.
model
=
Object
.
assign
({},{
selecteddeparts
:
''
},
record
);
//身份为上级显示负责部门,否则不显示
//身份为上级显示负责部门,否则不显示
if
(
this
.
model
.
userIdentity
==
2
){
if
(
this
.
model
.
userIdentity
==
2
){
this
.
departIdShow
=
true
;
this
.
departIdShow
=
true
;
...
@@ -292,8 +292,7 @@
...
@@ -292,8 +292,7 @@
getUserRoles
(
userid
){
getUserRoles
(
userid
){
queryUserRole
({
userid
:
userid
}).
then
((
res
)
=>
{
queryUserRole
({
userid
:
userid
}).
then
((
res
)
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
this
.
model
.
selectedroles
=
res
.
result
.
join
(
","
);
this
.
model
[
'selectedroles'
]
=
res
.
result
.
join
(
","
);
console
.
log
(
'that.model.selectedroles='
,
this
.
model
.
selectedroles
)
}
}
});
});
},
},
...
@@ -318,8 +317,6 @@
...
@@ -318,8 +317,6 @@
})
})
},
},
backDepartInfo
(
info
)
{
backDepartInfo
(
info
)
{
console
.
log
(
info
)
return
this
.
model
.
departIds
=
this
.
model
.
selecteddeparts
;
this
.
model
.
departIds
=
this
.
model
.
selecteddeparts
;
this
.
nextDepartOptions
=
info
.
map
((
item
,
index
,
arr
)
=>
{
this
.
nextDepartOptions
=
info
.
map
((
item
,
index
,
arr
)
=>
{
let
c
=
{
label
:
item
.
text
,
value
:
item
.
value
+
""
}
let
c
=
{
label
:
item
.
text
,
value
:
item
.
value
+
""
}
...
@@ -353,9 +350,9 @@
...
@@ -353,9 +350,9 @@
let
obj
;
let
obj
;
if
(
!
this
.
model
.
id
){
if
(
!
this
.
model
.
id
){
this
.
model
.
id
=
this
.
userId
;
this
.
model
.
id
=
this
.
userId
;
obj
=
addUser
(
this
.
model
);
obj
=
addUser
(
{...
this
.
model
,
orgCode
:
this
.
model
.
departIds
}
);
}
else
{
}
else
{
obj
=
editUser
(
this
.
model
);
obj
=
editUser
(
{...
this
.
model
,
orgCode
:
this
.
model
.
departIds
}
);
}
}
obj
.
then
((
res
)
=>
{
obj
.
then
((
res
)
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
...
@@ -441,6 +438,9 @@
...
@@ -441,6 +438,9 @@
}
}
},
},
validateUsername
(
rule
,
value
,
callback
){
validateUsername
(
rule
,
value
,
callback
){
if
(
this
.
model
.
id
)
{
callback
()
}
else
{
var
params
=
{
var
params
=
{
userName
:
value
,
userName
:
value
,
};
};
...
@@ -451,6 +451,7 @@
...
@@ -451,6 +451,7 @@
callback
(
"用户名已存在!"
)
callback
(
"用户名已存在!"
)
}
}
})
})
}
},
},
validateWorkNo
(
rule
,
value
,
callback
){
validateWorkNo
(
rule
,
value
,
callback
){
var
params
=
{
var
params
=
{
...
@@ -518,6 +519,7 @@
...
@@ -518,6 +519,7 @@
padding
:
10px
16px
;
padding
:
10px
16px
;
text-align
:
right
;
text-align
:
right
;
left
:
0
;
left
:
0
;
z-index
:
9
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
0
0
2px
2px
;
border-radius
:
0
0
2px
2px
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论