Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zghywpc-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
李苏
zghywpc-vue
Commits
e53934e8
Commit
e53934e8
authored
Jul 31, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
b4535679
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
163 additions
and
151 deletions
+163
-151
edit.vue
src/views/fmegl/fmesjhpcecfx/edit.vue
+120
-147
index.vue
src/views/fmegl/fmesjhpcecfx/index.vue
+5
-0
edit.vue
src/views/jyfkgl/ywsjlr/edit.vue
+32
-1
index.vue
src/views/jyfkgl/ywsjlr/index.vue
+6
-3
No files found.
src/views/fmegl/fmesjhpcecfx/edit.vue
View file @
e53934e8
<!--
* @Description:生成基础baseEdit组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2025-06-20 14:05:57
* @FilePath: /zghywpc-vue/src/views/fmegl/fmesjhpcecfx/edit.vue
-->
<
template
>
<
template
>
<!-- prop 穿透赋值 -->
<RelDialog
width=
"50%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<BaseEdit
v-bind=
"$attrs"
:config=
'editConfig'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<template
#
dialog=
"ctx"
>
<el-row
:gutter=
"20"
:app=
"this"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面从表上方插槽 ctx.editPage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.editPage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
<!--
<AuxButton
:dynamic=
'true'
:queryParams=
"
{
sbxxTreeId:that.form.sbxxTreeId,
zt:'N'
}" :component='Qxsj' rename='选择缺陷数据' code='dynamic' @save="saveQxsj" /> -->
</
template
>
</BaseEdit>
</template>
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
v-if=
"item.show!==false"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
export
default
{
mixins
:
[
editMixin
],
computed
:{
utype
(){
return
this
.
form
.
type
}
},
watch
:{
utype
(
val
){
if
(
val
==
'QT'
){
this
.
editColItemList
[
4
].
show
=
true
}
else
{
this
.
editColItemList
[
4
].
show
=
false
}
}
},
data
()
{
data
()
{
return
{
return
{
editConfig
:
{
editColItemList
:
[
/* 生成form表单 */
editColItemList
:
[
{
{
"label"
:
"责任专业"
,
"label"
:
"责任专业"
,
"prop"
:
"zrzy"
,
"prop"
:
"zrzy"
,
"span"
:
12
,
"span"
:
12
,
"type"
:
"input"
"type"
:
"input"
},
},
{
{
"label"
:
"时间"
,
"label"
:
"时间"
,
"prop"
:
"ywrq"
,
"prop"
:
"ywrq"
,
"span"
:
12
,
"span"
:
12
,
"type"
:
"date"
"type"
:
"date"
},
},
{
{
"label"
:
"偏差描述"
,
"label"
:
"偏差描述"
,
"prop"
:
"pcms"
,
"prop"
:
"pcms"
,
"span"
:
12
,
"span"
:
12
,
"type"
:
"input"
"type"
:
"input"
},
},
{
{
"label"
:
"类别"
,
"label"
:
"类别"
,
"prop"
:
"type"
,
"prop"
:
"type"
,
"span"
:
12
,
"span"
:
12
,
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"typeConfig"
:
{
"typeConfig"
:
{
"src"
:
"fme/ufmesjpc/init/type"
,
"src"
:
"fme/ufmesjpc/init/type"
,
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
}
}
}
},
}
{
},
"label"
:
"是否整改"
,
{
"prop"
:
"sfzg"
,
"label"
:
"类别(其他)"
,
"span"
:
12
,
"prop"
:
"typeName"
,
"type"
:
"RelSelect"
,
"span"
:
12
,
"value"
:
""
,
"type"
:
"input"
,
"typeConfig"
:
{
show
:
false
"src"
:
"fme/ufmesjpc/init/yesorno"
,
},
"match"
:
{
{
"value"
:
"id"
,
"label"
:
"是否整改"
,
"label"
:
"name"
"prop"
:
"sfzg"
,
}
"span"
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"fme/ufmesjpc/init/yesorno"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}
,
}
{
},
"label"
:
"原因分析"
,
{
"prop"
:
"yyfx
"
,
"label"
:
"原因分析
"
,
"span"
:
12
,
"prop"
:
"yyfx"
,
"type"
:
"input"
"span"
:
12
,
},
"type"
:
"input"
{
},
"label"
:
"区域"
,
{
"prop"
:
"region
"
,
"label"
:
"区域
"
,
"span"
:
12
,
"prop"
:
"region"
,
"type"
:
"RelSelect"
,
"span"
:
12
,
"value"
:
"
"
,
"type"
:
"RelSelect
"
,
"typeConfig"
:
{
"value"
:
""
,
"src"
:
"fme/ufmesjpc/init/Region"
,
"typeConfig"
:
{
"match"
:
{
"src"
:
"fme/ufmesjpc/init/Region"
,
"value"
:
"id"
,
"match"
:
{
"label"
:
"name"
"value"
:
"id"
,
}
"label"
:
"name"
}
}
},
{
"label"
:
"通知单号"
,
"prop"
:
"tzdh"
,
"span"
:
12
,
"type"
:
"input"
},
{
"label"
:
"期间"
,
"prop"
:
"qj"
,
"span"
:
12
,
"type"
:
"input"
},
{
"label"
:
"备注"
,
"prop"
:
"bz"
,
"span"
:
24
,
"type"
:
"input"
}
}
]
},
,
{
/* 生成主从表,为空数组默认不展示 */
"label"
:
"通知单号"
,
editTableTitle
:
[
"prop"
:
"tzdh"
,
// {
"span"
:
12
,
// title: "序号",
"type"
:
"input"
// field: "xh",
},
// width: 50,
{
// align: "center"
"label"
:
"期间"
,
// },
"prop"
:
"qj"
,
// {
"span"
:
12
,
// title: "点检部位",
"type"
:
"input"
// field: "bw",
},
// width: 180,
{
// },
"label"
:
"备注"
,
// {
"prop"
:
"bz"
,
// title: "点检项目",
"span"
:
24
,
// field: "project",
"type"
:
"input"
// width: 160
}
// },
// {
]
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
/* 子表名,可选 同editTableTitle一起用*/
detailTable
:
''
}
}
}
},
methods
:
{
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
}
}
}
}
</
script
>
</
script
>
<
style
>
</
style
>
src/views/fmegl/fmesjhpcecfx/index.vue
View file @
e53934e8
...
@@ -55,6 +55,11 @@
...
@@ -55,6 +55,11 @@
"value"
:
"id"
"value"
:
"id"
}
}
},
},
{
"title"
:
"类别(其他)"
,
"field"
:
"typeName"
,
"width"
:
200
},
{
{
"title"
:
"是否整改"
,
"title"
:
"是否整改"
,
"field"
:
"sfzg"
,
"field"
:
"sfzg"
,
...
...
src/views/jyfkgl/ywsjlr/edit.vue
View file @
e53934e8
...
@@ -63,7 +63,17 @@
...
@@ -63,7 +63,17 @@
showList
:
[],
showList
:
[],
baseurl
:
baseurl
,
baseurl
:
baseurl
,
Gtoken
:
Gtoken
,
Gtoken
:
Gtoken
,
editColItemList
:
[{
editColItemList
:
[
{
"label"
:
"其他责任单位"
,
"prop"
:
"isqtgnwz"
,
// required: true,
"span"
:
12
,
"type"
:
"checkbox"
,
"value"
:
"N"
,
},
{
"label"
:
"功能位置"
,
"label"
:
"功能位置"
,
"prop"
:
"gnwz"
,
"prop"
:
"gnwz"
,
"span"
:
12
,
"span"
:
12
,
...
@@ -84,6 +94,14 @@
...
@@ -84,6 +94,14 @@
},
},
required
:
true
,
required
:
true
,
},
},
{
"label"
:
"功能位置(其他)"
,
"prop"
:
"gnwzname"
,
show
:
false
,
"span"
:
12
,
"type"
:
"input"
,
"value"
:
""
,
},
{
{
"label"
:
"年度"
,
"label"
:
"年度"
,
"prop"
:
"year"
,
"prop"
:
"year"
,
...
@@ -454,11 +472,24 @@
...
@@ -454,11 +472,24 @@
}
}
},
},
computed
:{
computed
:{
isqtgnwz
(){
return
this
.
form
.
isqtgnwz
},
isqtzrdw
(){
isqtzrdw
(){
return
this
.
form
.
isqtzrdw
return
this
.
form
.
isqtzrdw
}
}
},
},
watch
:{
watch
:{
isqtgnwz
(
val
){
if
(
val
!==
'N'
){
this
.
editColItemList
[
1
].
show
=
false
this
.
editColItemList
[
2
].
show
=
true
}
else
{
this
.
editColItemList
[
1
].
show
=
true
this
.
editColItemList
[
2
].
show
=
false
}
},
isqtzrdw
(
val
){
isqtzrdw
(
val
){
if
(
val
!==
'N'
){
if
(
val
!==
'N'
){
this
.
editColItemList
[
12
].
show
=
false
this
.
editColItemList
[
12
].
show
=
false
...
...
src/views/jyfkgl/ywsjlr/index.vue
View file @
e53934e8
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2025-07-
24 17:59:52
* @LastEditTime: 2025-07-
31 16:38:40
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
-->
-->
<
template
>
<
template
>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
label
:
"责任单位"
,
label
:
"责任单位"
,
prop
:
"zrdw"
,
prop
:
"zrdw"
,
formatter
(
a
,
b
,
v
){
formatter
(
a
,
b
,
v
){
console
.
log
(
a
,
b
,
v
)
return
v
||
a
.
zrdwname
return
v
||
a
.
zrdwname
},
},
width
:
100
width
:
100
...
@@ -50,7 +50,10 @@
...
@@ -50,7 +50,10 @@
{
{
label
:
"功能位置"
,
label
:
"功能位置"
,
prop
:
"gnwz"
,
prop
:
"gnwz"
,
fieldType
:
"ftString"
,
formatter
(
a
,
b
,
v
){
return
v
||
a
.
gnwzname
},
width
:
180
width
:
180
},
},
{
{
...
...
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