Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
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
05a8623e
Commit
05a8623e
authored
Oct 29, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fme仪表盘
parent
c11e64bf
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1084 additions
and
146 deletions
+1084
-146
index.js
src/router/index.js
+29
-15
edit.vue
src/views/fmegl/fmezbpgl/biao/edit.vue
+252
-0
index.vue
src/views/fmegl/fmezbpgl/biao/index.vue
+162
-0
index.vue
src/views/fmegl/fmezbpgl/index.vue
+59
-0
index.vue
src/views/fmegl/fmezbpgl/tu/index.vue
+429
-0
edit.vue
src/views/ywxxgl/ywsjgl/edit.vue
+140
-124
index.vue
src/views/ywxxgl/ywsjgl/index.vue
+13
-7
No files found.
src/router/index.js
View file @
05a8623e
...
...
@@ -295,6 +295,20 @@ export const powerRoutes = [
name
:
'fmesjhpcecfx'
,
path
:
"fmesjhpcecfx"
,
},
{
erpComponent
:
false
,
component
:
'fmegl/fmezbpgl/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"FME(年/月度)指标盘管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920050520'
,
},
name
:
'fmezbpgl'
,
path
:
"fmezbpgl"
,
},
{
erpComponent
:
false
,
component
:
'fmegl/glqwpdj/index'
,
...
...
@@ -484,7 +498,7 @@ export const powerRoutes = [
path
:
'/sbjxgl'
,
component
:
"Layout"
,
hidden
:
false
,
alwaysShow
:
tru
e
,
alwaysShow
:
fals
e
,
redirect
:
'sbjxxx'
,
meta
:
{
title
:
"设备检修管理"
,
...
...
@@ -537,20 +551,20 @@ export const powerRoutes = [
name
:
'sbjxxx'
,
path
:
"sbjxxx"
,
},
{
erpComponent
:
false
,
component
:
'sbjxgl/jxzyff/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"检修作业方法"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920030400'
,
},
name
:
'jxzyff'
,
path
:
"jxzyff"
,
}
//
{
//
erpComponent: false,
//
component: 'sbjxgl/jxzyff/index',
//
hidden: false,
//
meta: {
//
"title": "检修作业方法",
//
"icon": "",
//
"noCache": false,
//
"link": null,
//
"mkid": '920030400',
//
},
//
name: 'jxzyff',
//
path: "jxzyff",
//
}
]
}
]
...
...
src/views/fmegl/fmezbpgl/biao/edit.vue
0 → 100644
View file @
05a8623e
<!--
* @Description:生成基础baseEdit组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 14:43:46
* @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/edit.vue
-->
<
template
>
<!-- prop 穿透赋值 -->
<BaseEdit
labelWidth=
'130px'
v-bind=
"$attrs"
:config=
'editConfig'
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</
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>
<
script
>
export
default
{
data
()
{
return
{
editConfig
:
{
/* 生成form表单 */
editColItemList
:
[{
show
:
true
,
label
:
'类型'
,
prop
:
'type'
,
span
:
12
,
"type"
:
"RelSelect"
,
"value"
:
"year"
,
"typeConfig"
:
{
change
:
(
v
)
=>
{
console
.
log
(
this
.
editConfig
.
editColItemList
)
let
changList
=
[
'dbrwcq'
,
'yhrwcq'
,
'lhqx'
,
'sjtbyc'
,
'sjgbcq'
,
'month'
]
let
changList2
=
[
'rlkkx'
]
if
(
v
.
id
==
'year'
)
{
this
.
editConfig
.
editColItemList
.
forEach
(
item
=>
{
if
(
changList
.
includes
(
item
.
prop
))
{
item
.
show
=
false
}
})
}
else
{
this
.
editConfig
.
editColItemList
.
forEach
(
item
=>
{
if
(
changList
.
includes
(
item
.
prop
))
{
item
.
show
=
true
}
if
(
changList2
.
includes
(
item
.
prop
))
{
item
.
show
=
false
}
})
}
},
clearable
:
false
,
"optionsData"
:
[{
id
:
'year'
,
name
:
'年'
},
{
id
:
'month'
,
name
:
'月'
}
],
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"一级异物事件"
,
"prop"
:
"oneywsj"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
true
},
{
"label"
:
"二级异物事件"
,
"prop"
:
"twoywsj"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
true
},
{
"label"
:
"外部引入异物事件"
,
"prop"
:
"wbyrywsj"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
true
},
{
"label"
:
"燃料可靠性"
,
"prop"
:
"rlkkx"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
true
},
{
"label"
:
"督办任务超期"
,
"prop"
:
"dbrwcq"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
false
},
{
"label"
:
"月会任务超期"
,
"prop"
:
"yhrwcq"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
false
},
{
"label"
:
"例会缺席"
,
"prop"
:
"lhqx"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
false
},
{
"label"
:
"事件通报异常"
,
"prop"
:
"sjtbyc"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
false
},
{
"label"
:
"事件关闭超期"
,
"prop"
:
"sjgbcq"
,
"span"
:
12
,
"type"
:
"inputNumber"
,
show
:
false
},
{
"label"
:
"年份"
,
"prop"
:
"year"
,
"span"
:
12
,
"type"
:
"year"
,
show
:
true
,
required
:
true
},
{
required
:
true
,
"label"
:
"月份"
,
"prop"
:
"month"
,
// 假设字段名应为 'month'
"span"
:
12
,
"type"
:
"RelSelect"
,
typeConfig
:
{
optionsData
:
[{
id
:
1
,
name
:
"一月份"
},
{
id
:
2
,
name
:
"二月份"
},
{
id
:
3
,
name
:
"三月份"
},
{
id
:
4
,
name
:
"四月份"
},
{
id
:
5
,
name
:
"五月份"
},
{
id
:
6
,
name
:
"六月份"
},
{
id
:
7
,
name
:
"七月份"
},
{
id
:
8
,
name
:
"八月份"
},
{
id
:
9
,
name
:
"九月份"
},
{
id
:
10
,
name
:
"十月份"
},
{
id
:
11
,
name
:
"十一月份"
},
{
id
:
12
,
name
:
"十二月份"
}
]
},
show
:
false
}
],
/* 生成主从表,为空数组默认不展示 */
editTableTitle
:
[
// {
// title: "序号",
// field: "xh",
// width: 50,
// align: "center"
// },
// {
// title: "点检部位",
// field: "bw",
// width: 180,
// },
// {
// title: "点检项目",
// field: "project",
// width: 160
// },
// {
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
/* 子表名,可选 同editTableTitle一起用*/
detailTable
:
''
}
}
},
methods
:
{
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
}
}
</
script
>
<
style
>
</
style
>
src/views/fmegl/fmezbpgl/biao/index.vue
0 → 100644
View file @
05a8623e
<!--
* @Description: 生成基础basePage组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 15:08:36
* @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/biao/index.vue
-->
<
template
>
<BasePage
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
name
:
'template'
,
data
()
{
return
{
config
:
{
/* 基本配置*/
url
:
'fme/ufmezbp'
,
tableTitle
:
[{
title
:
"年份"
,
field
:
"year"
,
width
:
100
},
{
title
:
"月份"
,
field
:
"month"
,
width
:
100
},
{
title
:
"一级异物事件"
,
field
:
"oneywsj"
,
width
:
100
},
{
title
:
"二级异物事件"
,
field
:
"twoywsj"
,
width
:
100
},
{
title
:
"外部引入异物事件"
,
field
:
"wbyrywsj"
,
width
:
180
},
{
title
:
"燃料可靠性"
,
field
:
"rlkkx"
,
width
:
100
},
{
title
:
"督办任务超期"
,
field
:
"dbrwcq"
,
width
:
100
},
{
title
:
"月会任务超期"
,
field
:
"yhrwcq"
,
width
:
100
},
{
title
:
"例会缺席"
,
field
:
"lhqx"
,
width
:
100
},
{
title
:
"事件通报异常"
,
field
:
"sjtbyc"
,
width
:
100
},
{
title
:
"事件关闭超期"
,
field
:
"sjgbcq"
,
width
:
100
},
{
title
:
"类型"
,
field
:
"type"
,
width
:
100
,
formatter
(
a
,
b
,
v
)
{
let
map
=
{
'year'
:
'年'
,
'month'
:
'月'
}
return
map
[
v
]
}
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
},
],
queryParams
:
[
[{
label
:
'年度'
,
prop
:
'year'
,
span
:
6
,
type
:
'year'
,
value
:
new
Date
().
getFullYear
()
},
{
label
:
'类型'
,
prop
:
'type'
,
span
:
6
,
type
:
'RelSelect'
,
value
:
'year'
,
typeConfig
:
{
clearable
:
false
,
optionsData
:
[{
id
:
'year'
,
name
:
'年'
},
{
id
:
'month'
,
name
:
'月'
}
],
}
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
/**
* @description:示例按钮
* @param {*} ctx操作basePage实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
},
components
:
{
Edit
}
}
</
script
>
<
style
>
</
style
>
src/views/fmegl/fmezbpgl/index.vue
0 → 100644
View file @
05a8623e
<!--
* @Description: 生成基础basePage组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-29 15:28:24
* @FilePath: /zghywpc-vue/src/views/fmegl/fmezbpgl/index.vue
-->
<
template
>
<div
class=
"fmezbpgl"
>
<!-- 切换-->
<div
class=
"qh"
>
<el-button
@
click=
"showPic=!showPic"
type=
"success"
icon=
"el-icon-refresh"
circle
></el-button>
</div>
<Tu
class=
"leftOpt animate__animated "
v-show=
"showPic"
:class=
"
{
'animate__fadeInLeft':showPic,
'animate__fadeOutLeft':!showPic
}" />
<Biao
class=
"leftOpt animate__animated "
v-show=
"!showPic"
:class=
"
{
'animate__fadeInRight':!showPic,
'animate__fadeOutRight':showPic
}" />
</div>
</
template
>
<
script
>
import
Biao
from
'./biao'
import
Tu
from
'./tu'
export
default
{
name
:
'fmezbpgl'
,
components
:
{
Biao
,
Tu
},
data
()
{
return
{
showPic
:
true
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.fmezbpgl
{
position
:
relative
}
.qh
{
position
:
absolute
;
right
:
55px
;
bottom
:
55px
;
z-index
:
9999
;
font-size
:
18px
;
color
:
cornflowerblue
;
}
</
style
>
src/views/fmegl/fmezbpgl/tu/index.vue
0 → 100644
View file @
05a8623e
This diff is collapsed.
Click to expand it.
src/views/ywxxgl/ywsjgl/edit.vue
View file @
05a8623e
...
...
@@ -7,160 +7,176 @@
* @FilePath: /zghywpc-vue/src/views/ywxxgl/ywsjgl/edit.vue
-->
<
template
>
<!-- prop 穿透赋值 -->
<BaseEdit
labelWidth=
'140px'
v-bind=
"$attrs"
:config=
'editConfig'
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面从表上方插槽 ctx.editPage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.editPage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
<!--
<AuxButton
:dynamic=
'true'
:queryParams=
"
{
<!-- prop 穿透赋值 -->
<BaseEdit
labelWidth=
'140px'
v-bind=
"$attrs"
:config=
'editConfig'
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</
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
>
</BaseEdit>
</template>
<
script
>
export
default
{
data
()
{
return
{
editConfig
:
{
/* 生成form表单 */
editColItemList
:
[{
label
:
'事件描述'
,
prop
:
'sjms'
,
span
:
12
,
type
:
'input'
,
required
:
true
,
},
{
label
:
'异物发现时间'
,
prop
:
'ywfxsj'
,
span
:
12
,
type
:
'datetime'
,
},
export
default
{
data
()
{
return
{
editConfig
:
{
/* 生成form表单 */
editColItemList
:
[{
label
:
'事件描述'
,
prop
:
'sjms'
,
span
:
12
,
type
:
'input'
,
required
:
true
,
},
{
label
:
'异物发现时间'
,
prop
:
'ywfxsj'
,
span
:
12
,
type
:
'datetime'
,
},
{
label
:
'通知单号'
,
prop
:
'tzdh'
,
span
:
12
,
type
:
'input'
,
label
:
'通知单号'
,
prop
:
'tzdh'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'分类'
,
prop
:
'fl'
,
span
:
12
,
type
:
'input'
,
label
:
'分类'
,
prop
:
'fl'
,
span
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jyfggl/ujyfk/init/ywcsyy"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'事件分级'
,
prop
:
'sjfj'
,
span
:
12
,
type
:
'input'
,
label
:
'事件分级'
,
prop
:
'sjfj'
,
span
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsj/init/sjfj"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'是否关闭'
,
prop
:
'sfgb'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'是否关闭'
,
prop
:
'sfgb'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'责任专业'
,
prop
:
'zrzy'
,
span
:
12
,
type
:
'input'
,
label
:
'责任专业'
,
prop
:
'zrzy'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'期间'
,
prop
:
'qj'
,
span
:
12
,
type
:
'input'
,
label
:
'期间'
,
prop
:
'qj'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'完整性'
,
prop
:
'wzx'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'完整性'
,
prop
:
'wzx'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'IOE'
,
prop
:
'ioe'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'IOE'
,
prop
:
'ioe'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'是否一回路或二次侧'
,
prop
:
'sfyhlhecc'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'是否一回路或二次侧'
,
prop
:
'sfyhlhecc'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'异物事件单是否签字'
,
prop
:
'ywsjdsfqz'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'异物事件单是否签字'
,
prop
:
'ywsjdsfqz'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'SAP任务是否关闭'
,
prop
:
'saprwsfgb'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'SAP任务是否关闭'
,
prop
:
'saprwsfgb'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'SAP通知单是否关闭'
,
prop
:
'saptzdsfgb'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
label
:
'SAP通知单是否关闭'
,
prop
:
'saptzdsfgb'
,
span
:
12
,
type
:
'checkbox'
,
value
:
'N'
},
],
/* 生成主从表,为空数组默认不展示 */
editTableTitle
:
[
// {
// title: "序号",
// field: "xh",
// width: 50,
// align: "center"
// },
// {
// title: "点检部位",
// field: "bw",
// width: 180,
// },
// {
// title: "点检项目",
// field: "project",
// width: 160
// },
// {
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
/* 子表名,可选 同editTableTitle一起用*/
detailTable
:
''
}
}
},
methods
:
{
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
}
}
],
/* 生成主从表,为空数组默认不展示 */
editTableTitle
:
[
// {
// title: "序号",
// field: "xh",
// width: 50,
// align: "center"
// },
// {
// title: "点检部位",
// field: "bw",
// width: 180,
// },
// {
// title: "点检项目",
// field: "project",
// width: 160
// },
// {
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
/* 子表名,可选 同editTableTitle一起用*/
detailTable
:
''
}
}
},
methods
:
{
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
}
}
</
script
>
<
style
>
...
...
src/views/ywxxgl/ywsjgl/index.vue
View file @
05a8623e
...
...
@@ -3,7 +3,7 @@
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-2
8 16:31:32
* @LastEditTime: 2024-10-2
9 17:50:09
* @FilePath: /zghywpc-vue/src/views/ywxxgl/ywsjgl/index.vue
-->
<
template
>
...
...
@@ -50,13 +50,21 @@
{
label
:
"分类"
,
prop
:
"fl"
,
fieldType
:
"ftString"
,
"transform"
:
{
"url"
:
"jyfggl/ujyfk/init/ywcsyy"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
192
},
{
label
:
"事件分级"
,
prop
:
"sjfj"
,
fieldType
:
"int"
"transform"
:
{
"url"
:
"ywxxgl/uywsj/init/sjfj"
,
"label"
:
"name"
,
"value"
:
"id"
},
},
{
label
:
"是否关闭"
,
...
...
@@ -139,11 +147,9 @@
span
:
6
,
type
:
'input'
,
value
:
''
}
]
}]
],
/* 默认启停用
*/
/* 默认启停用 */
}
}
...
...
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