inl-ui 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +144 -77
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/pageComponent/views/video/assets/styles/video/group.less +1 -4
- package/src/pageComponent/views/video/sbgl/components/addGrouping.tsx +25 -14
- package/src/pageComponent/views/video/sbgl/group.tsx +71 -29
- package/src/pageComponent/views/video/sbgl/nvr.tsx +10 -9
package/dist/index.js
CHANGED
|
@@ -1099,7 +1099,7 @@ serverName:String,// 接口文件名
|
|
|
1099
1099
|
timeout:Number// 接口请求超时时长
|
|
1100
1100
|
},setup(){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData",{card:"productionStatistics"});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};const stopInterval=useInterval(getData,5000);onBeforeUnmount(stopInterval);return ()=>createVNode("div",{"class":"production-statistics"},[createVNode(SystemYield,{"data":form.systemYieldData},null),createVNode(CoalRankYield,{"data":form.coalRankYieldData},null)]);}});const mock={systemYieldData:[{name:"东区1#","value|0-20000":1},{name:"东区1#","percent|0-100":1,type:"产率"},{name:"东区2#","value|0-20000":1},{name:"东区2#","percent|0-100":1,type:"产率"},{name:"西区1#","value|0-20000":1},{name:"西区1#","percent|0-100":1,type:"产率"},{name:"西区2#","value|0-20000":1},{name:"西区2#","percent|0-100":1,type:"产率"},{name:"西区3#","value|0-20000":1},{name:"西区3#","percent|0-100":1,type:"产率"}],coalRankYieldData:[{name:"肥","value|1000-20000":1},{name:"焦","value|1000-20000":1},{name:"1/3焦","value|1000-20000":1},{name:"中","value|1000-20000":1},{name:"煤泥","value|1000-20000":1},{name:"矸石","value|1000-20000":1}]};var mockData={storageInfo:mock$d,remoteSwitchhouse:mock$y,substation:mock$x,electricMonitor:mock$m,rawCoalSendIn2:mock$9,productionPlan2:mock$e,productionStatistics:mock,mechineTimeDayStatistics:mock$8,drySeparationPlant:mock$6,luLingDayStatistics:mock$5,humanResources:mock$4,energyConsumptionInfo:mock$3,logisticsInfo:mock$k,commodityConsume:mock$j,deviceOverview:mock$2,overhaulPlan:mock$7,smartInspection:mock$n,remoteElectricity:mock$u,alarmFaultDanger:mock$l,productionPlan:mock$i,washingRawCoalQuantity:mock$h,washingSystemHandleQuantity:mock$q,systemRunStatus:mock$p,realTimeAshWater:mock$b,consumeAnalysis:mock$a,alarmInfo:mock$w,keyEquipmentTesting:mock$s,opsInfo:mock$r,hiddenTrouble:mock$v,faultJudgment:mock$t,rawCoalSendIn:mock$g,warehouseStorage:mock$f,sendInOutCoalList:mock$o,outTransportStatistics:mock$c,videos:mock$1};const cardList=[];const coms=[];const createComp=()=>{coms.push(installCom(Layout,"layout"));coms.push(installCom(CardBox,"box"));coms.push(installCom(layoutEditor,"layout-editor"));for(let i of cards){const com=installCom(i,i.name);coms.push(com);cardList.push({name:i.name,cname:i.cname,developer:i.developer,equipment:i.equipment,version: version$1});}};createComp();var index$1={install(app){for(let i of coms){app.use(i);}},cards:cardList,mockData:mockData,version: version$1};
|
|
1101
1101
|
|
|
1102
|
-
var version = "0.0.
|
|
1102
|
+
var version = "0.0.16";
|
|
1103
1103
|
|
|
1104
1104
|
const config$1 = {
|
|
1105
1105
|
prefix: "inl"
|
|
@@ -33366,17 +33366,20 @@ var addGrouping = defineComponent({
|
|
|
33366
33366
|
visible: false,
|
|
33367
33367
|
title: ""
|
|
33368
33368
|
});
|
|
33369
|
+
const formRef = ref();
|
|
33369
33370
|
const addPhotoShow = () => {
|
|
33370
33371
|
addPhtot.visible = true;
|
|
33371
33372
|
addPhtot.title = "";
|
|
33372
33373
|
};
|
|
33373
|
-
const addPhotoSave =
|
|
33374
|
-
|
|
33375
|
-
|
|
33376
|
-
|
|
33377
|
-
|
|
33378
|
-
|
|
33379
|
-
|
|
33374
|
+
const addPhotoSave = () => {
|
|
33375
|
+
formRef.value.validateFields().then(async () => {
|
|
33376
|
+
const params = {
|
|
33377
|
+
name: addPhtot.title
|
|
33378
|
+
};
|
|
33379
|
+
await api$m.saveGroupTabs(params);
|
|
33380
|
+
context.emit("addPhoto");
|
|
33381
|
+
addPhtot.visible = false;
|
|
33382
|
+
});
|
|
33380
33383
|
};
|
|
33381
33384
|
const addPhotoClose = () => {
|
|
33382
33385
|
addPhtot.visible = false;
|
|
@@ -33398,18 +33401,33 @@ var addGrouping = defineComponent({
|
|
|
33398
33401
|
}, {
|
|
33399
33402
|
default: () => [createVNode("div", {
|
|
33400
33403
|
"class": "add-grouping-modal-min"
|
|
33401
|
-
}, [createVNode("
|
|
33402
|
-
"
|
|
33403
|
-
|
|
33404
|
-
|
|
33405
|
-
|
|
33406
|
-
|
|
33407
|
-
|
|
33408
|
-
|
|
33404
|
+
}, [createVNode(resolveComponent("a-form"), {
|
|
33405
|
+
"model": addPhtot,
|
|
33406
|
+
"ref": formRef
|
|
33407
|
+
}, {
|
|
33408
|
+
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
33409
|
+
"label": "分组类型名称",
|
|
33410
|
+
"rules": {
|
|
33411
|
+
required: true,
|
|
33412
|
+
message: "分组类型名称不能为空",
|
|
33413
|
+
whitespace: true,
|
|
33414
|
+
trigger: "blur"
|
|
33415
|
+
},
|
|
33416
|
+
"name": "title"
|
|
33417
|
+
}, {
|
|
33418
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
33419
|
+
"value": addPhtot.title,
|
|
33420
|
+
"onUpdate:value": $event => addPhtot.title = $event
|
|
33421
|
+
}, null)]
|
|
33422
|
+
})]
|
|
33423
|
+
})])]
|
|
33409
33424
|
})]);
|
|
33410
33425
|
}
|
|
33411
33426
|
});
|
|
33412
33427
|
|
|
33428
|
+
function _isSlot$M(s) {
|
|
33429
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
33430
|
+
}
|
|
33413
33431
|
const dataList = [];
|
|
33414
33432
|
const generateList = data => {
|
|
33415
33433
|
let list = [];
|
|
@@ -33448,9 +33466,6 @@ const getParentKey = (key, tree) => {
|
|
|
33448
33466
|
}
|
|
33449
33467
|
return parentKey;
|
|
33450
33468
|
};
|
|
33451
|
-
function _isSlot$M(s) {
|
|
33452
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
33453
|
-
}
|
|
33454
33469
|
const com$j = defineComponent({
|
|
33455
33470
|
props: {
|
|
33456
33471
|
serverName: {
|
|
@@ -33467,6 +33482,8 @@ const com$j = defineComponent({
|
|
|
33467
33482
|
const searchValue = ref("");
|
|
33468
33483
|
const autoExpandParent = ref(true);
|
|
33469
33484
|
const gData = ref();
|
|
33485
|
+
const typeFormRef = ref();
|
|
33486
|
+
const nameFormRef = ref();
|
|
33470
33487
|
const data = reactive({
|
|
33471
33488
|
titleType: 0,
|
|
33472
33489
|
move: false,
|
|
@@ -33481,7 +33498,7 @@ const com$j = defineComponent({
|
|
|
33481
33498
|
const getGroup = async () => {
|
|
33482
33499
|
const res = await api$m.getGroup();
|
|
33483
33500
|
data.list = res.data;
|
|
33484
|
-
getQueryGroup(data.list[data.titleType]);
|
|
33501
|
+
await getQueryGroup(data.list[data.titleType]);
|
|
33485
33502
|
};
|
|
33486
33503
|
const moveIn = index => {
|
|
33487
33504
|
if (data.titleType === index) {
|
|
@@ -33511,24 +33528,26 @@ const com$j = defineComponent({
|
|
|
33511
33528
|
};
|
|
33512
33529
|
const saveCamera = async params => {
|
|
33513
33530
|
await api$m.saveCamera(params);
|
|
33514
|
-
getGroup();
|
|
33531
|
+
await getGroup();
|
|
33515
33532
|
};
|
|
33516
33533
|
const saveGroup = async params => {
|
|
33517
33534
|
await api$m.saveGroup(params);
|
|
33518
|
-
getGroup();
|
|
33535
|
+
await getGroup();
|
|
33519
33536
|
};
|
|
33520
33537
|
const saveGroupTabs = async params => {
|
|
33521
33538
|
await api$m.saveGroupTabs(params);
|
|
33522
|
-
getGroup();
|
|
33539
|
+
await getGroup();
|
|
33523
33540
|
};
|
|
33524
33541
|
const titleNameSave = () => {
|
|
33525
|
-
|
|
33526
|
-
|
|
33527
|
-
|
|
33528
|
-
|
|
33529
|
-
|
|
33530
|
-
|
|
33531
|
-
|
|
33542
|
+
typeFormRef.value.validateFields().then(async () => {
|
|
33543
|
+
const params = {
|
|
33544
|
+
name: data.list[data.titleType].name,
|
|
33545
|
+
id: data.list[data.titleType].id,
|
|
33546
|
+
uuid: data.list[data.titleType].uuid
|
|
33547
|
+
};
|
|
33548
|
+
await saveGroupTabs(params);
|
|
33549
|
+
data.editTitleNameType = false;
|
|
33550
|
+
});
|
|
33532
33551
|
};
|
|
33533
33552
|
const titleNameEdit = (index, e) => {
|
|
33534
33553
|
e.stopPropagation();
|
|
@@ -33537,7 +33556,7 @@ const com$j = defineComponent({
|
|
|
33537
33556
|
const groupingDeleId = async id => {
|
|
33538
33557
|
await api$m.deleteGroupId(id);
|
|
33539
33558
|
data.titleType = 0;
|
|
33540
|
-
getGroup();
|
|
33559
|
+
await getGroup();
|
|
33541
33560
|
};
|
|
33542
33561
|
const videoData = reactive({
|
|
33543
33562
|
list: []
|
|
@@ -33577,7 +33596,7 @@ const com$j = defineComponent({
|
|
|
33577
33596
|
await api$m.delGroupRelCamera(params);
|
|
33578
33597
|
}
|
|
33579
33598
|
selectedKeys.value = [];
|
|
33580
|
-
getGroup();
|
|
33599
|
+
await getGroup();
|
|
33581
33600
|
};
|
|
33582
33601
|
const modifyModelVisible = ref(false);
|
|
33583
33602
|
const modifyName = async () => {
|
|
@@ -33586,14 +33605,16 @@ const com$j = defineComponent({
|
|
|
33586
33605
|
modifyModelVisible.value = true;
|
|
33587
33606
|
};
|
|
33588
33607
|
const modifyNameSave = () => {
|
|
33589
|
-
|
|
33590
|
-
|
|
33591
|
-
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33596
|
-
|
|
33608
|
+
nameFormRef.value.validateFields().then(async () => {
|
|
33609
|
+
const params = {
|
|
33610
|
+
id: pitchOn.data.node.id,
|
|
33611
|
+
name: pitchOn.data.node.title,
|
|
33612
|
+
uuid: pitchOn.data.node.uuid,
|
|
33613
|
+
groupTypeUuid: data.list[data.titleType].uuid
|
|
33614
|
+
};
|
|
33615
|
+
await saveGroup(params);
|
|
33616
|
+
modifyModelVisible.value = false;
|
|
33617
|
+
});
|
|
33597
33618
|
};
|
|
33598
33619
|
const modifyNameClose = () => {
|
|
33599
33620
|
modifyModelVisible.value = false;
|
|
@@ -33770,12 +33791,26 @@ const com$j = defineComponent({
|
|
|
33770
33791
|
}, {
|
|
33771
33792
|
default: () => [createVNode("div", {
|
|
33772
33793
|
"class": "modify-model-min"
|
|
33773
|
-
}, [createVNode("
|
|
33774
|
-
"
|
|
33775
|
-
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
|
|
33794
|
+
}, [createVNode(resolveComponent("a-form"), {
|
|
33795
|
+
"model": pitchOn.data.node,
|
|
33796
|
+
"ref": nameFormRef
|
|
33797
|
+
}, {
|
|
33798
|
+
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
33799
|
+
"label": "分组名称",
|
|
33800
|
+
"rules": {
|
|
33801
|
+
required: true,
|
|
33802
|
+
message: "分组名称不能为空",
|
|
33803
|
+
whitespace: true,
|
|
33804
|
+
trigger: "blur"
|
|
33805
|
+
},
|
|
33806
|
+
"name": "title"
|
|
33807
|
+
}, {
|
|
33808
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
33809
|
+
"value": pitchOn.data.node.title,
|
|
33810
|
+
"onUpdate:value": $event => pitchOn.data.node.title = $event
|
|
33811
|
+
}, null)]
|
|
33812
|
+
})]
|
|
33813
|
+
})])]
|
|
33779
33814
|
}), createVNode(resolveComponent("a-modal"), {
|
|
33780
33815
|
"centered": true,
|
|
33781
33816
|
"visible": addModel.visible,
|
|
@@ -33807,12 +33842,26 @@ const com$j = defineComponent({
|
|
|
33807
33842
|
})]
|
|
33808
33843
|
})]), [[vShow, addModel.itemType === "item"]]), addModel.type === "zu" ? createVNode("div", {
|
|
33809
33844
|
"class": "grouping-phto-min"
|
|
33810
|
-
}, [createVNode("
|
|
33811
|
-
"
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33845
|
+
}, [createVNode(resolveComponent("a-form"), {
|
|
33846
|
+
"model": pitchOn.data.node,
|
|
33847
|
+
"ref": nameFormRef
|
|
33848
|
+
}, {
|
|
33849
|
+
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
33850
|
+
"label": "分组",
|
|
33851
|
+
"rules": {
|
|
33852
|
+
required: true,
|
|
33853
|
+
message: "分组不能为空",
|
|
33854
|
+
whitespace: true,
|
|
33855
|
+
trigger: "blur"
|
|
33856
|
+
},
|
|
33857
|
+
"name": "title"
|
|
33858
|
+
}, {
|
|
33859
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
33860
|
+
"value": addModel.value,
|
|
33861
|
+
"onUpdate:value": $event => addModel.value = $event
|
|
33862
|
+
}, null)]
|
|
33863
|
+
})]
|
|
33864
|
+
})]) : createVNode("div", {
|
|
33816
33865
|
"class": "grouping-phto-min"
|
|
33817
33866
|
}, [createVNode("span", {
|
|
33818
33867
|
"class": "lable"
|
|
@@ -33842,12 +33891,26 @@ const com$j = defineComponent({
|
|
|
33842
33891
|
}, {
|
|
33843
33892
|
default: () => [createVNode("div", {
|
|
33844
33893
|
"class": "modify-model-min"
|
|
33845
|
-
}, [createVNode("
|
|
33846
|
-
"
|
|
33847
|
-
|
|
33848
|
-
|
|
33849
|
-
|
|
33850
|
-
|
|
33894
|
+
}, [createVNode(resolveComponent("a-form"), {
|
|
33895
|
+
"model": data,
|
|
33896
|
+
"ref": typeFormRef
|
|
33897
|
+
}, {
|
|
33898
|
+
default: () => [createVNode(resolveComponent("a-form-item"), {
|
|
33899
|
+
"label": "分组类型名称",
|
|
33900
|
+
"rules": {
|
|
33901
|
+
required: true,
|
|
33902
|
+
message: "分组类型名称不能为空",
|
|
33903
|
+
whitespace: true,
|
|
33904
|
+
trigger: "blur"
|
|
33905
|
+
},
|
|
33906
|
+
"name": ["list", data.titleType, "name"]
|
|
33907
|
+
}, {
|
|
33908
|
+
default: () => [createVNode(resolveComponent("a-input"), {
|
|
33909
|
+
"value": data.list[data.titleType].name,
|
|
33910
|
+
"onUpdate:value": $event => data.list[data.titleType].name = $event
|
|
33911
|
+
}, null)]
|
|
33912
|
+
})]
|
|
33913
|
+
})])]
|
|
33851
33914
|
})]);
|
|
33852
33915
|
};
|
|
33853
33916
|
}
|
|
@@ -33942,7 +34005,7 @@ const com$i = defineComponent({
|
|
|
33942
34005
|
};
|
|
33943
34006
|
const deleteAlarm = async param => {
|
|
33944
34007
|
await api$m.deleteNvr(param.record);
|
|
33945
|
-
getData();
|
|
34008
|
+
await getData();
|
|
33946
34009
|
};
|
|
33947
34010
|
const newAlarm = () => {
|
|
33948
34011
|
data.formState = {
|
|
@@ -33970,23 +34033,27 @@ const com$i = defineComponent({
|
|
|
33970
34033
|
}, [createTextVNode("\u79BB\u7EBF")]);
|
|
33971
34034
|
}
|
|
33972
34035
|
if (param.column.dataIndex === "operation") {
|
|
33973
|
-
return createVNode("
|
|
33974
|
-
|
|
33975
|
-
|
|
33976
|
-
|
|
33977
|
-
|
|
33978
|
-
|
|
33979
|
-
}
|
|
33980
|
-
|
|
33981
|
-
|
|
33982
|
-
|
|
33983
|
-
|
|
33984
|
-
|
|
33985
|
-
|
|
33986
|
-
|
|
33987
|
-
|
|
33988
|
-
|
|
33989
|
-
|
|
34036
|
+
return createVNode(resolveComponent("a-space"), null, {
|
|
34037
|
+
default: () => [createVNode(resolveComponent("a-button"), {
|
|
34038
|
+
"type": "link",
|
|
34039
|
+
"onClick": () => {
|
|
34040
|
+
editAlarm(param);
|
|
34041
|
+
}
|
|
34042
|
+
}, {
|
|
34043
|
+
default: () => [createTextVNode("\u7F16\u8F91")]
|
|
34044
|
+
}), createVNode(resolveComponent("a-popconfirm"), {
|
|
34045
|
+
"title": "确定删除?",
|
|
34046
|
+
"onConfirm": () => {
|
|
34047
|
+
deleteAlarm(param);
|
|
34048
|
+
}
|
|
34049
|
+
}, {
|
|
34050
|
+
default: () => [createVNode(resolveComponent("a-button"), {
|
|
34051
|
+
"type": "link"
|
|
34052
|
+
}, {
|
|
34053
|
+
default: () => [createTextVNode("\u5220\u9664")]
|
|
34054
|
+
})]
|
|
34055
|
+
})]
|
|
34056
|
+
});
|
|
33990
34057
|
}
|
|
33991
34058
|
return true;
|
|
33992
34059
|
};
|
|
@@ -33995,7 +34062,7 @@ const com$i = defineComponent({
|
|
|
33995
34062
|
const saveSetting = () => {
|
|
33996
34063
|
formRef.value.validate().then(async () => {
|
|
33997
34064
|
await api$m.saveNvr(data.formState);
|
|
33998
|
-
getData();
|
|
34065
|
+
await getData();
|
|
33999
34066
|
data.dialog = false;
|
|
34000
34067
|
}).catch(error => {});
|
|
34001
34068
|
};
|