Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
Project
Project
Details
Activity
Releases
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
张伯涛
contractmanage
Commits
704f9c4e
Commit
704f9c4e
authored
Mar 07, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口地址改为变量
parent
2cf80604
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
21 deletions
+25
-21
.env.development
.env.development
+1
-1
user.js
src/api/user.js
+2
-2
index.vue
src/views/journalManage/index.vue
+11
-9
index.vue
src/views/list/index.vue
+9
-8
index.vue
src/views/userInfo/index.vue
+2
-1
No files found.
.env.development
View file @
704f9c4e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
ENV = 'development'
ENV = 'development'
# base api
# base api
VUE_APP_BASE_API = '
/dev-api
'
VUE_APP_BASE_API = '
http://117.122.212.101:8092
'
# workFlow链接地址
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
VUE_APP_WORKFLOW = '/workFlow'
# login地址
# login地址
...
...
src/api/user.js
View file @
704f9c4e
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 用户密码修改
// 用户密码修改
export
function
updateUserPwd
(
data
)
{
export
function
updateUserPwd
(
data
)
{
return
request
({
return
request
({
url
:
'
http://117.122.212.101:8092
/sysuser/modifyPwd'
,
url
:
'/sysuser/modifyPwd'
,
method
:
'put'
,
method
:
'put'
,
params
:
data
params
:
data
})
})
...
@@ -11,7 +11,7 @@ export function updateUserPwd(data) {
...
@@ -11,7 +11,7 @@ export function updateUserPwd(data) {
// 重置
// 重置
export
function
resetUser
(
user
,
data
)
{
export
function
resetUser
(
user
,
data
)
{
return
request
({
return
request
({
url
:
'
http://117.122.212.101:8092
/sysuser/resetPwd/'
+
user
,
url
:
'/sysuser/resetPwd/'
+
user
,
method
:
'put'
,
method
:
'put'
,
params
:
data
params
:
data
})
})
...
...
src/views/journalManage/index.vue
View file @
704f9c4e
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<div
class=
"title"
>
日志管理列表
</div>
<div
class=
"title"
>
日志管理列表
</div>
<el-table
:data=
"data"
border
>
<el-table
:data=
"data"
border
>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<!--
<el-table-column
label=
"操作人"
prop=
"USERID"
/>
-->
<!--
<el-table-column
label=
"操作人"
prop=
"USERID"
/>
-->
<el-table-column
label=
"操作日期"
prop=
"CREATEDATE"
width=
"150"
/>
<el-table-column
label=
"操作日期"
prop=
"CREATEDATE"
width=
"150"
/>
<el-table-column
label=
"类型"
prop=
"type"
width=
"150"
/>
<el-table-column
label=
"类型"
prop=
"type"
width=
"150"
/>
<el-table-column
label=
"编码"
prop=
"CONMAINCODE"
width=
"150"
/>
<el-table-column
label=
"编码"
prop=
"CONMAINCODE"
width=
"150"
/>
...
@@ -85,16 +85,17 @@
...
@@ -85,16 +85,17 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"操作内容"
>
<el-form-item
label=
"操作内容"
>
<el-input
<el-input
v-model=
"form.CONTENT"
type=
"textarea"
type=
"textarea"
:rows=
"4"
:rows=
"4"
v-model=
"form.CONTENT"
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-col :span="12">-->
<!-- <el-form-item label="操作状态">-->
<!-- <el-form-item label="操作状态">-->
<!-- <el-input v-model="form.STATUS" />-->
<!-- <el-input v-model="form.STATUS" />-->
<!-- </el-form-item>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-col>-->
<!-- <el-col v-if="form.status === '0'" :span="24">
<!-- <el-col v-if="form.status === '0'" :span="24">
<el-form-item label="失败信息">
<el-form-item label="失败信息">
<el-input v-model="form.errorMessage" type="textarea" :autosize="{ minRow: 3, maxRow: 5} " />
<el-input v-model="form.errorMessage" type="textarea" :autosize="{ minRow: 3, maxRow: 5} " />
...
@@ -112,6 +113,7 @@ export default {
...
@@ -112,6 +113,7 @@ export default {
name
:
'AdminList'
,
name
:
'AdminList'
,
data
()
{
data
()
{
return
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
searchParams
:
{
searchParams
:
{
CREATEDATE
:
''
CREATEDATE
:
''
},
},
...
@@ -138,7 +140,7 @@ export default {
...
@@ -138,7 +140,7 @@ export default {
})
})
},
},
del
(
row
)
{
del
(
row
)
{
this
.
$axios
.
delete
(
'http://117.122.212.101:8092
/contractlog/contract-log/delete/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
this
.
$axios
.
delete
(
this
.
HTTPApi
+
'
/contractlog/contract-log/delete/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
if
(
!
res
.
errno
)
{
if
(
!
res
.
errno
)
{
this
.
findLog
()
this
.
findLog
()
/* console.log(this.data)*/
/* console.log(this.data)*/
...
@@ -162,7 +164,7 @@ export default {
...
@@ -162,7 +164,7 @@ export default {
},
},
findLog
()
{
findLog
()
{
console
.
log
(
'时间'
,
this
.
searchParams
.
CREATEDATE
)
console
.
log
(
'时间'
,
this
.
searchParams
.
CREATEDATE
)
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/contractlog/contract-log/queryContractLogByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contractlog/contract-log/queryContractLogByPage'
,
{
params
:
{
{
params
:
{
rows
:
this
.
rows
,
rows
:
this
.
rows
,
page
:
this
.
page
,
page
:
this
.
page
,
...
...
src/views/list/index.vue
View file @
704f9c4e
...
@@ -242,6 +242,7 @@ export default {
...
@@ -242,6 +242,7 @@ export default {
name
:
'AdminList'
,
name
:
'AdminList'
,
data
()
{
data
()
{
return
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
jurisdiction
:
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
,
jurisdiction
:
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
,
activeName
:
'first'
,
activeName
:
'first'
,
serchForm
:
{
serchForm
:
{
...
@@ -534,7 +535,7 @@ obj=this.typeform*/
...
@@ -534,7 +535,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
.
put
(
'http://117.122.212.101:8092
/contract/contract/mergeSynchronizationStatus/'
+
row
.
FROMID
).
then
(
res
=>
{
this
.
$axios
.
put
(
this
.
HTTPApi
+
'
/contract/contract/mergeSynchronizationStatus/'
+
row
.
FROMID
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'修改成功!'
message
:
'修改成功!'
...
@@ -559,7 +560,7 @@ obj=this.typeform*/
...
@@ -559,7 +560,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
.
put
(
'http://117.122.212.101:8092
/contract/contract/push/'
+
row
.
FROMID
).
then
(
res
=>
{
this
.
$axios
.
put
(
this
.
HTTPApi
+
'
/contract/contract/push/'
+
row
.
FROMID
).
then
(
res
=>
{
console
.
log
(
'code值'
,
res
.
data
)
console
.
log
(
'code值'
,
res
.
data
)
if
(
res
.
data
.
code
===
'200'
)
{
if
(
res
.
data
.
code
===
'200'
)
{
this
.
$message
({
this
.
$message
({
...
@@ -587,7 +588,7 @@ obj=this.typeform*/
...
@@ -587,7 +588,7 @@ obj=this.typeform*/
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://117.122.212.101:8092
/contract/contract/checkBatch'
url
:
this
.
HTTPApi
+
'
/contract/contract/checkBatch'
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
if
(
res
.
data
.
code
===
'200'
)
{
...
@@ -611,7 +612,7 @@ obj=this.typeform*/
...
@@ -611,7 +612,7 @@ obj=this.typeform*/
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://117.122.212.101:8092
/contract/contract/synchron'
url
:
this
.
HTTPApi
+
'
/contract/contract/synchron'
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
if
(
res
.
data
.
code
===
'200'
)
{
...
@@ -644,7 +645,7 @@ obj=this.typeform*/
...
@@ -644,7 +645,7 @@ obj=this.typeform*/
console
.
log
(
'登录人ID'
,
localStorage
.
getItem
(
'UserID'
))
console
.
log
(
'登录人ID'
,
localStorage
.
getItem
(
'UserID'
))
// const userID = localStorage.getItem('UserID')
// const userID = localStorage.getItem('UserID')
const
userID
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
const
userID
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
{
params
:
{
params
:
{
USERID
:
userID
,
USERID
:
userID
,
...
@@ -672,7 +673,7 @@ obj=this.typeform*/
...
@@ -672,7 +673,7 @@ obj=this.typeform*/
deptFindContract
()
{
deptFindContract
()
{
const
deptId
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
deptId
const
deptId
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
deptId
console
.
log
(
'参数deptId'
,
deptId
)
console
.
log
(
'参数deptId'
,
deptId
)
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
{
params
:
{
params
:
{
DEPTCODE
:
deptId
,
DEPTCODE
:
deptId
,
...
@@ -699,7 +700,7 @@ obj=this.typeform*/
...
@@ -699,7 +700,7 @@ obj=this.typeform*/
},
},
/** 全部数据列表查询*/
/** 全部数据列表查询*/
allFindContract
()
{
allFindContract
()
{
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
{
params
:
{
params
:
{
rows
:
this
.
allRows
,
rows
:
this
.
allRows
,
...
@@ -729,7 +730,7 @@ obj=this.typeform*/
...
@@ -729,7 +730,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
.
delete
(
'http://117.122.212.101:8092
/contract/contract/realDelete/'
+
row
.
FROMID
).
then
(
res
=>
{
this
.
$axios
.
delete
(
this
.
HTTPApi
+
'
/contract/contract/realDelete/'
+
row
.
FROMID
).
then
(
res
=>
{
if
(
!
res
.
errno
)
{
if
(
!
res
.
errno
)
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
...
...
src/views/userInfo/index.vue
View file @
704f9c4e
...
@@ -51,6 +51,7 @@ export default {
...
@@ -51,6 +51,7 @@ export default {
name
:
'UserInfo'
,
name
:
'UserInfo'
,
data
()
{
data
()
{
return
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
user
:
'admin'
,
user
:
'admin'
,
pwdTypeMap
:
{
pwdTypeMap
:
{
text
:
true
,
text
:
true
,
...
@@ -117,7 +118,7 @@ export default {
...
@@ -117,7 +118,7 @@ export default {
this
.
queryData
()
this
.
queryData
()
},
},
queryData
()
{
queryData
()
{
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/sysuser/queryListByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/sysuser/queryListByPage'
,
{
params
:
{
{
params
:
{
rows
:
this
.
rows
,
rows
:
this
.
rows
,
page
:
this
.
page
,
page
:
this
.
page
,
...
...
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