|
@@ -1692,6 +1692,7 @@ export const formComponents = [
|
|
height: 0,
|
|
height: 0,
|
|
disableAnchor: true,
|
|
disableAnchor: true,
|
|
// disableSize: true,
|
|
// disableSize: true,
|
|
|
|
+ colHeaders:true,
|
|
colWidth: 90,
|
|
colWidth: 90,
|
|
rowHeight: 32,
|
|
rowHeight: 32,
|
|
bordered: false,
|
|
bordered: false,
|
|
@@ -1702,10 +1703,11 @@ export const formComponents = [
|
|
// hasHeader: false,
|
|
// hasHeader: false,
|
|
textColor: '#FFFFFF',
|
|
textColor: '#FFFFFF',
|
|
columns:[
|
|
columns:[
|
|
- {},
|
|
|
|
- {},
|
|
|
|
- {},
|
|
|
|
|
|
+ {text:'设备 ID'},
|
|
|
|
+ {text:'设备名称'},
|
|
|
|
+ {text:'数据协议'},
|
|
{
|
|
{
|
|
|
|
+ text:'级别',
|
|
fnJs:`if(data==='一级告警'){
|
|
fnJs:`if(data==='一级告警'){
|
|
return {
|
|
return {
|
|
text:data,
|
|
text:data,
|
|
@@ -1924,10 +1926,11 @@ export const formComponents = [
|
|
// stripe: true,
|
|
// stripe: true,
|
|
swiper:true,
|
|
swiper:true,
|
|
// stripeColor: '#407FFF1F', //'#15181c',
|
|
// stripeColor: '#407FFF1F', //'#15181c',
|
|
- hasHeader:true,
|
|
|
|
|
|
+ colHeaders:true,
|
|
textColor: '#FFFFFF',
|
|
textColor: '#FFFFFF',
|
|
- maxNum:5,
|
|
|
|
- columns:[{},{},{},{
|
|
|
|
|
|
+ maxNum:5,
|
|
|
|
+ columns:[{text:"序号"},{text:"时间"},{text:"事件内容"},{
|
|
|
|
+ text:"处理状态",
|
|
fnJs:`
|
|
fnJs:`
|
|
if(data==='处理中'){
|
|
if(data==='处理中'){
|
|
return {
|
|
return {
|
|
@@ -2036,21 +2039,21 @@ export const formComponents = [
|
|
"col": 2,
|
|
"col": 2,
|
|
"width": 112
|
|
"width": 112
|
|
},
|
|
},
|
|
- {
|
|
|
|
- "col": 3,
|
|
|
|
- "pens": [
|
|
|
|
- {
|
|
|
|
- "disableAnchor": true,
|
|
|
|
- "fontSize": 0.6,
|
|
|
|
- "height": 20,
|
|
|
|
- "lineWidth": 0,
|
|
|
|
- "name": "rectangle",
|
|
|
|
- "textColor": "#05CFF9FF",
|
|
|
|
- "width": 56
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "width": 70
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // "col": 3,
|
|
|
|
+ // "pens": [
|
|
|
|
+ // {
|
|
|
|
+ // "disableAnchor": true,
|
|
|
|
+ // "fontSize": 0.6,
|
|
|
|
+ // "height": 20,
|
|
|
|
+ // "lineWidth": 0,
|
|
|
|
+ // "name": "rectangle",
|
|
|
|
+ // "textColor": "#05CFF9FF",
|
|
|
|
+ // "width": 56
|
|
|
|
+ // }
|
|
|
|
+ // ],
|
|
|
|
+ // "width": 70
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
"col": 0,
|
|
"col": 0,
|
|
"pens": [
|
|
"pens": [
|
|
@@ -2157,7 +2160,7 @@ export const formComponents = [
|
|
stripeColor: "#407FFF1F",
|
|
stripeColor: "#407FFF1F",
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
whiteSpace: "break-all",
|
|
whiteSpace: "break-all",
|
|
- maxNum:11,
|
|
|
|
|
|
+ maxNum:10,
|
|
colHeaders:true,
|
|
colHeaders:true,
|
|
pagination: {
|
|
pagination: {
|
|
current: 1,
|
|
current: 1,
|
|
@@ -2171,9 +2174,15 @@ export const formComponents = [
|
|
],
|
|
],
|
|
size: "small",
|
|
size: "small",
|
|
total: 88
|
|
total: 88
|
|
- },
|
|
|
|
- columns:[{},{},{},
|
|
|
|
- {
|
|
|
|
|
|
+ },
|
|
|
|
+ columns:[{
|
|
|
|
+ text:'场景',
|
|
|
|
+ },{
|
|
|
|
+ text:'图纸id'
|
|
|
|
+ },{
|
|
|
|
+ text:'名称'
|
|
|
|
+ },{
|
|
|
|
+ text:'操作',
|
|
fnJs:`
|
|
fnJs:`
|
|
let link = 'https://view.le5le.com/2d?id='+data;
|
|
let link = 'https://view.le5le.com/2d?id='+data;
|
|
return {
|
|
return {
|
|
@@ -2198,7 +2207,7 @@ export const formComponents = [
|
|
"actions": [
|
|
"actions": [
|
|
{
|
|
{
|
|
"action": 15,
|
|
"action": 15,
|
|
- "callback": " let _data = [['场景','图纸id','名称','操作']]; \r\n let data1 = JSON.parse(data);\r\n pen.pagination.total = data1.total;\r\n pen.calculative.paginationPen.total = data1.total;\r\n data1.list.forEach((item)=>{\r\n let _item = [item.case?item.case:'无',item.id,item.name,item.id];\r\n _data.push(_item);\r\n });\r\n context.meta2d.setValue({id:pen.id,data:_data},{doEvent:false,history:false});",
|
|
|
|
|
|
+ "callback": " let _data = []; \r\n let data1 = JSON.parse(data);\r\n pen.pagination.total = data1.total;\r\n pen.calculative.paginationPen.total = data1.total;\r\n data1.list.forEach((item)=>{\r\n let _item = [item.case?item.case:'无',item.id,item.name,item.id];\r\n _data.push(_item);\r\n });\r\n context.meta2d.setValue({id:pen.id,data:_data},{doEvent:false,history:false});",
|
|
"input": "",
|
|
"input": "",
|
|
"network": {
|
|
"network": {
|
|
"httpTimeInterval": 1000,
|
|
"httpTimeInterval": 1000,
|
|
@@ -2231,12 +2240,7 @@ export const formComponents = [
|
|
}
|
|
}
|
|
],
|
|
],
|
|
data: [
|
|
data: [
|
|
- [
|
|
|
|
- "场景",
|
|
|
|
- "图纸id",
|
|
|
|
- "名称",
|
|
|
|
- "操作"
|
|
|
|
- ],
|
|
|
|
|
|
+
|
|
[
|
|
[
|
|
"智慧物联",
|
|
"智慧物联",
|
|
"01840e23-efb8-70d4-804b-9402de84d2d7",
|
|
"01840e23-efb8-70d4-804b-9402de84d2d7",
|