hrsass-components 1.7.22 → 1.7.25
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/lib/hrsass-components.js +61 -17
- package/lib/hrsass-components.min.js +1 -0
- package/package.json +1 -1
- package/rollup.build.css +20256 -0
package/lib/hrsass-components.js
CHANGED
|
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
|
|
|
65
65
|
var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
|
|
66
66
|
var saveSvgAsPng = require('save-svg-as-png');
|
|
67
67
|
|
|
68
|
-
var version = "1.7.
|
|
68
|
+
var version = "1.7.25";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -1955,6 +1955,18 @@ function Photograph () {
|
|
|
1955
1955
|
ws.binaryType = "arraybuffer";
|
|
1956
1956
|
|
|
1957
1957
|
ws.onmessage = function (event) {
|
|
1958
|
+
if (typeof event.data == "string") {
|
|
1959
|
+
if (event.data.indexOf("GetPicBase64:") >= 0) {
|
|
1960
|
+
var strTemp = event.data.substr(13);
|
|
1961
|
+
InfoTextCallback(5, strTemp);
|
|
1962
|
+
} else if (event.data.indexOf("GetPic2Base64:") >= 0) {
|
|
1963
|
+
var strTemp = event.data.substr(14);
|
|
1964
|
+
InfoTextCallback(21, strTemp);
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
return;
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1958
1970
|
var aDataArray = new Uint8Array(event.data);
|
|
1959
1971
|
|
|
1960
1972
|
if (aDataArray.length > 0) {
|
|
@@ -2382,6 +2394,7 @@ function Photograph () {
|
|
|
2382
2394
|
|
|
2383
2395
|
ws.onopen = function (event) {
|
|
2384
2396
|
if (enableCanvas) {
|
|
2397
|
+
sendSendStrBase64();
|
|
2385
2398
|
sendMsgGetMainCameraID();
|
|
2386
2399
|
sendMsgRefreshDev();
|
|
2387
2400
|
initParameter(orignalCanvasW, orignalCanvasH, orignalCanvasW2, orignalCanvasH2);
|
|
@@ -3040,6 +3053,15 @@ function Photograph () {
|
|
|
3040
3053
|
ws.send(aDataArray.buffer);
|
|
3041
3054
|
}
|
|
3042
3055
|
|
|
3056
|
+
function sendSendStrBase64() {
|
|
3057
|
+
var aDataArray = new Uint8Array(4);
|
|
3058
|
+
aDataArray[0] = 0xef;
|
|
3059
|
+
aDataArray[1] = 0xb2;
|
|
3060
|
+
aDataArray[2] = 0x01;
|
|
3061
|
+
aDataArray[3] = 0x01;
|
|
3062
|
+
ws.send(aDataArray.buffer);
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3043
3065
|
function GetFaceZuobiao(Xdis, Ydis) {
|
|
3044
3066
|
if (isFaceOpen) {
|
|
3045
3067
|
for (var j = 0; j < faceNum; j++) {
|
|
@@ -3170,20 +3192,23 @@ var HrPhotograph = {
|
|
|
3170
3192
|
},
|
|
3171
3193
|
computed: {
|
|
3172
3194
|
loading: function loading() {
|
|
3173
|
-
return this.connNum <
|
|
3195
|
+
return this.connNum < 1 || this.deviceNum === 0 || this.capturing;
|
|
3174
3196
|
}
|
|
3175
3197
|
},
|
|
3176
3198
|
methods: {
|
|
3177
3199
|
changeDevice: function changeDevice(device) {
|
|
3178
3200
|
this.activeDevice = device;
|
|
3201
|
+
this.connNum = 0;
|
|
3202
|
+
device === '2' ? (this.photograph.closeMain(), this.photograph.openSub()) : (this.photograph.closeSub(), this.photograph.openMain());
|
|
3179
3203
|
},
|
|
3180
3204
|
open: function open() {
|
|
3181
3205
|
var _this = this;
|
|
3182
3206
|
|
|
3183
3207
|
this.visible = true;
|
|
3184
|
-
this.photograph.open();
|
|
3185
3208
|
this.$nextTick(function () {
|
|
3186
3209
|
_this.initPhotograph();
|
|
3210
|
+
|
|
3211
|
+
_this.photograph.open();
|
|
3187
3212
|
});
|
|
3188
3213
|
},
|
|
3189
3214
|
close: function close() {
|
|
@@ -3230,7 +3255,8 @@ var HrPhotograph = {
|
|
|
3230
3255
|
created: function created() {
|
|
3231
3256
|
var _this2 = this;
|
|
3232
3257
|
|
|
3233
|
-
var WsUtil
|
|
3258
|
+
var WsUtil,
|
|
3259
|
+
$this = this;
|
|
3234
3260
|
var photograph = {
|
|
3235
3261
|
ratioW: null,
|
|
3236
3262
|
ratioH: null,
|
|
@@ -3251,11 +3277,7 @@ var HrPhotograph = {
|
|
|
3251
3277
|
WsUtil.sendMsgStartVideo2(WsUtil.camidSub, this.subRatioW, this.subRatioH);
|
|
3252
3278
|
},
|
|
3253
3279
|
open: function open() {
|
|
3254
|
-
this.
|
|
3255
|
-
|
|
3256
|
-
if (this.isSecondDev) {
|
|
3257
|
-
this.openSub();
|
|
3258
|
-
}
|
|
3280
|
+
$this.changeDevice('1');
|
|
3259
3281
|
},
|
|
3260
3282
|
closeMain: function closeMain() {
|
|
3261
3283
|
WsUtil.sendMsgCloseVideo();
|
|
@@ -3366,7 +3388,7 @@ var HrPhotograph = {
|
|
|
3366
3388
|
canvasSub.height = 375;
|
|
3367
3389
|
this.canvasMain = canvasMain;
|
|
3368
3390
|
this.canvasSub = canvasSub;
|
|
3369
|
-
this.WsUtil.WsInit(510, 375, 505, 375, true, this.canvasMain, this.canvasSub);
|
|
3391
|
+
this.WsUtil.WsInit(510, 375, 505, 375, true, this.canvasMain, this.canvasSub, '');
|
|
3370
3392
|
|
|
3371
3393
|
window.onmousewheel = document.onmousewheel = function (e) {
|
|
3372
3394
|
return _this2.onmousewheel(e);
|
|
@@ -4094,8 +4116,10 @@ var HrAppendix = {
|
|
|
4094
4116
|
display: "none"
|
|
4095
4117
|
} : {},
|
|
4096
4118
|
on: {
|
|
4097
|
-
change: function change(
|
|
4098
|
-
|
|
4119
|
+
change: function change(_ref6) {
|
|
4120
|
+
var dataUrl = _ref6.dataUrl,
|
|
4121
|
+
prefix = _ref6.prefix;
|
|
4122
|
+
return _this7.capture(dataUrl, prefix);
|
|
4099
4123
|
}
|
|
4100
4124
|
}
|
|
4101
4125
|
})]), h("a-upload", options, [btn ? this.$slots["default"] || btn : null])]);
|
|
@@ -4893,7 +4917,9 @@ var TableProps = {
|
|
|
4893
4917
|
selection: VuePropTypes.bool,
|
|
4894
4918
|
hasQueryData: VuePropTypes.bool,
|
|
4895
4919
|
showDownload: VuePropTypes.bool,
|
|
4896
|
-
autoLoad: VuePropTypes.bool
|
|
4920
|
+
autoLoad: VuePropTypes.bool,
|
|
4921
|
+
normalizeConfig: VuePropTypes.func,
|
|
4922
|
+
normalizeData: VuePropTypes.func // dataSource: PropTypes.array,
|
|
4897
4923
|
|
|
4898
4924
|
};
|
|
4899
4925
|
var FilterProps = {
|
|
@@ -8344,8 +8370,14 @@ var index = {
|
|
|
8344
8370
|
action: {
|
|
8345
8371
|
fixed: false,
|
|
8346
8372
|
width: 100
|
|
8347
|
-
}
|
|
8348
|
-
|
|
8373
|
+
},
|
|
8374
|
+
//操作列宽度和锁定
|
|
8375
|
+
normalizeConfig: function normalizeConfig(config) {
|
|
8376
|
+
return config;
|
|
8377
|
+
},
|
|
8378
|
+
normalizeData: function normalizeData(data) {
|
|
8379
|
+
return data;
|
|
8380
|
+
}
|
|
8349
8381
|
}),
|
|
8350
8382
|
data: function data() {
|
|
8351
8383
|
return {
|
|
@@ -8514,7 +8546,8 @@ var index = {
|
|
|
8514
8546
|
var _getOptionProps4 = getOptionProps(this),
|
|
8515
8547
|
code = _getOptionProps4.code,
|
|
8516
8548
|
_getOptionProps4$quer = _getOptionProps4.queryData,
|
|
8517
|
-
queryData = _getOptionProps4$quer === void 0 ? {} : _getOptionProps4$quer
|
|
8549
|
+
queryData = _getOptionProps4$quer === void 0 ? {} : _getOptionProps4$quer,
|
|
8550
|
+
normalizeConfig = _getOptionProps4.normalizeConfig;
|
|
8518
8551
|
|
|
8519
8552
|
if (code && this.configState != stateMap.loading) {
|
|
8520
8553
|
this.setState({
|
|
@@ -8522,6 +8555,11 @@ var index = {
|
|
|
8522
8555
|
});
|
|
8523
8556
|
this.configState = stateMap.loading;
|
|
8524
8557
|
this.$axios.get("platform/metadata/getGridConfig.search?code=".concat(code)).then(function (res) {
|
|
8558
|
+
//外部处理config
|
|
8559
|
+
if (lodash.isFunction(normalizeConfig)) {
|
|
8560
|
+
res = normalizeConfig(res);
|
|
8561
|
+
}
|
|
8562
|
+
|
|
8525
8563
|
_this4.configState = stateMap.loaded;
|
|
8526
8564
|
var conditions = res.conditions || [];
|
|
8527
8565
|
var _query = queryData;
|
|
@@ -8575,7 +8613,8 @@ var index = {
|
|
|
8575
8613
|
sorter = this.sorter,
|
|
8576
8614
|
columnList = this.columnList,
|
|
8577
8615
|
tempConditionListByScheme = this.tempConditionListByScheme,
|
|
8578
|
-
conditionListByScheme = this.conditionListByScheme
|
|
8616
|
+
conditionListByScheme = this.conditionListByScheme,
|
|
8617
|
+
normalizeData = this.normalizeData;
|
|
8579
8618
|
var sort = undefined;
|
|
8580
8619
|
|
|
8581
8620
|
if (sorter && sorter.field) {
|
|
@@ -8615,6 +8654,11 @@ var index = {
|
|
|
8615
8654
|
sortList: sort,
|
|
8616
8655
|
conditionList: _conditionList
|
|
8617
8656
|
}).then(function (res) {
|
|
8657
|
+
//外部处理数据
|
|
8658
|
+
if (lodash.isFunction(normalizeData)) {
|
|
8659
|
+
res = normalizeData(res);
|
|
8660
|
+
}
|
|
8661
|
+
|
|
8618
8662
|
_this5.setState({
|
|
8619
8663
|
pagination: _objectSpread$c(_objectSpread$c({}, pagination), {}, {
|
|
8620
8664
|
total: res.total
|