Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
09eac4c8
Commit
09eac4c8
authored
Nov 17, 2023
by
夏敏伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.168.218/xiaminwei/xxx_phase2_web
parents
6332865b
2e46a698
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
67 deletions
+59
-67
src/constant/user.js
src/constant/user.js
+4
-0
src/router/index.js
src/router/index.js
+0
-4
src/store/actions.js
src/store/actions.js
+1
-1
src/view/home.vue
src/view/home.vue
+3
-3
src/view/homepage.vue
src/view/homepage.vue
+1
-1
src/view/login.vue
src/view/login.vue
+2
-2
src/view/user/yhgl.vue
src/view/user/yhgl.vue
+48
-56
No files found.
src/constant/user.js
View file @
09eac4c8
...
@@ -9,6 +9,10 @@ export const HTTP_STATUS = {message: "服务请求失败", code:9004};
...
@@ -9,6 +9,10 @@ export const HTTP_STATUS = {message: "服务请求失败", code:9004};
/**
/**
* 邮件系统
* 邮件系统
*/
*/
// export const MAIL_ADDRESS = "http://6.1.22.93:8000";
// export const MAIL_MANAGER_ADDRESS = "http://6.1.22.93:8010";
// export const MAIL_DOMAIN = "zyyt.com"
export
const
MAIL_ADDRESS
=
"
http://192.168.168.100:8000
"
;
export
const
MAIL_ADDRESS
=
"
http://192.168.168.100:8000
"
;
export
const
MAIL_MANAGER_ADDRESS
=
"
http://192.168.168.100:8010
"
;
export
const
MAIL_MANAGER_ADDRESS
=
"
http://192.168.168.100:8010
"
;
export
const
MAIL_DOMAIN
=
"
zyyt.com
"
export
const
MAIL_DOMAIN
=
"
zyyt.com
"
\ No newline at end of file
src/router/index.js
View file @
09eac4c8
...
@@ -37,10 +37,6 @@ const constantRoutes = [{
...
@@ -37,10 +37,6 @@ const constantRoutes = [{
path
:
'
/homepage
'
,
path
:
'
/homepage
'
,
name
:
'
模块页面
'
,
name
:
'
模块页面
'
,
component
:
()
=>
import
(
'
../view/homepage.vue
'
)
component
:
()
=>
import
(
'
../view/homepage.vue
'
)
},
{
path
:
'
/visualizing
'
,
name
:
'
大屏展示
'
,
component
:
()
=>
import
(
'
../view/visualizing.vue
'
)
},
{
},
{
path
:
'
/chatRoom
'
,
path
:
'
/chatRoom
'
,
name
:
'
学习训练平台
'
,
name
:
'
学习训练平台
'
,
...
...
src/store/actions.js
View file @
09eac4c8
...
@@ -15,7 +15,7 @@ const actions = {
...
@@ -15,7 +15,7 @@ const actions = {
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
if
(
err
instanceof
Object
&&
(
err
.
code
==
90
03
||
err
.
code
==
9009
))
{
if
(
err
instanceof
Object
&&
(
err
.
code
==
90
40
||
err
.
code
==
9041
||
err
.
code
==
9042
))
{
reject
(
err
);
reject
(
err
);
}
else
{
}
else
{
let
homeRoute
=
generateHomeRoute
([]);
let
homeRoute
=
generateHomeRoute
([]);
...
...
src/view/home.vue
View file @
09eac4c8
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
v-text=
"item.name"
>
v-text=
"item.name"
>
</div>
</div>
</div>
</div>
<h1><span>
业务辅助分析
系统
</span></h1>
<h1><span>
东部战区心理战训练
系统
</span></h1>
<div
class=
"home-date"
>
<div
class=
"home-date"
>
<span
class=
"date"
v-text=
"myDate.day"
></span>
  
<span
class=
"date"
v-text=
"myDate.day"
></span>
  
<span
class=
"week"
v-text=
"myDate.week"
></span>
<span
class=
"week"
v-text=
"myDate.week"
></span>
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
// this.activeIndex = key + "";
// this.activeIndex = key + "";
this
.
$store
.
commit
(
"
activeIndex
"
,
key
+
""
);
this
.
$store
.
commit
(
"
activeIndex
"
,
key
+
""
);
}
else
{
}
else
{
window
.
open
(
'
#/visualizing
'
);
//
window.open('#/visualizing');
}
}
},
},
handleCommand
(
command
)
{
handleCommand
(
command
)
{
...
@@ -219,7 +219,7 @@ export default {
...
@@ -219,7 +219,7 @@ export default {
// this.activeIndex = key + "";
// this.activeIndex = key + "";
this
.
$store
.
commit
(
"
activeIndex
"
,
index
+
""
);
this
.
$store
.
commit
(
"
activeIndex
"
,
index
+
""
);
}
else
{
}
else
{
window
.
open
(
'
#/visualizing
'
);
//
window.open('#/visualizing');
}
}
}
}
},
},
...
...
src/view/homepage.vue
View file @
09eac4c8
<
template
>
<
template
>
<div
class=
"homepage"
>
<div
class=
"homepage"
>
<div
class=
"header"
>
<div
class=
"header"
>
<h1><span>
业务辅助分析
系统
</span></h1>
<h1><span>
东部战区心理战训练
系统
</span></h1>
<div>
<div>
<span
class=
"date"
v-text=
"myDate.day"
></span>
  
<span
class=
"date"
v-text=
"myDate.day"
></span>
  
<span
class=
"week"
v-text=
"myDate.week"
></span>
<span
class=
"week"
v-text=
"myDate.week"
></span>
...
...
src/view/login.vue
View file @
09eac4c8
<
template
>
<
template
>
<div
class=
"login"
>
<div
class=
"login"
>
<div
class=
"login-head"
>
<div
class=
"login-head"
>
<h1><span>
业务辅助分析
系统
</span></h1>
<h1><span>
东部战区心理战训练
系统
</span></h1>
<div>
<div>
<span
class=
"date"
v-text=
"myDate.day"
></span>
  
<span
class=
"date"
v-text=
"myDate.day"
></span>
  
<span
class=
"week"
v-text=
"myDate.week"
></span>
<span
class=
"week"
v-text=
"myDate.week"
></span>
...
@@ -115,7 +115,7 @@ export default {
...
@@ -115,7 +115,7 @@ export default {
}
}
},
},
activated
()
{
activated
()
{
if
(
this
.
$route
.
params
.
code
==
90
03
||
this
.
$route
.
params
.
code
==
9009
||
this
.
$route
.
params
.
code
==
9008
)
{
if
(
this
.
$route
.
params
.
code
==
90
40
||
this
.
$route
.
params
.
code
==
9041
||
this
.
$route
.
params
.
code
==
9042
)
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
this
.
$route
.
params
.
message
,
message
:
this
.
$route
.
params
.
message
,
...
...
src/view/user/yhgl.vue
View file @
09eac4c8
...
@@ -442,7 +442,8 @@ export default {
...
@@ -442,7 +442,8 @@ export default {
this
.
index
=
index
;
this
.
index
=
index
;
},
},
addNew
()
{
addNew
()
{
this
.
new_user
=
{};
//需要注意的是此处尽量不用直接赋值{},会导致watch里面属性的时候出现无法输入的情况
Object
.
keys
(
this
.
new_user
).
forEach
(
key
=>
this
.
new_user
[
key
]
=
null
);
this
.
type
=
"
add
"
;
this
.
type
=
"
add
"
;
this
.
centerDialogVisible
=
true
;
this
.
centerDialogVisible
=
true
;
},
},
...
@@ -519,67 +520,58 @@ export default {
...
@@ -519,67 +520,58 @@ export default {
});
});
},
},
submit
(
formName
)
{
submit
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
startLoading
();
if
(
valid
)
{
this
.
$refs
[
formName
].
validate
().
then
(
res
=>
{
startLoading
();
if
(
this
.
new_user
.
mail
)
{
post
(
"
api/rest/system/user/register
"
,
this
.
new_user
)
return
addUser
({
.
then
(
res
=>
{
password
:
this
.
new_user
.
password
,
if
(
res
!=
1
)
{
email
:
this
.
new_user
.
mail
,
return
Promise
.
reject
({
message
:
"
用户新增失败
"
});
uname
:
this
.
new_user
.
username
,
}
else
if
(
this
.
new_user
.
mail
)
{
tel
:
this
.
new_user
.
telephone
return
addUser
({
});
password
:
this
.
new_user
.
password
,
}
else
{
//没有输入邮箱
email
:
this
.
new_user
.
mail
,
return
Promise
.
resolve
();
uname
:
this
.
new_user
.
username
,
}
tel
:
this
.
new_user
.
telephone
}).
then
(
res
=>
{
});
post
(
"
api/rest/system/user/register
"
,
this
.
new_user
)
}
else
{
//没有输入邮箱
}).
then
(
res
=>
{
return
Promise
.
resolve
();
this
.
$message
.
success
(
"
新增成功!
"
);
}
this
.
centerDialogVisible
=
false
;
})
//再次查询用户名 重新赋值
.
then
((
data
)
=>
{
this
.
queryUser
();
this
.
$message
.
success
(
"
新增成功!
"
);
endLoading
();
this
.
centerDialogVisible
=
false
;
}).
catch
(
err
=>
{
//再次查询用户名 重新赋值
endLoading
();
this
.
queryUser
();
if
(
typeof
err
==
"
boolean
"
)
{
endLoading
();
this
.
$message
.
warning
(
"
数据验证失败
"
);
})
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
endLoading
();
});
}
else
{
}
else
{
return
false
;
this
.
$message
.
warning
(
err
.
message
)
;
}
}
});
});
},
},
submit_edit
(
formName
)
{
submit_edit
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
().
then
(
res
=>
{
if
(
valid
)
{
if
(
this
.
edit_user
.
mail
&&
!
this
.
edit_user
.
mailReadOnly
)
{
//本次编辑增加了邮箱(如果原本有邮箱则会设置只读)
post
(
"
api/rest/system/user/updateUser
"
,
this
.
edit_user
)
return
addUser
({
.
then
(
res
=>
{
password
:
"
3z111111
"
,
if
(
res
!=
1
)
{
email
:
this
.
edit_user
.
mail
,
return
Promise
.
reject
({
message
:
"
用户新增失败
"
});
uname
:
this
.
edit_user
.
username
,
}
else
if
(
this
.
edit_user
.
mail
)
{
tel
:
this
.
edit_user
.
telephone
return
addUser
({
});
password
:
"
3z111111
"
,
}
else
{
//没有或者没有修改
email
:
this
.
edit_user
.
mail
,
return
Promise
.
resolve
();
uname
:
this
.
edit_user
.
username
,
}
tel
:
this
.
edit_user
.
telephone
}).
then
(
res
=>
{
});
res
||
(
this
.
edit_user
.
mail
=
null
);
//没有注册邮箱此处设置为空
}
else
{
return
post
(
"
api/rest/system/user/updateUser
"
,
this
.
edit_user
);
return
Promise
.
resolve
();
}).
then
(
res
=>
{
}
this
.
$message
.
success
(
"
修改成功!
"
);
})
(
this
.
centerDialogVisible
=
false
),
this
.
queryUser
();
.
then
((
data
)
=>
{
}).
catch
(
err
=>
{
this
.
$message
.
success
(
"
修改成功!
"
);
if
(
typeof
err
==
"
boolean
"
)
{
(
this
.
centerDialogVisible
=
false
),
this
.
queryUser
();
this
.
$message
.
warning
(
"
数据验证失败
"
);
})
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
});
}
else
{
}
else
{
return
false
;
this
.
$message
.
warning
(
err
.
message
)
;
}
}
});
});
},
},
...
...
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