Commit 87ee4950 authored by 李苏's avatar 李苏 💬

调整

parent 183bed7e
......@@ -145,6 +145,20 @@ export const powerRoutes = [
name: 'jzbm',
path: "jzbm",
},
{
erpComponent: false,
component: 'sbxxgl/ljhsz/index',
hidden: false,
meta: {
"title": "机组编码",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920020500',
},
name: 'ljhsz',
path: "ljhsz",
}
]
},
......
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<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"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '路径号',
prop: 'ljh',
span: 12,
type: 'input',
required: true,
},
{
label: '状态',
prop: 'zt',
span: 12,
"type": "RelSelect",
"typeConfig": {
"src": "sbgl/usbxx/init/zt",
"match": {
"value": "id",
"label": "name"
}
},
required: true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<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: 'ljhsz',
data() {
return {
config: {
/* 基本配置*/
url: 'sbgl/uljh',
tableTitle: [{
title: "路径号",
field: "ljh",
fieldType: "upper",
width: 140
},
{
title: "状态",
field: "zt",
transform: {
"url": "sbgl/usbxx/init/zt",
"label": "name",
"value": "id"
},
width: 140
},
{
title: "备注",
field: "bz",
width: 300
},
{
title: "创建人",
field: "cjr",
width: 140
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime'
},
{
title: "维护人",
field: "whr",
hidden: true
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime',
hidden: true
}
],
queryParams: [
[{
label: '路径号',
prop: 'ljh',
span: 6,
type: 'input',
value: ''
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "/sbgl/usbxx/init/zt ",
"match": {
"value": "id",
"label": "name"
}
}
},
]
],
/* 默认启停用 */
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment