Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
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
李苏
lxyl-vue
Commits
7f1c4bf9
Commit
7f1c4bf9
authored
May 22, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多选
parent
e8f2cd4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
edit.vue
src/views/ccgl/jcsj/gwwh/edit.vue
+1
-1
index.vue
src/views/ccgl/jcsj/gwwh/index.vue
+17
-4
No files found.
src/views/ccgl/jcsj/gwwh/edit.vue
View file @
7f1c4bf9
...
...
@@ -45,7 +45,7 @@
label
:
'工位类型'
,
prop
:
'type'
,
span
:
12
,
type
:
'RelSelect'
,
type
:
'Rel
Mul
Select'
,
typeConfig
:
{
src
:
"lxyl/jcsj/ugw/init/gwlx"
},
...
...
src/views/ccgl/jcsj/gwwh/index.vue
View file @
7f1c4bf9
...
...
@@ -17,6 +17,7 @@
data
()
{
return
{
taskTypeMap
:{},
typeMap
:{},
config
:
{
showqt
:
true
,
/* 基本配置*/
...
...
@@ -61,10 +62,16 @@
title
:
"类型"
,
field
:
"type"
,
width
:
140
,
"transform"
:
{
"url"
:
"lxyl/jcsj/ugw/init/gwlx"
,
"label"
:
"name"
,
"value"
:
"id"
formatter
:(
a
,
b
,
v
)
=>
{
let
showZd
=
''
if
(
v
){
let
vArr
=
v
.
split
(
','
)
vArr
.
forEach
(
item
=>
{
console
.
log
(
item
,
this
.
typeMap
)
showZd
=
showZd
+
this
.
typeMap
[
item
]
+
';'
})
}
return
showZd
||
'未设置'
}
},
{
...
...
@@ -133,6 +140,12 @@
})
})
this
.
$post
(
'lxyl/jcsj/ugw/init/gwlx'
,{}).
then
(
res
=>
{
res
.
data
.
records
.
forEach
(
item
=>
{
this
.
typeMap
[
item
.
id
]
=
item
.
name
})
})
},
methods
:
{
...
...
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