ecinc-cloud-mappaio 9.7.31 → 9.7.33
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 +701 -56
- package/lib/ecmappaio.umd.js +701 -56
- 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
|
+
/***/ 2214:
|
|
8760
8760
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8761
8761
|
|
|
8762
8762
|
"use strict";
|
|
@@ -8776,7 +8776,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
8776
8776
|
WriteToReadIdea: function() { return /* binding */ Wflowform_WriteToReadIdea; }
|
|
8777
8777
|
});
|
|
8778
8778
|
|
|
8779
|
-
;// 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/Attachment.vue?vue&type=template&id=
|
|
8779
|
+
;// 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/Attachment.vue?vue&type=template&id=3a2384d8&scoped=true
|
|
8780
8780
|
var render = function render() {
|
|
8781
8781
|
var _vm = this,
|
|
8782
8782
|
_c = _vm._self._c;
|
|
@@ -9316,7 +9316,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9316
9316
|
this.canUpload = true;
|
|
9317
9317
|
}
|
|
9318
9318
|
},
|
|
9319
|
-
beforeDestroy: function beforeDestroy() {
|
|
9319
|
+
beforeDestroy: function beforeDestroy() {
|
|
9320
|
+
// 从basicform组件管理的附件组件数组中移除,实现一个表单多个附件组件可正常上传功能
|
|
9321
|
+
var refsAttachments = this.$vnode.context.refsAttachments || this.$vnode.context.$parent.refsAttachments || this.$vnode.context.$parent.$vnode.context.refsAttachments;
|
|
9322
|
+
if (refsAttachments) {
|
|
9323
|
+
var index = refsAttachments.indexOf(this);
|
|
9324
|
+
if (index > -1) {
|
|
9325
|
+
refsAttachments.splice(index, 1);
|
|
9326
|
+
}
|
|
9327
|
+
}
|
|
9328
|
+
},
|
|
9320
9329
|
updated: function updated() {
|
|
9321
9330
|
if (!this.onlineFile) this.onlineEditor = '';
|
|
9322
9331
|
},
|
|
@@ -10261,9 +10270,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10261
10270
|
});
|
|
10262
10271
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=script&lang=js
|
|
10263
10272
|
/* harmony default export */ var src_Attachmentvue_type_script_lang_js = (Attachmentvue_type_script_lang_js);
|
|
10264
|
-
// 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/Attachment.vue?vue&type=style&index=0&id=
|
|
10265
|
-
var
|
|
10266
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=
|
|
10273
|
+
// 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/Attachment.vue?vue&type=style&index=0&id=3a2384d8&prod&scoped=true&lang=scss
|
|
10274
|
+
var Attachmentvue_type_style_index_0_id_3a2384d8_prod_scoped_true_lang_scss = __webpack_require__(6384);
|
|
10275
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=3a2384d8&prod&scoped=true&lang=scss
|
|
10267
10276
|
|
|
10268
10277
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
10269
10278
|
var componentNormalizer = __webpack_require__(1656);
|
|
@@ -10282,7 +10291,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
10282
10291
|
staticRenderFns,
|
|
10283
10292
|
false,
|
|
10284
10293
|
null,
|
|
10285
|
-
"
|
|
10294
|
+
"3a2384d8",
|
|
10286
10295
|
null
|
|
10287
10296
|
|
|
10288
10297
|
)
|
|
@@ -12706,8 +12715,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
12706
12715
|
)
|
|
12707
12716
|
|
|
12708
12717
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
12709
|
-
;// 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=
|
|
12710
|
-
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=44733f4f&scoped=true
|
|
12719
|
+
var SubmitHandlevue_type_template_id_44733f4f_scoped_true_render = function render() {
|
|
12711
12720
|
var _vm = this,
|
|
12712
12721
|
_c = _vm._self._c;
|
|
12713
12722
|
return _vm.initiated ? _c('div', {
|
|
@@ -12798,7 +12807,9 @@ var SubmitHandlevue_type_template_id_6451f4d6_scoped_true_render = function rend
|
|
|
12798
12807
|
attrs: {
|
|
12799
12808
|
"title": "填写意见"
|
|
12800
12809
|
}
|
|
12801
|
-
})], 1), _vm._t("idea-inputbox-top"), _c('
|
|
12810
|
+
})], 1), _vm._t("idea-inputbox-top"), _c('div', {
|
|
12811
|
+
staticClass: "idea-input-wrap"
|
|
12812
|
+
}, [_c('van-field', {
|
|
12802
12813
|
directives: [{
|
|
12803
12814
|
name: "field-lbl",
|
|
12804
12815
|
rawName: "v-field-lbl",
|
|
@@ -12820,7 +12831,27 @@ var SubmitHandlevue_type_template_id_6451f4d6_scoped_true_render = function rend
|
|
|
12820
12831
|
},
|
|
12821
12832
|
expression: "submitHandle.curUserIdea"
|
|
12822
12833
|
}
|
|
12823
|
-
}), _c('
|
|
12834
|
+
}), _vm.voiceInputEnabled ? _c('div', {
|
|
12835
|
+
staticClass: "voice-input-btn",
|
|
12836
|
+
on: {
|
|
12837
|
+
"click": _vm.openVoiceInput
|
|
12838
|
+
}
|
|
12839
|
+
}, [_c('svg', {
|
|
12840
|
+
staticClass: "voice-input-icon",
|
|
12841
|
+
attrs: {
|
|
12842
|
+
"viewBox": "0 0 1024 1024",
|
|
12843
|
+
"fill": "currentColor",
|
|
12844
|
+
"aria-hidden": "true"
|
|
12845
|
+
}
|
|
12846
|
+
}, [_c('path', {
|
|
12847
|
+
attrs: {
|
|
12848
|
+
"d": "M512 640c88.4 0 160-71.6 160-160V224c0-88.4-71.6-160-160-160S352 135.6 352 224v256c0 88.4 71.6 160 160 160z"
|
|
12849
|
+
}
|
|
12850
|
+
}), _c('path', {
|
|
12851
|
+
attrs: {
|
|
12852
|
+
"d": "M768 480c0 141.4-114.6 256-256 256S256 621.4 256 480h-64c0 163.9 123.3 299 288 318.4V896H352v64h320v-64H544v-97.6C708.7 779 832 643.9 832 480h-64z"
|
|
12853
|
+
}
|
|
12854
|
+
})])]) : _vm._e()], 1), _c('van-cell', {
|
|
12824
12855
|
staticClass: "idea-button-container",
|
|
12825
12856
|
scopedSlots: _vm._u([{
|
|
12826
12857
|
key: "default",
|
|
@@ -13458,9 +13489,19 @@ var SubmitHandlevue_type_template_id_6451f4d6_scoped_true_render = function rend
|
|
|
13458
13489
|
"task-node": _vm.udmNode,
|
|
13459
13490
|
"idea-lables": _vm.wfJsonData.ideaLables
|
|
13460
13491
|
}
|
|
13461
|
-
})], 1) : _vm._e()
|
|
13492
|
+
})], 1) : _vm._e(), _c('VoiceInputDialog', {
|
|
13493
|
+
attrs: {
|
|
13494
|
+
"visible": _vm.voiceDialogVisible
|
|
13495
|
+
},
|
|
13496
|
+
on: {
|
|
13497
|
+
"update:visible": function updateVisible($event) {
|
|
13498
|
+
_vm.voiceDialogVisible = $event;
|
|
13499
|
+
},
|
|
13500
|
+
"confirm": _vm.onVoiceConfirm
|
|
13501
|
+
}
|
|
13502
|
+
})], 2) : _vm._e();
|
|
13462
13503
|
};
|
|
13463
|
-
var
|
|
13504
|
+
var SubmitHandlevue_type_template_id_44733f4f_scoped_true_staticRenderFns = [];
|
|
13464
13505
|
|
|
13465
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
|
|
13466
13507
|
var WfTaskNodevue_type_template_id_d1ae2f20_scoped_true_render = function render() {
|
|
@@ -14789,14 +14830,556 @@ var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
|
14789
14830
|
)
|
|
14790
14831
|
|
|
14791
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=574b941f&scoped=true
|
|
14834
|
+
var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_render = function render() {
|
|
14835
|
+
var _vm = this,
|
|
14836
|
+
_c = _vm._self._c;
|
|
14837
|
+
return _c('van-popup', {
|
|
14838
|
+
staticClass: "voice-input-popup",
|
|
14839
|
+
attrs: {
|
|
14840
|
+
"round": "",
|
|
14841
|
+
"position": "bottom",
|
|
14842
|
+
"close-on-click-overlay": false
|
|
14843
|
+
},
|
|
14844
|
+
on: {
|
|
14845
|
+
"closed": _vm.onPopupClosed
|
|
14846
|
+
},
|
|
14847
|
+
model: {
|
|
14848
|
+
value: _vm.dialogVisible,
|
|
14849
|
+
callback: function callback($$v) {
|
|
14850
|
+
_vm.dialogVisible = $$v;
|
|
14851
|
+
},
|
|
14852
|
+
expression: "dialogVisible"
|
|
14853
|
+
}
|
|
14854
|
+
}, [_c('div', {
|
|
14855
|
+
staticClass: "voice-popup-header"
|
|
14856
|
+
}, [_c('span', {
|
|
14857
|
+
staticClass: "voice-popup-title"
|
|
14858
|
+
}, [_vm._v(_vm._s(_vm.$tx('ecmapp.wflowform.voiceInput', '语音输入')))]), _c('van-icon', {
|
|
14859
|
+
staticClass: "voice-popup-close",
|
|
14860
|
+
attrs: {
|
|
14861
|
+
"name": "cross"
|
|
14862
|
+
},
|
|
14863
|
+
on: {
|
|
14864
|
+
"click": function click($event) {
|
|
14865
|
+
_vm.dialogVisible = false;
|
|
14866
|
+
}
|
|
14867
|
+
}
|
|
14868
|
+
})], 1), _c('div', {
|
|
14869
|
+
staticClass: "voice-popup-body"
|
|
14870
|
+
}, [_c('div', {
|
|
14871
|
+
staticClass: "voice-mic-btn",
|
|
14872
|
+
class: {
|
|
14873
|
+
recording: _vm.status === 'recording'
|
|
14874
|
+
},
|
|
14875
|
+
on: {
|
|
14876
|
+
"click": _vm.toggleRecord
|
|
14877
|
+
}
|
|
14878
|
+
}, [_vm.status === 'processing' ? _c('van-loading', {
|
|
14879
|
+
attrs: {
|
|
14880
|
+
"color": "#ffffff",
|
|
14881
|
+
"size": "28px"
|
|
14882
|
+
}
|
|
14883
|
+
}) : _c('svg', {
|
|
14884
|
+
staticClass: "voice-mic-icon",
|
|
14885
|
+
attrs: {
|
|
14886
|
+
"viewBox": "0 0 1024 1024",
|
|
14887
|
+
"fill": "currentColor",
|
|
14888
|
+
"aria-hidden": "true"
|
|
14889
|
+
}
|
|
14890
|
+
}, [_c('path', {
|
|
14891
|
+
attrs: {
|
|
14892
|
+
"d": "M512 640c88.4 0 160-71.6 160-160V224c0-88.4-71.6-160-160-160S352 135.6 352 224v256c0 88.4 71.6 160 160 160z"
|
|
14893
|
+
}
|
|
14894
|
+
}), _c('path', {
|
|
14895
|
+
attrs: {
|
|
14896
|
+
"d": "M768 480c0 141.4-114.6 256-256 256S256 621.4 256 480h-64c0 163.9 123.3 299 288 318.4V896H352v64h320v-64H544v-97.6C708.7 779 832 643.9 832 480h-64z"
|
|
14897
|
+
}
|
|
14898
|
+
})])], 1), _c('div', {
|
|
14899
|
+
staticClass: "voice-status-text",
|
|
14900
|
+
class: {
|
|
14901
|
+
'is-error': _vm.status === 'error'
|
|
14902
|
+
}
|
|
14903
|
+
}, [_vm._v(_vm._s(_vm.statusText))]), _c('canvas', {
|
|
14904
|
+
directives: [{
|
|
14905
|
+
name: "show",
|
|
14906
|
+
rawName: "v-show",
|
|
14907
|
+
value: _vm.status === 'recording',
|
|
14908
|
+
expression: "status === 'recording'"
|
|
14909
|
+
}],
|
|
14910
|
+
ref: "waveCanvas",
|
|
14911
|
+
staticClass: "voice-wave-canvas"
|
|
14912
|
+
}), _c('div', {
|
|
14913
|
+
directives: [{
|
|
14914
|
+
name: "show",
|
|
14915
|
+
rawName: "v-show",
|
|
14916
|
+
value: _vm.status === 'recording',
|
|
14917
|
+
expression: "status === 'recording'"
|
|
14918
|
+
}],
|
|
14919
|
+
staticClass: "voice-timer"
|
|
14920
|
+
}, [_vm._v(_vm._s(_vm.timerText))]), _c('van-field', {
|
|
14921
|
+
staticClass: "voice-result-field",
|
|
14922
|
+
attrs: {
|
|
14923
|
+
"type": "textarea",
|
|
14924
|
+
"rows": "3",
|
|
14925
|
+
"autosize": "",
|
|
14926
|
+
"readonly": _vm.status === 'recording' || _vm.status === 'processing',
|
|
14927
|
+
"placeholder": _vm.$tx('ecmapp.wflowform.voiceResultHolder', '识别结果将显示在这里,可修改后填入意见。')
|
|
14928
|
+
},
|
|
14929
|
+
model: {
|
|
14930
|
+
value: _vm.resultText,
|
|
14931
|
+
callback: function callback($$v) {
|
|
14932
|
+
_vm.resultText = $$v;
|
|
14933
|
+
},
|
|
14934
|
+
expression: "resultText"
|
|
14935
|
+
}
|
|
14936
|
+
})], 1), _c('div', {
|
|
14937
|
+
staticClass: "voice-popup-footer"
|
|
14938
|
+
}, [_c('van-button', {
|
|
14939
|
+
attrs: {
|
|
14940
|
+
"type": "default",
|
|
14941
|
+
"size": "small",
|
|
14942
|
+
"hairline": ""
|
|
14943
|
+
},
|
|
14944
|
+
on: {
|
|
14945
|
+
"click": function click($event) {
|
|
14946
|
+
_vm.dialogVisible = false;
|
|
14947
|
+
}
|
|
14948
|
+
}
|
|
14949
|
+
}, [_vm._v(_vm._s(_vm.$tx('ecmapp.pageBtns.cancel', '取消')))]), _c('van-button', {
|
|
14950
|
+
attrs: {
|
|
14951
|
+
"type": "info",
|
|
14952
|
+
"size": "small",
|
|
14953
|
+
"hairline": "",
|
|
14954
|
+
"disabled": !_vm.resultText || _vm.resultText.trim() === '' || _vm.status === 'recording' || _vm.status === 'processing'
|
|
14955
|
+
},
|
|
14956
|
+
on: {
|
|
14957
|
+
"click": _vm.confirmVoiceText
|
|
14958
|
+
}
|
|
14959
|
+
}, [_vm._v(_vm._s(_vm.$tx('ecmapp.wflowform.voiceFillOpinion', '填入意见')))])], 1)]);
|
|
14960
|
+
};
|
|
14961
|
+
var VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns = [];
|
|
14962
|
+
|
|
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
|
+
/* harmony default export */ var VoiceInputDialogvue_type_script_lang_js = ({
|
|
14965
|
+
name: 'VoiceInputDialog',
|
|
14966
|
+
props: {
|
|
14967
|
+
visible: {
|
|
14968
|
+
type: Boolean,
|
|
14969
|
+
default: false
|
|
14970
|
+
}
|
|
14971
|
+
},
|
|
14972
|
+
data: function data() {
|
|
14973
|
+
return {
|
|
14974
|
+
i18npkg: 'ecmapp',
|
|
14975
|
+
moduleCode: 'wflowform',
|
|
14976
|
+
status: 'idle',
|
|
14977
|
+
// idle:待录音 recording:录音中 processing:识别中(仅后端模式) done:识别完成 error:出错
|
|
14978
|
+
errorText: '',
|
|
14979
|
+
resultText: '',
|
|
14980
|
+
finalText: '',
|
|
14981
|
+
// 浏览器模式已确认的识别文本
|
|
14982
|
+
seconds: 0,
|
|
14983
|
+
timer: null,
|
|
14984
|
+
recognition: null,
|
|
14985
|
+
// 浏览器语音识别实例
|
|
14986
|
+
mediaRecorder: null,
|
|
14987
|
+
// 后端模式录音实例
|
|
14988
|
+
stream: null,
|
|
14989
|
+
// 麦克风音频流
|
|
14990
|
+
audioChunks: [],
|
|
14991
|
+
audioContext: null,
|
|
14992
|
+
// 波形绘制音频上下文
|
|
14993
|
+
analyser: null,
|
|
14994
|
+
// 波形分析节点
|
|
14995
|
+
visualStream: null,
|
|
14996
|
+
// 浏览器模式下专供波形绘制的音频流
|
|
14997
|
+
waveRafId: null
|
|
14998
|
+
};
|
|
14999
|
+
},
|
|
15000
|
+
computed: {
|
|
15001
|
+
dialogVisible: {
|
|
15002
|
+
get: function get() {
|
|
15003
|
+
return this.visible;
|
|
15004
|
+
},
|
|
15005
|
+
set: function set(val) {
|
|
15006
|
+
this.$emit('update:visible', val);
|
|
15007
|
+
}
|
|
15008
|
+
},
|
|
15009
|
+
// window.voiceToWord为非空字符串且不为browser时,视为后端转写接口URL
|
|
15010
|
+
backendUrl: function backendUrl() {
|
|
15011
|
+
var voiceToWord = window.voiceToWord;
|
|
15012
|
+
return voiceToWord && typeof voiceToWord === 'string' && voiceToWord !== 'browser' ? voiceToWord : '';
|
|
15013
|
+
},
|
|
15014
|
+
statusText: function statusText() {
|
|
15015
|
+
switch (this.status) {
|
|
15016
|
+
case 'recording':
|
|
15017
|
+
return this.$tx('ecmapp.wflowform.voiceRecording', '正在聆听,请说话…');
|
|
15018
|
+
case 'processing':
|
|
15019
|
+
return this.$tx('ecmapp.wflowform.voiceProcessing', '识别中…');
|
|
15020
|
+
case 'done':
|
|
15021
|
+
return this.$tx('ecmapp.wflowform.voiceDone', '识别完成,可修改后填入。');
|
|
15022
|
+
case 'error':
|
|
15023
|
+
return this.errorText;
|
|
15024
|
+
default:
|
|
15025
|
+
return this.$tx('ecmapp.wflowform.voiceIdle', '点击麦克风开始说话');
|
|
15026
|
+
}
|
|
15027
|
+
},
|
|
15028
|
+
timerText: function timerText() {
|
|
15029
|
+
var min = Math.floor(this.seconds / 60);
|
|
15030
|
+
var sec = this.seconds % 60;
|
|
15031
|
+
return (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec);
|
|
15032
|
+
}
|
|
15033
|
+
},
|
|
15034
|
+
watch: {
|
|
15035
|
+
visible: function visible(val) {
|
|
15036
|
+
if (val) {
|
|
15037
|
+
this.resetState();
|
|
15038
|
+
this.preRequestPermission();
|
|
15039
|
+
}
|
|
15040
|
+
}
|
|
15041
|
+
},
|
|
15042
|
+
beforeDestroy: function beforeDestroy() {
|
|
15043
|
+
this.releaseResources();
|
|
15044
|
+
},
|
|
15045
|
+
methods: {
|
|
15046
|
+
resetState: function resetState() {
|
|
15047
|
+
this.status = 'idle';
|
|
15048
|
+
this.errorText = '';
|
|
15049
|
+
this.resultText = '';
|
|
15050
|
+
this.finalText = '';
|
|
15051
|
+
this.seconds = 0;
|
|
15052
|
+
this.audioChunks = [];
|
|
15053
|
+
},
|
|
15054
|
+
// 打开弹窗即预请求麦克风权限,被拒绝时显示引导文案
|
|
15055
|
+
preRequestPermission: function preRequestPermission() {
|
|
15056
|
+
var _this = this;
|
|
15057
|
+
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
|
|
15058
|
+
navigator.mediaDevices.getUserMedia({
|
|
15059
|
+
audio: true
|
|
15060
|
+
}).then(function (stream) {
|
|
15061
|
+
stream.getTracks().forEach(function (track) {
|
|
15062
|
+
return track.stop();
|
|
15063
|
+
});
|
|
15064
|
+
}).catch(function () {
|
|
15065
|
+
_this.showPermissionError();
|
|
15066
|
+
});
|
|
15067
|
+
}
|
|
15068
|
+
},
|
|
15069
|
+
showPermissionError: function showPermissionError() {
|
|
15070
|
+
this.status = 'error';
|
|
15071
|
+
this.errorText = this.$tx('ecmapp.wflowform.voiceNoPermission', '请在浏览器设置中允许使用麦克风后重试。');
|
|
15072
|
+
},
|
|
15073
|
+
toggleRecord: function toggleRecord() {
|
|
15074
|
+
if (this.status === 'processing') return;
|
|
15075
|
+
if (this.status === 'recording') {
|
|
15076
|
+
this.stopRecord();
|
|
15077
|
+
} else {
|
|
15078
|
+
this.startRecord();
|
|
15079
|
+
}
|
|
15080
|
+
},
|
|
15081
|
+
startRecord: function startRecord() {
|
|
15082
|
+
this.resultText = '';
|
|
15083
|
+
this.finalText = '';
|
|
15084
|
+
if (this.backendUrl) {
|
|
15085
|
+
this.startBackendRecord();
|
|
15086
|
+
} else {
|
|
15087
|
+
this.startBrowserRecognition();
|
|
15088
|
+
}
|
|
15089
|
+
},
|
|
15090
|
+
stopRecord: function stopRecord() {
|
|
15091
|
+
this.stopTimer();
|
|
15092
|
+
if (this.recognition) {
|
|
15093
|
+
this.recognition.stop();
|
|
15094
|
+
}
|
|
15095
|
+
if (this.mediaRecorder && this.mediaRecorder.state !== 'inactive') {
|
|
15096
|
+
this.mediaRecorder.stop();
|
|
15097
|
+
}
|
|
15098
|
+
},
|
|
15099
|
+
startTimer: function startTimer() {
|
|
15100
|
+
var _this2 = this;
|
|
15101
|
+
this.seconds = 0;
|
|
15102
|
+
this.timer = setInterval(function () {
|
|
15103
|
+
_this2.seconds++;
|
|
15104
|
+
}, 1000);
|
|
15105
|
+
},
|
|
15106
|
+
stopTimer: function stopTimer() {
|
|
15107
|
+
if (this.timer) {
|
|
15108
|
+
clearInterval(this.timer);
|
|
15109
|
+
this.timer = null;
|
|
15110
|
+
}
|
|
15111
|
+
},
|
|
15112
|
+
// 浏览器模式:Web Speech API直转文字,中间结果实时上屏
|
|
15113
|
+
startBrowserRecognition: function startBrowserRecognition() {
|
|
15114
|
+
var _this3 = this;
|
|
15115
|
+
var SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
15116
|
+
if (!SpeechRecognition) {
|
|
15117
|
+
this.status = 'error';
|
|
15118
|
+
this.errorText = this.$tx('ecmapp.wflowform.voiceNotSupport', '当前浏览器不支持语音识别。');
|
|
15119
|
+
return;
|
|
15120
|
+
}
|
|
15121
|
+
var recognition = new SpeechRecognition();
|
|
15122
|
+
recognition.lang = 'zh-CN';
|
|
15123
|
+
recognition.continuous = true;
|
|
15124
|
+
recognition.interimResults = true;
|
|
15125
|
+
recognition.onstart = function () {
|
|
15126
|
+
_this3.status = 'recording';
|
|
15127
|
+
_this3.startTimer();
|
|
15128
|
+
_this3.startVisualStream();
|
|
15129
|
+
};
|
|
15130
|
+
recognition.onresult = function (event) {
|
|
15131
|
+
var interimText = '';
|
|
15132
|
+
for (var i = event.resultIndex; i < event.results.length; i++) {
|
|
15133
|
+
if (event.results[i].isFinal) {
|
|
15134
|
+
_this3.finalText += event.results[i][0].transcript;
|
|
15135
|
+
} else {
|
|
15136
|
+
interimText += event.results[i][0].transcript;
|
|
15137
|
+
}
|
|
15138
|
+
}
|
|
15139
|
+
_this3.resultText = _this3.finalText + interimText;
|
|
15140
|
+
};
|
|
15141
|
+
recognition.onerror = function (event) {
|
|
15142
|
+
_this3.stopTimer();
|
|
15143
|
+
_this3.stopWaveform();
|
|
15144
|
+
if (event.error === 'not-allowed' || event.error === 'service-not-allowed') {
|
|
15145
|
+
_this3.showPermissionError();
|
|
15146
|
+
} else if (event.error === 'no-speech') {
|
|
15147
|
+
_this3.status = 'error';
|
|
15148
|
+
_this3.errorText = _this3.$tx('ecmapp.wflowform.voiceNoSpeech', '未检测到语音,请重试。');
|
|
15149
|
+
} else if (event.error !== 'aborted') {
|
|
15150
|
+
_this3.status = 'error';
|
|
15151
|
+
_this3.errorText = _this3.$tx('ecmapp.wflowform.voiceRecognizeFail', '语音识别失败,请重试。');
|
|
15152
|
+
}
|
|
15153
|
+
};
|
|
15154
|
+
recognition.onend = function () {
|
|
15155
|
+
_this3.stopTimer();
|
|
15156
|
+
_this3.stopWaveform();
|
|
15157
|
+
_this3.recognition = null;
|
|
15158
|
+
if (_this3.status === 'recording') {
|
|
15159
|
+
_this3.resultText = _this3.finalText;
|
|
15160
|
+
_this3.status = _this3.resultText.trim() !== '' ? 'done' : 'idle';
|
|
15161
|
+
}
|
|
15162
|
+
};
|
|
15163
|
+
this.recognition = recognition;
|
|
15164
|
+
recognition.start();
|
|
15165
|
+
},
|
|
15166
|
+
// 后端模式:录音→上传→转文字
|
|
15167
|
+
startBackendRecord: function startBackendRecord() {
|
|
15168
|
+
var _this4 = this;
|
|
15169
|
+
if (!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia)) {
|
|
15170
|
+
this.status = 'error';
|
|
15171
|
+
this.errorText = this.$tx('ecmapp.wflowform.voiceNotSupport', '当前浏览器不支持语音识别。');
|
|
15172
|
+
return;
|
|
15173
|
+
}
|
|
15174
|
+
navigator.mediaDevices.getUserMedia({
|
|
15175
|
+
audio: true
|
|
15176
|
+
}).then(function (stream) {
|
|
15177
|
+
_this4.stream = stream;
|
|
15178
|
+
_this4.audioChunks = [];
|
|
15179
|
+
var mimeType = window.MediaRecorder && MediaRecorder.isTypeSupported('audio/webm;codecs=opus') ? 'audio/webm;codecs=opus' : '';
|
|
15180
|
+
var mediaRecorder = mimeType ? new MediaRecorder(stream, {
|
|
15181
|
+
mimeType: mimeType
|
|
15182
|
+
}) : new MediaRecorder(stream);
|
|
15183
|
+
mediaRecorder.ondataavailable = function (event) {
|
|
15184
|
+
if (event.data && event.data.size > 0) {
|
|
15185
|
+
_this4.audioChunks.push(event.data);
|
|
15186
|
+
}
|
|
15187
|
+
};
|
|
15188
|
+
mediaRecorder.onstart = function () {
|
|
15189
|
+
_this4.status = 'recording';
|
|
15190
|
+
_this4.startTimer();
|
|
15191
|
+
_this4.startWaveform(stream);
|
|
15192
|
+
};
|
|
15193
|
+
mediaRecorder.onstop = function () {
|
|
15194
|
+
_this4.stopTimer();
|
|
15195
|
+
_this4.stopWaveform();
|
|
15196
|
+
_this4.releaseStream();
|
|
15197
|
+
_this4.mediaRecorder = null;
|
|
15198
|
+
// 弹窗已关闭(取消录音)则不再上传
|
|
15199
|
+
if (_this4.visible && _this4.audioChunks.length > 0) {
|
|
15200
|
+
_this4.uploadVoice();
|
|
15201
|
+
}
|
|
15202
|
+
};
|
|
15203
|
+
_this4.mediaRecorder = mediaRecorder;
|
|
15204
|
+
mediaRecorder.start();
|
|
15205
|
+
}).catch(function () {
|
|
15206
|
+
_this4.showPermissionError();
|
|
15207
|
+
});
|
|
15208
|
+
},
|
|
15209
|
+
uploadVoice: function uploadVoice() {
|
|
15210
|
+
var _this5 = this;
|
|
15211
|
+
this.status = 'processing';
|
|
15212
|
+
var voiceBlob = new Blob(this.audioChunks, {
|
|
15213
|
+
type: this.audioChunks[0].type || 'audio/webm'
|
|
15214
|
+
});
|
|
15215
|
+
var formData = new FormData();
|
|
15216
|
+
formData.append('voiceFile', voiceBlob, 'voice.webm');
|
|
15217
|
+
formData.append('format', 'webm');
|
|
15218
|
+
formData.append('lang', 'zh-CN');
|
|
15219
|
+
this.$http({
|
|
15220
|
+
method: 'POST',
|
|
15221
|
+
url: this.backendUrl,
|
|
15222
|
+
headers: {
|
|
15223
|
+
'Content-Type': 'multipart/form-data'
|
|
15224
|
+
},
|
|
15225
|
+
data: formData
|
|
15226
|
+
}).then(function (res) {
|
|
15227
|
+
if (res.code === 'success') {
|
|
15228
|
+
_this5.resultText = res.body && res.body.text || '';
|
|
15229
|
+
_this5.status = _this5.resultText.trim() !== '' ? 'done' : 'error';
|
|
15230
|
+
if (_this5.status === 'error') {
|
|
15231
|
+
_this5.errorText = _this5.$tx('ecmapp.wflowform.voiceNoSpeech', '未检测到语音,请重试。');
|
|
15232
|
+
}
|
|
15233
|
+
} else {
|
|
15234
|
+
_this5.status = 'error';
|
|
15235
|
+
_this5.errorText = res.message || _this5.$tx('ecmapp.wflowform.voiceRecognizeFail', '语音识别失败,请重试。');
|
|
15236
|
+
}
|
|
15237
|
+
}).catch(function () {
|
|
15238
|
+
_this5.status = 'error';
|
|
15239
|
+
_this5.errorText = _this5.$tx('ecmapp.wflowform.voiceRecognizeFail', '语音识别失败,请重试。');
|
|
15240
|
+
});
|
|
15241
|
+
},
|
|
15242
|
+
releaseStream: function releaseStream() {
|
|
15243
|
+
if (this.stream) {
|
|
15244
|
+
this.stream.getTracks().forEach(function (track) {
|
|
15245
|
+
return track.stop();
|
|
15246
|
+
});
|
|
15247
|
+
this.stream = null;
|
|
15248
|
+
}
|
|
15249
|
+
},
|
|
15250
|
+
// 浏览器模式下SpeechRecognition不暴露音频流,单独取一路流用于波形绘制
|
|
15251
|
+
startVisualStream: function startVisualStream() {
|
|
15252
|
+
var _this6 = this;
|
|
15253
|
+
if (!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia)) return;
|
|
15254
|
+
navigator.mediaDevices.getUserMedia({
|
|
15255
|
+
audio: true
|
|
15256
|
+
}).then(function (stream) {
|
|
15257
|
+
// 取流回来时录音可能已结束
|
|
15258
|
+
if (_this6.status !== 'recording') {
|
|
15259
|
+
stream.getTracks().forEach(function (track) {
|
|
15260
|
+
return track.stop();
|
|
15261
|
+
});
|
|
15262
|
+
return;
|
|
15263
|
+
}
|
|
15264
|
+
_this6.visualStream = stream;
|
|
15265
|
+
_this6.startWaveform(stream);
|
|
15266
|
+
}).catch(function () {});
|
|
15267
|
+
},
|
|
15268
|
+
// 用AnalyserNode实时绘制录音波形柱状图
|
|
15269
|
+
startWaveform: function startWaveform(stream) {
|
|
15270
|
+
var _this7 = this;
|
|
15271
|
+
var AudioContextClass = window.AudioContext || window.webkitAudioContext;
|
|
15272
|
+
var canvas = this.$refs.waveCanvas;
|
|
15273
|
+
if (!AudioContextClass || !canvas) return;
|
|
15274
|
+
var audioContext = new AudioContextClass();
|
|
15275
|
+
var analyser = audioContext.createAnalyser();
|
|
15276
|
+
analyser.fftSize = 128;
|
|
15277
|
+
audioContext.createMediaStreamSource(stream).connect(analyser);
|
|
15278
|
+
this.audioContext = audioContext;
|
|
15279
|
+
this.analyser = analyser;
|
|
15280
|
+
var dpr = window.devicePixelRatio || 1;
|
|
15281
|
+
canvas.width = canvas.clientWidth * dpr;
|
|
15282
|
+
canvas.height = canvas.clientHeight * dpr;
|
|
15283
|
+
var ctx = canvas.getContext('2d');
|
|
15284
|
+
var dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
15285
|
+
var barCount = 32;
|
|
15286
|
+
var gap = 2 * dpr;
|
|
15287
|
+
var barWidth = (canvas.width - gap * (barCount - 1)) / barCount;
|
|
15288
|
+
var centerY = canvas.height / 2;
|
|
15289
|
+
var draw = function draw() {
|
|
15290
|
+
if (!_this7.analyser) return;
|
|
15291
|
+
_this7.waveRafId = requestAnimationFrame(draw);
|
|
15292
|
+
_this7.analyser.getByteFrequencyData(dataArray);
|
|
15293
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
15294
|
+
ctx.fillStyle = '#1989fa';
|
|
15295
|
+
for (var i = 0; i < barCount; i++) {
|
|
15296
|
+
var value = dataArray[Math.floor(i * dataArray.length / barCount)] / 255;
|
|
15297
|
+
var barHeight = Math.max(2 * dpr, value * canvas.height);
|
|
15298
|
+
var x = i * (barWidth + gap);
|
|
15299
|
+
ctx.fillRect(x, centerY - barHeight / 2, barWidth, barHeight);
|
|
15300
|
+
}
|
|
15301
|
+
};
|
|
15302
|
+
draw();
|
|
15303
|
+
},
|
|
15304
|
+
stopWaveform: function stopWaveform() {
|
|
15305
|
+
if (this.waveRafId) {
|
|
15306
|
+
cancelAnimationFrame(this.waveRafId);
|
|
15307
|
+
this.waveRafId = null;
|
|
15308
|
+
}
|
|
15309
|
+
if (this.audioContext) {
|
|
15310
|
+
this.audioContext.close().catch(function () {});
|
|
15311
|
+
this.audioContext = null;
|
|
15312
|
+
}
|
|
15313
|
+
this.analyser = null;
|
|
15314
|
+
if (this.visualStream) {
|
|
15315
|
+
this.visualStream.getTracks().forEach(function (track) {
|
|
15316
|
+
return track.stop();
|
|
15317
|
+
});
|
|
15318
|
+
this.visualStream = null;
|
|
15319
|
+
}
|
|
15320
|
+
},
|
|
15321
|
+
// 关闭/取消时释放麦克风等资源
|
|
15322
|
+
releaseResources: function releaseResources() {
|
|
15323
|
+
this.stopTimer();
|
|
15324
|
+
this.stopWaveform();
|
|
15325
|
+
if (this.recognition) {
|
|
15326
|
+
this.recognition.abort();
|
|
15327
|
+
this.recognition = null;
|
|
15328
|
+
}
|
|
15329
|
+
if (this.mediaRecorder && this.mediaRecorder.state !== 'inactive') {
|
|
15330
|
+
this.mediaRecorder.stop();
|
|
15331
|
+
}
|
|
15332
|
+
this.mediaRecorder = null;
|
|
15333
|
+
this.releaseStream();
|
|
15334
|
+
},
|
|
15335
|
+
onPopupClosed: function onPopupClosed() {
|
|
15336
|
+
this.releaseResources();
|
|
15337
|
+
},
|
|
15338
|
+
confirmVoiceText: function confirmVoiceText() {
|
|
15339
|
+
var text = this.resultText.trim();
|
|
15340
|
+
if (text === '') return;
|
|
15341
|
+
this.$emit('confirm', text);
|
|
15342
|
+
this.dialogVisible = false;
|
|
15343
|
+
}
|
|
15344
|
+
}
|
|
15345
|
+
});
|
|
15346
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=script&lang=js
|
|
15347
|
+
/* 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=574b941f&prod&scoped=true&lang=scss
|
|
15349
|
+
var VoiceInputDialogvue_type_style_index_0_id_574b941f_prod_scoped_true_lang_scss = __webpack_require__(7798);
|
|
15350
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=574b941f&prod&scoped=true&lang=scss
|
|
15351
|
+
|
|
15352
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue
|
|
15353
|
+
|
|
15354
|
+
|
|
15355
|
+
|
|
15356
|
+
;
|
|
15357
|
+
|
|
15358
|
+
|
|
15359
|
+
/* normalize component */
|
|
15360
|
+
|
|
15361
|
+
var VoiceInputDialog_component = (0,componentNormalizer/* default */.A)(
|
|
15362
|
+
src_VoiceInputDialogvue_type_script_lang_js,
|
|
15363
|
+
VoiceInputDialogvue_type_template_id_574b941f_scoped_true_render,
|
|
15364
|
+
VoiceInputDialogvue_type_template_id_574b941f_scoped_true_staticRenderFns,
|
|
15365
|
+
false,
|
|
15366
|
+
null,
|
|
15367
|
+
"574b941f",
|
|
15368
|
+
null
|
|
15369
|
+
|
|
15370
|
+
)
|
|
15371
|
+
|
|
15372
|
+
/* harmony default export */ var VoiceInputDialog = (VoiceInputDialog_component.exports);
|
|
14792
15373
|
;// 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/SubmitHandle.vue?vue&type=script&lang=js
|
|
14793
15374
|
function SubmitHandlevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return SubmitHandlevue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, SubmitHandlevue_type_script_lang_js_typeof(o); }
|
|
14794
15375
|
var moment = __webpack_require__(5093);
|
|
14795
15376
|
|
|
15377
|
+
|
|
14796
15378
|
/* harmony default export */ var SubmitHandlevue_type_script_lang_js = ({
|
|
14797
15379
|
name: 'SubmitHandle',
|
|
14798
15380
|
components: {
|
|
14799
|
-
WfTaskNode: WfTaskNode
|
|
15381
|
+
WfTaskNode: WfTaskNode,
|
|
15382
|
+
VoiceInputDialog: VoiceInputDialog
|
|
14800
15383
|
},
|
|
14801
15384
|
props: {
|
|
14802
15385
|
curTN: {
|
|
@@ -14930,7 +15513,11 @@ var moment = __webpack_require__(5093);
|
|
|
14930
15513
|
defaultNumber: 8,
|
|
14931
15514
|
// 超出默认展示两行(个数)
|
|
14932
15515
|
viewCommentsNum: 8,
|
|
14933
|
-
selectedUsersCount: {}
|
|
15516
|
+
selectedUsersCount: {},
|
|
15517
|
+
//节点已选择人数
|
|
15518
|
+
voiceDialogVisible: false,
|
|
15519
|
+
// 语音输入弹窗
|
|
15520
|
+
voiceInputEnabled: false // 当前环境是否支持语音输入
|
|
14934
15521
|
};
|
|
14935
15522
|
},
|
|
14936
15523
|
computed: {
|
|
@@ -14973,6 +15560,7 @@ var moment = __webpack_require__(5093);
|
|
|
14973
15560
|
},
|
|
14974
15561
|
created: function created() {
|
|
14975
15562
|
// this.setMargin()
|
|
15563
|
+
this.initVoiceInputEnabled();
|
|
14976
15564
|
this.$bus.on('initSubmitHandle', this.initSubmitHandle);
|
|
14977
15565
|
},
|
|
14978
15566
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -14999,6 +15587,26 @@ var moment = __webpack_require__(5093);
|
|
|
14999
15587
|
}
|
|
15000
15588
|
},
|
|
15001
15589
|
methods: {
|
|
15590
|
+
// 检测语音输入按钮可用性:未配置window.voiceToWord时需https/localhost安全上下文且浏览器支持Web Speech API,否则不显示按钮
|
|
15591
|
+
initVoiceInputEnabled: function initVoiceInputEnabled() {
|
|
15592
|
+
var voiceToWord = window.voiceToWord;
|
|
15593
|
+
if (voiceToWord && typeof voiceToWord === 'string' && voiceToWord !== 'browser') {
|
|
15594
|
+
// 后端接口转文字:需getUserMedia录音(同样仅安全上下文下可用)
|
|
15595
|
+
this.voiceInputEnabled = !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
|
|
15596
|
+
} else {
|
|
15597
|
+
// 浏览器直转文字:需安全上下文且支持SpeechRecognition
|
|
15598
|
+
this.voiceInputEnabled = window.isSecureContext === true && ('webkitSpeechRecognition' in window || 'SpeechRecognition' in window);
|
|
15599
|
+
}
|
|
15600
|
+
},
|
|
15601
|
+
openVoiceInput: function openVoiceInput() {
|
|
15602
|
+
this.voiceDialogVisible = true;
|
|
15603
|
+
},
|
|
15604
|
+
onVoiceConfirm: function onVoiceConfirm(text) {
|
|
15605
|
+
if (!text) return;
|
|
15606
|
+
var curUserIdea = this.submitHandle.curUserIdea;
|
|
15607
|
+
this.$set(this.submitHandle, 'curUserIdea', curUserIdea && curUserIdea.trim() !== '' ? curUserIdea + ' ' + text : text);
|
|
15608
|
+
this.$forceUpdate();
|
|
15609
|
+
},
|
|
15002
15610
|
// 计算边距
|
|
15003
15611
|
setMargin: function setMargin() {
|
|
15004
15612
|
var columnsNum = Math.floor((screen.width - 20) / 93); // 列数
|
|
@@ -15783,9 +16391,9 @@ var moment = __webpack_require__(5093);
|
|
|
15783
16391
|
});
|
|
15784
16392
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
15785
16393
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
15786
|
-
// 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=
|
|
15787
|
-
var
|
|
15788
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
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=44733f4f&prod&scoped=true&lang=scss
|
|
16395
|
+
var SubmitHandlevue_type_style_index_0_id_44733f4f_prod_scoped_true_lang_scss = __webpack_require__(5099);
|
|
16396
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=44733f4f&prod&scoped=true&lang=scss
|
|
15789
16397
|
|
|
15790
16398
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
|
|
15791
16399
|
|
|
@@ -15798,11 +16406,11 @@ var SubmitHandlevue_type_style_index_0_id_6451f4d6_prod_scoped_true_lang_scss =
|
|
|
15798
16406
|
|
|
15799
16407
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
15800
16408
|
src_SubmitHandlevue_type_script_lang_js,
|
|
15801
|
-
|
|
15802
|
-
|
|
16409
|
+
SubmitHandlevue_type_template_id_44733f4f_scoped_true_render,
|
|
16410
|
+
SubmitHandlevue_type_template_id_44733f4f_scoped_true_staticRenderFns,
|
|
15803
16411
|
false,
|
|
15804
16412
|
null,
|
|
15805
|
-
"
|
|
16413
|
+
"44733f4f",
|
|
15806
16414
|
null
|
|
15807
16415
|
|
|
15808
16416
|
)
|
|
@@ -21969,7 +22577,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "#richtext[data-v-1c8100d7]{overflow-x:
|
|
|
21969
22577
|
|
|
21970
22578
|
/***/ }),
|
|
21971
22579
|
|
|
21972
|
-
/***/
|
|
22580
|
+
/***/ 5637:
|
|
21973
22581
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21974
22582
|
|
|
21975
22583
|
"use strict";
|
|
@@ -21983,7 +22591,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21983
22591
|
|
|
21984
22592
|
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()));
|
|
21985
22593
|
// Module
|
|
21986
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".popup-content[data-v-
|
|
22594
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".popup-content[data-v-64c568b4]{height:calc(100vh - 100px - var(--headerHeight));overflow-y:auto}.popup-content .van-cell__title[data-v-64c568b4]{margin-left:8px}.van-action-sheet__description[data-v-64c568b4]:after{left:0;right:0}.van-action-sheet__item[data-v-64c568b4]{position:relative}.van-action-sheet__item[data-v-64c568b4]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.bootom_slect_item .van-action-sheet__content[data-v-64c568b4]{max-height:250px;overflow-y:auto}", ""]);
|
|
21987
22595
|
// Exports
|
|
21988
22596
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
21989
22597
|
|
|
@@ -22095,7 +22703,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-d6f101a0] .van-nav-bar__title{
|
|
|
22095
22703
|
|
|
22096
22704
|
/***/ }),
|
|
22097
22705
|
|
|
22098
|
-
/***/
|
|
22706
|
+
/***/ 2780:
|
|
22099
22707
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22100
22708
|
|
|
22101
22709
|
"use strict";
|
|
@@ -22109,7 +22717,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22109
22717
|
|
|
22110
22718
|
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()));
|
|
22111
22719
|
// Module
|
|
22112
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[data-v-
|
|
22720
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[data-v-3a2384d8],.wfattach-container[data-v-3a2384d8] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-3a2384d8] .van-cell__title{width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-3a2384d8] .van-cell__value{width:45%;height:24px}.wfattach-container[data-v-3a2384d8] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-3a2384d8] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-3a2384d8] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wfattach-container[data-v-3a2384d8] .van-cell__value .attach-icon>span{white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.wfattach-container[data-v-3a2384d8] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:10px;font-size:16px;-ms-flex-negative:0;flex-shrink:0}.wfattach-container[data-v-3a2384d8]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-3a2384d8]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-3a2384d8]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-3a2384d8]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-3a2384d8]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-3a2384d8]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-3a2384d8]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-3a2384d8]{position:relative}.van-attachment-field[data-v-3a2384d8]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attach-deleting-icon[data-v-3a2384d8]{display:inline-block;-webkit-animation:attach-spin-3a2384d8 .8s linear infinite;animation:attach-spin-3a2384d8 .8s linear infinite}@-webkit-keyframes attach-spin-3a2384d8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes attach-spin-3a2384d8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}", ""]);
|
|
22113
22721
|
// Exports
|
|
22114
22722
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22115
22723
|
|
|
@@ -22242,7 +22850,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".submit-dialog-container[data-v-9c230b
|
|
|
22242
22850
|
|
|
22243
22851
|
/***/ }),
|
|
22244
22852
|
|
|
22245
|
-
/***/
|
|
22853
|
+
/***/ 9969:
|
|
22246
22854
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22247
22855
|
|
|
22248
22856
|
"use strict";
|
|
@@ -22261,7 +22869,28 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
22261
22869
|
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()));
|
|
22262
22870
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
22263
22871
|
// Module
|
|
22264
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-
|
|
22872
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-44733f4f]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-44733f4f]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-44733f4f] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-44733f4f]:after{display:none}.submit-handle-container .idea-input-wrap[data-v-44733f4f]{position:relative}.submit-handle-container .idea-input-wrap[data-v-44733f4f] .curIdea-filed textarea{padding-right:30px}.submit-handle-container .idea-input-wrap .voice-input-btn[data-v-44733f4f]{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-44733f4f]{width:16px;height:16px}.submit-handle-container .idea-input-wrap .voice-input-btn[data-v-44733f4f]:active{background-color:#ebedf0;color:#1989fa}.submit-handle-container .clearfix[data-v-44733f4f]:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container[data-v-44733f4f] .van-radio-group .van-cell__title{font-weight:400!important}.submit-handle-container .van-wflow-operate-detail-cell[data-v-44733f4f]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-44733f4f]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container[data-v-44733f4f] .tnLimit-container .van-field{width:50px;display:inline-block;padding:0}.submit-handle-container[data-v-44733f4f] .tnLimit-container .van-field .van-field__body input{text-align:center}.submit-handle-container[data-v-44733f4f] .tnLimit-container .van-field__body:after{color:#323233;content:attr(value-suffix);word-break:keep-all}.submit-handle-container .delete-icon[data-v-44733f4f]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-44733f4f]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-44733f4f]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-44733f4f],.selectBox_title[data-v-44733f4f]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-44733f4f]{-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-44733f4f]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-44733f4f],.selectBox_content .selectBox_content_son_change[data-v-44733f4f]{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-44733f4f]{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-44733f4f]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-44733f4f]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-44733f4f]::-webkit-scrollbar{display:none}.viewAllComments[data-v-44733f4f]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}", ""]);
|
|
22873
|
+
// Exports
|
|
22874
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22875
|
+
|
|
22876
|
+
|
|
22877
|
+
/***/ }),
|
|
22878
|
+
|
|
22879
|
+
/***/ 7456:
|
|
22880
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22881
|
+
|
|
22882
|
+
"use strict";
|
|
22883
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22884
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
22885
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
22886
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
22887
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
22888
|
+
// Imports
|
|
22889
|
+
|
|
22890
|
+
|
|
22891
|
+
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
|
+
// Module
|
|
22893
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".voice-input-popup[data-v-574b941f]{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.voice-input-popup .voice-popup-header[data-v-574b941f]{position:relative;height:48px;line-height:48px;text-align:center}.voice-input-popup .voice-popup-header .voice-popup-title[data-v-574b941f]{font-size:16px;font-weight:600;color:#323233}.voice-input-popup .voice-popup-header .voice-popup-close[data-v-574b941f]{position:absolute;right:16px;top:16px;font-size:16px;color:#c8c9cc}.voice-input-popup .voice-popup-body[data-v-574b941f]{padding:8px 16px 0;text-align:center}.voice-input-popup .voice-popup-body .voice-mic-btn[data-v-574b941f]{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-574b941f]{width:28px;height:28px}.voice-input-popup .voice-popup-body .voice-mic-btn.recording[data-v-574b941f]{background-color:#ee0a24;-webkit-animation:voice-breathe-574b941f 1.5s ease-out infinite;animation:voice-breathe-574b941f 1.5s ease-out infinite}.voice-input-popup .voice-popup-body .voice-status-text[data-v-574b941f]{margin-top:12px;font-size:13px;color:#646566}.voice-input-popup .voice-popup-body .voice-status-text.is-error[data-v-574b941f]{color:#ee0a24}.voice-input-popup .voice-popup-body .voice-wave-canvas[data-v-574b941f]{display:block;width:200px;height:32px;margin:8px auto 0}.voice-input-popup .voice-popup-body .voice-timer[data-v-574b941f]{margin-top:4px;font-size:13px;color:#969799}.voice-input-popup .voice-popup-body .voice-result-field[data-v-574b941f]{margin-top:12px;background-color:#f7f8fa;border-radius:8px}.voice-input-popup .voice-popup-footer[data-v-574b941f]{padding:12px 16px;text-align:right}.voice-input-popup .voice-popup-footer .van-button[data-v-574b941f]{margin-left:8px;min-width:80px}@-webkit-keyframes voice-breathe-574b941f{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-574b941f{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)}}", ""]);
|
|
22265
22894
|
// Exports
|
|
22266
22895
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22267
22896
|
|
|
@@ -49685,19 +50314,19 @@ var update = add("10123288", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
49685
50314
|
|
|
49686
50315
|
/***/ }),
|
|
49687
50316
|
|
|
49688
|
-
/***/
|
|
50317
|
+
/***/ 8848:
|
|
49689
50318
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
49690
50319
|
|
|
49691
50320
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
49692
50321
|
|
|
49693
50322
|
// load the styles
|
|
49694
|
-
var content = __webpack_require__(
|
|
50323
|
+
var content = __webpack_require__(5637);
|
|
49695
50324
|
if(content.__esModule) content = content.default;
|
|
49696
50325
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
49697
50326
|
if(content.locals) module.exports = content.locals;
|
|
49698
50327
|
// add the styles to the DOM
|
|
49699
50328
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
49700
|
-
var update = add("
|
|
50329
|
+
var update = add("61d5d6fc", content, true, {"sourceMap":false,"shadowMode":false});
|
|
49701
50330
|
|
|
49702
50331
|
/***/ }),
|
|
49703
50332
|
|
|
@@ -49781,19 +50410,19 @@ var update = add("4ff8cc4e", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
49781
50410
|
|
|
49782
50411
|
/***/ }),
|
|
49783
50412
|
|
|
49784
|
-
/***/
|
|
50413
|
+
/***/ 6384:
|
|
49785
50414
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
49786
50415
|
|
|
49787
50416
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
49788
50417
|
|
|
49789
50418
|
// load the styles
|
|
49790
|
-
var content = __webpack_require__(
|
|
50419
|
+
var content = __webpack_require__(2780);
|
|
49791
50420
|
if(content.__esModule) content = content.default;
|
|
49792
50421
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
49793
50422
|
if(content.locals) module.exports = content.locals;
|
|
49794
50423
|
// add the styles to the DOM
|
|
49795
50424
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
49796
|
-
var update = add("
|
|
50425
|
+
var update = add("a909593c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
49797
50426
|
|
|
49798
50427
|
/***/ }),
|
|
49799
50428
|
|
|
@@ -49893,19 +50522,35 @@ var update = add("780551c7", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
49893
50522
|
|
|
49894
50523
|
/***/ }),
|
|
49895
50524
|
|
|
49896
|
-
/***/
|
|
50525
|
+
/***/ 5099:
|
|
50526
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
50527
|
+
|
|
50528
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
50529
|
+
|
|
50530
|
+
// load the styles
|
|
50531
|
+
var content = __webpack_require__(9969);
|
|
50532
|
+
if(content.__esModule) content = content.default;
|
|
50533
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
50534
|
+
if(content.locals) module.exports = content.locals;
|
|
50535
|
+
// add the styles to the DOM
|
|
50536
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
50537
|
+
var update = add("54a54a44", content, true, {"sourceMap":false,"shadowMode":false});
|
|
50538
|
+
|
|
50539
|
+
/***/ }),
|
|
50540
|
+
|
|
50541
|
+
/***/ 7798:
|
|
49897
50542
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
49898
50543
|
|
|
49899
50544
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
49900
50545
|
|
|
49901
50546
|
// load the styles
|
|
49902
|
-
var content = __webpack_require__(
|
|
50547
|
+
var content = __webpack_require__(7456);
|
|
49903
50548
|
if(content.__esModule) content = content.default;
|
|
49904
50549
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
49905
50550
|
if(content.locals) module.exports = content.locals;
|
|
49906
50551
|
// add the styles to the DOM
|
|
49907
50552
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
49908
|
-
var update = add("
|
|
50553
|
+
var update = add("f83d333a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
49909
50554
|
|
|
49910
50555
|
/***/ }),
|
|
49911
50556
|
|
|
@@ -57837,8 +58482,8 @@ var srcvue_type_template_id_1543d13c_render = function render() {
|
|
|
57837
58482
|
};
|
|
57838
58483
|
var srcvue_type_template_id_1543d13c_staticRenderFns = [];
|
|
57839
58484
|
|
|
57840
|
-
;// 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/SelectDialog/src/ListitemDialog.vue?vue&type=template&id=
|
|
57841
|
-
var
|
|
58485
|
+
;// 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/SelectDialog/src/ListitemDialog.vue?vue&type=template&id=64c568b4&scoped=true
|
|
58486
|
+
var ListitemDialogvue_type_template_id_64c568b4_scoped_true_render = function render() {
|
|
57842
58487
|
var _vm = this,
|
|
57843
58488
|
_c = _vm._self._c;
|
|
57844
58489
|
return _vm.dialogVisible ? _c('div', [_vm.multiple || _vm.dialogType === 'rightDialog' ? _c('PopupDialog', {
|
|
@@ -57987,7 +58632,7 @@ var ListitemDialogvue_type_template_id_30a5dd92_scoped_true_render = function re
|
|
|
57987
58632
|
}, [_vm._v(_vm._s(item.name))])]);
|
|
57988
58633
|
})], 2)], 1) : _vm._e();
|
|
57989
58634
|
};
|
|
57990
|
-
var
|
|
58635
|
+
var ListitemDialogvue_type_template_id_64c568b4_scoped_true_staticRenderFns = [];
|
|
57991
58636
|
|
|
57992
58637
|
;// 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/SelectDialog/src/ListitemDialog.vue?vue&type=script&lang=js
|
|
57993
58638
|
/* harmony default export */ var ListitemDialogvue_type_script_lang_js = ({
|
|
@@ -58083,7 +58728,7 @@ var ListitemDialogvue_type_template_id_30a5dd92_scoped_true_staticRenderFns = []
|
|
|
58083
58728
|
}
|
|
58084
58729
|
if (oldValue !== undefined && oldValue !== null) {
|
|
58085
58730
|
for (var i = 0; i < itemList.length; i++) {
|
|
58086
|
-
if (itemList[i].text
|
|
58731
|
+
if (itemList[i].text === oldValue || itemList[i].value === oldValue || (oldValue + '').split(',').includes(itemList[i].value + '')) {
|
|
58087
58732
|
if (this.multiple === true) {
|
|
58088
58733
|
this.selected.push(i);
|
|
58089
58734
|
} else {
|
|
@@ -58199,9 +58844,9 @@ var ListitemDialogvue_type_template_id_30a5dd92_scoped_true_staticRenderFns = []
|
|
|
58199
58844
|
});
|
|
58200
58845
|
;// CONCATENATED MODULE: ./packages/ecmapp/SelectDialog/src/ListitemDialog.vue?vue&type=script&lang=js
|
|
58201
58846
|
/* harmony default export */ var src_ListitemDialogvue_type_script_lang_js = (ListitemDialogvue_type_script_lang_js);
|
|
58202
|
-
// 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/SelectDialog/src/ListitemDialog.vue?vue&type=style&index=0&id=
|
|
58203
|
-
var
|
|
58204
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/SelectDialog/src/ListitemDialog.vue?vue&type=style&index=0&id=
|
|
58847
|
+
// 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/SelectDialog/src/ListitemDialog.vue?vue&type=style&index=0&id=64c568b4&prod&scoped=true&lang=scss
|
|
58848
|
+
var ListitemDialogvue_type_style_index_0_id_64c568b4_prod_scoped_true_lang_scss = __webpack_require__(8848);
|
|
58849
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/SelectDialog/src/ListitemDialog.vue?vue&type=style&index=0&id=64c568b4&prod&scoped=true&lang=scss
|
|
58205
58850
|
|
|
58206
58851
|
;// CONCATENATED MODULE: ./packages/ecmapp/SelectDialog/src/ListitemDialog.vue
|
|
58207
58852
|
|
|
@@ -58214,11 +58859,11 @@ var ListitemDialogvue_type_style_index_0_id_30a5dd92_prod_scoped_true_lang_scss
|
|
|
58214
58859
|
|
|
58215
58860
|
var ListitemDialog_component = (0,componentNormalizer/* default */.A)(
|
|
58216
58861
|
src_ListitemDialogvue_type_script_lang_js,
|
|
58217
|
-
|
|
58218
|
-
|
|
58862
|
+
ListitemDialogvue_type_template_id_64c568b4_scoped_true_render,
|
|
58863
|
+
ListitemDialogvue_type_template_id_64c568b4_scoped_true_staticRenderFns,
|
|
58219
58864
|
false,
|
|
58220
58865
|
null,
|
|
58221
|
-
"
|
|
58866
|
+
"64c568b4",
|
|
58222
58867
|
null
|
|
58223
58868
|
|
|
58224
58869
|
)
|
|
@@ -72284,39 +72929,39 @@ var asyncComponents = [
|
|
|
72284
72929
|
}],
|
|
72285
72930
|
// ========== ecmapp/Wflowform 工作流表单子组件 → chunk: m-wflow-form ==========
|
|
72286
72931
|
['Attachment', function () {
|
|
72287
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72932
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72288
72933
|
return m.Attachment;
|
|
72289
72934
|
});
|
|
72290
72935
|
}], ['BodyFile', function () {
|
|
72291
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72936
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72292
72937
|
return m.BodyFile;
|
|
72293
72938
|
});
|
|
72294
72939
|
}], ['HandleIdea', function () {
|
|
72295
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72940
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72296
72941
|
return m.HandleIdea;
|
|
72297
72942
|
});
|
|
72298
72943
|
}], ['SelectOuterDeputy', function () {
|
|
72299
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72944
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72300
72945
|
return m.SelectOuterDeputy;
|
|
72301
72946
|
});
|
|
72302
72947
|
}], ['SubmitHandle', function () {
|
|
72303
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72948
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72304
72949
|
return m.SubmitHandle;
|
|
72305
72950
|
});
|
|
72306
72951
|
}], ['SubmitDialog', function () {
|
|
72307
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72952
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72308
72953
|
return m.SubmitDialog;
|
|
72309
72954
|
});
|
|
72310
72955
|
}], ['ShortcutProcessing', function () {
|
|
72311
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72956
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72312
72957
|
return m.ShortcutProcessing;
|
|
72313
72958
|
});
|
|
72314
72959
|
}], ['WfNodelogList', function () {
|
|
72315
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72960
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72316
72961
|
return m.WfNodelogList;
|
|
72317
72962
|
});
|
|
72318
72963
|
}], ['WriteToReadIdea', function () {
|
|
72319
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
72964
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214)).then(function (m) {
|
|
72320
72965
|
return m.WriteToReadIdea;
|
|
72321
72966
|
});
|
|
72322
72967
|
}]];
|
|
@@ -72369,7 +73014,7 @@ var WfengineModule = function WfengineModule() {
|
|
|
72369
73014
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8838));
|
|
72370
73015
|
};
|
|
72371
73016
|
var WflowformModule = function WflowformModule() {
|
|
72372
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
73017
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2214));
|
|
72373
73018
|
};
|
|
72374
73019
|
|
|
72375
73020
|
// ---------- 重型功能(PDF/富文本,仅特定页面使用) ----------
|