Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
b1fa7e78
Commit
b1fa7e78
authored
May 13, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止页面重复提交
parent
79be75d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
21 deletions
+36
-21
busHandBook.vue
src/components/busManagement/busHandBook.vue
+36
-21
No files found.
src/components/busManagement/busHandBook.vue
View file @
b1fa7e78
...
@@ -20,6 +20,12 @@
...
@@ -20,6 +20,12 @@
padding-left
:
20px
;
padding-left
:
20px
;
}
}
.comTextdisClick
{
background-color
:
#d1d1d1
;
color
:
#fff
;
border
:
1px
solid
#d1d1d1
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div>
<div>
...
@@ -102,8 +108,9 @@
...
@@ -102,8 +108,9 @@
<tfoot>
<tfoot>
<tr>
<tr>
<td
colspan=
"6"
>
<td
colspan=
"6"
>
<input
type=
"button"
class=
"normalBtn"
@
click=
"SaveData()"
value=
"保存"
/>
<input
type=
"button"
class=
"normalBtn"
:class=
"
{'comTextdisClick':isSave}" @click="SaveData()" value="保存" />
<input
type=
"button"
class=
"normalBtn"
@
click=
"DownLoadFile()"
value=
"下载"
/>
<input
type=
"button"
class=
"normalBtn"
:class=
"
{'comTextdisClick':isSave}" @click="DownLoadFile()"
value="下载" />
</td>
</td>
</tr>
</tr>
</tfoot>
</tfoot>
...
@@ -128,20 +135,25 @@
...
@@ -128,20 +135,25 @@
Remarks
:
""
,
Remarks
:
""
,
Details_Extends
:
[]
Details_Extends
:
[]
},
},
isSave
:
false
,
TCIDS
:
""
TCIDS
:
""
}
}
},
},
methods
:
{
methods
:
{
DownLoadFile
(
item
)
{
DownLoadFile
(
item
)
{
let
msg
=
{
if
(
!
this
.
isSave
)
{
TCIDS
:
this
.
TCIDS
this
.
isSave
=
true
;
};
let
msg
=
{
this
.
loading
=
true
;
TCIDS
:
this
.
TCIDS
var
fileName
=
"バス手配依頼書"
+
this
.
DataObj
.
TeamNum
+
".xls"
;
};
this
.
GetLocalFile
(
"bus_get_DownLoadBusConfig"
,
msg
,
fileName
,
this
.
loading
=
true
;
res
=>
{
var
fileName
=
"バス手配依頼書"
+
this
.
DataObj
.
TeamNum
+
".xls"
;
this
.
loading
=
false
;
this
.
GetLocalFile
(
"bus_get_DownLoadBusConfig"
,
msg
,
fileName
,
});
res
=>
{
this
.
loading
=
false
;
this
.
isSave
=
false
;
});
}
},
},
GetData
()
{
GetData
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -151,22 +163,25 @@
...
@@ -151,22 +163,25 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataObj
=
res
.
data
.
data
;
this
.
DataObj
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
SaveData
()
{
SaveData
()
{
this
.
DataObj
.
TCIDS
=
this
.
TCIDS
;
if
(
!
this
.
isSave
)
{
this
.
apipost
(
'bus_Post_SaveBusDownLoadData'
,
this
.
DataObj
,
res
=>
{
this
.
isSave
=
true
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataObj
.
TCIDS
=
this
.
TCIDS
;
this
.
Success
(
"操作成功"
);
this
.
apipost
(
'bus_Post_SaveBusDownLoadData'
,
this
.
DataObj
,
res
=>
{
this
.
GetData
();
if
(
res
.
data
.
resultCode
==
1
)
{
}
else
{
this
.
Success
(
"操作成功"
);
this
.
Error
(
res
.
data
.
message
);
this
.
GetData
();
}
}
else
{
},
err
=>
{})
this
.
Error
(
res
.
data
.
message
);
}
this
.
isSave
=
false
;
},
err
=>
{})
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
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