Commit 849e87e7 authored by 李苏's avatar 李苏 💬

1

parent 647099e9
...@@ -39,20 +39,20 @@ ...@@ -39,20 +39,20 @@
data() { data() {
return { return {
editColItemList: [ editColItemList: [
{ // {
label: '上层分类', // label: '上层分类',
prop: 'pid', // prop: 'pid',
span: 8, // span: 8,
"type": "RelSelect", // "type": "RelSelect",
"typeConfig": { // "typeConfig": {
"src": "sbgl/usbxx/queryroot", // "src": "sbgl/usbxx/queryroot",
"match": { // "match": {
"value": "id", // "value": "id",
"label": "name" // "label": "name"
} // }
} // }
}, // },
{ {
label: '设备编码', label: '设备编码',
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
required: true, required: true,
}, },
{ {
label: '设备名称', label: '设备名称',
prop: 'name', prop: 'name',
...@@ -84,6 +85,13 @@ ...@@ -84,6 +85,13 @@
} }
}, },
{
label: '材质',
prop: 'cz',
span: 8,
type: 'input',
required: true,
},
{ {
required: false, required: false,
label: '风险等级', label: '风险等级',
......
<template> <template>
<div class="full flex hastree" style="flex-direction: row;height: 140vh;border-top: 5px solid #eee;"> <div class="full flex hastree" style="flex-direction: row;height: 140vh;border-top: 5px solid #eee;">
<div class="min_full" style="width: 380px;border: 0px;height: 140vh;"> <div class="min_full" style="width: 380px;border: 0px;height: 140vh;">
<LazyTree treeTitle="设备信息树" ref="lazyTree" :props="{ <LazyTree treeTitle="设备信息树" ref="lazyTree" :props="{
label: 'name', label: 'name',
isLeaf: 'isLeaf' isLeaf: 'isLeaf'
}" cid='id' @selected='selectedTree' url='sbgl/usbxx/queryroot' /> }" cid='id' @selected='selectedTree' url='sbgl/usbxx/queryroot' />
</div> </div>
<div class="min_full" style="width: calc(100% - 380px);border-top: 0px;height: 140vh;"> <div class="min_full" style="width: calc(100% - 380px);border-top: 0px;height: 140vh;">
<div style="height:477px;width: 100%;"> <div style="height:477px;width: 100%;">
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 477px;border: 0px;border-bottom: 5px solid #eee;" <BasePage @getRow='getRow' :power='power' class="min_full"
@delSuccess='delSuccess' :autoQuery='false' ref="basePage" :config="config"> style="height: 477px;border: 0px;border-bottom: 5px solid #eee;" @delSuccess='delSuccess' :autoQuery='false'
ref="basePage" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton @success="()=>{ <ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'sbgl/usbxx/import'" /> }" :url="'sbgl/usbxx/import'" />
<AttachFileShow style="margin-left: 10px;" :app='ctx.basePage' ></AttachFileShow> <AttachFileShow style="margin-left: 10px;" :app='ctx.basePage'></AttachFileShow>
</template> </template>
</BasePage> </BasePage>
</div> </div>
<div style="height: calc(100% - 477px);width: 100%;"> <div style="height: calc(100% - 477px);width: 100%;">
<el-tabs class="full" v-model="activeName"> <el-tabs class="full" v-model="activeName">
<el-tab-pane class="full" label="设备标高" style="height: 100%;" name="sbbg"> <el-tab-pane class="full" label="设备标高" style="height: 100%;" name="sbbg">
<Sbbg :app='this' class="full" ref='sbbg' /> <Sbbg :app='this' class="full" ref='sbbg' />
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane class="full" label="设备流向关系" style="height: 100%;" name="sblxgx"> <!-- <el-tab-pane class="full" label="设备流向关系" style="height: 100%;" name="sblxgx">
<Sblxgx :app='this' class="full" ref='sblxgx' /> <Sblxgx :app='this' class="full" ref='sblxgx' />
</el-tab-pane> --> </el-tab-pane> -->
</el-tabs> </el-tabs>
...@@ -70,8 +71,7 @@ ...@@ -70,8 +71,7 @@
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'sbgl/usbxx', url: 'sbgl/usbxx',
tableTitle: [ tableTitle: [{
{
title: "设备编码", title: "设备编码",
field: "code", field: "code",
width: 140 width: 140
...@@ -96,6 +96,11 @@ ...@@ -96,6 +96,11 @@
"value": "code" "value": "code"
} }
}, },
{
title: "材质",
field: "cz",
width: 140,
},
{ {
title: "机组编码", title: "机组编码",
field: "jzbm", field: "jzbm",
...@@ -139,7 +144,7 @@ ...@@ -139,7 +144,7 @@
{ {
title: "创建人", title: "创建人",
field: "cjr", field: "cjr",
width:120 width: 120
}, },
{ {
title: "创建时间", title: "创建时间",
...@@ -150,7 +155,7 @@ ...@@ -150,7 +155,7 @@
title: "维护人", title: "维护人",
field: "whr", field: "whr",
hidden: true, hidden: true,
width:120 width: 120
}, },
{ {
title: "维护时间", title: "维护时间",
...@@ -161,15 +166,13 @@ ...@@ -161,15 +166,13 @@
], ],
queryParams: [ queryParams: [
[ [{
{ label: '设备信息',
label: '设备信息', prop: 'sbxxInfo',
prop: 'sbxxInfo', span: 6,
span: 6, type: 'input',
type: 'input', value: ''
value: '' }]
}
]
], ],
/* 默认启停用 */ /* 默认启停用 */
showqt: false, showqt: false,
...@@ -179,9 +182,9 @@ ...@@ -179,9 +182,9 @@
}, },
methods: { methods: {
getRow(row){ getRow(row) {
this.$refs.sbbg.$refs.basePage.queryParams.sbxxCode = row.code||'null' // this.$refs.sbbg.$refs.basePage.queryParams.sbxxCode = row.code||'null'
this.$refs.sbbg.$refs.basePage.refresh() // this.$refs.sbbg.$refs.basePage.refresh()
}, },
delSuccess(obj) { delSuccess(obj) {
/* let id = obj.params.master.id /* let id = obj.params.master.id
...@@ -197,12 +200,19 @@ ...@@ -197,12 +200,19 @@
this.$refs.basePage.treeInfo = e this.$refs.basePage.treeInfo = e
this.$refs.basePage.queryParams.pid = e.id this.$refs.basePage.queryParams.pid = e.id
this.$refs.basePage.refresh() this.$refs.basePage.refresh()
if(e.pid=='root'){
this.$refs.sbbg.$refs.basePage.queryParams.sbxxCode = e.code || 'null'
this.$refs.sbbg.$refs.basePage.refresh()
}
}, },
}, },
components: { components: {
Edit,Sbbg,Sblxgx Edit,
Sbbg,
Sblxgx
} }
} }
......
...@@ -300,7 +300,26 @@ ...@@ -300,7 +300,26 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 设备流向-->
<div class="sylb">
<div class="full data-box1" style="position: relative;">
<i @click="sylbshow=false"
style="position: absolute;right: 1px;top: 2px;color: #68D8FE;cursor: pointer;z-index: 999;"
class="el-icon-error"></i>
<i class="topL"></i>
<i class="topR"></i>
<i class="bottomL"></i>
<i class="bottomR"></i>
<div class="data-title1">
<b class="data-title-left">[</b>
<span>设备流向</span>
<b class="data-title-right">]</b>
</div>
<div class="full" style="padding: 10px;;padding-top: 15px;height: calc(100% - 14px);">
</div>
</div>
</div>
<!-- 右侧操作边框--> <!-- 右侧操作边框-->
<!-- <div class="rightOpt" ref="rightOpt"> <!-- <div class="rightOpt" ref="rightOpt">
<div class="full padding5" style="height: 100%;"> <div class="full padding5" style="height: 100%;">
......
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