Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
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
wangweidong
patzn-cloud-web-back-soil
Commits
35dacb14
Commit
35dacb14
authored
Jun 06, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分包方管理
parent
97f04518
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
meter-subcontractor.js
api/meter/meter-subcontractor.js
+2
-1
MeterSubcontractor.vue
pages/meter-subcontract/subcontractor/MeterSubcontractor.vue
+15
-10
No files found.
api/meter/meter-subcontractor.js
View file @
35dacb14
...
@@ -7,9 +7,10 @@ import http from '../http'
...
@@ -7,9 +7,10 @@ import http from '../http'
export
default
{
export
default
{
// page
// page
page
:
data
=>
http
.
post
(
'meter/v1/subcontractor/page'
,
data
).
then
(
res
=>
res
),
page
:
data
=>
http
.
post
(
'meter/v1/subcontractor/page'
,
data
).
then
(
res
=>
res
),
getById
:
data
=>
http
.
get
(
'meter/v1/subcontractor/'
+
data
).
then
(
res
=>
res
),
// 保存
// 保存
save
:
data
=>
http
.
post
(
'meter/v1/subcontractor/'
,
data
).
then
(
res
=>
res
),
save
:
data
=>
http
.
post
(
'meter/v1/subcontractor/'
,
data
).
then
(
res
=>
res
),
// 编辑
// 编辑
edit
:
data
=>
edit
:
data
=>
http
.
p
os
t
(
'meter/v1/subcontractor/'
+
data
.
id
,
data
.
obj
).
then
(
res
=>
res
)
http
.
p
u
t
(
'meter/v1/subcontractor/'
+
data
.
id
,
data
.
obj
).
then
(
res
=>
res
)
}
}
pages/meter-subcontract/subcontractor/MeterSubcontractor.vue
View file @
35dacb14
...
@@ -68,24 +68,21 @@ export default {
...
@@ -68,24 +68,21 @@ export default {
],
],
iconMsg
:
[
iconMsg
:
[
{
{
type
:
'
compose
'
,
type
:
'
ios-clock
'
,
id
:
''
,
id
:
''
,
name
:
'编辑'
,
name
:
'编辑'
componentName
:
'FoodSubcontracterEdit'
},
},
{
{
type
:
'
stats-bars
'
,
type
:
'
ios-clock
'
,
id
:
''
,
id
:
''
,
name
:
'资质项目'
,
name
:
'资质项目'
componentName
:
'FoodSubcontracterItem'
},
},
{
type
:
'
cloud'
,
id
:
''
,
name
:
'附件'
,
componentName
:
'FileManage
'
},
{
type
:
'
ios-clock'
,
id
:
''
,
name
:
'附件
'
},
{
type
:
'
trash-a
'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'
ios-clock
'
,
id
:
''
,
name
:
'删除'
},
{
{
type
:
'ios-clock'
,
type
:
'ios-clock'
,
id
:
''
,
id
:
''
,
name
:
'操作日志'
,
name
:
'操作日志'
componentName
:
'FoodSubRecord'
}
}
],
],
formObj
:
{
formObj
:
{
...
@@ -207,6 +204,8 @@ export default {
...
@@ -207,6 +204,8 @@ export default {
_editModal
(
edit
,
id
)
{
_editModal
(
edit
,
id
)
{
if
(
edit
)
{
if
(
edit
)
{
// 编辑
// 编辑
// this.$refs.editSubcontractorModal._open(id)
this
.
_getById
(
id
)
}
else
{
}
else
{
// 添加
// 添加
this
.
$refs
.
editSubcontractorModal
.
_open
()
this
.
$refs
.
editSubcontractorModal
.
_open
()
...
@@ -220,6 +219,12 @@ export default {
...
@@ -220,6 +219,12 @@ export default {
_upload
(
id
)
{
_upload
(
id
)
{
// 上传文件
// 上传文件
this
.
$refs
.
refModal
.
_open
(
id
,
'subcontractorId'
)
this
.
$refs
.
refModal
.
_open
(
id
,
'subcontractorId'
)
},
_getById
:
async
function
(
id
)
{
const
result
=
await
meterSubcontractor
.
getById
(
id
)
if
(
result
)
{
this
.
$refs
.
editSubcontractorModal
.
_open
(
result
)
}
}
}
}
}
}
}
...
...
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