Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tianjin
Project
Project
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
徐来柯
tianjin
Commits
8804fa40
Commit
8804fa40
authored
Jan 28, 2021
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8f56f0e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
ProducSchedule.vue
src/views/education/ProducSchedule.vue
+28
-14
No files found.
src/views/education/ProducSchedule.vue
View file @
8804fa40
...
...
@@ -188,6 +188,7 @@ export default {
itemdata
:[],
deleteRowData
:[],
deleteManyData
:[],
currentRow
:
[],
editData
:[],
typeV
:
''
,
pathE
:
''
,
...
...
@@ -226,8 +227,8 @@ export default {
},
methods
:{
//查询
query
(
keyWord
){
this
.
$axios
({
async
query
(
keyWord
){
await
this
.
$axios
({
method
:
"post"
,
url
:
`/api/Schedule/Schedule_Query?argKeyWord=
${
keyWord
.
argKeyWord
}
&argKeyWord1=
${
keyWord
.
argKeyWord1
}
&argWhere=
${
keyWord
.
argWhere
}
&Stime=
${
keyWord
.
Stime
}
&Etime=
${
keyWord
.
Etime
}
`
,
}).
then
((
res
)
=>
{
...
...
@@ -532,8 +533,12 @@ export default {
},
//勾选
handleSelectionChange
(
val
){
console
.
log
(
val
)
if
(
val
&&
val
.
length
!==
0
)
{
this
.
deleteManyData
=
val
this
.
currentRow
=
val
}
else
{
this
.
deleteManyData
=
val
}
},
//暂停
zantin
(
data
){
...
...
@@ -685,14 +690,14 @@ export default {
}
},
//移动接口
A_MoveFun
(
id1
,
id2
,
text
){
async
A_MoveFun
(
id1
,
id2
,
text
){
var
$this
=
this
this
.
$axios
({
await
this
.
$axios
({
method
:
"post"
,
url
:
`/api/Schedule/Schedule_Move?argID1=
${
id1
}
&&argID2=
${
id2
}
`
,
}).
then
(
(
res
)
=>
{
}).
then
(
async
(
res
)
=>
{
var
postData
=
this
.
resetData
()
$this
.
query
(
postData
)
await
$this
.
query
(
postData
)
}).
catch
((
err
)
=>
{
this
.
typeV
=
'7'
this
.
deleteShow
=
true
...
...
@@ -704,15 +709,16 @@ export default {
})
},
//上移
MoveUp
(){
async
MoveUp
(){
if
(
this
.
deleteManyData
.
length
==
1
){
for
(
let
i
=
0
;
i
<
this
.
AllTableData
.
length
;
i
++
){
if
(
this
.
AllTableData
[
i
].
ID
==
this
.
deleteManyData
[
0
].
ID
){
if
(
i
!=
0
){
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
this
.
AllTableData
[
i
-
1
].
ID
)
await
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
this
.
AllTableData
[
i
-
1
].
ID
)
}
else
{
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
''
,
'up'
)
await
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
''
,
'up'
)
}
this
.
section
()
}
}
}
else
if
(
this
.
deleteManyData
.
length
>
1
){
...
...
@@ -725,16 +731,24 @@ export default {
this
.
deleteShow
=
true
}
},
section
()
{
var
$this
=
this
$this
.
AllTableData
.
forEach
(
row
=>
{
$this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
row
.
ID
===
this
.
currentRow
[
0
].
ID
)
})
},
//下移
MoveDown
(){
async
MoveDown
(){
if
(
this
.
deleteManyData
.
length
==
1
){
for
(
let
i
=
0
;
i
<
this
.
AllTableData
.
length
;
i
++
){
if
(
this
.
AllTableData
[
i
].
ID
==
this
.
deleteManyData
[
0
].
ID
){
if
(
this
.
AllTableData
[
i
].
ID
==
=
this
.
deleteManyData
[
0
].
ID
){
if
(
i
!=
this
.
AllTableData
.
length
-
1
){
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
this
.
AllTableData
[
i
+
1
].
ID
)
await
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
this
.
AllTableData
[
i
+
1
].
ID
)
}
else
{
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
''
,
'down'
)
await
this
.
A_MoveFun
(
this
.
deleteManyData
[
0
].
ID
,
''
,
'down'
)
}
this
.
section
()
break
}
}
}
else
if
(
this
.
deleteManyData
.
length
>
1
){
...
...
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