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

1

parent 647099e9
......@@ -39,20 +39,20 @@
data() {
return {
editColItemList: [
{
label: '上层分类',
prop: 'pid',
span: 8,
"type": "RelSelect",
"typeConfig": {
"src": "sbgl/usbxx/queryroot",
"match": {
"value": "id",
"label": "name"
}
}
// {
// label: '上层分类',
// prop: 'pid',
// span: 8,
// "type": "RelSelect",
// "typeConfig": {
// "src": "sbgl/usbxx/queryroot",
// "match": {
// "value": "id",
// "label": "name"
// }
// }
},
// },
{
label: '设备编码',
......@@ -62,6 +62,7 @@
required: true,
},
{
label: '设备名称',
prop: 'name',
......@@ -84,6 +85,13 @@
}
},
{
label: '材质',
prop: 'cz',
span: 8,
type: 'input',
required: true,
},
{
required: false,
label: '风险等级',
......
......@@ -8,8 +8,9 @@
</div>
<div class="min_full" style="width: calc(100% - 380px);border-top: 0px;height: 140vh;">
<div style="height:477px;width: 100%;">
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 477px;border: 0px;border-bottom: 5px solid #eee;"
@delSuccess='delSuccess' :autoQuery='false' ref="basePage" :config="config">
<BasePage @getRow='getRow' :power='power' class="min_full"
style="height: 477px;border: 0px;border-bottom: 5px solid #eee;" @delSuccess='delSuccess' :autoQuery='false'
ref="basePage" :config="config">
<template #dialog="ctx">
</template>
......@@ -17,7 +18,7 @@
<ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'sbgl/usbxx/import'" />
<AttachFileShow style="margin-left: 10px;" :app='ctx.basePage' ></AttachFileShow>
<AttachFileShow style="margin-left: 10px;" :app='ctx.basePage'></AttachFileShow>
</template>
</BasePage>
</div>
......@@ -70,8 +71,7 @@
config: {
/* 基本配置*/
url: 'sbgl/usbxx',
tableTitle: [
{
tableTitle: [{
title: "设备编码",
field: "code",
width: 140
......@@ -96,6 +96,11 @@
"value": "code"
}
},
{
title: "材质",
field: "cz",
width: 140,
},
{
title: "机组编码",
field: "jzbm",
......@@ -139,7 +144,7 @@
{
title: "创建人",
field: "cjr",
width:120
width: 120
},
{
title: "创建时间",
......@@ -150,7 +155,7 @@
title: "维护人",
field: "whr",
hidden: true,
width:120
width: 120
},
{
title: "维护时间",
......@@ -161,15 +166,13 @@
],
queryParams: [
[
{
[{
label: '设备信息',
prop: 'sbxxInfo',
span: 6,
type: 'input',
value: ''
}
]
}]
],
/* 默认启停用 */
showqt: false,
......@@ -179,9 +182,9 @@
},
methods: {
getRow(row){
this.$refs.sbbg.$refs.basePage.queryParams.sbxxCode = row.code||'null'
this.$refs.sbbg.$refs.basePage.refresh()
getRow(row) {
// this.$refs.sbbg.$refs.basePage.queryParams.sbxxCode = row.code||'null'
// this.$refs.sbbg.$refs.basePage.refresh()
},
delSuccess(obj) {
/* let id = obj.params.master.id
......@@ -197,12 +200,19 @@
this.$refs.basePage.treeInfo = e
this.$refs.basePage.queryParams.pid = e.id
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: {
Edit,Sbbg,Sblxgx
Edit,
Sbbg,
Sblxgx
}
}
......
......@@ -300,7 +300,26 @@
</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="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