Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UI-TW
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GoMax
UI-TW
Commits
49f6e304
Commit
49f6e304
authored
Apr 26, 2018
by
肖小磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传任务新增上传脚本功能
parent
f36d8bf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
src/components/task/list.vue
+7
-0
src/components/task/showShop.vue
+1
-0
src/components/task/showTerminal.vue
+14
-6
No files found.
src/components/task/list.vue
View file @
49f6e304
...
...
@@ -500,6 +500,13 @@ export default {
console
.
log
(
res
);
var
pos
=
res
.
data
.
selectedPos
;
var
stores
=
res
.
data
.
selectedStores
;
pos
.
forEach
(
function
(
element
){
element
.
storeName
=
"("
+
element
.
storeID
+
")"
+
element
.
storeName
;
});
stores
.
forEach
(
function
(
element
){
element
.
name
=
"("
+
element
.
storeID
+
")"
+
element
.
name
;
});
if
(
res
.
data
.
taskType
==
1
)
{
that
.
createUploadTask
.
OpenUpShadow
(
res
.
data
.
uploadTask
,
pos
,
stores
);
...
...
src/components/task/showShop.vue
View file @
49f6e304
...
...
@@ -178,6 +178,7 @@ export default {
name
:
event
.
target
.
name
}
if
(
event
.
target
.
checked
)
{
store
.
name
=
"("
+
store
.
storeId
+
")"
+
store
.
name
;
this
.
selectStoreListView
.
push
(
store
);
this
.
selectStoreList
.
push
(
store
.
storeId
);
...
...
src/components/task/showTerminal.vue
View file @
49f6e304
...
...
@@ -54,11 +54,11 @@
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
"storeName"
label=
"店名称"
width=
"
12
0"
show-overflow-tooltip
>
<el-table-column
prop=
"storeName"
label=
"店名称"
width=
"
20
0"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"posID"
label=
"终端编号"
width=
"1
2
0"
show-overflow-tooltip
>
<el-table-column
prop=
"posID"
label=
"终端编号"
width=
"1
3
0"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"ip"
label=
"终端IP"
width=
"1
2
0"
show-overflow-tooltip
>
<el-table-column
prop=
"ip"
label=
"终端IP"
width=
"1
3
0"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"type"
label=
"终端类型 "
show-overflow-tooltip
>
</el-table-column>
...
...
@@ -69,11 +69,11 @@
<el-col
:span=
"12"
style=
"padding:20px 20px; height:400px; overflow-y:scroll; text-align:left;"
>
<el-table
ref=
"multipleTable"
:data=
"selectStoreListView"
border
tooltip-effect=
"dark"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
prop=
"storeName"
label=
"店名称"
width=
"
12
0"
show-overflow-tooltip
>
<el-table-column
prop=
"storeName"
label=
"店名称"
width=
"
20
0"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"posID"
label=
"终端编号"
width=
"1
2
0"
show-overflow-tooltip
>
<el-table-column
prop=
"posID"
label=
"终端编号"
width=
"1
3
0"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"ip"
label=
"终端IP"
width=
"1
2
0"
show-overflow-tooltip
>
<el-table-column
prop=
"ip"
label=
"终端IP"
width=
"1
3
0"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"type"
label=
"终端类型 "
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"70"
>
...
...
@@ -369,6 +369,14 @@ export default {
success
(
res
)
{
that
.
total
=
res
.
data
.
total
;
that
.
storeListView
=
res
.
data
.
taskPosList
;
// that.storeListView.forEach(element => {
// element.storeName = "(" + storeName.storeId + ")" + element.storeName;
// alert( element.storeName);
// });
that
.
storeListView
.
forEach
(
function
(
element
){
element
.
storeName
=
"("
+
element
.
storeID
+
")"
+
element
.
storeName
;
});
if
(
typeof
callback
==
"function"
){
callback
();
}
...
...
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