Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kanban-nanjing-11
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caolun
kanban-nanjing-11
Commits
11da8045
Commit
11da8045
authored
May 31, 2024
by
xcc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工位选则
parent
7b8171a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
index1.html
index1.html
+11
-8
No files found.
index1.html
View file @
11da8045
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
showDilog
:
true
,
showDilog
:
true
,
gongweiList
:[
gongweiList
:[
{
{
lable
:
"
工位111
"
,
lable
:
"
工位111
"
,
...
@@ -153,8 +153,14 @@
...
@@ -153,8 +153,14 @@
methods
:
{
methods
:
{
// 工位切换
// 工位切换
gongweiFunc
(
o
,
i
){
gongweiFunc
(
o
,
i
){
fetch
(
'
http://127.0.0.1:8180/stage-api/base/site/selectListSite
'
,
this
.
gongweiList
=
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
gongweiList
))
).
map
((
o
)
=>
Object
.
assign
({},
o
,{
active
:
false
})
)
{
method
:
'
GET
'
,
headers
:
{
'
Authorization
'
:
'
Bearer_b3e1b7b2-51c8-451b-944b-dccf3491ad32
'
}})
.
then
(
response
=>
response
.
json
())
.
then
(
data
=>
{
this
.
gongweiList
=
data
.
data
.
map
((
o
)
=>
Object
.
assign
({},
o
,{
active
:
false
,
lable
:
o
.
siteName
}));
})
.
catch
(
error
=>
console
.
error
(
'
Error:
'
,
error
));
// this.gongweiList= ( JSON.parse(JSON.stringify(this.gongweiList)) ).map((o)=> Object.assign({},o,{active:false}) )
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
_data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
gongweiList
))
const
_data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
gongweiList
))
...
@@ -167,12 +173,12 @@
...
@@ -167,12 +173,12 @@
})
})
})
})
},
},
// 确定
// 确定
submit1
(){
submit1
(){
const
_data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
gongweiList
)).
filter
(
o
=>
o
.
active
)
const
_data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
gongweiList
)).
filter
(
o
=>
o
.
active
)
// 选中值
// 选中值
...
@@ -195,9 +201,6 @@
...
@@ -195,9 +201,6 @@
<script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
var
iframe1
=
document
.
getElementById
(
'
myiframe1
'
).
contentWindow
;
var
iframe1
=
document
.
getElementById
(
'
myiframe1
'
).
contentWindow
;
var
iframe2
=
document
.
getElementById
(
'
myiframe2
'
).
contentWindow
;
var
iframe2
=
document
.
getElementById
(
'
myiframe2
'
).
contentWindow
;
var
iframe3
=
document
.
getElementById
(
'
myiframe3
'
).
contentWindow
;
var
iframe3
=
document
.
getElementById
(
'
myiframe3
'
).
contentWindow
;
...
...
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