Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
3cf189e3
Commit
3cf189e3
authored
Nov 01, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
5f590d7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
main1/main_text.py
View file @
3cf189e3
...
...
@@ -312,7 +312,14 @@ def main_text():
button
.
pack
()
root
.
mainloop
()
def
del_other_branch_info
():
branch_id_list
=
delData
().
get_branch_id_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"院区新增"
,
'message'
)[
'branch_id'
])
if
len
(
branch_id_list
)
==
0
:
print
(
'无其他院区数据'
)
messagebox
.
showinfo
(
"提示信息"
,
"无其他院区数据需要删除"
)
else
:
for
i
in
branch_id_list
:
button_clicked
(
i
)
def
button_clicked
(
branch_id
):
result
=
confirm
()
if
result
==
True
:
...
...
@@ -426,7 +433,8 @@ def main_text():
column
=
2
)
Button
(
root
,
text
=
'删除5天前
\n
产品数据'
,
anchor
=
'center'
,
width
=
8
,
height
=
3
,
command
=
del_goods_info
).
grid
(
row
=
6
,
column
=
4
)
Button
(
root
,
text
=
'一键删除其他
\n
院区数据'
,
anchor
=
'center'
,
width
=
8
,
height
=
3
,
command
=
del_other_branch_info
).
grid
(
row
=
6
,
column
=
6
)
Button
(
root
,
text
=
'退 出'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
exit
).
grid
(
row
=
5
,
column
=
10
)
# Button(root, text='anchor', anchor='e', width=30, height=4).pack()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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