Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
08f5ecde
authored
2020-12-18 16:28:02 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
批量覆盖单元号
1 parent
8a14a55c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
36 deletions
src/views/zrz/lpb/bjlp/index.vue
src/views/zrz/lpb/bjlp/index.vue
View file @
08f5ecd
...
...
@@ -644,44 +644,30 @@ export default {
},
open
(
hasGenerateCount
,
unGenerateCount
)
{
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
'消息'
,
message
:
h
(
'p'
,
null
,
[
h
(
'span'
,
null
,
'未生成单元号有 '
+
unGenerateCount
+
'户,'
),
h
(
'span'
,
null
,
'已经生成单元号有 '
+
hasGenerateCount
+
'户,'
),
h
(
'span'
,
null
,
'是否覆盖全部重新生成?'
),
]),
showCancelButton
:
true
,
this
.
$confirm
(
'未生成单元号有'
+
unGenerateCount
+
'户,已经生成单元号有'
+
hasGenerateCount
+
'户,是否覆盖全部重新生成?'
,
'确认信息'
,
{
distinguishCancelAndClose
:
true
,
confirmButtonText
:
'覆盖全部生成'
,
cancelButtonText
:
'跳过已生成单元号户'
,
beforeClose
:
(
action
,
instance
,
done
)
=>
{
if
(
action
===
'confirm'
)
{
instance
.
confirmButtonLoading
=
true
;
instance
.
confirmButtonText
=
'执行中...'
;
setTimeout
(()
=>
{
done
();
setTimeout
(()
=>
{
batchGeneratorBdcdyh
(
this
.
$store
.
state
.
zrzh
,
this
.
pd
[
0
].
bsm
,
2
).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"生成完成!"
);
}
});
instance
.
confirmButtonLoading
=
false
;
},
300
);
},
3000
);
}
else
{
batchGeneratorBdcdyh
(
this
.
$store
.
state
.
zrzh
,
this
.
pd
[
0
].
bsm
,
1
).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"生成完成!"
);
}
});
done
();
}
}
cancelButtonText
:
'跳过已生成单元号户'
})
.
then
(()
=>
{
batchGeneratorBdcdyh
(
this
.
$store
.
state
.
zrzh
,
this
.
pd
[
0
].
bsm
,
2
).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"生成完成!"
);
}
});
})
.
catch
(
action
=>
{
if
(
action
===
'cancel'
){
batchGeneratorBdcdyh
(
this
.
$store
.
state
.
zrzh
,
this
.
pd
[
0
].
bsm
,
1
).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"生成完成!"
);
}
});
}
});
},
//获取各项单元状态统计数据
...
...
Please
register
or
sign in
to post a comment