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
2a5f851c
Commit
2a5f851c
authored
Oct 15, 2021
by
maxiaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录
parent
380ffcca
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
19 deletions
+46
-19
src/views/cxyrd/QueryConfirm.vue
+5
-10
src/views/login/Login1.vue
+2
-1
src/views/login/modules/AccountsLogin.vue
+29
-7
vue.config.js
+10
-1
No files found.
src/views/cxyrd/QueryConfirm.vue
View file @
2a5f851c
...
...
@@ -462,7 +462,7 @@ export default {
);
//挑选被选中的对象
this
.
key
=
this
.
key
+
1
;
//为了保证table 每次都会重渲,这样做体验感更好,如果不为table设置key值的话,用户一旦选中了复选框选项,就是在原来table基础上添加删除每一列,页面就有跳动的感觉,体验感不好
}
,
}
},
computed
:
{
// 计算总页数
...
...
@@ -670,7 +670,7 @@ export default {
// 展开或关闭行
hadnlExpandChange
(
row
,
expanded
)
{
// 获取展开标志
this
.
expanded
=
expanded
this
.
expanded
=
expanded
;
// 获取下标
var
i
=
this
.
list
.
findIndex
(
table
=>
table
.
queryId
===
row
.
queryId
);
// var i = this.tableData.findIndex(table => table.id === row.id);
...
...
@@ -679,7 +679,7 @@ export default {
this
.
list
[
i
]
=
{
qid
:
row
.
qid
,
children
:
row
.
children
,
queryId
:
row
.
queryId
,
queryId
:
row
.
queryId
};
this
.
$forceUpdate
();
console
.
info
(
"展开时row数据"
,
this
.
list
[
i
]);
...
...
@@ -806,11 +806,6 @@ export default {
},
mounted
()
{
this
.
search
();
// setTimeout(() => {
// [...document.querySelectorAll(".el-icon-arrow-right")].forEach(item => {
// item.classList = "el-icon-plus";
// });
// }, 200);
}
};
// 用户ID 下拉的数据
...
...
@@ -1417,7 +1412,7 @@ b {
height
:
11px
;
/* border: black 1px solid; */
margin
:
0
;
background-image
:
url(
'../../assets/img/confirm/expend.png'
)
;
background-image
:
url(
"../../assets/img/confirm/expend.png"
)
;
background-position
:
center
;
background-size
:
11px
;
background-repeat
:
no-repeat
;
...
...
@@ -1425,7 +1420,7 @@ b {
.el-table__expand-icon.el-table__expand-icon--expanded
{
width
:
11px
;
height
:
11px
;
background-image
:
url(
'../../assets/img/confirm/shrink.png'
)
;
background-image
:
url(
"../../assets/img/confirm/shrink.png"
)
;
background-position
:
center
;
background-size
:
11px
;
background-repeat
:
no-repeat
;
...
...
src/views/login/Login1.vue
View file @
2a5f851c
...
...
@@ -7,6 +7,7 @@
<source
:src=
"barcgroundUrl"
type=
"video/mp4"
/>
浏览器不支持 video 标签,建议升级浏览器。
</video>
<!-- todo 视频加载切换为图片加载 -->
<!-- 考虑视频加载失败 图片背景效果 -->
<div
class=
"poster hidden"
v-if=
"!vedioCanPlay"
>
<img
:style=
"fixStyle"
:src=
"barcgroundImgUrl"
alt=
""
/>
...
...
@@ -24,7 +25,7 @@
<div
class=
" middle margin_top25_bottom10"
>
<el-button
class=
"magin_left_right30"
autofocus=
"true"
:
autofocus=
"true"
type=
"text"
@
click=
"changeLoginType(1)"
>
帐号密码登录
...
...
src/views/login/modules/AccountsLogin.vue
View file @
2a5f851c
...
...
@@ -5,7 +5,7 @@
class=
"width100 margin_top25_bottom10"
type=
"text"
placeholder=
"请输入用户名"
v-model=
"userInfo.user
n
ame"
v-model=
"userInfo.user
N
ame"
>
<i
slot=
"prefix"
style=
"display: flex;align-items: center;"
>
<img
...
...
@@ -18,7 +18,7 @@
<el-input
class=
" width100 margin_top25_bottom10"
placeholder=
"请输入密码"
v-model=
"userInfo.pass
w
ord"
v-model=
"userInfo.pass
W
ord"
>
<i
slot=
"prefix"
>
<img
...
...
@@ -39,6 +39,7 @@
</
template
>
<
script
>
import
qs
from
"qs"
;
export
default
{
name
:
"AccountsLogin"
,
props
:
[
"loginType"
],
...
...
@@ -58,21 +59,43 @@ export default {
data
()
{
return
{
isShow
:
false
,
userInfo
:
{
user
name
:
"xxs"
,
passw
ord
:
"123456"
},
userInfo
:
{
user
Name
:
"admin"
,
passW
ord
:
"123456"
},
usernameUrl
:
require
(
"../../../assets/img/login/user.png"
),
passwordUrl
:
require
(
"../../../assets/img/login/password.png"
)
};
},
methods
:
{
// 登录
login
()
{
login
(
userinfo
)
{
console
.
info
(
this
.
userInfo
);
// todo 登录请求
if
(
this
.
userInfo
.
username
&&
this
.
userInfo
.
password
)
{
this
.
$axios
.
post
(
"/login/myLoginForm?"
+
qs
.
stringify
(
userinfo
))
.
then
(
res
=>
{
console
.
info
(
res
);
if
(
res
.
data
.
code
===
"200"
)
{
this
.
$message
.
success
(
userinfo
.
userName
+
"登录成功!"
);
this
.
$router
.
push
(
"/Home/Home"
);
}
});
// "/myLoginForm?userName=" +
// userinfo.userName +
// "&passWord=" +
// userinfo.passWord,
// qs.stringify(userinfo)
// , true, {
// headers: { "content-type": "application/x-www-form-urlencoded" }
// }
// )
// .then(res => {
// console.info(res);
// });
// if (this.userInfo.username && this.userInfo.password) {
// this.$router.push("/Home/Home");
// }
// this.$store
// .dispatch("
user/login
", this.userInfo)
// .dispatch("
/myLoginForm
", this.userInfo)
// .then(res => {
// if (res.code >= 0) {
// this.$message({
...
...
@@ -92,7 +115,6 @@ export default {
// this.$message.error(err.message);
// this.getCaptcha();
// });
// x;
}
},
mounted
()
{
...
...
vue.config.js
View file @
2a5f851c
...
...
@@ -83,14 +83,23 @@ module.exports = {
"/api"
:
{
// target: "http://192.168.0.137:8080/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
// target: "http://172.18.108.2:8099/", // 张 认定
target
:
"http://192.168.128.118:8099"
,
// 湖南-张
// target: "http://192.168.128.118:8099",
// 湖南-张
// target: "http://192.168.128.104:8099", // 湖南-马
target
:
"http://47.92.226.24:3004/"
,
// 登录
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
ws
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
"/api"
}
},
"/login"
:
{
target
:
"http://47.92.226.24:3004/"
,
// 登录
ws
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/login"
:
""
}
}
// 阿里
// "/api": {
...
...
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