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
2b958d4c
Commit
2b958d4c
authored
Oct 14, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增异物录入
parent
37a49c08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
300 additions
and
2 deletions
+300
-2
index.js
src/router/index.js
+18
-2
edit.vue
src/views/jyfkgl/ywsjlr/edit.vue
+134
-0
index.vue
src/views/jyfkgl/ywsjlr/index.vue
+148
-0
No files found.
src/router/index.js
View file @
2b958d4c
...
@@ -232,7 +232,9 @@ export const powerRoutes = [
...
@@ -232,7 +232,9 @@ export const powerRoutes = [
},
},
name
:
'jyfkgl'
,
name
:
'jyfkgl'
,
path
:
"jyfkgl"
,
path
:
"jyfkgl"
,
}
},
],
],
},
},
{
{
...
@@ -263,7 +265,21 @@ export const powerRoutes = [
...
@@ -263,7 +265,21 @@ export const powerRoutes = [
},
},
name
:
'ywxxgl'
,
name
:
'ywxxgl'
,
path
:
"ywxxgl"
,
path
:
"ywxxgl"
,
}
},
{
erpComponent
:
false
,
component
:
'jyfkgl/ywsjlr/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"异物事件录入"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920050200'
,
},
name
:
'ywsjlr'
,
path
:
"ywsjlr"
,
},
],
],
},
},
{
{
...
...
src/views/jyfkgl/ywsjlr/edit.vue
0 → 100644
View file @
2b958d4c
<!--
* @Description:生成基础baseEdit组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 15:52:21
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/edit.vue
-->
<
template
>
<!-- prop 穿透赋值 -->
<BaseEdit
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
:
[{
label
:
'异物区域'
,
prop
:
'ywqy'
,
span
:
24
,
type
:
'input'
,
required
:
true
,
},
{
label
:
'异物是否取出'
,
prop
:
'ywsfqc'
,
span
:
12
,
type
:
'checkbox'
,
},
{
label
:
'异物发生时间'
,
prop
:
'ywfssj'
,
span
:
12
,
type
:
'datetime'
,
},
{
"label"
:
"检修事件"
,
"prop"
:
"jxsj"
,
"span"
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsjlr/init/ywJxsj"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'异物产生原因'
,
prop
:
'ywcsyy'
,
span
:
24
,
type
:
'input'
,
},
{
"label"
:
"异物影响后果"
,
"prop"
:
"ywyxhg"
,
"span"
:
12
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsjlr/init/ywyxhg"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
},
],
/* 生成主从表,为空数组默认不展示 */
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/jyfkgl/ywsjlr/index.vue
0 → 100644
View file @
2b958d4c
<!--
* @Description: 生成基础basePage组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 15:50:46
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/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
:
'ywsjlr'
,
data
()
{
return
{
config
:
{
/* 基本配置*/
url
:
'ywxxgl/uywsjlr'
,
tableTitle
:
[{
title
:
"异物区域"
,
field
:
"ywqy"
,
width
:
300
},
{
title
:
"异物是否取出"
,
field
:
"ywsfqc"
,
fieldType
:
"checkbox"
},
{
title
:
"异物发生时间"
,
field
:
"ywfssj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"检修事件"
,
field
:
"jxsj"
,
width
:
200
,
"transform"
:
{
"url"
:
"ywxxgl/uywsjlr/init/ywJxsj"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"异物产生原因"
,
field
:
"ywcsyy"
,
width
:
300
},
{
title
:
"异物影响后果"
,
field
:
"ywyxhg"
,
width
:
200
,
"transform"
:
{
"url"
:
"ywxxgl/uywsjlr/init/ywyxhg"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
300
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
},
],
queryParams
:
[
[{
label
:
'异物发生时间'
,
prop
:
'ywfssj'
,
span
:
6
,
type
:
'datetime'
,
value
:
''
},
{
"label"
:
"检修事件"
,
"prop"
:
"jxsj"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsjlr/init/ywJxsj"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"影响后果"
,
"prop"
:
"ywyxhg"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"ywxxgl/uywsjlr/init/ywyxhg"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
]
],
/* 默认启停用 */
}
}
},
methods
:
{
/**
* @description:示例按钮
* @param {*} ctx操作basePage实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
},
components
:
{
Edit
}
}
</
script
>
<
style
>
</
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