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
Show 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 @@
ENV = 'development'
# base api
VUE_APP_BASE_API = '
/dev-api
'
VUE_APP_BASE_API = '
http://117.122.212.101:8092
'
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
# login地址
...
...
src/api/user.js
View file @
704f9c4e
...
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 用户密码修改
export
function
updateUserPwd
(
data
)
{
return
request
({
url
:
'
http://117.122.212.101:8092
/sysuser/modifyPwd'
,
url
:
'/sysuser/modifyPwd'
,
method
:
'put'
,
params
:
data
})
...
...
@@ -11,7 +11,7 @@ export function updateUserPwd(data) {
// 重置
export
function
resetUser
(
user
,
data
)
{
return
request
({
url
:
'
http://117.122.212.101:8092
/sysuser/resetPwd/'
+
user
,
url
:
'/sysuser/resetPwd/'
+
user
,
method
:
'put'
,
params
:
data
})
...
...
src/views/journalManage/index.vue
View file @
704f9c4e
...
...
@@ -36,7 +36,7 @@
<div
class=
"title"
>
日志管理列表
</div>
<el-table
:data=
"data"
border
>
<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=
"type"
width=
"150"
/>
<el-table-column
label=
"编码"
prop=
"CONMAINCODE"
width=
"150"
/>
...
...
@@ -85,16 +85,17 @@
<el-col
:span=
"24"
>
<el-form-item
label=
"操作内容"
>
<el-input
v-model=
"form.CONTENT"
type=
"textarea"
:rows=
"4"
v-model=
"form.CONTENT"
/>
/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="操作状态">-->
<!-- <el-input v-model="form.STATUS" />-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="12">-->
<!-- <el-form-item label="操作状态">-->
<!-- <el-input v-model="form.STATUS" />-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col v-if="form.status === '0'" :span="24">
<el-form-item label="失败信息">
<el-input v-model="form.errorMessage" type="textarea" :autosize="{ minRow: 3, maxRow: 5} " />
...
...
@@ -112,6 +113,7 @@ export default {
name
:
'AdminList'
,
data
()
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
searchParams
:
{
CREATEDATE
:
''
},
...
...
@@ -138,7 +140,7 @@ export default {
})
},
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
)
{
this
.
findLog
()
/* console.log(this.data)*/
...
...
@@ -162,7 +164,7 @@ export default {
},
findLog
()
{
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
:
{
rows
:
this
.
rows
,
page
:
this
.
page
,
...
...
src/views/list/index.vue
View file @
704f9c4e
...
...
@@ -242,6 +242,7 @@ export default {
name
:
'AdminList'
,
data
()
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
jurisdiction
:
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
userId
,
activeName
:
'first'
,
serchForm
:
{
...
...
@@ -534,7 +535,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
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
({
type
:
'success'
,
message
:
'修改成功!'
...
...
@@ -559,7 +560,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
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
)
if
(
res
.
data
.
code
===
'200'
)
{
this
.
$message
({
...
...
@@ -587,7 +588,7 @@ obj=this.typeform*/
}).
then
(()
=>
{
this
.
$axios
({
method
:
'post'
,
url
:
'http://117.122.212.101:8092
/contract/contract/checkBatch'
url
:
this
.
HTTPApi
+
'
/contract/contract/checkBatch'
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
...
...
@@ -611,7 +612,7 @@ obj=this.typeform*/
}).
then
(()
=>
{
this
.
$axios
({
method
:
'post'
,
url
:
'http://117.122.212.101:8092
/contract/contract/synchron'
url
:
this
.
HTTPApi
+
'
/contract/contract/synchron'
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
...
...
@@ -644,7 +645,7 @@ obj=this.typeform*/
console
.
log
(
'登录人ID'
,
localStorage
.
getItem
(
'UserID'
))
// const userID = localStorage.getItem('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
:
{
USERID
:
userID
,
...
...
@@ -672,7 +673,7 @@ obj=this.typeform*/
deptFindContract
()
{
const
deptId
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
)).
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
:
{
DEPTCODE
:
deptId
,
...
...
@@ -699,7 +700,7 @@ obj=this.typeform*/
},
/** 全部数据列表查询*/
allFindContract
()
{
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
params
:
{
rows
:
this
.
allRows
,
...
...
@@ -729,7 +730,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
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
)
{
this
.
$message
({
type
:
'success'
,
...
...
src/views/userInfo/index.vue
View file @
704f9c4e
...
...
@@ -51,6 +51,7 @@ export default {
name
:
'UserInfo'
,
data
()
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
user
:
'admin'
,
pwdTypeMap
:
{
text
:
true
,
...
...
@@ -117,7 +118,7 @@ export default {
this
.
queryData
()
},
queryData
()
{
this
.
$axios
.
get
(
'http://117.122.212.101:8092
/sysuser/queryListByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/sysuser/queryListByPage'
,
{
params
:
{
rows
:
this
.
rows
,
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