修改页面展示
This commit is contained in:
@@ -264,14 +264,12 @@ public class Tools implements Serializable {
|
|||||||
public static String bytetostringtool(byte[] aaa) {
|
public static String bytetostringtool(byte[] aaa) {
|
||||||
String tptm = "";
|
String tptm = "";
|
||||||
for(int i=0;i<aaa.length;i++){
|
for(int i=0;i<aaa.length;i++){
|
||||||
//System.out.println("??????:for:"+aaa[i]);
|
|
||||||
String x = Character.toString(showChar(aaa[i]));
|
String x = Character.toString(showChar(aaa[i]));
|
||||||
char ddd=showChar(aaa[i]);
|
char ddd=showChar(aaa[i]);
|
||||||
tptm=tptm+x;
|
tptm=tptm+x;
|
||||||
//System.out.println(tptm);
|
|
||||||
}
|
}
|
||||||
if(tptm.length() == 0 || tptm.equals("")){
|
if(tptm.isEmpty() || "\u0000\u0000\u0000\u0000\u0000\u0000\u0000".equals(tptm)){
|
||||||
return "00000000";
|
return "";
|
||||||
}else {
|
}else {
|
||||||
return tptm;
|
return tptm;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,11 @@
|
|||||||
<el-table-column label="id" align="center" prop="id" />
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
<el-table-column label="设备编码" align="center" prop="deviceCode" />
|
<el-table-column label="设备编码" align="center" prop="deviceCode" />
|
||||||
<el-table-column label="设备名称" align="center" prop="name" />
|
<el-table-column label="设备名称" align="center" prop="name" />
|
||||||
<el-table-column label="类型" align="center" prop="type" />
|
<el-table-column label="类型" align="center" prop="type" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.ssj_type" :value="scope.row.type"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="设备IP" align="center" prop="ipAddress" />
|
<el-table-column label="设备IP" align="center" prop="ipAddress" />
|
||||||
<el-table-column label="PLC读取地址" align="center" prop="plcDbReadAddress" />
|
<el-table-column label="PLC读取地址" align="center" prop="plcDbReadAddress" />
|
||||||
<el-table-column label="是否可用" align="center" prop="isActive" />
|
<el-table-column label="是否可用" align="center" prop="isActive" />
|
||||||
@@ -170,6 +174,7 @@ import { listSsj, getSsj, delSsj, addSsj, updateSsj } from "@/api/device/ssj"
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Ssj",
|
name: "Ssj",
|
||||||
|
dicts: ['ssj_type'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
|||||||
Reference in New Issue
Block a user