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: '风险等级',
......
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
</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>
...@@ -17,7 +18,7 @@ ...@@ -17,7 +18,7 @@
<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>
...@@ -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