ecinc-cloud-mappaio 9.7.33 → 9.7.36
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/ecmappaio.common.js +133 -54
- package/lib/ecmappaio.umd.js +133 -54
- package/lib/ecmappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -8756,7 +8756,7 @@ src.install = function (Vue) {
|
|
|
8756
8756
|
|
|
8757
8757
|
/***/ }),
|
|
8758
8758
|
|
|
8759
|
-
/***/
|
|
8759
|
+
/***/ 431:
|
|
8760
8760
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8761
8761
|
|
|
8762
8762
|
"use strict";
|
|
@@ -12715,8 +12715,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
12715
12715
|
)
|
|
12716
12716
|
|
|
12717
12717
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
12718
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=
|
|
12719
|
-
var
|
|
12718
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=20bc806c&scoped=true
|
|
12719
|
+
var SubmitHandlevue_type_template_id_20bc806c_scoped_true_render = function render() {
|
|
12720
12720
|
var _vm = this,
|
|
12721
12721
|
_c = _vm._self._c;
|
|
12722
12722
|
return _vm.initiated ? _c('div', {
|
|
@@ -13501,7 +13501,7 @@ var SubmitHandlevue_type_template_id_44733f4f_scoped_true_render = function rend
|
|
|
13501
13501
|
}
|
|
13502
13502
|
})], 2) : _vm._e();
|
|
13503
13503
|
};
|
|
13504
|
-
var
|
|
13504
|
+
var SubmitHandlevue_type_template_id_20bc806c_scoped_true_staticRenderFns = [];
|
|
13505
13505
|
|
|
13506
13506
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=template&id=d1ae2f20&scoped=true
|
|
13507
13507
|
var WfTaskNodevue_type_template_id_d1ae2f20_scoped_true_render = function render() {
|
|
@@ -14830,8 +14830,8 @@ var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
|
14830
14830
|
)
|
|
14831
14831
|
|
|
14832
14832
|
/* harmony default export */ var WfTaskNode = (WfTaskNode_component.exports);
|
|
14833
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=template&id=
|
|
14834
|
-
var
|
|
14833
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=template&id=5924c680&scoped=true
|
|
14834
|
+
var VoiceInputDialogvue_type_template_id_5924c680_scoped_true_render = function render() {
|
|
14835
14835
|
var _vm = this,
|
|
14836
14836
|
_c = _vm._self._c;
|
|
14837
14837
|
return _c('van-popup', {
|
|
@@ -14958,9 +14958,14 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_render = function
|
|
|
14958
14958
|
}
|
|
14959
14959
|
}, [_vm._v(_vm._s(_vm.$tx('ecmapp.wflowform.voiceFillOpinion', '填入意见')))])], 1)]);
|
|
14960
14960
|
};
|
|
14961
|
-
var
|
|
14961
|
+
var VoiceInputDialogvue_type_template_id_5924c680_scoped_true_staticRenderFns = [];
|
|
14962
14962
|
|
|
14963
14963
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=script&lang=js
|
|
14964
|
+
// 静音自动结束:频谱均值(0-255)超过阈值视为有人声;
|
|
14965
|
+
// 前导静音(全程未开口)与尾部静音(说完后沉默)分别计时,审批意见多为短句,尾部可更早收尾
|
|
14966
|
+
var VOICE_AVG_THRESHOLD = 10;
|
|
14967
|
+
var LEADING_SILENCE_MS = 10000;
|
|
14968
|
+
var TRAILING_SILENCE_MS = 5000;
|
|
14964
14969
|
/* harmony default export */ var VoiceInputDialogvue_type_script_lang_js = ({
|
|
14965
14970
|
name: 'VoiceInputDialog',
|
|
14966
14971
|
props: {
|
|
@@ -14988,13 +14993,20 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
14988
14993
|
stream: null,
|
|
14989
14994
|
// 麦克风音频流
|
|
14990
14995
|
audioChunks: [],
|
|
14996
|
+
lastVoiceAt: 0,
|
|
14997
|
+
// 最近一次检测到人声的时间戳,用于静音自动结束
|
|
14998
|
+
hasVoice: false,
|
|
14999
|
+
// 本次录音是否检测到过人声
|
|
15000
|
+
discardRecording: false,
|
|
15001
|
+
// 全程静音自动结束时丢弃录音,不上传识别
|
|
14991
15002
|
audioContext: null,
|
|
14992
15003
|
// 波形绘制音频上下文
|
|
14993
15004
|
analyser: null,
|
|
14994
15005
|
// 波形分析节点
|
|
14995
15006
|
visualStream: null,
|
|
14996
15007
|
// 浏览器模式下专供波形绘制的音频流
|
|
14997
|
-
waveRafId: null
|
|
15008
|
+
waveRafId: null,
|
|
15009
|
+
recognizeStartAt: 0 // 识别启动时间戳,用于判断秒退(识别服务不可用)
|
|
14998
15010
|
};
|
|
14999
15011
|
},
|
|
15000
15012
|
computed: {
|
|
@@ -15007,6 +15019,8 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15007
15019
|
}
|
|
15008
15020
|
},
|
|
15009
15021
|
// window.voiceToWord为非空字符串且不为browser时,视为后端转写接口URL
|
|
15022
|
+
// 后端语音识别服务部署在eccloud-clientms,网关已将/voice/**路由过去,
|
|
15023
|
+
// 故该参数配置为'/voice/recognize/toText'(请求基地址由$http的baseURL统一拼接)
|
|
15010
15024
|
backendUrl: function backendUrl() {
|
|
15011
15025
|
var voiceToWord = window.voiceToWord;
|
|
15012
15026
|
return voiceToWord && typeof voiceToWord === 'string' && voiceToWord !== 'browser' ? voiceToWord : '';
|
|
@@ -15050,6 +15064,8 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15050
15064
|
this.finalText = '';
|
|
15051
15065
|
this.seconds = 0;
|
|
15052
15066
|
this.audioChunks = [];
|
|
15067
|
+
this.hasVoice = false;
|
|
15068
|
+
this.discardRecording = false;
|
|
15053
15069
|
},
|
|
15054
15070
|
// 打开弹窗即预请求麦克风权限,被拒绝时显示引导文案
|
|
15055
15071
|
preRequestPermission: function preRequestPermission() {
|
|
@@ -15070,6 +15086,11 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15070
15086
|
this.status = 'error';
|
|
15071
15087
|
this.errorText = this.$tx('ecmapp.wflowform.voiceNoPermission', '请在浏览器设置中允许使用麦克风后重试。');
|
|
15072
15088
|
},
|
|
15089
|
+
// 手机浏览器/WebView常见:暴露了SpeechRecognition但识别服务不可达(如Google语音服务)
|
|
15090
|
+
showServiceUnavailableError: function showServiceUnavailableError() {
|
|
15091
|
+
this.status = 'error';
|
|
15092
|
+
this.errorText = this.$tx('ecmapp.wflowform.voiceServiceUnavailable', '当前浏览器无法连接语音识别服务。');
|
|
15093
|
+
},
|
|
15073
15094
|
toggleRecord: function toggleRecord() {
|
|
15074
15095
|
if (this.status === 'processing') return;
|
|
15075
15096
|
if (this.status === 'recording') {
|
|
@@ -15081,12 +15102,23 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15081
15102
|
startRecord: function startRecord() {
|
|
15082
15103
|
this.resultText = '';
|
|
15083
15104
|
this.finalText = '';
|
|
15105
|
+
// 在用户点击手势上下文内创建AudioContext,规避移动端自动播放策略导致的suspended(波形无数据)
|
|
15106
|
+
this.prepareAudioContext();
|
|
15084
15107
|
if (this.backendUrl) {
|
|
15085
15108
|
this.startBackendRecord();
|
|
15086
15109
|
} else {
|
|
15087
15110
|
this.startBrowserRecognition();
|
|
15088
15111
|
}
|
|
15089
15112
|
},
|
|
15113
|
+
prepareAudioContext: function prepareAudioContext() {
|
|
15114
|
+
var AudioContextClass = window.AudioContext || window.webkitAudioContext;
|
|
15115
|
+
if (!AudioContextClass) return;
|
|
15116
|
+
if (this.audioContext && this.audioContext.state !== 'closed') return;
|
|
15117
|
+
this.audioContext = new AudioContextClass();
|
|
15118
|
+
if (this.audioContext.state === 'suspended') {
|
|
15119
|
+
this.audioContext.resume().catch(function () {});
|
|
15120
|
+
}
|
|
15121
|
+
},
|
|
15090
15122
|
stopRecord: function stopRecord() {
|
|
15091
15123
|
this.stopTimer();
|
|
15092
15124
|
if (this.recognition) {
|
|
@@ -15101,6 +15133,7 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15101
15133
|
this.seconds = 0;
|
|
15102
15134
|
this.timer = setInterval(function () {
|
|
15103
15135
|
_this2.seconds++;
|
|
15136
|
+
_this2.checkSilenceTimeout();
|
|
15104
15137
|
}, 1000);
|
|
15105
15138
|
},
|
|
15106
15139
|
stopTimer: function stopTimer() {
|
|
@@ -15109,6 +15142,18 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15109
15142
|
this.timer = null;
|
|
15110
15143
|
}
|
|
15111
15144
|
},
|
|
15145
|
+
// 连续静音超时自动结束录音;全程无人声则丢弃录音并提示,无analyser数据时降级为不启用
|
|
15146
|
+
checkSilenceTimeout: function checkSilenceTimeout() {
|
|
15147
|
+
if (this.status !== 'recording' || !this.analyser) return;
|
|
15148
|
+
var silenceLimit = this.hasVoice ? TRAILING_SILENCE_MS : LEADING_SILENCE_MS;
|
|
15149
|
+
if (Date.now() - this.lastVoiceAt < silenceLimit) return;
|
|
15150
|
+
if (!this.hasVoice) {
|
|
15151
|
+
this.discardRecording = true;
|
|
15152
|
+
this.status = 'error';
|
|
15153
|
+
this.errorText = this.$tx('ecmapp.wflowform.voiceNoSpeech', '未检测到语音,请重试。');
|
|
15154
|
+
}
|
|
15155
|
+
this.stopRecord();
|
|
15156
|
+
},
|
|
15112
15157
|
// 浏览器模式:Web Speech API直转文字,中间结果实时上屏
|
|
15113
15158
|
startBrowserRecognition: function startBrowserRecognition() {
|
|
15114
15159
|
var _this3 = this;
|
|
@@ -15143,6 +15188,8 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15143
15188
|
_this3.stopWaveform();
|
|
15144
15189
|
if (event.error === 'not-allowed' || event.error === 'service-not-allowed') {
|
|
15145
15190
|
_this3.showPermissionError();
|
|
15191
|
+
} else if (event.error === 'network') {
|
|
15192
|
+
_this3.showServiceUnavailableError();
|
|
15146
15193
|
} else if (event.error === 'no-speech') {
|
|
15147
15194
|
_this3.status = 'error';
|
|
15148
15195
|
_this3.errorText = _this3.$tx('ecmapp.wflowform.voiceNoSpeech', '未检测到语音,请重试。');
|
|
@@ -15157,10 +15204,18 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15157
15204
|
_this3.recognition = null;
|
|
15158
15205
|
if (_this3.status === 'recording') {
|
|
15159
15206
|
_this3.resultText = _this3.finalText;
|
|
15160
|
-
|
|
15207
|
+
if (_this3.resultText.trim() !== '') {
|
|
15208
|
+
_this3.status = 'done';
|
|
15209
|
+
} else if (Date.now() - _this3.recognizeStartAt < 1500) {
|
|
15210
|
+
// 启动后秒退且无任何结果,判定为识别服务不可用
|
|
15211
|
+
_this3.showServiceUnavailableError();
|
|
15212
|
+
} else {
|
|
15213
|
+
_this3.status = 'idle';
|
|
15214
|
+
}
|
|
15161
15215
|
}
|
|
15162
15216
|
};
|
|
15163
15217
|
this.recognition = recognition;
|
|
15218
|
+
this.recognizeStartAt = Date.now();
|
|
15164
15219
|
recognition.start();
|
|
15165
15220
|
},
|
|
15166
15221
|
// 后端模式:录音→上传→转文字
|
|
@@ -15188,15 +15243,25 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15188
15243
|
mediaRecorder.onstart = function () {
|
|
15189
15244
|
_this4.status = 'recording';
|
|
15190
15245
|
_this4.startTimer();
|
|
15191
|
-
|
|
15246
|
+
// canvas由v-show控制,需等DOM更新可见后再取尺寸绘制波形,否则画布为0×0
|
|
15247
|
+
_this4.$nextTick(function () {
|
|
15248
|
+
// 回调执行前录音可能已停止,避免创建无人清理的AudioContext
|
|
15249
|
+
if (_this4.status === 'recording') {
|
|
15250
|
+
_this4.startWaveform(stream);
|
|
15251
|
+
}
|
|
15252
|
+
});
|
|
15192
15253
|
};
|
|
15193
15254
|
mediaRecorder.onstop = function () {
|
|
15194
15255
|
_this4.stopTimer();
|
|
15195
15256
|
_this4.stopWaveform();
|
|
15196
15257
|
_this4.releaseStream();
|
|
15197
15258
|
_this4.mediaRecorder = null;
|
|
15198
|
-
|
|
15199
|
-
|
|
15259
|
+
if (_this4.discardRecording) {
|
|
15260
|
+
// 全程静音自动结束:丢弃录音,提示已在checkSilenceTimeout中给出
|
|
15261
|
+
_this4.discardRecording = false;
|
|
15262
|
+
_this4.audioChunks = [];
|
|
15263
|
+
} else if (_this4.visible && _this4.audioChunks.length > 0) {
|
|
15264
|
+
// 弹窗已关闭(取消录音)则不再上传
|
|
15200
15265
|
_this4.uploadVoice();
|
|
15201
15266
|
}
|
|
15202
15267
|
};
|
|
@@ -15265,21 +15330,25 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15265
15330
|
_this6.startWaveform(stream);
|
|
15266
15331
|
}).catch(function () {});
|
|
15267
15332
|
},
|
|
15268
|
-
// 用AnalyserNode
|
|
15333
|
+
// 用AnalyserNode实时绘制录音波形柱状图,复用startRecord手势内创建的AudioContext
|
|
15269
15334
|
startWaveform: function startWaveform(stream) {
|
|
15270
15335
|
var _this7 = this;
|
|
15271
|
-
var AudioContextClass = window.AudioContext || window.webkitAudioContext;
|
|
15272
15336
|
var canvas = this.$refs.waveCanvas;
|
|
15273
|
-
|
|
15274
|
-
|
|
15337
|
+
var audioContext = this.audioContext;
|
|
15338
|
+
if (!audioContext || audioContext.state === 'closed' || !canvas) return;
|
|
15339
|
+
if (audioContext.state === 'suspended') {
|
|
15340
|
+
audioContext.resume().catch(function () {});
|
|
15341
|
+
}
|
|
15275
15342
|
var analyser = audioContext.createAnalyser();
|
|
15276
15343
|
analyser.fftSize = 128;
|
|
15277
15344
|
audioContext.createMediaStreamSource(stream).connect(analyser);
|
|
15278
|
-
this.audioContext = audioContext;
|
|
15279
15345
|
this.analyser = analyser;
|
|
15346
|
+
this.lastVoiceAt = Date.now();
|
|
15347
|
+
this.hasVoice = false;
|
|
15280
15348
|
var dpr = window.devicePixelRatio || 1;
|
|
15281
|
-
|
|
15282
|
-
canvas.
|
|
15349
|
+
// canvas尚未完成布局时取不到尺寸,按样式表尺寸200×32兜底,避免0×0画布
|
|
15350
|
+
canvas.width = (canvas.clientWidth || 200) * dpr;
|
|
15351
|
+
canvas.height = (canvas.clientHeight || 32) * dpr;
|
|
15283
15352
|
var ctx = canvas.getContext('2d');
|
|
15284
15353
|
var dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
15285
15354
|
var barCount = 32;
|
|
@@ -15290,12 +15359,21 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15290
15359
|
if (!_this7.analyser) return;
|
|
15291
15360
|
_this7.waveRafId = requestAnimationFrame(draw);
|
|
15292
15361
|
_this7.analyser.getByteFrequencyData(dataArray);
|
|
15362
|
+
// 顺带做人声检测,供静音自动结束判定
|
|
15363
|
+
var sum = 0;
|
|
15364
|
+
for (var i = 0; i < dataArray.length; i++) {
|
|
15365
|
+
sum += dataArray[i];
|
|
15366
|
+
}
|
|
15367
|
+
if (sum / dataArray.length > VOICE_AVG_THRESHOLD) {
|
|
15368
|
+
_this7.lastVoiceAt = Date.now();
|
|
15369
|
+
_this7.hasVoice = true;
|
|
15370
|
+
}
|
|
15293
15371
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
15294
15372
|
ctx.fillStyle = '#1989fa';
|
|
15295
|
-
for (var
|
|
15296
|
-
var value = dataArray[Math.floor(
|
|
15373
|
+
for (var _i = 0; _i < barCount; _i++) {
|
|
15374
|
+
var value = dataArray[Math.floor(_i * dataArray.length / barCount)] / 255;
|
|
15297
15375
|
var barHeight = Math.max(2 * dpr, value * canvas.height);
|
|
15298
|
-
var x =
|
|
15376
|
+
var x = _i * (barWidth + gap);
|
|
15299
15377
|
ctx.fillRect(x, centerY - barHeight / 2, barWidth, barHeight);
|
|
15300
15378
|
}
|
|
15301
15379
|
};
|
|
@@ -15345,9 +15423,9 @@ var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns =
|
|
|
15345
15423
|
});
|
|
15346
15424
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=script&lang=js
|
|
15347
15425
|
/* harmony default export */ var src_VoiceInputDialogvue_type_script_lang_js = (VoiceInputDialogvue_type_script_lang_js);
|
|
15348
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=
|
|
15349
|
-
var
|
|
15350
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=
|
|
15426
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=5924c680&prod&scoped=true&lang=scss
|
|
15427
|
+
var VoiceInputDialogvue_type_style_index_0_id_5924c680_prod_scoped_true_lang_scss = __webpack_require__(2883);
|
|
15428
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=5924c680&prod&scoped=true&lang=scss
|
|
15351
15429
|
|
|
15352
15430
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue
|
|
15353
15431
|
|
|
@@ -15360,11 +15438,11 @@ var VoiceInputDialogvue_type_style_index_0_id_574b941f_prod_scoped_true_lang_scs
|
|
|
15360
15438
|
|
|
15361
15439
|
var VoiceInputDialog_component = (0,componentNormalizer/* default */.A)(
|
|
15362
15440
|
src_VoiceInputDialogvue_type_script_lang_js,
|
|
15363
|
-
|
|
15364
|
-
|
|
15441
|
+
VoiceInputDialogvue_type_template_id_5924c680_scoped_true_render,
|
|
15442
|
+
VoiceInputDialogvue_type_template_id_5924c680_scoped_true_staticRenderFns,
|
|
15365
15443
|
false,
|
|
15366
15444
|
null,
|
|
15367
|
-
"
|
|
15445
|
+
"5924c680",
|
|
15368
15446
|
null
|
|
15369
15447
|
|
|
15370
15448
|
)
|
|
@@ -15588,6 +15666,7 @@ var moment = __webpack_require__(5093);
|
|
|
15588
15666
|
},
|
|
15589
15667
|
methods: {
|
|
15590
15668
|
// 检测语音输入按钮可用性:未配置window.voiceToWord时需https/localhost安全上下文且浏览器支持Web Speech API,否则不显示按钮
|
|
15669
|
+
// 后端转写时window.voiceToWord配置为'/voice/recognize/toText',由网关路由到eccloud-clientms
|
|
15591
15670
|
initVoiceInputEnabled: function initVoiceInputEnabled() {
|
|
15592
15671
|
var voiceToWord = window.voiceToWord;
|
|
15593
15672
|
if (voiceToWord && typeof voiceToWord === 'string' && voiceToWord !== 'browser') {
|
|
@@ -16391,9 +16470,9 @@ var moment = __webpack_require__(5093);
|
|
|
16391
16470
|
});
|
|
16392
16471
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
16393
16472
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
16394
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
16395
|
-
var
|
|
16396
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
16473
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=20bc806c&prod&scoped=true&lang=scss
|
|
16474
|
+
var SubmitHandlevue_type_style_index_0_id_20bc806c_prod_scoped_true_lang_scss = __webpack_require__(1300);
|
|
16475
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=20bc806c&prod&scoped=true&lang=scss
|
|
16397
16476
|
|
|
16398
16477
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
|
|
16399
16478
|
|
|
@@ -16406,11 +16485,11 @@ var SubmitHandlevue_type_style_index_0_id_44733f4f_prod_scoped_true_lang_scss =
|
|
|
16406
16485
|
|
|
16407
16486
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
16408
16487
|
src_SubmitHandlevue_type_script_lang_js,
|
|
16409
|
-
|
|
16410
|
-
|
|
16488
|
+
SubmitHandlevue_type_template_id_20bc806c_scoped_true_render,
|
|
16489
|
+
SubmitHandlevue_type_template_id_20bc806c_scoped_true_staticRenderFns,
|
|
16411
16490
|
false,
|
|
16412
16491
|
null,
|
|
16413
|
-
"
|
|
16492
|
+
"20bc806c",
|
|
16414
16493
|
null
|
|
16415
16494
|
|
|
16416
16495
|
)
|
|
@@ -22850,7 +22929,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".submit-dialog-container[data-v-9c230b
|
|
|
22850
22929
|
|
|
22851
22930
|
/***/ }),
|
|
22852
22931
|
|
|
22853
|
-
/***/
|
|
22932
|
+
/***/ 106:
|
|
22854
22933
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22855
22934
|
|
|
22856
22935
|
"use strict";
|
|
@@ -22869,14 +22948,14 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
22869
22948
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
22870
22949
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
22871
22950
|
// Module
|
|
22872
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-
|
|
22951
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-20bc806c]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-20bc806c]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-20bc806c] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-20bc806c]:after{display:none}.submit-handle-container .idea-input-wrap[data-v-20bc806c]{position:relative}.submit-handle-container .idea-input-wrap[data-v-20bc806c] .curIdea-filed textarea{padding-right:30px}.submit-handle-container .idea-input-wrap .voice-input-btn[data-v-20bc806c]{position:absolute;right:12px;bottom:8px;z-index:2;width:28px;height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;background-color:#f2f3f5;color:#646566}.submit-handle-container .idea-input-wrap .voice-input-btn .voice-input-icon[data-v-20bc806c]{width:16px;height:16px}.submit-handle-container .idea-input-wrap .voice-input-btn[data-v-20bc806c]:active{background-color:#ebedf0;color:#1989fa}.submit-handle-container .clearfix[data-v-20bc806c]:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container[data-v-20bc806c] .van-radio-group .van-cell__title{font-weight:400!important}.submit-handle-container .van-wflow-operate-detail-cell[data-v-20bc806c]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-20bc806c]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container[data-v-20bc806c] .tnLimit-container .van-field{width:50px;display:inline-block;padding:0}.submit-handle-container[data-v-20bc806c] .tnLimit-container .van-field .van-field__body input{text-align:center}.submit-handle-container[data-v-20bc806c] .tnLimit-container .van-field__body:after{color:#323233;content:attr(value-suffix);word-break:keep-all}.submit-handle-container .delete-icon[data-v-20bc806c]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-20bc806c]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-20bc806c]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-20bc806c],.selectBox_title[data-v-20bc806c]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-20bc806c]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-20bc806c]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-20bc806c],.selectBox_content .selectBox_content_son_change[data-v-20bc806c]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-20bc806c]{border:1px solid #3f88f1;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-20bc806c]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-20bc806c]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-20bc806c]::-webkit-scrollbar{display:none}.viewAllComments[data-v-20bc806c]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}", ""]);
|
|
22873
22952
|
// Exports
|
|
22874
22953
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22875
22954
|
|
|
22876
22955
|
|
|
22877
22956
|
/***/ }),
|
|
22878
22957
|
|
|
22879
|
-
/***/
|
|
22958
|
+
/***/ 2053:
|
|
22880
22959
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22881
22960
|
|
|
22882
22961
|
"use strict";
|
|
@@ -22890,7 +22969,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22890
22969
|
|
|
22891
22970
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
22892
22971
|
// Module
|
|
22893
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".voice-input-popup[data-v-
|
|
22972
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".voice-input-popup[data-v-5924c680]{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.voice-input-popup .voice-popup-header[data-v-5924c680]{position:relative;height:48px;line-height:48px;text-align:center}.voice-input-popup .voice-popup-header .voice-popup-title[data-v-5924c680]{font-size:16px;font-weight:600;color:#323233}.voice-input-popup .voice-popup-header .voice-popup-close[data-v-5924c680]{position:absolute;right:16px;top:16px;font-size:16px;color:#c8c9cc}.voice-input-popup .voice-popup-body[data-v-5924c680]{padding:8px 16px 0;text-align:center}.voice-input-popup .voice-popup-body .voice-mic-btn[data-v-5924c680]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#1989fa;color:#fff}.voice-input-popup .voice-popup-body .voice-mic-btn .voice-mic-icon[data-v-5924c680]{width:28px;height:28px}.voice-input-popup .voice-popup-body .voice-mic-btn.recording[data-v-5924c680]{background-color:#ee0a24;-webkit-animation:voice-breathe-5924c680 1.5s ease-out infinite;animation:voice-breathe-5924c680 1.5s ease-out infinite}.voice-input-popup .voice-popup-body .voice-mic-btn[data-v-5924c680] .van-loading{padding-top:0}.voice-input-popup .voice-popup-body .voice-status-text[data-v-5924c680]{margin-top:12px;font-size:13px;color:#646566}.voice-input-popup .voice-popup-body .voice-status-text.is-error[data-v-5924c680]{color:#ee0a24}.voice-input-popup .voice-popup-body .voice-wave-canvas[data-v-5924c680]{display:block;width:200px;height:32px;margin:8px auto 0}.voice-input-popup .voice-popup-body .voice-timer[data-v-5924c680]{margin-top:4px;font-size:13px;color:#969799}.voice-input-popup .voice-popup-body .voice-result-field[data-v-5924c680]{margin-top:12px;background-color:#f7f8fa;border-radius:8px}.voice-input-popup .voice-popup-footer[data-v-5924c680]{padding:12px 16px;text-align:right}.voice-input-popup .voice-popup-footer .van-button[data-v-5924c680]{margin-left:8px;min-width:80px}@-webkit-keyframes voice-breathe-5924c680{0%{-webkit-box-shadow:0 0 0 0 rgba(238,10,36,.5);box-shadow:0 0 0 0 rgba(238,10,36,.5)}to{-webkit-box-shadow:0 0 0 16px rgba(238,10,36,0);box-shadow:0 0 0 16px rgba(238,10,36,0)}}@keyframes voice-breathe-5924c680{0%{-webkit-box-shadow:0 0 0 0 rgba(238,10,36,.5);box-shadow:0 0 0 0 rgba(238,10,36,.5)}to{-webkit-box-shadow:0 0 0 16px rgba(238,10,36,0);box-shadow:0 0 0 16px rgba(238,10,36,0)}}", ""]);
|
|
22894
22973
|
// Exports
|
|
22895
22974
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22896
22975
|
|
|
@@ -50522,35 +50601,35 @@ var update = add("780551c7", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
50522
50601
|
|
|
50523
50602
|
/***/ }),
|
|
50524
50603
|
|
|
50525
|
-
/***/
|
|
50604
|
+
/***/ 1300:
|
|
50526
50605
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
50527
50606
|
|
|
50528
50607
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
50529
50608
|
|
|
50530
50609
|
// load the styles
|
|
50531
|
-
var content = __webpack_require__(
|
|
50610
|
+
var content = __webpack_require__(106);
|
|
50532
50611
|
if(content.__esModule) content = content.default;
|
|
50533
50612
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
50534
50613
|
if(content.locals) module.exports = content.locals;
|
|
50535
50614
|
// add the styles to the DOM
|
|
50536
50615
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
50537
|
-
var update = add("
|
|
50616
|
+
var update = add("57dd6872", content, true, {"sourceMap":false,"shadowMode":false});
|
|
50538
50617
|
|
|
50539
50618
|
/***/ }),
|
|
50540
50619
|
|
|
50541
|
-
/***/
|
|
50620
|
+
/***/ 2883:
|
|
50542
50621
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
50543
50622
|
|
|
50544
50623
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
50545
50624
|
|
|
50546
50625
|
// load the styles
|
|
50547
|
-
var content = __webpack_require__(
|
|
50626
|
+
var content = __webpack_require__(2053);
|
|
50548
50627
|
if(content.__esModule) content = content.default;
|
|
50549
50628
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
50550
50629
|
if(content.locals) module.exports = content.locals;
|
|
50551
50630
|
// add the styles to the DOM
|
|
50552
50631
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
50553
|
-
var update = add("
|
|
50632
|
+
var update = add("470e1098", content, true, {"sourceMap":false,"shadowMode":false});
|
|
50554
50633
|
|
|
50555
50634
|
/***/ }),
|
|
50556
50635
|
|
|
@@ -72929,39 +73008,39 @@ var asyncComponents = [
|
|
|
72929
73008
|
}],
|
|
72930
73009
|
// ========== ecmapp/Wflowform 工作流表单子组件 → chunk: m-wflow-form ==========
|
|
72931
73010
|
['Attachment', function () {
|
|
72932
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73011
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72933
73012
|
return m.Attachment;
|
|
72934
73013
|
});
|
|
72935
73014
|
}], ['BodyFile', function () {
|
|
72936
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73015
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72937
73016
|
return m.BodyFile;
|
|
72938
73017
|
});
|
|
72939
73018
|
}], ['HandleIdea', function () {
|
|
72940
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73019
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72941
73020
|
return m.HandleIdea;
|
|
72942
73021
|
});
|
|
72943
73022
|
}], ['SelectOuterDeputy', function () {
|
|
72944
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73023
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72945
73024
|
return m.SelectOuterDeputy;
|
|
72946
73025
|
});
|
|
72947
73026
|
}], ['SubmitHandle', function () {
|
|
72948
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73027
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72949
73028
|
return m.SubmitHandle;
|
|
72950
73029
|
});
|
|
72951
73030
|
}], ['SubmitDialog', function () {
|
|
72952
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73031
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72953
73032
|
return m.SubmitDialog;
|
|
72954
73033
|
});
|
|
72955
73034
|
}], ['ShortcutProcessing', function () {
|
|
72956
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73035
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72957
73036
|
return m.ShortcutProcessing;
|
|
72958
73037
|
});
|
|
72959
73038
|
}], ['WfNodelogList', function () {
|
|
72960
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73039
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72961
73040
|
return m.WfNodelogList;
|
|
72962
73041
|
});
|
|
72963
73042
|
}], ['WriteToReadIdea', function () {
|
|
72964
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73043
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431)).then(function (m) {
|
|
72965
73044
|
return m.WriteToReadIdea;
|
|
72966
73045
|
});
|
|
72967
73046
|
}]];
|
|
@@ -73014,7 +73093,7 @@ var WfengineModule = function WfengineModule() {
|
|
|
73014
73093
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8838));
|
|
73015
73094
|
};
|
|
73016
73095
|
var WflowformModule = function WflowformModule() {
|
|
73017
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73096
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 431));
|
|
73018
73097
|
};
|
|
73019
73098
|
|
|
73020
73099
|
// ---------- 重型功能(PDF/富文本,仅特定页面使用) ----------
|