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
dd756a6b
Commit
dd756a6b
authored
May 14, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下平库
parent
86f0956e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
112 deletions
+30
-112
akck.vue
src/views/ccgl/ckgl/xpk/top/akck.vue
+29
-29
index.vue
src/views/ccgl/ckgl/xpk/top/index.vue
+1
-1
xzgw.vue
src/views/ccgl/ckgl/xpk/top/xzgw.vue
+0
-82
No files found.
src/views/ccgl/ckgl/xpk/top/akck.vue
View file @
dd756a6b
<
template
>
<
template
>
<DefaultDialog
:app=
'app'
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<Xzgw
@
saveGw=
'saveGw'
v-if=
"showDialog"
:app=
'this'
/>
<BasePage
ref=
"basePage"
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
ref="basePage"
<BasePage
ref=
"basePage"
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
ref="basePage"
:power='power' class="min_full" :config="config">
:power='power' class="min_full" :config="config">
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
</DefaultDialog>
</DefaultDialog>
</template>
</template>
<
script
>
<
script
>
import
Xzgw
from
'./xzgw.vue'
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -40,7 +39,7 @@
...
@@ -40,7 +39,7 @@
},
},
components
:
{
components
:
{
Xzgw
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -55,8 +54,8 @@
...
@@ -55,8 +54,8 @@
operateButtons
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
workFlow
:
false
,
/* 表格 */
/* 表格 */
showSelection
:
tru
e
,
showSelection
:
fals
e
,
saveSelected
:
tru
e
saveSelected
:
fals
e
},
},
config
:
{
config
:
{
/* 基本配置*/
/* 基本配置*/
...
@@ -168,7 +167,7 @@
...
@@ -168,7 +167,7 @@
},
},
{
{
prop
:
'flId'
,
prop
:
'flId'
,
value
:
'
L
'
value
:
'
D
'
},
},
]
]
...
@@ -182,32 +181,33 @@
...
@@ -182,32 +181,33 @@
}
}
},
},
methods
:
{
methods
:
{
saveGw
(
form
){
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
.
map
(
item
=>
{
save
()
{
let
ml
=
{
let
singleItem
=
this
.
$refs
.
basePage
.
singleItem
rqid
:
item
.
rqid
,
kwid
:
item
.
kwid
if
(
singleItem
.
id
)
{
}
return
ml
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
})
confirmButtonText
:
'确定'
,
let
params
=
{
cancelButtonText
:
'取消'
,
datas
:
list
,
type
:
'warning'
gwid
:
form
.
gwid
}).
then
(()
=>
{
let
params
=
{
rqid
:
singleItem
.
rqid
,
kwid
:
singleItem
.
kwid
,
}
}
this
.
$post
(
'/lxyl/ckgl/ulkck/saveLkCk'
,
params
).
then
(
res
=>
{
this
.
$post
(
'/lxyl/ckgl/ulkck/savePkCk'
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
showDialog
=
false
this
.
app
.
refresh
()
this
.
app
.
refresh
()
}
}
})
})
},
})
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
)
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
}
else
{
this
.
showDialog
=
true
this
.
$warning
(
'请至少勾选一条数据'
)
}
}
}
}
...
...
src/views/ccgl/ckgl/xpk/top/index.vue
View file @
dd756a6b
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
},
},
{
{
prop
:
'type'
,
prop
:
'type'
,
value
:
'
L
'
value
:
'
D
'
}
}
],
],
...
...
src/views/ccgl/ckgl/xpk/top/xzgw.vue
deleted
100644 → 0
View file @
86f0956e
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
确 定
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
},
data
()
{
return
{
isLoading
:
false
,
text
:
'加载中'
,
readonly
:
false
,
editColItemList
:
[{
label
:
'工位'
,
prop
:
'gwid'
,
span
:
24
,
required
:
true
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/jcsj/ugw/query'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
]
}
},
methods
:
{
save
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$emit
(
'saveGw'
,
this
.
form
)
this
.
app
.
showDialog
=
false
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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