|
@@ -65,8 +65,18 @@
|
|
|
<el-table-column prop="name" :label='$t("resource.table.resours.name")' :show-overflow-tooltip="true" width="180px"></el-table-column>
|
|
|
<el-table-column prop="code" :label='$t("resource.table.resours.no")' :show-overflow-tooltip="true" width="100px"></el-table-column>
|
|
|
<el-table-column prop="brand" :label='$t("resource.table.resours.brand")' width="100px"></el-table-column>
|
|
|
- <el-table-column prop="specification" :label='$t("resource.table.resours.specification")' width="180px"></el-table-column>
|
|
|
- <el-table-column prop="model" :label='$t("resource.table.resours.model")'></el-table-column>
|
|
|
+ <el-table-column prop="specification" :label='$t("resource.table.resours.specification")'></el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="capitalNo" :label='$t("resource.table.resours.capitalNo")'></el-table-column>
|
|
|
+ <el-table-column prop="capitalName" :label='$t("resource.table.resours.capitalName")'></el-table-column>
|
|
|
+ <el-table-column prop="capitalType" :label='$t("resource.table.resours.capitalType")'></el-table-column>
|
|
|
+ <el-table-column prop="modeSpecification" :label='$t("resource.table.resours.modeSpecification")'></el-table-column>
|
|
|
+ <el-table-column prop="capitalPrice" :label='$t("resource.table.resours.capitalPrice")'></el-table-column>
|
|
|
+ <el-table-column prop="productionDate" :label='$t("resource.table.resours.productionDate")'></el-table-column>
|
|
|
+ <el-table-column prop="productionNo" :label='$t("resource.table.resours.productionNo")'></el-table-column>
|
|
|
+ <el-table-column prop="manufacturer" :label='$t("resource.table.resours.manufacturer")'></el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="model" :label='$t("resource.table.resours.model")'></el-table-column>
|
|
|
<el-table-column prop="category.data" :label='$t("resource.table.resours.category")' width="100px"></el-table-column>
|
|
|
<el-table-column prop="zoneName" :label='$t("resource.table.resours.zoneName")' width="180px"></el-table-column>
|
|
|
<el-table-column prop="positionCount" :label='$t("resource.table.resours.nums")' width="120px"></el-table-column>
|
|
@@ -97,7 +107,7 @@
|
|
|
fixed="right"
|
|
|
align="center"
|
|
|
column-key="operation"
|
|
|
- width="150px"
|
|
|
+ width="180px"
|
|
|
>
|
|
|
<template slot-scope="{ row }">
|
|
|
<!--<el-tooltip class="item" content="查看详情" effect="dark" placement="top-start">
|
|
@@ -135,13 +145,13 @@
|
|
|
@click="autoCode(row)"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
- <!--<el-tooltip class="item" :content='$t("common.delete")' effect="dark" placement="top-start">
|
|
|
+ <el-tooltip class="item" content='详情配置' effect="dark" placement="top-start">
|
|
|
<i
|
|
|
- class="el-icon-delete table-operation"
|
|
|
+ class="el-icon-guide table-operation"
|
|
|
style="color: #f50;"
|
|
|
- @click="singleDelete(row)"
|
|
|
+ @click="detailConf(row)"
|
|
|
/>
|
|
|
- </el-tooltip>-->
|
|
|
+ </el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -172,14 +182,14 @@
|
|
|
@close="editHardwareClose"
|
|
|
@success="editHardwareSuccess"
|
|
|
/>
|
|
|
- <!-- 设备自动化节点配置
|
|
|
- <autoCode
|
|
|
- ref="autoCode"
|
|
|
- :dialog-visible="dialogAutoCode.isVisible"
|
|
|
- :title="dialogAutoCode.title"
|
|
|
- @close="editAutoCodeClose"
|
|
|
- @success="editAutoCodeSuccess"
|
|
|
- /> -->
|
|
|
+ <!-- 生产资源资料 -->
|
|
|
+ <detailConf
|
|
|
+ ref="detailConf"
|
|
|
+ :dialog-visible="dialogDetailConf.isVisible"
|
|
|
+ :title="dialogDetailConf.title"
|
|
|
+ @close="editDetailConfClose"
|
|
|
+ @success="editDetailConfSuccess"
|
|
|
+ />
|
|
|
|
|
|
<el-dialog
|
|
|
:title='$t("resource.buttons.autoCode")'
|
|
@@ -191,7 +201,6 @@
|
|
|
<autoCode :rowData="rowData" @close="editAutoCodeClose" @success="editAutoCodeSuccess" />
|
|
|
|
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
<!-- 详情 -->
|
|
|
<tenant-view
|
|
@@ -233,6 +242,7 @@
|
|
|
// 【硬件配置】
|
|
|
import Hardware from "./components/Hardware"
|
|
|
import AutoCode from "./components/AutoCode"
|
|
|
+ import DetailConf from "./components/DetailConf"
|
|
|
import TenantView from "./components/View"
|
|
|
// 【设备管理】-API
|
|
|
import equipmentMgrApi from "@/api/resourceProductMgr/equipmentMgr"
|
|
@@ -244,14 +254,14 @@
|
|
|
export default {
|
|
|
name: "ResourcesMgr",
|
|
|
directives: { elDragDialog },
|
|
|
- components: { Pagination, TenantEdit, Hardware, AutoCode, TenantView, equipmentMgrApi, equipmentPosition },
|
|
|
+ components: { Pagination, TenantEdit, Hardware, AutoCode, TenantView, DetailConf, equipmentMgrApi, equipmentPosition },
|
|
|
props: {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
currentRow: null, // 当前选中的行数据
|
|
|
equipmentVisible: false, // 设备管理
|
|
|
- autoCodeVisible:false, //节点配置
|
|
|
+ autoCodeVisible:false, //节点配置
|
|
|
rowData: {}, // row数据,
|
|
|
audioStatus: [],
|
|
|
dialog: {
|
|
@@ -261,6 +271,10 @@
|
|
|
dialogHardware: {
|
|
|
isVisible: false,
|
|
|
title: ""
|
|
|
+ },
|
|
|
+ dialogDetailConf: {
|
|
|
+ isVisible: false,
|
|
|
+ title: ""
|
|
|
},
|
|
|
preview: {
|
|
|
isVisible: false,
|
|
@@ -298,7 +312,7 @@
|
|
|
},
|
|
|
nationList() {
|
|
|
return convertEnum(this.dicts.NATION)
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
mounted () {
|
|
|
|
|
@@ -334,7 +348,11 @@
|
|
|
editSuccess () {
|
|
|
this.search()
|
|
|
},
|
|
|
-
|
|
|
+ detailConf(row){
|
|
|
+ this.$refs.detailConf.type = 'edit'
|
|
|
+ this.$refs.detailConf.setTenant(row, this.dicts)
|
|
|
+ this.dialogDetailConf.isVisible = true
|
|
|
+ },
|
|
|
// 【硬件配置】-确定
|
|
|
editHardwareSuccess(){
|
|
|
this.search()
|
|
@@ -348,6 +366,12 @@
|
|
|
},
|
|
|
editAutoCodeSuccess(){
|
|
|
this.search()
|
|
|
+ },
|
|
|
+ editDetailConfClose (){
|
|
|
+ this.dialogDetailConf.isVisible = false
|
|
|
+ },
|
|
|
+ editDetailConfSuccess(){
|
|
|
+ this.search()
|
|
|
},
|
|
|
onSelectChange (selection) {
|
|
|
this.selection = selection
|