Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
58f796ae
Commit
58f796ae
authored
Nov 25, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉组件
parent
bd837ca8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
36 deletions
+103
-36
src/assets/styles/main.scss
+2
-1
src/components/SelectCode.vue
+82
-23
src/store/modules/publicData.js
+2
-2
src/views/SystemManage/UserManage.vue
+13
-6
vue.config.js
+4
-4
No files found.
src/assets/styles/main.scss
View file @
58f796ae
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
margin
:
0
;
margin
:
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.disabel
{
.disabel
{
border
:
none
!
important
;
border
:
none
!
important
;
background-color
:
#ecedf1
!
important
;
background-color
:
#ecedf1
!
important
;
...
@@ -61,7 +62,7 @@ $width: 1210px;
...
@@ -61,7 +62,7 @@ $width: 1210px;
background-color
:
$base-color
!
important
;
background-color
:
$base-color
!
important
;
}
}
body
{
body
/
deep
/
{
line-height
:
1
.8
;
line-height
:
1
.8
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
"MicrosoftYaHei"
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"WenQuanYi Micro Hei"
,
font-family
:
"Helvetica Neue"
,
Helvetica
,
"MicrosoftYaHei"
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"WenQuanYi Micro Hei"
,
sans-serif
;
sans-serif
;
...
...
src/components/SelectCode.vue
View file @
58f796ae
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2021-11-25 10:15:01
* @Date: 2021-11-25 10:15:01
* @LastEditTime: 2021-11-25 1
0:18:56
* @LastEditTime: 2021-11-25 1
1:31:33
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\components\SelectCode.vue
* @FilePath: \founder_vue\src\components\SelectCode.vue
-->
-->
<
template
>
<
template
>
<div
:style=
"
{ width: width + 'px' }">
<el-select
<el-select
v-model=
"value"
v-model=
"value"
multiple
filterable
filterable
allow-create
popper-class=
"popperClass"
:multiple=
"multiple"
default-first-option
default-first-option
loading
:popper-append-to-body=
"false"
placeholder=
"请选择文章标签"
:loading=
"options.length
<
=
0
"
:placeholder=
"placeholder"
@
focus=
"placeholder = '请输入'"
@
blur=
"placeholder = '请选择'"
:clearable=
"clearable"
@
change=
"change"
>
>
<el-option
<el-option
v-for=
"item in options"
v-for=
"item in options"
:key=
"item.value
"
:key=
"item.id
"
:label=
"item.label
"
:label=
"item.name
"
:value=
"item.valu
e"
:value=
"item.cod
e"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
options
:
[
placeholder
:
"请选择"
,
{
options
:
[],
value
:
"HTML"
,
value
:
[]
,
label
:
"HTML"
,
};
},
},
{
props
:
{
value
:
"CSS"
,
//接口的最后的url
label
:
"CSS"
,
codeUrl
:
{
type
:
String
,
required
:
true
,
},
},
{
//是否多选
value
:
"JavaScript"
,
multiple
:
Boolean
,
label
:
"JavaScript"
,
//是否有清楚功能
clearable
:
{
type
:
Boolean
,
default
:
true
,
},
//form
form
:
Object
,
//form对应的字段
id
:
String
,
//宽度设置
width
:
{
type
:
[
String
,
Number
],
default
:
264
,
},
},
watch
:
{
multiple
:
{
handler
(
val
)
{
if
(
val
==
true
)
{
this
.
value
=
[];
}
else
{
this
.
value
=
""
;
}
},
immediate
:
true
,
},
},
methods
:
{
change
(
val
)
{
let
newVal
=
val
;
if
(
!
newVal
&&
!
this
.
multiple
)
newVal
=
""
;
if
(
newVal
.
length
<=
0
&&
this
.
multiple
)
newVal
=
""
;
this
.
$set
(
this
.
form
,
this
.
id
,
newVal
);
},
getOptions
()
{
this
.
$axios
.
get
(
"/api/code/"
+
this
.
codeUrl
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
0
&&
res
.
data
.
message
==
"success"
)
{
this
.
options
=
res
.
data
.
ret
||
[];
}
});
},
},
],
value
:
[],
};
},
},
mounted
(){
mounted
()
{
console
.
log
(
11111111111
)
this
.
getOptions
();
},
},
};
};
</
script
>
</
script
>
<
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
.el-select
/
deep
/
{
width
:
100%
!important
;
.popperClass
{
.el-select-dropdown__item
{
padding
:
0
10px
;
box-sizing
:
border-box
;
}
}
}
</
style
>
\ No newline at end of file
src/store/modules/publicData.js
View file @
58f796ae
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2021-11-02 15:41:31
* @Date: 2021-11-02 15:41:31
* @LastEditTime: 2021-11-2
2 16:06:21
* @LastEditTime: 2021-11-2
5 10:45:50
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\store\modules\user.js
* @FilePath: \founder_vue\src\store\modules\user.js
...
@@ -28,7 +28,7 @@ const mutations = {
...
@@ -28,7 +28,7 @@ const mutations = {
const
actions
=
{
const
actions
=
{
_getList
(
context
,
options
)
{
_getList
(
context
,
options
)
{
_axios
.
get
(
'JsonData/CODE_DW.json'
,
{
loading
:
false
}
).
then
(
res
=>
{
_axios
.
get
(
'JsonData/CODE_DW.json'
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
&&
res
.
data
.
message
==
"success"
)
{
if
(
res
.
data
.
code
==
0
&&
res
.
data
.
message
==
"success"
)
{
context
.
commit
(
'resetUnitData'
,
res
.
data
.
ret
);
context
.
commit
(
'resetUnitData'
,
res
.
data
.
ret
);
}
}
...
...
src/views/SystemManage/UserManage.vue
View file @
58f796ae
...
@@ -294,12 +294,11 @@
...
@@ -294,12 +294,11 @@
<Cascader
:form=
"addFormParams"
id=
"unitCode"
></Cascader>
<Cascader
:form=
"addFormParams"
id=
"unitCode"
></Cascader>
</el-form-item>
</el-form-item>
<el-form-item
class=
"info-item"
label=
"用户警号:"
prop=
"policeNumber"
>
<el-form-item
class=
"info-item"
label=
"用户警号:"
prop=
"policeNumber"
>
<SelectCode></SelectCode>
<el-input
<!-- <el-input
placeholder=
"请输入用户警号"
placeholder=
"请输入用户警号"
class=
"input-info"
class=
"input-info"
v-model=
"addFormParams.policeNumber"
v-model=
"addFormParams.policeNumber"
></el-input>
-->
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
class=
"info-item"
label=
"密码:"
prop=
"password"
>
<el-form-item
class=
"info-item"
label=
"密码:"
prop=
"password"
>
<el-input
<el-input
...
@@ -785,7 +784,9 @@ export default {
...
@@ -785,7 +784,9 @@ export default {
this
.
$refs
.
editFormParams
.
validate
((
valid
)
=>
{
this
.
$refs
.
editFormParams
.
validate
((
valid
)
=>
{
console
.
log
(
valid
);
console
.
log
(
valid
);
if
(
valid
)
{
if
(
valid
)
{
this
.
$axios
.
put
(
"/security/users"
,
this
.
editFormParams
).
then
((
res
)
=>
{
this
.
$axios
.
put
(
"/security/users"
,
this
.
editFormParams
)
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$message
.
success
(
"修改成功"
);
this
.
$message
.
success
(
"修改成功"
);
...
@@ -893,7 +894,9 @@ export default {
...
@@ -893,7 +894,9 @@ export default {
// 人员信息
// 人员信息
getPersonInfor
(
id
)
{
getPersonInfor
(
id
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
$axios
.
get
(
"/security/users/"
+
id
,
{
loading
:
false
}).
then
((
res
)
=>
{
this
.
$axios
.
get
(
"/security/users/"
+
id
,
{
loading
:
false
})
.
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
)
{
if
(
res
.
data
)
{
let
result
=
res
.
data
;
let
result
=
res
.
data
;
...
@@ -901,7 +904,11 @@ export default {
...
@@ -901,7 +904,11 @@ export default {
this
.
$set
(
this
.
editFormParams
,
key
,
result
[
key
]);
this
.
$set
(
this
.
editFormParams
,
key
,
result
[
key
]);
}
}
this
.
$set
(
this
.
editFormParams
,
"id"
,
id
);
this
.
$set
(
this
.
editFormParams
,
"id"
,
id
);
this
.
$set
(
this
.
editFormParams
,
"userGroupId"
,
result
[
"userGroupIds"
]);
this
.
$set
(
this
.
editFormParams
,
"userGroupId"
,
result
[
"userGroupIds"
]
);
this
.
$set
(
this
.
editFormParams
,
"roleId"
,
result
[
"roleIds"
]);
this
.
$set
(
this
.
editFormParams
,
"roleId"
,
result
[
"roleIds"
]);
}
}
});
});
...
...
vue.config.js
View file @
58f796ae
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-25 10:2
5:1
9
* @LastEditTime: 2021-11-25 10:2
6:4
9
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
* @FilePath: \指纹系统\founder_vue\vue.config.js
...
@@ -126,12 +126,12 @@ module.exports = {
...
@@ -126,12 +126,12 @@ module.exports = {
// },
// },
"/security"
:
{
"/security"
:
{
target
:
"http://192.168.128.106:8765"
,
// 湖南-王
//
target: "http://192.168.128.106:8765", // 湖南-王
// target: "http://www.meetfood.cn:2390/system
", // 湖南-王
target
:
"http://www.meetfood.cn:2390
"
,
// 湖南-王
ws
:
true
,
ws
:
true
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
"^/security"
:
""
"^/security"
:
"
/security
"
}
}
}
}
// 阿里
// 阿里
...
...
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