Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
af3024ba
authored
2023-01-12 16:06:45 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcjg-web
2 parents
8e84067d
d214b9eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
80 deletions
src/components/dataDetails/edit-dialog.vue
src/components/dataDetails/edit-dialog.vue
View file @
af3024b
...
...
@@ -107,116 +107,128 @@
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
dataReporting
from
'@/api/dataReporting'
import
{
getDetail
}
from
'@/api/sbbwcx.js'
import
{
MessageBox
}
from
'element-ui'
import
{
mapGetters
}
from
"vuex"
;
import
dataReporting
from
"@/api/dataReporting"
;
import
{
getDetail
}
from
"@/api/sbbwcx.js"
;
import
{
MessageBox
}
from
"element-ui"
;
export
default
{
computed
:
{
...
mapGetters
([
'dicData'
])
...
mapGetters
([
"dicData"
]),
},
props
:
{
},
data
()
{
props
:
{},
data
()
{
return
{
dataReport
:
{},
index
:
0
,
bsmYwsjb
:
''
,
bsmYwsjb
:
""
,
ruleFormList
:
{
bizMsgID
:
''
,
asid
:
''
,
areaCode
:
''
,
preestateNum
:
''
,
recType
:
''
,
rightType
:
''
,
regType
:
''
,
certCount
:
''
,
createDate
:
''
,
recFlowID
:
''
,
regOrgID
:
''
,
prllfCount
:
''
,
parcelID
:
''
,
estateNum
:
''
,
preCertID
:
''
,
digitalSign
:
''
bizMsgID
:
""
,
asid
:
""
,
areaCode
:
""
,
preestateNum
:
""
,
recType
:
""
,
rightType
:
""
,
regType
:
""
,
certCount
:
""
,
createDate
:
""
,
recFlowID
:
""
,
regOrgID
:
""
,
prllfCount
:
""
,
parcelID
:
""
,
estateNum
:
""
,
preCertID
:
""
,
digitalSign
:
""
,
},
images
:
require
(
'./images/success.gif'
),
images
:
require
(
"./images/success.gif"
),
saveloding
:
false
,
dialogVisible
:
false
,
activeName
:
undefined
,
editItem
:
''
,
title
:
''
,
editItem
:
""
,
title
:
""
,
headerList
:
[],
dataTable
:
''
}
dataTable
:
""
,
}
;
},
methods
:
{
isShow
(
item
)
{
isShow
(
item
)
{
this
.
dataReport
=
item
;
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
;
//获取表头列表
getDetail
({
b
izmsgid
:
this
.
dataReport
.
bizmsgid
}).
then
(
res
=>
{
getDetail
({
b
smReport
:
this
.
dataReport
.
bsmReport
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
headerList
=
res
.
result
this
.
headerList
=
res
.
result
;
}
})
})
;
},
changeList
(
val
)
{
let
_index
=
val
.
index
changeList
(
val
)
{
let
_index
=
val
.
index
;
if
(
_index
>
this
.
index
)
{
}
this
.
index
=
_index
this
.
bsmYwsjb
=
this
.
headerList
[
val
.
index
].
bsmYwsjb
this
.
editItem
=
this
.
loadView
(
this
.
activeName
)
this
.
index
=
_index
;
this
.
bsmYwsjb
=
this
.
headerList
[
val
.
index
].
bsmYwsjb
;
this
.
editItem
=
this
.
loadView
(
this
.
activeName
)
;
this
.
diaData
.
list
.
forEach
((
item
)
=>
{
if
(
item
.
soleurl
==
this
.
activeName
)
{
this
.
dataTable
=
item
.
dataTable
this
.
dataTable
=
item
.
dataTable
;
}
});
},
loadView
(
view
)
{
return
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
`@/components/business/
${
view
}
`
)))
loadView
(
view
)
{
return
(
r
)
=>
require
.
ensure
([],
()
=>
r
(
require
(
`@/components/business/
${
view
}
`
)));
},
closeDialog
()
{
this
.
dialogVisible
=
false
closeDialog
()
{
this
.
dialogVisible
=
false
;
},
submitForm
()
{
let
_this
=
this
this
.
$store
.
dispatch
(
'business/setRules'
,
this
.
$store
.
state
.
business
.
subRules
)
submitForm
()
{
let
_this
=
this
;
this
.
$store
.
dispatch
(
"business/setRules"
,
this
.
$store
.
state
.
business
.
subRules
);
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'editItem'
]
&&
this
.
$refs
[
'editItem'
].
verificationForm
().
then
(
res
=>
{
if
(
!
res
)
{
_this
.
$message
({
message
:
'请检查表单必填项是否完整'
,
type
:
'warning'
})
return
false
}
else
{
_this
.
saveloding
=
true
_this
.
$refs
[
'editItem'
].
handleUpdateForm
().
then
(
res
=>
{
if
(
res
==
200
)
{
_this
.
$alert
(
'<p><img class="success-images" src="'
+
this
.
images
+
'"/>编辑成功!</p>'
,
'提示'
,
{
showConfirmButton
:
false
,
dangerouslyUseHTMLString
:
true
this
.
$refs
[
"editItem"
]
&&
this
.
$refs
[
"editItem"
].
verificationForm
().
then
((
res
)
=>
{
if
(
!
res
)
{
_this
.
$message
({
message
:
"请检查表单必填项是否完整"
,
type
:
"warning"
,
});
return
false
;
}
else
{
_this
.
saveloding
=
true
;
_this
.
$refs
[
"editItem"
]
.
handleUpdateForm
()
.
then
((
res
)
=>
{
if
(
res
==
200
)
{
_this
.
$alert
(
'<p><img class="success-images" src="'
+
this
.
images
+
'"/>编辑成功!</p>'
,
"提示"
,
{
showConfirmButton
:
false
,
dangerouslyUseHTMLString
:
true
,
}
);
setTimeout
(()
=>
{
MessageBox
.
close
(
false
);
},
1500
);
}
})
setTimeout
(()
=>
{
MessageBox
.
close
(
false
)
},
1500
)
}
}).
catch
(
function
(
error
)
{
_this
.
$alert
(
error
,
'提示'
,
{
confirmButtonText
:
'确定'
,
type
:
'error'
})
});
_this
.
saveloding
=
false
}
})
})
}
}
}
.
catch
(
function
(
error
)
{
_this
.
$alert
(
error
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"error"
,
});
});
_this
.
saveloding
=
false
;
}
});
});
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
...
...
Please
register
or
sign in
to post a comment