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
2ec8363b
Commit
2ec8363b
authored
Mar 05, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有接口前地址换成变量
parent
09955071
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
30 deletions
+34
-30
.env.development
.env.development
+1
-1
.env.production
.env.production
+1
-1
.env.test
.env.test
+1
-1
index.vue
src/views/journalManage/index.vue
+11
-9
add.vue
src/views/list/add.vue
+11
-10
index.vue
src/views/list/index.vue
+9
-8
No files found.
.env.development
View file @
2ec8363b
...
@@ -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://10.19.100.58:8090
'
# workFlow链接地址
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
VUE_APP_WORKFLOW = '/workFlow'
# login地址
# login地址
...
...
.env.production
View file @
2ec8363b
...
@@ -4,4 +4,4 @@ ENV = 'production'
...
@@ -4,4 +4,4 @@ ENV = 'production'
# 生产环境
# 生产环境
# base api
# base api
VUE_APP_BASE_API = 'http://1
17.122.212.101
:8090'
VUE_APP_BASE_API = 'http://1
0.19.100.58
:8090'
.env.test
View file @
2ec8363b
...
@@ -3,5 +3,5 @@ ENV = 'test'
...
@@ -3,5 +3,5 @@ ENV = 'test'
NODE_ENV
=
'production'
NODE_ENV
=
'production'
# 测试环境
# 测试环境
# base api
# base api
VUE_APP_BASE_API
=
'http://10.19.10
3.15
:8090'
VUE_APP_BASE_API
=
'http://10.19.10
0.58
:8090'
src/views/journalManage/index.vue
View file @
2ec8363b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,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=
"CONNAMECN"
width=
"150"
/>
<el-table-column
label=
"合同中文名"
prop=
"CONNAMECN"
width=
"150"
/>
<el-table-column
label=
"合同编码"
prop=
"CONMAINCODE"
width=
"150"
/>
<el-table-column
label=
"合同编码"
prop=
"CONMAINCODE"
width=
"150"
/>
...
@@ -70,16 +70,17 @@
...
@@ -70,16 +70,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} " />
...
@@ -97,6 +98,7 @@ export default {
...
@@ -97,6 +98,7 @@ export default {
name
:
'AdminList'
,
name
:
'AdminList'
,
data
()
{
data
()
{
return
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
searchParams
:
{
searchParams
:
{
CREATEDATE
:
''
CREATEDATE
:
''
},
},
...
@@ -123,7 +125,7 @@ export default {
...
@@ -123,7 +125,7 @@ export default {
})
})
},
},
del
(
row
)
{
del
(
row
)
{
this
.
$axios
.
delete
(
'http://10.19.103.15:8090
/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)*/
...
@@ -147,7 +149,7 @@ export default {
...
@@ -147,7 +149,7 @@ export default {
},
},
findLog
()
{
findLog
()
{
console
.
log
(
'时间'
,
this
.
searchParams
.
CREATEDATE
)
console
.
log
(
'时间'
,
this
.
searchParams
.
CREATEDATE
)
this
.
$axios
.
get
(
'http://10.19.103.15:8090
/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/add.vue
View file @
2ec8363b
...
@@ -1589,6 +1589,7 @@ export default {
...
@@ -1589,6 +1589,7 @@ export default {
name
:
'ContractDetail'
,
name
:
'ContractDetail'
,
data
()
{
data
()
{
return
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
// 上传的文件列表
// 上传的文件列表
fileList
:
[],
fileList
:
[],
checked
:
false
,
checked
:
false
,
...
@@ -1852,7 +1853,7 @@ export default {
...
@@ -1852,7 +1853,7 @@ export default {
getDetails
()
{
getDetails
()
{
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
const
FROMID
=
this
.
$route
.
query
.
row
.
FROMID
const
FROMID
=
this
.
$route
.
query
.
row
.
FROMID
this
.
$axios
.
get
(
'http://10.19.100.58:8090
/contract/contract/detail/'
+
FROMID
).
then
(
res
=>
{
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/detail/'
+
FROMID
).
then
(
res
=>
{
this
.
form
=
res
.
data
.
data
this
.
form
=
res
.
data
.
data
if
(
res
.
data
.
data
.
TZXX
===
null
)
{
if
(
res
.
data
.
data
.
TZXX
===
null
)
{
this
.
form
.
TZXX
=
{}
this
.
form
.
TZXX
=
{}
...
@@ -1911,7 +1912,7 @@ export default {
...
@@ -1911,7 +1912,7 @@ export default {
}
}
},
},
findMap
()
{
findMap
()
{
this
.
$axios
.
get
(
'http://10.19.100.58:8090
/contract/contract/getDictData'
).
then
(
res
=>
{
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/getDictData'
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
language
=
res
.
data
.
data
.
LANGUAGE
this
.
language
=
res
.
data
.
data
.
LANGUAGE
this
.
DM_BZJLX
=
res
.
data
.
data
.
DM_BZJLX
this
.
DM_BZJLX
=
res
.
data
.
data
.
DM_BZJLX
...
@@ -1971,7 +1972,7 @@ export default {
...
@@ -1971,7 +1972,7 @@ export default {
downLoadFile
(
row
)
{
downLoadFile
(
row
)
{
// 下载按钮
// 下载按钮
console
.
log
(
row
)
console
.
log
(
row
)
this
.
$axios
.
get
(
'http://10.19.100.58:8090
/contractjxx/contract-fjxx/downLoad/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contractjxx/contract-fjxx/downLoad/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
if
(
!
res
.
errno
)
{
if
(
!
res
.
errno
)
{
console
.
log
(
this
.
data
)
console
.
log
(
this
.
data
)
}
}
...
@@ -2006,7 +2007,7 @@ export default {
...
@@ -2006,7 +2007,7 @@ export default {
console
.
log
(
'参数参数'
,
formData
)
console
.
log
(
'参数参数'
,
formData
)
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://10.19.100.58:8090
/contractjxx/contract-fjxx/upload'
,
url
:
this
.
HTTPApi
+
'
/contractjxx/contract-fjxx/upload'
,
data
:
formData
})
data
:
formData
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
!
res
.
errno
)
{
if
(
!
res
.
errno
)
{
...
@@ -2026,7 +2027,7 @@ export default {
...
@@ -2026,7 +2027,7 @@ export default {
formData
.
append
(
'file'
,
file
.
file
)
formData
.
append
(
'file'
,
file
.
file
)
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://10.19.100.58:8090
/contractjxx/contract-fjxx/upload'
,
url
:
this
.
HTTPApi
+
'
/contractjxx/contract-fjxx/upload'
,
data
:
formData
})
data
:
formData
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
!
res
.
errno
)
{
if
(
!
res
.
errno
)
{
...
@@ -2129,7 +2130,7 @@ export default {
...
@@ -2129,7 +2130,7 @@ export default {
this
.
form
.
BZJXX
.
splice
(
i
,
1
)
this
.
form
.
BZJXX
.
splice
(
i
,
1
)
},
},
delFile
(
i
,
row
)
{
delFile
(
i
,
row
)
{
this
.
$axios
.
delete
(
'http://10.19.100.58:8090
/contractjxx/contract-fjxx/realDeleteByBusinessId/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
this
.
$axios
.
delete
(
this
.
HTTPApi
+
'
/contractjxx/contract-fjxx/realDeleteByBusinessId/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
// eslint-disable-next-line no-empty
// eslint-disable-next-line no-empty
if
(
!
res
.
errno
)
{}
if
(
!
res
.
errno
)
{}
})
})
...
@@ -2204,7 +2205,7 @@ export default {
...
@@ -2204,7 +2205,7 @@ export default {
if
(
this
.
$route
.
query
.
type
===
'add'
)
{
if
(
this
.
$route
.
query
.
type
===
'add'
)
{
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://10.19.100.58:8090
/contract/contract/add'
,
url
:
this
.
HTTPApi
+
'
/contract/contract/add'
,
data
:
this
.
form
data
:
this
.
form
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -2239,7 +2240,7 @@ export default {
...
@@ -2239,7 +2240,7 @@ export default {
}
else
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
}
else
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
this
.
$axios
({
this
.
$axios
({
method
:
'put'
,
method
:
'put'
,
url
:
'http://10.19.100.58:8090
/contract/contract/merge'
,
url
:
this
.
HTTPApi
+
'
/contract/contract/merge'
,
data
:
this
.
form
data
:
this
.
form
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -2286,7 +2287,7 @@ export default {
...
@@ -2286,7 +2287,7 @@ export default {
if
(
this
.
$route
.
query
.
type
===
'add'
)
{
if
(
this
.
$route
.
query
.
type
===
'add'
)
{
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://10.19.100.58:8090
/contract/contract/add'
,
url
:
this
.
HTTPApi
+
'
/contract/contract/add'
,
data
:
this
.
form
data
:
this
.
form
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -2321,7 +2322,7 @@ export default {
...
@@ -2321,7 +2322,7 @@ export default {
}
else
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
}
else
if
(
this
.
$route
.
query
.
type
===
'update'
)
{
this
.
$axios
({
this
.
$axios
({
method
:
'put'
,
method
:
'put'
,
url
:
'http://10.19.100.58:8090
/contract/contract/merge'
,
url
:
this
.
HTTPApi
+
'
/contract/contract/merge'
,
data
:
this
.
form
data
:
this
.
form
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
...
src/views/list/index.vue
View file @
2ec8363b
...
@@ -280,6 +280,7 @@ export default {
...
@@ -280,6 +280,7 @@ export default {
name
:
'AdminList'
,
name
:
'AdminList'
,
data
()
{
data
()
{
return
{
return
{
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
activeName
:
'first'
,
activeName
:
'first'
,
jurisdiction
:
localStorage
.
getItem
(
'UserID'
),
// 推送权限
jurisdiction
:
localStorage
.
getItem
(
'UserID'
),
// 推送权限
serchForm
:
{
serchForm
:
{
...
@@ -525,7 +526,7 @@ obj=this.typeform*/
...
@@ -525,7 +526,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
$axios
.
put
(
'http://10.19.100.58:8090
/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
:
'修改成功!'
...
@@ -550,7 +551,7 @@ obj=this.typeform*/
...
@@ -550,7 +551,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
$axios
.
put
(
'http://10.19.100.58:8090
/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
({
...
@@ -578,7 +579,7 @@ obj=this.typeform*/
...
@@ -578,7 +579,7 @@ obj=this.typeform*/
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://10.19.100.58:8090
/contract/contract/checkBatch'
url
:
this
.
HTTPApi
+
'
/contract/contract/checkBatch'
}
)
}
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
if
(
res
.
data
.
code
===
'200'
)
{
...
@@ -602,7 +603,7 @@ obj=this.typeform*/
...
@@ -602,7 +603,7 @@ obj=this.typeform*/
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
$axios
({
this
.
$axios
({
method
:
'post'
,
method
:
'post'
,
url
:
'http://10.19.100.58:8090
/contract/contract/synchron'
url
:
this
.
HTTPApi
+
'
/contract/contract/synchron'
}
)
}
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
'200'
)
{
if
(
res
.
data
.
code
===
'200'
)
{
...
@@ -645,7 +646,7 @@ obj=this.typeform*/
...
@@ -645,7 +646,7 @@ obj=this.typeform*/
findContract
()
{
findContract
()
{
console
.
log
(
'登录人ID'
,
localStorage
.
getItem
(
'UserID'
))
console
.
log
(
'登录人ID'
,
localStorage
.
getItem
(
'UserID'
))
const
userID
=
localStorage
.
getItem
(
'UserID'
)
const
userID
=
localStorage
.
getItem
(
'UserID'
)
this
.
$axios
.
get
(
'http://10.19.100.58:8090
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
{
params
:
{
params
:
{
USERID
:
userID
,
USERID
:
userID
,
...
@@ -673,7 +674,7 @@ obj=this.typeform*/
...
@@ -673,7 +674,7 @@ obj=this.typeform*/
/** 部门列表查询*/
/** 部门列表查询*/
deptFindContract
()
{
deptFindContract
()
{
const
deptID
=
localStorage
.
getItem
(
'deptId'
)
const
deptID
=
localStorage
.
getItem
(
'deptId'
)
this
.
$axios
.
get
(
'http://10.19.100.58:8090
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
{
params
:
{
params
:
{
DEPTCODE
:
deptID
,
DEPTCODE
:
deptID
,
...
@@ -700,7 +701,7 @@ obj=this.typeform*/
...
@@ -700,7 +701,7 @@ obj=this.typeform*/
}
,
}
,
/** 全部列表查询*/
/** 全部列表查询*/
allFindContract
()
{
allFindContract
()
{
this
.
$axios
.
get
(
'http://10.19.100.58:8090
/contract/contract/queryContractByPage'
,
this
.
$axios
.
get
(
this
.
HTTPApi
+
'
/contract/contract/queryContractByPage'
,
{
{
params
:
{
params
:
{
rows
:
this
.
allRows
,
rows
:
this
.
allRows
,
...
@@ -730,7 +731,7 @@ obj=this.typeform*/
...
@@ -730,7 +731,7 @@ obj=this.typeform*/
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
$axios
.
delete
(
'http://10.19.100.58:8090
/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'
,
...
...
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