cnhis-design-vue 2.0.10 → 2.0.13
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/CHANGELOG.md +33 -5
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +23 -23
- package/es/button/index.js +2 -2
- package/es/captcha/index.js +3 -3
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/fabric-chart/index.js +66 -35
- package/es/form-table/index.js +17 -17
- package/es/index/index.js +876 -660
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +91 -76
- package/es/multi-chat/style.css +1 -1
- package/es/multi-chat-client/index.js +57 -43
- package/es/multi-chat-client/style.css +1 -1
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +166 -95
- package/es/multi-chat-setting/style.css +1 -1
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-view/index.js +406 -337
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +3 -3
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +76 -39
- package/es/select-person/style.css +1 -1
- package/es/table-filter/index.js +21 -21
- package/es/tag/index.js +1 -1
- package/es/utils/index.js +24 -2
- package/es/verification-code/index.js +2 -2
- package/package.json +1 -1
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +2 -2
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +8 -7
- package/packages/fabric-chart/src/mixins/draw.js +18 -0
- package/packages/multi-chat/chat/chatFooter.vue +11 -2
- package/packages/multi-chat/chat/index.vue +3 -2
- package/packages/multi-chat/chat/scrollList.vue +3 -1
- package/packages/multi-chat/setting/baseInfo/index.vue +55 -1
- package/packages/multi-chat/store/getters.js +3 -0
- package/packages/multi-chat/store/mutation.js +3 -0
- package/packages/multi-chat/store/state.js +1 -0
- package/packages/scale-view/formitem/r-choice.vue +110 -95
- package/packages/scale-view/scaleView.vue +334 -369
- package/packages/select-person/select-person.vue +26 -12
- package/src/utils/index.js +15 -0
package/es/scale-view/index.js
CHANGED
|
@@ -215,13 +215,6 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
|
|
|
215
215
|
|
|
216
216
|
/***/ }),
|
|
217
217
|
|
|
218
|
-
/***/ "0a34":
|
|
219
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
220
|
-
|
|
221
|
-
// extracted by mini-css-extract-plugin
|
|
222
|
-
|
|
223
|
-
/***/ }),
|
|
224
|
-
|
|
225
218
|
/***/ "0cda":
|
|
226
219
|
/***/ (function(module, exports) {
|
|
227
220
|
|
|
@@ -321,7 +314,7 @@ module.exports = require("core-js/modules/es.array.filter.js");
|
|
|
321
314
|
|
|
322
315
|
"use strict";
|
|
323
316
|
|
|
324
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
317
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/select-label/select-label.vue?vue&type=template&id=0d391bef&scoped=true&
|
|
325
318
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"label-page"},[_c('div',{staticClass:"tag-label"},[_vm._l((_vm.labelSelectedList),function(v){return _c('a-tag',{key:v.labelId,style:(_vm.handleLabelColor(v, true)),attrs:{"closable":_vm.item_is_edit},on:{"close":function($event){return _vm.closeTag(v)}}},[_vm._v(" "+_vm._s(v.labelName)+" ")])}),(!_vm.explicit)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.item_is_edit),expression:"item_is_edit"}],staticClass:"form-add-icon form-add-icon-label",class:{ disable: _vm.isLock },on:{"click":_vm.handleEditLabel}},[_c('a-icon',{staticClass:"add-icon",attrs:{"type":"plus-circle"}}),_vm._v(" 新增 ")],1):_vm._e()],2),(_vm.sourceType == 'form' && _vm.commonLabelList.length && _vm.item_is_edit && !_vm.explicit)?_c('div',{staticClass:"common-label"},[_c('span',[_vm._v("常用")]),_vm._l((_vm.commonLabelList),function(item,i){return _c('a-checkable-tag',{key:i,style:(_vm.handleLabelColor(item)),on:{"change":function($event){return _vm.handleCommonLabelChange($event, item)}},model:{value:(item.isSelect),callback:function ($$v) {_vm.$set(item, "isSelect", $$v)},expression:"item.isSelect"}},[_vm._v(" "+_vm._s(item.labelName)+" ")])})],2):_vm._e(),(_vm.explicit && _vm.item_is_edit)?_c('div',[_c('labelFormContent',_vm._b({ref:"labelFormContent",attrs:{"explicit":_vm.explicit,"labelVisible":_vm.labelVisible,"item":_vm.item,"isEdit":_vm.isEdit,"isLock":_vm.isLock,"labelSelectedList":_vm.labelSelectedList,"isChangeWindow":_vm.isChangeWindow,"labelOptions":_vm.editLabelItem.labelObj,"sourceType":_vm.sourceType},on:{"updateLabelData":_vm.updateLabelData,"explicitOnChange":_vm.explicitOnChange}},'labelFormContent',_vm.$attrs,false))],1):_vm._e(),_c('a-modal',{staticClass:"label-form-modal-wrap modal-wrap standard-modal standard-modal-white",class:{ 'modal-screen': _vm.isChangeWindow },attrs:{"maskClosable":false,"destroyOnClose":true,"width":_vm.modalWidth,"cancelText":'取消',"okText":'确定',"bodyStyle":{
|
|
326
319
|
height: _vm.modalHeight,
|
|
327
320
|
maxHeight: _vm.maxHeight,
|
|
@@ -1548,6 +1541,17 @@ function normalizeComponent (
|
|
|
1548
1541
|
|
|
1549
1542
|
module.exports = require("vuedraggable");
|
|
1550
1543
|
|
|
1544
|
+
/***/ }),
|
|
1545
|
+
|
|
1546
|
+
/***/ "28d2":
|
|
1547
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1548
|
+
|
|
1549
|
+
"use strict";
|
|
1550
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_scaleView_vue_vue_type_style_index_0_id_73f10a27_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9482");
|
|
1551
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_scaleView_vue_vue_type_style_index_0_id_73f10a27_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_scaleView_vue_vue_type_style_index_0_id_73f10a27_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
1552
|
+
/* unused harmony reexport * */
|
|
1553
|
+
|
|
1554
|
+
|
|
1551
1555
|
/***/ }),
|
|
1552
1556
|
|
|
1553
1557
|
/***/ "2909":
|
|
@@ -1832,13 +1836,6 @@ module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
|
1832
1836
|
/* unused harmony reexport * */
|
|
1833
1837
|
|
|
1834
1838
|
|
|
1835
|
-
/***/ }),
|
|
1836
|
-
|
|
1837
|
-
/***/ "339b":
|
|
1838
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1839
|
-
|
|
1840
|
-
// extracted by mini-css-extract-plugin
|
|
1841
|
-
|
|
1842
1839
|
/***/ }),
|
|
1843
1840
|
|
|
1844
1841
|
/***/ "342f":
|
|
@@ -2178,7 +2175,7 @@ module.exports = require("ant-design-vue/es/button/style");
|
|
|
2178
2175
|
|
|
2179
2176
|
"use strict";
|
|
2180
2177
|
|
|
2181
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2178
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/map/src/Map.vue?vue&type=template&id=262a05a2&scoped=true&
|
|
2182
2179
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"map"},[_c('div',{staticClass:"search-container"},[_c('div',[_c('a-input-search',{attrs:{"placeholder":"请输入地址","enter-button":"检索"},on:{"search":_vm.searchKeyword},model:{value:(_vm.searchKey),callback:function ($$v) {_vm.searchKey=$$v},expression:"searchKey"}})],1)]),_c('div',{attrs:{"id":"map-core"}}),(_vm.addressList && _vm.addressList.length)?_c('ul',{staticClass:"address-list"},[_c('li',[_vm._v(" 地址:"+_vm._s(_vm.addressList[0] && _vm.addressList[0].name)+" "),_c('a-button',{attrs:{"type":"primary","size":"small"},on:{"click":function($event){return _vm.selectLocation(_vm.addressList[0], 'li')}}},[_vm._v(" 确定")])],1),_vm._l((_vm.addressList),function(item,index){return _c('li',{key:index,staticClass:"address-item"},[_c('div',{on:{"click":function($event){return _vm.selectLocation(item, 'div')}}},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(item.name))]),_c('span',[_vm._v(_vm._s(item.address))])])])})],2):_vm._e()])}
|
|
2183
2180
|
var staticRenderFns = []
|
|
2184
2181
|
|
|
@@ -2718,6 +2715,13 @@ module.exports = require("core-js/modules/es.string.replace.js");
|
|
|
2718
2715
|
/* unused harmony reexport * */
|
|
2719
2716
|
|
|
2720
2717
|
|
|
2718
|
+
/***/ }),
|
|
2719
|
+
|
|
2720
|
+
/***/ "67dc":
|
|
2721
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2722
|
+
|
|
2723
|
+
// extracted by mini-css-extract-plugin
|
|
2724
|
+
|
|
2721
2725
|
/***/ }),
|
|
2722
2726
|
|
|
2723
2727
|
/***/ "69f3":
|
|
@@ -3888,6 +3892,13 @@ module.exports = require("ant-design-vue/es/modal");
|
|
|
3888
3892
|
/* unused harmony reexport * */
|
|
3889
3893
|
|
|
3890
3894
|
|
|
3895
|
+
/***/ }),
|
|
3896
|
+
|
|
3897
|
+
/***/ "9482":
|
|
3898
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3899
|
+
|
|
3900
|
+
// extracted by mini-css-extract-plugin
|
|
3901
|
+
|
|
3891
3902
|
/***/ }),
|
|
3892
3903
|
|
|
3893
3904
|
/***/ "94ca":
|
|
@@ -3916,17 +3927,6 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
3916
3927
|
module.exports = isForced;
|
|
3917
3928
|
|
|
3918
3929
|
|
|
3919
|
-
/***/ }),
|
|
3920
|
-
|
|
3921
|
-
/***/ "9565":
|
|
3922
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3923
|
-
|
|
3924
|
-
"use strict";
|
|
3925
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_r_choice_vue_vue_type_style_index_0_id_6c93557f_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0a34");
|
|
3926
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_r_choice_vue_vue_type_style_index_0_id_6c93557f_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_r_choice_vue_vue_type_style_index_0_id_6c93557f_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
3927
|
-
/* unused harmony reexport * */
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
3930
|
/***/ }),
|
|
3931
3931
|
|
|
3932
3932
|
/***/ "9715":
|
|
@@ -3959,6 +3959,17 @@ module.exports = require("ant-design-vue/es/checkbox/style");
|
|
|
3959
3959
|
|
|
3960
3960
|
module.exports = require("core-js/modules/es.object.to-string.js");
|
|
3961
3961
|
|
|
3962
|
+
/***/ }),
|
|
3963
|
+
|
|
3964
|
+
/***/ "98b6":
|
|
3965
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3966
|
+
|
|
3967
|
+
"use strict";
|
|
3968
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_r_choice_vue_vue_type_style_index_0_id_3e438d57_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("67dc");
|
|
3969
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_r_choice_vue_vue_type_style_index_0_id_3e438d57_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_r_choice_vue_vue_type_style_index_0_id_3e438d57_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
3970
|
+
/* unused harmony reexport * */
|
|
3971
|
+
|
|
3972
|
+
|
|
3962
3973
|
/***/ }),
|
|
3963
3974
|
|
|
3964
3975
|
/***/ "9b22":
|
|
@@ -4232,17 +4243,6 @@ module.exports = {
|
|
|
4232
4243
|
};
|
|
4233
4244
|
|
|
4234
4245
|
|
|
4235
|
-
/***/ }),
|
|
4236
|
-
|
|
4237
|
-
/***/ "af49":
|
|
4238
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4239
|
-
|
|
4240
|
-
"use strict";
|
|
4241
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_scaleView_vue_vue_type_style_index_0_id_1d365480_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("339b");
|
|
4242
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_scaleView_vue_vue_type_style_index_0_id_1d365480_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_scaleView_vue_vue_type_style_index_0_id_1d365480_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
4243
|
-
/* unused harmony reexport * */
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
4246
|
/***/ }),
|
|
4247
4247
|
|
|
4248
4248
|
/***/ "b102":
|
|
@@ -4634,12 +4634,15 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
4634
4634
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
4635
4635
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
4636
4636
|
|
|
4637
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4638
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"r-scale"},[(_vm.spinning)?_vm._t("default",function(){return [_c('a-spin',{attrs:{"indicator":_vm.indicator,"tip":"加载中..."}})]}):_vm._e(),(!_vm.spinning && !_vm.hasFrontAddress)?_vm._t("default",function(){return [(_vm.noData)?_c('NoData',{attrs:{"noDataImg":_vm.noDataImg,"noDataTip":_vm.noDataTip}}):[(_vm.showEvaluateEntry)?_c('evaluatePage',{attrs:{"formArray":_vm.formArray,"evaluateResultConfig":_vm.config.evaluateResultConfig,"evaluateResultSetting":_vm.config.evaluateResultSetting,"isFinished":_vm.isFinished,"maxScore":_vm.maxScore},on:{"writeGuage":_vm.writeGuage}}):[(_vm.showEvaluateCoundownPage)?_c('evaluateCountdown',{ref:"evaluateCountdown",attrs:{"formArray":_vm.formArray,"evaluateResultConfig":_vm.config.evaluateResultConfig,"evaluateResultSetting":_vm.config.evaluateResultSetting,"form":_vm.form,"isFinished":_vm.isFinished,"currentTime":_vm.currentTime,"showEvaluateCountdown":_vm.showEvaluateCountdown},on:{"closeEvaluateCountdown":_vm.closeEvaluateCountdown}}):_vm._e(),_c('div',{staticClass:"scale-container",class:{ 'scale-container-nopadding': _vm.handlePageClass },style:(_vm.scaleStyle)},[(_vm.hasScore)?_c('div',{staticClass:"totalScore-warp"},[_c('div',[_vm._v(" 测评总分:"),_c('span',[_vm._v(_vm._s(_vm.maxScore)+"分")])]),_c('div',[_vm._v(" 测评分数:"),_c('span',{style:({ color: _vm.getEvaResColor })},[_vm._v(_vm._s(_vm.config.totalScore)+"分")])]),(_vm.hasEvaluateSetting)?[_c('div',[_vm._v(" 测评结果: "),_c('span',{staticClass:"score-result",style:({ color: _vm.getEvaResColor })},[_vm._v(_vm._s(_vm.config.evaluateResult))])]),_c('div',[_vm._v(" 结果说明:"),_c('span',[_vm._v(_vm._s(_vm.config.evaluateResultExplain))])])]:_vm._e()],2):_vm._e(),_c('a-form-model',{ref:"ruleForm",staticClass:"main",attrs:{"model":_vm.form,"rules":_vm.rules,"layout":_vm.form.layout,"colon":false}},[_vm._l((_vm.formArray),function(item,index){return [(item.type == 'TITLE')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[_c('h1',{staticClass:"lb-title"},[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:"lb-title"},[_vm._v(_vm._s(item.describe))])]):_vm._e()]:(item.type == 'LINEBAR')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[(item.title)?_c('div',{staticClass:"linebar-div"},[_c('span',[_vm._v(_vm._s(item.title))]),_c('a-divider')],1):[_c('a-divider')]],2):_vm._e()]:(item.type == 'PROMPT')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,staticClass:"my-prompt",attrs:{"colon":false}},[_c('MyPrompt',{key:item.id || item.seq,attrs:{"options":item.setting}})],1):_vm._e()]:(item.type == 'IMGCARD')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[(item.setting.imgLink)?_c('a',{attrs:{"href":item.setting.imgLink,"target":"_blank"}},[_c('img',{staticClass:"img-card",attrs:{"src":item.setting.imgUrl}})]):_c('img',{staticClass:"img-card",attrs:{"src":item.setting.imgUrl}})]):_vm._e()]:(item.type == 'RICH_TEXT')?[_c('div',{key:item.id || item.seq,staticClass:"rich-text-content",domProps:{"innerHTML":_vm._s(item.setting.defaultValue)}})]:[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"prop":_vm.formKey(item)}},[_c('span',{attrs:{"slot":"label"},slot:"label"},[_c('span',{class:{ 'scale-label-required': _vm.isFormBoldOpen(item) },domProps:{"innerHTML":_vm._s(_vm.handleShowQuestionNumber(item))}}),(_vm.isFormBoldOpen(item))?_c('span',{staticClass:"required-text"},[_vm._v("(必填)")]):_vm._e(),(_vm.showEvaluateLabel(item))?_c('span',{staticClass:"evalute-label"},[_vm._v(
|
|
4637
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/scaleView.vue?vue&type=template&id=73f10a27&scoped=true&
|
|
4638
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"r-scale"},[(_vm.spinning)?_vm._t("default",function(){return [_c('a-spin',{attrs:{"indicator":_vm.indicator,"tip":"加载中..."}})]}):_vm._e(),(!_vm.spinning && !_vm.hasFrontAddress)?_vm._t("default",function(){return [(_vm.noData)?_c('NoData',{attrs:{"noDataImg":_vm.noDataImg,"noDataTip":_vm.noDataTip}}):[(_vm.showEvaluateEntry)?_c('evaluatePage',{attrs:{"formArray":_vm.formArray,"evaluateResultConfig":_vm.config.evaluateResultConfig,"evaluateResultSetting":_vm.config.evaluateResultSetting,"isFinished":_vm.isFinished,"maxScore":_vm.maxScore},on:{"writeGuage":_vm.writeGuage}}):[(_vm.showEvaluateCoundownPage)?_c('evaluateCountdown',{ref:"evaluateCountdown",attrs:{"formArray":_vm.formArray,"evaluateResultConfig":_vm.config.evaluateResultConfig,"evaluateResultSetting":_vm.config.evaluateResultSetting,"form":_vm.form,"isFinished":_vm.isFinished,"currentTime":_vm.currentTime,"showEvaluateCountdown":_vm.showEvaluateCountdown},on:{"closeEvaluateCountdown":_vm.closeEvaluateCountdown}}):_vm._e(),_c('div',{staticClass:"scale-container",class:{ 'scale-container-nopadding': _vm.handlePageClass },style:(_vm.scaleStyle)},[(_vm.hasScore)?_c('div',{staticClass:"totalScore-warp"},[_c('div',[_vm._v(" 测评总分: "),_c('span',[_vm._v(_vm._s(_vm.maxScore)+"分")])]),_c('div',[_vm._v(" 测评分数: "),_c('span',{style:({ color: _vm.getEvaResColor })},[_vm._v(_vm._s(_vm.config.totalScore)+"分")])]),(_vm.hasEvaluateSetting)?[_c('div',[_vm._v(" 测评结果: "),_c('span',{staticClass:"score-result",style:({ color: _vm.getEvaResColor })},[_vm._v(_vm._s(_vm.config.evaluateResult))])]),_c('div',[_vm._v(" 结果说明: "),_c('span',[_vm._v(_vm._s(_vm.config.evaluateResultExplain))])])]:_vm._e()],2):_vm._e(),_c('a-form-model',{ref:"ruleForm",staticClass:"main",attrs:{"model":_vm.form,"rules":_vm.rules,"layout":_vm.form.layout,"colon":false}},[_vm._l((_vm.formArray),function(item,index){return [(item.type == 'TITLE')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[_c('h1',{staticClass:"lb-title"},[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:"lb-title"},[_vm._v(_vm._s(item.describe))])]):_vm._e()]:(item.type == 'LINEBAR')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[(item.title)?_c('div',{staticClass:"linebar-div"},[_c('span',[_vm._v(_vm._s(item.title))]),_c('a-divider')],1):[_c('a-divider')]],2):_vm._e()]:(item.type == 'PROMPT')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,staticClass:"my-prompt",attrs:{"colon":false}},[_c('MyPrompt',{key:item.id || item.seq,attrs:{"options":item.setting}})],1):_vm._e()]:(item.type == 'IMGCARD')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[(item.setting.imgLink)?_c('a',{attrs:{"href":item.setting.imgLink,"target":"_blank"}},[_c('img',{staticClass:"img-card",attrs:{"src":item.setting.imgUrl}})]):_c('img',{staticClass:"img-card",attrs:{"src":item.setting.imgUrl}})]):_vm._e()]:(item.type == 'RICH_TEXT')?[_c('div',{key:item.id || item.seq,staticClass:"rich-text-content",domProps:{"innerHTML":_vm._s(item.setting.defaultValue)}})]:[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"prop":_vm.formKey(item)}},[_c('span',{attrs:{"slot":"label"},slot:"label"},[_c('span',{class:{ 'scale-label-required': _vm.isFormBoldOpen(item) },domProps:{"innerHTML":_vm._s(_vm.handleShowQuestionNumber(item))}}),(_vm.isFormBoldOpen(item))?_c('span',{staticClass:"required-text"},[_vm._v("(必填)")]):_vm._e(),(_vm.showEvaluateLabel(item))?_c('span',{staticClass:"evalute-label"},[_vm._v(_vm._s(_vm.showEvaluateLabel(item)))]):_vm._e(),(_vm.showEvatip(item))?[_c('span',{staticClass:"evalute-tip",on:{"click":function($event){return _vm.showEvaTipModal(item)}}},[_c('svg-icon',{attrs:{"icon-class":"a-xitongtubiaotishi"}}),_vm._v("查看提示 ")],1)]:_vm._e()],2),(_vm.isInput(item.type))?_c('MyInput',_vm._b({attrs:{"type":item.valueType,"row":item.setting.inputRow || 1,"defaultPlaceHolder":item.setting.defaultPlaceHolder,"isLock":_vm.componentDisable},model:{value:(_vm.form[_vm.formKey(item)]),callback:function ($$v) {_vm.$set(_vm.form, _vm.formKey(item), $$v)},expression:"form[formKey(item)]"}},'MyInput',_vm.$attrs,false)):(_vm.isChoice(item.type))?_c('MyChoice',_vm._b({attrs:{"item":item,"isLock":_vm.componentDisable,"curIndex":index,"openType":_vm.openType},on:{"change":function($event){return _vm.handleChoice($event, item)},"radioChange":_vm.radioChange,"checkboxChange":_vm.checkboxChange},model:{value:(_vm.form[_vm.formKey(item)]),callback:function ($$v) {_vm.$set(_vm.form, _vm.formKey(item), $$v)},expression:"form[formKey(item)]"}},'MyChoice',_vm.$attrs,false)):(_vm.isTime(item.type))?_c('MyTime',_vm._b({attrs:{"value":_vm.getTimeValue(item),"type":item.type,"startToStop":item.setting.startToStop,"dateType":item.setting.dateType,"isLock":_vm.componentDisable},on:{"change":function($event){return _vm.changeTime($event, item)}}},'MyTime',_vm.$attrs,false)):(_vm.isUpload(item.type))?_c('MyUpload',_vm._b({attrs:{"upType":item.type,"useFileList":item.dbValue,"limitPic":item.setting.limitPic,"isLock":_vm.componentDisable},on:{"change":function($event){return _vm.changeUpload($event, item)}}},'MyUpload',_vm.$attrs,false)):(item.type === 'LOCATION')?_c('div',{class:{ 'map-container': !_vm.isLock },on:{"click":function($event){!_vm.isLock && (_vm.mapVisible = !_vm.mapVisible)}}},[_c('a-input',{attrs:{"placeholder":"请选择","value":_vm.handleGetAddress(_vm.form[_vm.formKey(item)]),"disabled":""}},[_c('a-icon',{attrs:{"slot":"prefix","type":"info-circle"},slot:"prefix"})],1),_c('MapComp',_vm._b({attrs:{"visible":_vm.mapVisible,"locationProp":_vm.form[_vm.formKey(item)],"isLock":_vm.componentDisable},on:{"update:visible":function($event){_vm.mapVisible=$event},"selectLocation":function($event){return _vm.handleSelectLocation($event, item)}}},'MapComp',_vm.$attrs,false))],1):(item.type === 'ADDRESS')?_c('MyAddress',_vm._b({attrs:{"setting":item.setting,"defaultValue":_vm.defaultAddress,"isLock":_vm.componentDisable},on:{"change":function($event){return _vm.changeAddress($event, item)}}},'MyAddress',_vm.$attrs,false)):(item.type === 'LABEL')?_c('label-form',_vm._b({attrs:{"item":item,"selectedList":_vm.labelSelectedList,"isLock":_vm.componentDisable,"sourceType":_vm.source},on:{"onChange":function($event){return _vm.labelChange($event, item)}}},'label-form',_vm.$attrs,false)):(item.type === 'VEDIO')?_c('vod-Chunk-upload',_vm._b({attrs:{"source":'guage',"formData":item,"limitNum":item.setting.limitPic,"defFileList":_vm.form[_vm.formKey(item)],"isLock":_vm.componentDisable},on:{"vodFileList":function($event){return _vm.vodFileList($event, item)}}},'vod-Chunk-upload',_vm.$attrs,false)):_vm._e(),(_vm.showAnswerParse(item))?_c('answerParse',{attrs:{"item":item}}):_vm._e()],1):_vm._e()]]})],2)],1),(_vm.type === 'customList')?[(!_vm.noBtn)?_c('div',{staticClass:"footer"},[(false)?undefined:_vm._e(),_c('a-button',{attrs:{"type":"primary","disabled":_vm.banSubmit},on:{"click":_vm.onSubmit}},[_vm._v("保存")])],1):_vm._e()]:[(_vm.showSaveBtn)?_c('div',{staticClass:"footer"},[_c('a-button',{staticStyle:{"margin-right":"8px"},on:{"click":_vm.cancel}},[_vm._v("取消")]),(!_vm.isLock)?_c('a-button',{attrs:{"type":"primary","disabled":_vm.banSubmit},on:{"click":_vm.onSubmit}},[_vm._v("保存")]):_vm._e()],1):_vm._e()]]]]}):_vm._e()],2)}
|
|
4639
4639
|
var staticRenderFns = []
|
|
4640
4640
|
|
|
4641
4641
|
|
|
4642
|
-
// CONCATENATED MODULE: ./packages/scale-view/scaleView.vue?vue&type=template&id=
|
|
4642
|
+
// CONCATENATED MODULE: ./packages/scale-view/scaleView.vue?vue&type=template&id=73f10a27&scoped=true&
|
|
4643
|
+
|
|
4644
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
|
4645
|
+
var toConsumableArray = __webpack_require__("2909");
|
|
4643
4646
|
|
|
4644
4647
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
4645
4648
|
var asyncToGenerator = __webpack_require__("1da1");
|
|
@@ -4779,7 +4782,7 @@ var es_array_join_js_ = __webpack_require__("be94");
|
|
|
4779
4782
|
// EXTERNAL MODULE: ./src/core/create.js
|
|
4780
4783
|
var create = __webpack_require__("8aef");
|
|
4781
4784
|
|
|
4782
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4785
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-time.vue?vue&type=template&id=40b2ff5d&scoped=true&
|
|
4783
4786
|
var r_timevue_type_template_id_40b2ff5d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.type == 'DATE')?[(_vm.startToStop != 1)?_c('a-date-picker',{attrs:{"disabled":_vm.isLock},on:{"change":_vm.changeDate},model:{value:(_vm.timeValue),callback:function ($$v) {_vm.timeValue=$$v},expression:"timeValue"}}):_c('a-range-picker',{on:{"change":_vm.changeRange},model:{value:(_vm.rangeValue),callback:function ($$v) {_vm.rangeValue=$$v},expression:"rangeValue"}})]:(_vm.type == 'TIME')?[(_vm.startToStop != 1)?_c('a-time-picker',{attrs:{"disabled":_vm.isLock},on:{"change":_vm.changeTime},model:{value:(_vm.timeValue),callback:function ($$v) {_vm.timeValue=$$v},expression:"timeValue"}}):_vm._e(),(_vm.startToStop == 1)?_vm._t("default",function(){return [_c('a-time-picker',{attrs:{"disabled":_vm.isLock,"disabledHours":_vm.disStartHours,"disabledMinutes":_vm.disStartMinute,"disabledSeconds":_vm.disStartSeconds},on:{"change":_vm.changeRangeTime},model:{value:(_vm.rangeValue[0]),callback:function ($$v) {_vm.$set(_vm.rangeValue, 0, $$v)},expression:"rangeValue[0]"}}),_vm._v(" - "),_c('a-time-picker',{attrs:{"disabled":_vm.isLock,"disabledHours":_vm.disEndHours,"disabledMinutes":_vm.disEndMinute,"disabledSeconds":_vm.disEndSeconds},on:{"change":_vm.changeRangeTime},model:{value:(_vm.rangeValue[1]),callback:function ($$v) {_vm.$set(_vm.rangeValue, 1, $$v)},expression:"rangeValue[1]"}})]}):_vm._e()]:(_vm.type == 'DATETIME')?[(_vm.dateType == 'time')?_c('div',[(_vm.startToStop != 1)?_c('a-time-picker',{attrs:{"disabled":_vm.isLock},on:{"change":_vm.changeTime},model:{value:(_vm.timeValue),callback:function ($$v) {_vm.timeValue=$$v},expression:"timeValue"}}):_vm._e(),(_vm.startToStop == 1)?_vm._t("default",function(){return [_c('a-time-picker',{attrs:{"disabled":_vm.isLock,"disabledHours":_vm.disStartHours,"disabledMinutes":_vm.disStartMinute,"disabledSeconds":_vm.disStartSeconds},on:{"change":_vm.changeRangeTime},model:{value:(_vm.rangeValue[0]),callback:function ($$v) {_vm.$set(_vm.rangeValue, 0, $$v)},expression:"rangeValue[0]"}}),_vm._v(" - "),_c('a-time-picker',{attrs:{"disabled":_vm.isLock,"disabledHours":_vm.disEndHours,"disabledMinutes":_vm.disEndMinute,"disabledSeconds":_vm.disEndSeconds},on:{"change":_vm.changeRangeTime},model:{value:(_vm.rangeValue[1]),callback:function ($$v) {_vm.$set(_vm.rangeValue, 1, $$v)},expression:"rangeValue[1]"}})]}):_vm._e()],2):_c('div',[(_vm.startToStop != 1)?_c('a-date-picker',{attrs:{"disabled":_vm.isLock,"show-time":_vm.dateType == 'datetime',"showToday":false,"dropdownClassName":"scale-time-picker"},on:{"change":_vm.changeDate},model:{value:(_vm.timeValue),callback:function ($$v) {_vm.timeValue=$$v},expression:"timeValue"}}):_c('a-range-picker',{attrs:{"show-time":_vm.dateType == 'datetime',"placeholder":_vm.rangePlaceholder},on:{"change":_vm.changeRange},model:{value:(_vm.rangeValue),callback:function ($$v) {_vm.rangeValue=$$v},expression:"rangeValue"}})],1)]:_vm._e()],2)}
|
|
4784
4787
|
var r_timevue_type_template_id_40b2ff5d_scoped_true_staticRenderFns = []
|
|
4785
4788
|
|
|
@@ -5154,12 +5157,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
5154
5157
|
)
|
|
5155
5158
|
|
|
5156
5159
|
/* harmony default export */ var r_time = (component.exports);
|
|
5157
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5158
|
-
var
|
|
5159
|
-
var
|
|
5160
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-choice.vue?vue&type=template&id=3e438d57&scoped=true&
|
|
5161
|
+
var r_choicevue_type_template_id_3e438d57_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"r-choice"},[(_vm.item.type == 'RADIO_BLOCK' || _vm.item.type === 'EVALUATE_RADIO_BLOCK')?_c('a-radio-group',{staticClass:"choice-wrap",class:['choice-wrap-' + (_vm.item.setting.chooseStyleSetting || 1)],on:{"change":_vm.radioChange},model:{value:(_vm.curvalue),callback:function ($$v) {_vm.curvalue=$$v},expression:"curvalue"}},_vm._l((_vm.curOptions),function(o,i){return _c('a-radio',{key:o.key + i + o.label,staticClass:"choice-radio",class:{ 'block-radio': !_vm.item.setting.isHorizontal },style:({ color: _vm.choiceColor(o) }),attrs:{"value":o[_vm.choiceUseKey],"disabled":_vm.isLock}},[(_vm.showImgWrap(o))?[_c('span',{staticClass:"scale-choice-img-wrap"},[_c('img',{staticClass:"show-picture",attrs:{"src":o.imageUrl}}),_c('div',{staticClass:"scale-preview-wrap"},[_c('a-icon',{attrs:{"type":"zoom-in"},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handlePreview(o.imageUrl, i)}}})],1)])]:_vm._e(),[(_vm.isRadioItem && _vm.showPreSuffix(o))?[(o.prefix)?_c('span',{staticClass:"prefix-span",style:({ color: _vm.choiceColor(o) })},[_vm._v(_vm._s(o.prefix))]):_vm._e(),_c('a-input',{style:({ color: _vm.choiceColor(o) }),attrs:{"disabled":_vm.isLock || _vm.inputLock,"placeholder":"请输入"},on:{"change":function($event){return _vm.inputPreSuffixChange(o, i)}},model:{value:(_vm.optionsPreSuffixObj[o.key]),callback:function ($$v) {_vm.$set(_vm.optionsPreSuffixObj, o.key, $$v)},expression:"optionsPreSuffixObj[o.key]"}}),(o.suffix)?_c('span',{staticClass:"suffix-span",style:({ color: _vm.choiceColor(o) })},[_vm._v(_vm._s(o.suffix))]):_vm._e()]:_c('span',{style:({ color: _vm.choiceColor(o) })},[_vm._v(_vm._s(o.label))]),(o.importability)?_c('a-input',{style:({ color: _vm.choiceColor(o) }),attrs:{"disabled":_vm.isLock || _vm.inputLock,"placeholder":"请输入"},on:{"change":_vm.inputChange},model:{value:(_vm.othersText),callback:function ($$v) {_vm.othersText=$$v},expression:"othersText"}}):_vm._e()]],2)}),1):(_vm.item.type == 'CHECKBOX_BLOCK' || _vm.item.type === 'EVALUATE_CHECKBOX_BLOCK')?_c('a-checkbox-group',{staticClass:"choice-wrap",class:['choice-wrap-' + (_vm.item.setting.chooseStyleSetting || 1)],on:{"change":_vm.checkboxChange},model:{value:(_vm.curCheckboxValue),callback:function ($$v) {_vm.curCheckboxValue=$$v},expression:"curCheckboxValue"}},_vm._l((_vm.curOptions),function(o,i){return _c('a-checkbox',{key:o.key + i + o.label,staticClass:"choice-checkbox",class:{ 'block-checkbox': !_vm.item.setting.isHorizontal },style:({ color: _vm.choiceColor(o) }),attrs:{"value":o[_vm.choiceUseKey],"disabled":_vm.isLock}},[(_vm.showImgWrap(o))?[_c('span',{staticClass:"scale-choice-img-wrap"},[_c('img',{staticClass:"show-picture",attrs:{"src":o.imageUrl}}),_c('div',{staticClass:"scale-preview-wrap"},[_c('a-icon',{attrs:{"type":"zoom-in"},on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handlePreview(o.imageUrl, i)}}})],1)])]:_vm._e(),[(_vm.isCheckboxItem && _vm.showPreSuffix(o))?[(o.prefix)?_c('span',{staticClass:"prefix-span",style:({ color: _vm.choiceColor(o) })},[_vm._v(_vm._s(o.prefix))]):_vm._e(),_c('a-input',{style:({ color: _vm.choiceColor(o) }),attrs:{"disabled":_vm.isLock || _vm.inputLock,"placeholder":"请输入"},on:{"change":function($event){return _vm.inputPreSuffixCheckboxChange(o, i)}},model:{value:(_vm.optionsPreSuffixObj[o.key]),callback:function ($$v) {_vm.$set(_vm.optionsPreSuffixObj, o.key, $$v)},expression:"optionsPreSuffixObj[o.key]"}}),(o.suffix)?_c('span',{staticClass:"suffix-span",style:({ color: _vm.choiceColor(o) })},[_vm._v(_vm._s(o.suffix))]):_vm._e()]:_c('span',{staticStyle:{"white-space":"initial"},style:({ color: _vm.choiceColor(o) })},[_vm._v(_vm._s(o.label))]),(o.importability)?_c('a-input',{style:({ color: _vm.choiceColor(o) }),attrs:{"disabled":_vm.isLock || _vm.inputLock,"placeholder":"请输入"},on:{"change":_vm.inputCheckboxChange},model:{value:(_vm.othersText),callback:function ($$v) {_vm.othersText=$$v},expression:"othersText"}}):_vm._e()]],2)}),1):(_vm.cloneItem.type == 'SELECT' || _vm.item.type === 'EVALUATE_SELECT')?_c('a-select',{attrs:{"placeholder":"请选择","show-search":"","mode":_vm.cloneItem.setting.isMultiple ? 'multiple' : 'default',"disabled":_vm.isLock,"getPopupContainer":_vm.getPopupContainer,"filterOption":_vm.filterOption,"notFoundContent":_vm.fetching ? undefined : '暂无数据'},on:{"search":_vm.handleSearch,"change":_vm.handleSelectChange},model:{value:(_vm.choiceValue),callback:function ($$v) {_vm.choiceValue=$$v},expression:"choiceValue"}},[(_vm.fetching)?_c('a-spin',{attrs:{"slot":"notFoundContent","size":"small"},slot:"notFoundContent"}):_vm._e(),_vm._l((_vm.curOptions),function(v,i){return _c('a-select-option',{key:i,attrs:{"value":v.value}},[_vm._v(_vm._s(v[_vm.showField]))])})],2):(_vm.cloneItem.type == 'SEARCH_CASCADE')?_c('a-cascader',{staticClass:"m-cascader",attrs:{"placeholder":"请选择","options":_vm.curOptions,"disabled":_vm.isLock,"change-on-select":""},model:{value:(_vm.choiceValue),callback:function ($$v) {_vm.choiceValue=$$v},expression:"choiceValue"}}):_vm._e(),_c('viewer',{ref:"viewer",staticClass:"viewer",staticStyle:{"display":"none"},attrs:{"images":_vm.previewImages},on:{"inited":_vm.inited},scopedSlots:_vm._u([{key:"default",fn:function(scope){return _vm._l((scope.images),function(src){return _c('img',{key:src,attrs:{"src":src}})})}}])})],1)}
|
|
5162
|
+
var r_choicevue_type_template_id_3e438d57_scoped_true_staticRenderFns = []
|
|
5160
5163
|
|
|
5161
5164
|
|
|
5162
|
-
// CONCATENATED MODULE: ./packages/scale-view/formitem/r-choice.vue?vue&type=template&id=
|
|
5165
|
+
// CONCATENATED MODULE: ./packages/scale-view/formitem/r-choice.vue?vue&type=template&id=3e438d57&scoped=true&
|
|
5163
5166
|
|
|
5164
5167
|
// EXTERNAL MODULE: external "ant-design-vue/es/select/style"
|
|
5165
5168
|
var select_style_ = __webpack_require__("c7af");
|
|
@@ -5185,9 +5188,6 @@ var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
|
5185
5188
|
// EXTERNAL MODULE: external "core-js/modules/es.array.find-index.js"
|
|
5186
5189
|
var es_array_find_index_js_ = __webpack_require__("4c7f");
|
|
5187
5190
|
|
|
5188
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
|
5189
|
-
var toConsumableArray = __webpack_require__("2909");
|
|
5190
|
-
|
|
5191
5191
|
// EXTERNAL MODULE: external "core-js/modules/es.set.js"
|
|
5192
5192
|
var es_set_js_ = __webpack_require__("8535");
|
|
5193
5193
|
|
|
@@ -5486,7 +5486,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5486
5486
|
},
|
|
5487
5487
|
openType: {
|
|
5488
5488
|
type: String,
|
|
5489
|
-
default:
|
|
5489
|
+
default: ''
|
|
5490
5490
|
}
|
|
5491
5491
|
},
|
|
5492
5492
|
components: (r_choicevue_type_script_lang_js_components = {
|
|
@@ -5498,16 +5498,16 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5498
5498
|
return this.value ? this.value : undefined;
|
|
5499
5499
|
},
|
|
5500
5500
|
set: function set(val) {
|
|
5501
|
-
this.$emit(
|
|
5501
|
+
this.$emit('input', val);
|
|
5502
5502
|
}
|
|
5503
5503
|
},
|
|
5504
5504
|
choiceUseKey: function choiceUseKey() {
|
|
5505
|
-
if (this.item.type ===
|
|
5506
|
-
return
|
|
5505
|
+
if (this.item.type === 'RADIO_BLOCK' || this.item.type === 'CHECKBOX_BLOCK') return 'key';
|
|
5506
|
+
return 'value';
|
|
5507
5507
|
},
|
|
5508
5508
|
choiceColor: function choiceColor() {
|
|
5509
5509
|
return function (p) {
|
|
5510
|
-
var color = p.color ||
|
|
5510
|
+
var color = p.color || 'rgba(0, 0, 0, 0.65)';
|
|
5511
5511
|
return "".concat(color, " !important");
|
|
5512
5512
|
};
|
|
5513
5513
|
},
|
|
@@ -5517,10 +5517,10 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5517
5517
|
};
|
|
5518
5518
|
},
|
|
5519
5519
|
isRadioItem: function isRadioItem() {
|
|
5520
|
-
return this.item.type ===
|
|
5520
|
+
return this.item.type === 'RADIO_BLOCK';
|
|
5521
5521
|
},
|
|
5522
5522
|
isCheckboxItem: function isCheckboxItem() {
|
|
5523
|
-
return this.item.type ===
|
|
5523
|
+
return this.item.type === 'CHECKBOX_BLOCK';
|
|
5524
5524
|
},
|
|
5525
5525
|
showPreSuffix: function showPreSuffix() {
|
|
5526
5526
|
return function (o) {
|
|
@@ -5542,13 +5542,13 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5542
5542
|
options = ((_value$scoreConfigs = value.scoreConfigs) === null || _value$scoreConfigs === void 0 ? void 0 : _value$scoreConfigs.scoreRules) || [];
|
|
5543
5543
|
}
|
|
5544
5544
|
|
|
5545
|
-
if (value.type ===
|
|
5545
|
+
if (value.type === 'RADIO_BLOCK' || value.type === 'EVALUATE_RADIO_BLOCK') {
|
|
5546
5546
|
var defVal = value.dbValue || value.setting.defaultValue || this.value;
|
|
5547
5547
|
this.handleRadioDef(value, defVal, options);
|
|
5548
5548
|
return;
|
|
5549
5549
|
}
|
|
5550
5550
|
|
|
5551
|
-
if (value.type ===
|
|
5551
|
+
if (value.type === 'CHECKBOX_BLOCK' || value.type === 'EVALUATE_CHECKBOX_BLOCK') {
|
|
5552
5552
|
var _defVal = [];
|
|
5553
5553
|
|
|
5554
5554
|
if (utils_map_default.a.isJSON(value.setting.defaultValue)) {
|
|
@@ -5561,7 +5561,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5561
5561
|
return;
|
|
5562
5562
|
}
|
|
5563
5563
|
|
|
5564
|
-
if (value.type ==
|
|
5564
|
+
if (value.type == 'SELECT' || value.type == 'SEARCH_CASCADE' || value.type === 'EVALUATE_SELECT') {
|
|
5565
5565
|
this.cloneItem = JSON.parse(JSON.stringify(value));
|
|
5566
5566
|
|
|
5567
5567
|
var _options = this.cloneItem.options || [];
|
|
@@ -5581,25 +5581,25 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5581
5581
|
data: function data() {
|
|
5582
5582
|
return {
|
|
5583
5583
|
selectParams: {
|
|
5584
|
-
tableType:
|
|
5584
|
+
tableType: 'TABLE_LIST',
|
|
5585
5585
|
pageSize: 20,
|
|
5586
5586
|
page: 1
|
|
5587
5587
|
},
|
|
5588
5588
|
cascaderParams: {
|
|
5589
|
-
tableType:
|
|
5589
|
+
tableType: 'TABLE_LIST'
|
|
5590
5590
|
},
|
|
5591
5591
|
cloneItem: {},
|
|
5592
|
-
columnName:
|
|
5592
|
+
columnName: '',
|
|
5593
5593
|
// 取值字段
|
|
5594
|
-
showField:
|
|
5594
|
+
showField: '',
|
|
5595
5595
|
// 显示字段
|
|
5596
|
-
curvalue:
|
|
5596
|
+
curvalue: '',
|
|
5597
5597
|
curCheckboxValue: [],
|
|
5598
|
-
othersText:
|
|
5598
|
+
othersText: '',
|
|
5599
5599
|
curOptions: [],
|
|
5600
5600
|
fieldList: [],
|
|
5601
5601
|
buttonList: [],
|
|
5602
|
-
source:
|
|
5602
|
+
source: 'guageChoice',
|
|
5603
5603
|
fetching: false,
|
|
5604
5604
|
previewImages: [],
|
|
5605
5605
|
optionsPreSuffixObj: {}
|
|
@@ -5612,7 +5612,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5612
5612
|
this.curOptions = this.handleOptions(options, item.type);
|
|
5613
5613
|
if (!options.length || !curValue) return; // 测评单选回显
|
|
5614
5614
|
|
|
5615
|
-
if (item.type ===
|
|
5615
|
+
if (item.type === 'EVALUATE_RADIO_BLOCK') {
|
|
5616
5616
|
this.curvalue = curValue;
|
|
5617
5617
|
this.radioChange();
|
|
5618
5618
|
return;
|
|
@@ -5641,7 +5641,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5641
5641
|
|
|
5642
5642
|
if (!preSuffixItem) {
|
|
5643
5643
|
this.othersText = curValue;
|
|
5644
|
-
this.curvalue =
|
|
5644
|
+
this.curvalue = 'other';
|
|
5645
5645
|
}
|
|
5646
5646
|
|
|
5647
5647
|
this.radioChange();
|
|
@@ -5679,7 +5679,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5679
5679
|
|
|
5680
5680
|
if (isCheckbox && hasOther) {
|
|
5681
5681
|
this.othersText = curValue;
|
|
5682
|
-
return
|
|
5682
|
+
return 'other';
|
|
5683
5683
|
}
|
|
5684
5684
|
},
|
|
5685
5685
|
handleCheckboxDef: function handleCheckboxDef(item, curValue, options) {
|
|
@@ -5702,7 +5702,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5702
5702
|
return _context.abrupt("return");
|
|
5703
5703
|
|
|
5704
5704
|
case 3:
|
|
5705
|
-
if (!(item.type ===
|
|
5705
|
+
if (!(item.type === 'EVALUATE_CHECKBOX_BLOCK')) {
|
|
5706
5706
|
_context.next = 7;
|
|
5707
5707
|
break;
|
|
5708
5708
|
}
|
|
@@ -5717,7 +5717,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5717
5717
|
// 普通多选回显 普通选项/其它/前后缀 所以用key标识
|
|
5718
5718
|
resArr = [], i = 0, len = curValue.length;
|
|
5719
5719
|
hasOther = options.some(function (v) {
|
|
5720
|
-
return v.importability || v.key ===
|
|
5720
|
+
return v.importability || v.key === 'other';
|
|
5721
5721
|
});
|
|
5722
5722
|
|
|
5723
5723
|
case 9:
|
|
@@ -5728,14 +5728,14 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5728
5728
|
|
|
5729
5729
|
x = curValue[i];
|
|
5730
5730
|
|
|
5731
|
-
if (!(x ===
|
|
5731
|
+
if (!(x === '其他')) {
|
|
5732
5732
|
_context.next = 16;
|
|
5733
5733
|
break;
|
|
5734
5734
|
}
|
|
5735
5735
|
|
|
5736
5736
|
_this2.othersText = x;
|
|
5737
|
-
_this2.curvalue =
|
|
5738
|
-
!resArr.includes(
|
|
5737
|
+
_this2.curvalue = 'other';
|
|
5738
|
+
!resArr.includes('other') && resArr.push('other');
|
|
5739
5739
|
return _context.abrupt("continue", 22);
|
|
5740
5740
|
|
|
5741
5741
|
case 16:
|
|
@@ -5796,7 +5796,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5796
5796
|
othersText: this.othersText,
|
|
5797
5797
|
optionsPreSuffixObj: this.optionsPreSuffixObj
|
|
5798
5798
|
};
|
|
5799
|
-
this.$emit(
|
|
5799
|
+
this.$emit('radioChange', this.curvalue, this.item, choiceObj);
|
|
5800
5800
|
},
|
|
5801
5801
|
checkboxChange: function checkboxChange() {
|
|
5802
5802
|
this.handleCheckboxOther();
|
|
@@ -5806,8 +5806,8 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5806
5806
|
othersText: this.othersText,
|
|
5807
5807
|
optionsPreSuffixObj: this.optionsPreSuffixObj
|
|
5808
5808
|
};
|
|
5809
|
-
this.curvalue =
|
|
5810
|
-
this.$emit(
|
|
5809
|
+
this.curvalue = 'other';
|
|
5810
|
+
this.$emit('radioChange', 'other', this.item, choiceObj);
|
|
5811
5811
|
},
|
|
5812
5812
|
inputPreSuffixChange: function inputPreSuffixChange(o, i) {
|
|
5813
5813
|
this.curvalue = o.key;
|
|
@@ -5815,7 +5815,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5815
5815
|
othersText: this.othersText,
|
|
5816
5816
|
optionsPreSuffixObj: this.optionsPreSuffixObj
|
|
5817
5817
|
};
|
|
5818
|
-
this.$emit(
|
|
5818
|
+
this.$emit('radioChange', this.curvalue, this.item, choiceObj);
|
|
5819
5819
|
},
|
|
5820
5820
|
inputPreSuffixCheckboxChange: function inputPreSuffixCheckboxChange(o, i) {
|
|
5821
5821
|
var choiceObj = {
|
|
@@ -5828,7 +5828,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5828
5828
|
}
|
|
5829
5829
|
|
|
5830
5830
|
var curCheckboxValue = JSON.parse(JSON.stringify(this.curCheckboxValue));
|
|
5831
|
-
this.$emit(
|
|
5831
|
+
this.$emit('checkboxChange', curCheckboxValue, this.item, choiceObj);
|
|
5832
5832
|
},
|
|
5833
5833
|
inputCheckboxChange: function inputCheckboxChange() {
|
|
5834
5834
|
this.handleCheckboxOther(true);
|
|
@@ -5839,12 +5839,12 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5839
5839
|
optionsPreSuffixObj: this.optionsPreSuffixObj
|
|
5840
5840
|
};
|
|
5841
5841
|
|
|
5842
|
-
if (isOtherInput && !this.curCheckboxValue.includes(
|
|
5843
|
-
this.curCheckboxValue.push(
|
|
5842
|
+
if (isOtherInput && !this.curCheckboxValue.includes('other')) {
|
|
5843
|
+
this.curCheckboxValue.push('other');
|
|
5844
5844
|
}
|
|
5845
5845
|
|
|
5846
5846
|
var curCheckboxValue = JSON.parse(JSON.stringify(this.curCheckboxValue));
|
|
5847
|
-
this.$emit(
|
|
5847
|
+
this.$emit('checkboxChange', curCheckboxValue, this.item, choiceObj);
|
|
5848
5848
|
},
|
|
5849
5849
|
initSelectOptions: function initSelectOptions() {
|
|
5850
5850
|
var _this4 = this;
|
|
@@ -5858,7 +5858,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5858
5858
|
case 0:
|
|
5859
5859
|
// 分享链接的量表用 optionType 1:静态,2:动态,3:动态转静态
|
|
5860
5860
|
_this4$cloneItem = _this4.cloneItem, targetSource = _this4$cloneItem.targetSource, type = _this4$cloneItem.type, _this4$cloneItem$opti = _this4$cloneItem.options, options = _this4$cloneItem$opti === void 0 ? [] : _this4$cloneItem$opti, _this4$cloneItem$opti2 = _this4$cloneItem.optionType, optionType = _this4$cloneItem$opti2 === void 0 ? 1 : _this4$cloneItem$opti2;
|
|
5861
|
-
_this4.showField =
|
|
5861
|
+
_this4.showField = 'label';
|
|
5862
5862
|
|
|
5863
5863
|
if (targetSource !== null && targetSource !== void 0 && targetSource.target_id) {
|
|
5864
5864
|
_context2.next = 4;
|
|
@@ -5868,7 +5868,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5868
5868
|
return _context2.abrupt("return");
|
|
5869
5869
|
|
|
5870
5870
|
case 4:
|
|
5871
|
-
if (!(type ==
|
|
5871
|
+
if (!(type == 'SELECT' && (options.length || optionType == 3))) {
|
|
5872
5872
|
_context2.next = 7;
|
|
5873
5873
|
break;
|
|
5874
5874
|
}
|
|
@@ -5877,7 +5877,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5877
5877
|
return _context2.abrupt("return");
|
|
5878
5878
|
|
|
5879
5879
|
case 7:
|
|
5880
|
-
if (!(type ===
|
|
5880
|
+
if (!(type === 'SELECT')) {
|
|
5881
5881
|
_context2.next = 15;
|
|
5882
5882
|
break;
|
|
5883
5883
|
}
|
|
@@ -5926,10 +5926,10 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5926
5926
|
primaryField = _ref.primaryField,
|
|
5927
5927
|
relationField = _ref.relationField,
|
|
5928
5928
|
showField = _ref.showField;
|
|
5929
|
-
var url =
|
|
5929
|
+
var url = '/tableList/getDetail';
|
|
5930
5930
|
var params = {
|
|
5931
5931
|
tableId: target_id,
|
|
5932
|
-
tableType:
|
|
5932
|
+
tableType: 'TABLE_LIST'
|
|
5933
5933
|
};
|
|
5934
5934
|
this.columnName = values;
|
|
5935
5935
|
this.showField = showField || values;
|
|
@@ -5946,17 +5946,17 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5946
5946
|
buttonList = _data$map$buttonList === void 0 ? [] : _data$map$buttonList;
|
|
5947
5947
|
var type = _this5.cloneItem.type;
|
|
5948
5948
|
fieldList.forEach(function (item) {
|
|
5949
|
-
item.attrType = item.settingObj && item.settingObj.attr ||
|
|
5949
|
+
item.attrType = item.settingObj && item.settingObj.attr || '';
|
|
5950
5950
|
});
|
|
5951
5951
|
_this5.fieldList = fieldList;
|
|
5952
5952
|
_this5.buttonList = buttonList;
|
|
5953
5953
|
|
|
5954
|
-
if (type ==
|
|
5954
|
+
if (type == 'SELECT') {
|
|
5955
5955
|
Object.assign(_this5.selectParams, {
|
|
5956
5956
|
autograph: detailAutograph,
|
|
5957
5957
|
tableId: tableId
|
|
5958
5958
|
});
|
|
5959
|
-
} else if (type ==
|
|
5959
|
+
} else if (type == 'SEARCH_CASCADE') {
|
|
5960
5960
|
Object.assign(_this5.cascaderParams, {
|
|
5961
5961
|
autograph: detailAutograph,
|
|
5962
5962
|
tableId: tableId,
|
|
@@ -5977,7 +5977,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5977
5977
|
|
|
5978
5978
|
var values = _ref3.values,
|
|
5979
5979
|
keyword = _ref3.keyword;
|
|
5980
|
-
var url =
|
|
5980
|
+
var url = '/tableReader/getTableData';
|
|
5981
5981
|
delete this.selectParams.keyword;
|
|
5982
5982
|
|
|
5983
5983
|
if (keyword) {
|
|
@@ -5996,7 +5996,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
5996
5996
|
});
|
|
5997
5997
|
});
|
|
5998
5998
|
|
|
5999
|
-
var optionsList = _this6.uniqArrObj(options,
|
|
5999
|
+
var optionsList = _this6.uniqArrObj(options, 'value');
|
|
6000
6000
|
|
|
6001
6001
|
optionsList = _this6.formatData({
|
|
6002
6002
|
tableList: optionsList,
|
|
@@ -6013,7 +6013,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
6013
6013
|
var _this7 = this;
|
|
6014
6014
|
|
|
6015
6015
|
var values = _ref5.values;
|
|
6016
|
-
var url =
|
|
6016
|
+
var url = '/tableReader/getTableData';
|
|
6017
6017
|
return external_axios_default.a.post(url, this.$qs.stringify(this.cascaderParams)).then(function (_ref6) {
|
|
6018
6018
|
var data = _ref6.data;
|
|
6019
6019
|
var rows = data.map.rows;
|
|
@@ -6050,7 +6050,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
6050
6050
|
uniqArrObj: function uniqArrObj(arr, name) {
|
|
6051
6051
|
var obj = {};
|
|
6052
6052
|
return arr.reduce(function (cur, next) {
|
|
6053
|
-
obj[next[name]] ?
|
|
6053
|
+
obj[next[name]] ? '' : obj[next[name]] = true && cur.push(next);
|
|
6054
6054
|
return cur;
|
|
6055
6055
|
}, []);
|
|
6056
6056
|
},
|
|
@@ -6095,7 +6095,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
6095
6095
|
var _this10 = this;
|
|
6096
6096
|
|
|
6097
6097
|
var res = {
|
|
6098
|
-
value:
|
|
6098
|
+
value: '',
|
|
6099
6099
|
list: []
|
|
6100
6100
|
};
|
|
6101
6101
|
var matchItem;
|
|
@@ -6127,7 +6127,7 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
6127
6127
|
}
|
|
6128
6128
|
}
|
|
6129
6129
|
|
|
6130
|
-
this.$emit(
|
|
6130
|
+
this.$emit('change', res);
|
|
6131
6131
|
},
|
|
6132
6132
|
filterOption: function filterOption(input, option) {
|
|
6133
6133
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -6155,8 +6155,8 @@ var r_choicevue_type_script_lang_js_components;
|
|
|
6155
6155
|
});
|
|
6156
6156
|
// CONCATENATED MODULE: ./packages/scale-view/formitem/r-choice.vue?vue&type=script&lang=js&
|
|
6157
6157
|
/* harmony default export */ var formitem_r_choicevue_type_script_lang_js_ = (r_choicevue_type_script_lang_js_);
|
|
6158
|
-
// EXTERNAL MODULE: ./packages/scale-view/formitem/r-choice.vue?vue&type=style&index=0&id=
|
|
6159
|
-
var
|
|
6158
|
+
// EXTERNAL MODULE: ./packages/scale-view/formitem/r-choice.vue?vue&type=style&index=0&id=3e438d57&lang=less&scoped=true&
|
|
6159
|
+
var r_choicevue_type_style_index_0_id_3e438d57_lang_less_scoped_true_ = __webpack_require__("98b6");
|
|
6160
6160
|
|
|
6161
6161
|
// CONCATENATED MODULE: ./packages/scale-view/formitem/r-choice.vue
|
|
6162
6162
|
|
|
@@ -6169,17 +6169,17 @@ var r_choicevue_type_style_index_0_id_6c93557f_lang_less_scoped_true_ = __webpac
|
|
|
6169
6169
|
|
|
6170
6170
|
var r_choice_component = Object(componentNormalizer["a" /* default */])(
|
|
6171
6171
|
formitem_r_choicevue_type_script_lang_js_,
|
|
6172
|
-
|
|
6173
|
-
|
|
6172
|
+
r_choicevue_type_template_id_3e438d57_scoped_true_render,
|
|
6173
|
+
r_choicevue_type_template_id_3e438d57_scoped_true_staticRenderFns,
|
|
6174
6174
|
false,
|
|
6175
6175
|
null,
|
|
6176
|
-
"
|
|
6176
|
+
"3e438d57",
|
|
6177
6177
|
null
|
|
6178
6178
|
|
|
6179
6179
|
)
|
|
6180
6180
|
|
|
6181
6181
|
/* harmony default export */ var r_choice = (r_choice_component.exports);
|
|
6182
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6182
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-input.vue?vue&type=template&id=383ae00b&scoped=true&
|
|
6183
6183
|
var r_inputvue_type_template_id_383ae00b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"my-input"},[(_vm.eleType == 'INPUT' || _vm.eleType == 'EVALUATE_INPUT')?_c('a-textarea',{staticStyle:{"resize":"none"},attrs:{"disabled":_vm.isLock,"placeholder":_vm.defaultPlaceHolder,"autoSize":_vm.setTextareaRow,"autocomplete":"off"},on:{"input":_vm.changeTextarea,"keydown":_vm.keydown},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}}):_vm._e(),(_vm.eleType == 'ID_CARD')?_c('a-input',{attrs:{"type":_vm.type,"disabled":_vm.isLock,"placeholder":"请输入"},on:{"keydown":_vm.keydown},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}}):_vm._e(),(_vm.eleType == 'MOBILE')?_c('a-input',{attrs:{"type":_vm.type,"disabled":_vm.isLock,"placeholder":"请输入"},on:{"keydown":_vm.keydown},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}}):_vm._e()],1)}
|
|
6184
6184
|
var r_inputvue_type_template_id_383ae00b_scoped_true_staticRenderFns = []
|
|
6185
6185
|
|
|
@@ -6288,7 +6288,7 @@ var r_input_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6288
6288
|
)
|
|
6289
6289
|
|
|
6290
6290
|
/* harmony default export */ var r_input = (r_input_component.exports);
|
|
6291
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6291
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-address.vue?vue&type=template&id=58c85e0e&scoped=true&
|
|
6292
6292
|
var r_addressvue_type_template_id_58c85e0e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"m-address"},[_c('div',{staticClass:"field-select"},[_c('div',{staticClass:"field-row"},[(_vm.addressType.includes('province'))?_c('a-select',{staticClass:"field-cell",attrs:{"labelInValue":"","showSearch":"","filterOption":_vm.filterOption,"disabled":_vm.isLock,"getPopupContainer":_vm.getPopupContainer},on:{"change":_vm.handleProvince},model:{value:(_vm.provinceValue),callback:function ($$v) {_vm.provinceValue=$$v},expression:"provinceValue"}},_vm._l((_vm.province),function(item){return _c('a-select-option',{key:item.code,attrs:{"value":item.code}},[_vm._v(_vm._s(item.name))])}),1):_vm._e(),(_vm.addressType.includes('city'))?_c('a-select',{staticClass:"field-cell",attrs:{"labelInValue":"","showSearch":"","disabled":_vm.isLock,"filterOption":_vm.filterOption,"getPopupContainer":_vm.getPopupContainer},on:{"change":_vm.handleCity},model:{value:(_vm.cityValue),callback:function ($$v) {_vm.cityValue=$$v},expression:"cityValue"}},_vm._l((_vm.city),function(item){return _c('a-select-option',{key:item.code,attrs:{"value":item.code}},[_vm._v(_vm._s(item.name))])}),1):_vm._e(),(_vm.addressType.includes('district'))?_c('a-select',{staticClass:"field-cell",attrs:{"labelInValue":"","showSearch":"","disabled":_vm.isLock,"filterOption":_vm.filterOption,"getPopupContainer":_vm.getPopupContainer},on:{"change":_vm.handleArea},model:{value:(_vm.areaValue),callback:function ($$v) {_vm.areaValue=$$v},expression:"areaValue"}},_vm._l((_vm.area),function(item){return _c('a-select-option',{key:item.code,attrs:{"value":item.code}},[_vm._v(_vm._s(item.name))])}),1):_vm._e()],1)]),(_vm.addressType.includes('address'))?_c('div',{staticClass:"field-control"},[_c('a-input',{attrs:{"disabled":_vm.isLock,"placeholder":"请输入"},on:{"change":_vm.handleAddress},model:{value:(_vm.addressValue),callback:function ($$v) {_vm.addressValue=$$v},expression:"addressValue"}})],1):_vm._e()])}
|
|
6293
6293
|
var r_addressvue_type_template_id_58c85e0e_scoped_true_staticRenderFns = []
|
|
6294
6294
|
|
|
@@ -10534,7 +10534,7 @@ var r_address_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10534
10534
|
)
|
|
10535
10535
|
|
|
10536
10536
|
/* harmony default export */ var r_address = (r_address_component.exports);
|
|
10537
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10537
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-upload.vue?vue&type=template&id=8e272e76&scoped=true&
|
|
10538
10538
|
var r_uploadvue_type_template_id_8e272e76_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"r-upload"},[(_vm.upType == 'UPFILE')?_c('div',[_c('a-upload-dragger',{attrs:{"name":"file","multiple":true,"defaultFileList":_vm.defaultFileList,"action":_vm.uploadFileUrl,"disabled":_vm.isLock},on:{"change":_vm.handleFileChange}},[_c('p',{staticClass:"dragger-upload-text"},[_c('a-icon',{staticClass:"m-icon",attrs:{"type":"plus"}}),_vm._v("请点击文件上传,单个文件50M以内。 ")],1)])],1):_vm._e(),(_vm.upType == 'UPPICTURE')?_c('div',[_c('a-upload',{attrs:{"list-type":"picture-card","accept":"image/*","method":"post","defaultFileList":_vm.defaultFileList,"action":_vm.uploadPictureUrl,"before-upload":_vm.beforeUpload,"disabled":_vm.isLock},on:{"preview":_vm.handlePreview,"change":_vm.handlePictureChange}},[(_vm.fileList.length < _vm.limitPic)?_c('div',{staticClass:"upload-img-wrap"},[_c('a-icon',{attrs:{"type":"camera"}}),_c('p',[_vm._v("添加图片")])],1):_vm._e()]),_c('a-modal',{attrs:{"visible":_vm.previewVisible,"footer":null,"cancelText":'取消',"okText":'确定'},on:{"cancel":_vm.handleCancel}},[_c('img',{staticStyle:{"width":"100%"},attrs:{"alt":"example","src":_vm.previewImage}})])],1):_vm._e()])}
|
|
10539
10539
|
var r_uploadvue_type_template_id_8e272e76_scoped_true_staticRenderFns = []
|
|
10540
10540
|
|
|
@@ -10806,7 +10806,7 @@ var r_upload_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10806
10806
|
)
|
|
10807
10807
|
|
|
10808
10808
|
/* harmony default export */ var r_upload = (r_upload_component.exports);
|
|
10809
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10809
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-prompt.vue?vue&type=template&id=532b5798&scoped=true&
|
|
10810
10810
|
var r_promptvue_type_template_id_532b5798_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"prompt-message",class:_vm.className},[(_vm.options.promptType === 'strong')?_c('a-icon',{staticClass:"prompt-icon",attrs:{"type":"exclamation-circle"}}):_vm._e(),_c('div',{staticClass:"prompt-message-content "},[_vm._v(" "+_vm._s(_vm.options.promptMsg || "")+" ")])],1)}
|
|
10811
10811
|
var r_promptvue_type_template_id_532b5798_scoped_true_staticRenderFns = []
|
|
10812
10812
|
|
|
@@ -10865,7 +10865,7 @@ var r_prompt_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10865
10865
|
|
|
10866
10866
|
|
|
10867
10867
|
|
|
10868
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10868
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/map/src/popup-map.vue?vue&type=template&id=21504265&scoped=true&
|
|
10869
10869
|
var popup_mapvue_type_template_id_21504265_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{staticClass:"map-modal",attrs:{"title":"地图","bodyStyle":{ height: '800px' },"visible":_vm.calculateVisible,"keyboard":false,"maskClosable":false,"footer":null,"width":800},on:{"cancel":_vm.handleCancel}},[_c('c-map',_vm._g(_vm._b({},'c-map',_vm.$attrs,false),_vm.$listeners))],1)}
|
|
10870
10870
|
var popup_mapvue_type_template_id_21504265_scoped_true_staticRenderFns = []
|
|
10871
10871
|
|
|
@@ -10947,14 +10947,14 @@ var popup_map_component = Object(componentNormalizer["a" /* default */])(
|
|
|
10947
10947
|
// EXTERNAL MODULE: ./packages/select-label/select-label.vue + 4 modules
|
|
10948
10948
|
var select_label = __webpack_require__("1b4e");
|
|
10949
10949
|
|
|
10950
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10950
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/chunk-upload/vod-chunk-upload.vue?vue&type=template&id=8a93562e&scoped=true&
|
|
10951
10951
|
var vod_chunk_uploadvue_type_template_id_8a93562e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"upload"},[(!_vm.isDetail)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShowBtn),expression:"isShowBtn"}],staticClass:"chunk-uploader-btn",class:{ 'disable-upload': _vm.isDisabled },on:{"click":_vm.handleBtnOnClick}},[_c('div',{staticClass:"chunk-btn-content"},[_c('div',{staticClass:"c-uploader-btn"},[(_vm.source == 'guage')?[_c('img',{staticClass:"guage-img",attrs:{"src":__webpack_require__("1c04"),"alt":""}}),_vm._m(0)]:[_c('img',{staticClass:"guage-img",attrs:{"src":__webpack_require__("1c04"),"alt":""}}),_vm._m(1)]],2)])]):_vm._e(),[_c('draggable',{staticClass:"drag-content",attrs:{"animation":"150","disabled":_vm.isDisabled,"options":_vm.draggableOptions},on:{"update":_vm.draggableUpdate},model:{value:(_vm.fileList),callback:function ($$v) {_vm.fileList=$$v},expression:"fileList"}},_vm._l((_vm.fileList),function(item,index){return _c('div',{key:index,staticClass:"vod-wrap uploader-preview-wrap"},[(item.status === 'uploading')?_vm._t("default",function(){return [_c('div',{staticClass:"vod-def-bg vod-uploading"},[_c('div',{staticClass:"uploading-mask",style:({ height: _vm.maskHeight(item) })},[_c('span',[_vm._v(_vm._s(_vm.showPercent(item.percent))+"%")])])])]}):(item.status === 'done')?_vm._t("default",function(){return [_c('div',{staticClass:"vod-def-bg vod-done"},[_c('img',{staticClass:"vod-cover-img",attrs:{"src":_vm.getvideoCover(item)}}),_c('div',{staticClass:"tooltip-wrap",class:{ 'is-new': item.isNew }},[_c('img',{staticClass:"upload-img",attrs:{"src":__webpack_require__("d284"),"alt":""}}),_vm._v(" 上传成功 ")]),_c('div',{staticClass:"icon-wrap"},[_c('a-icon',{staticClass:"icon-play theme_filled",attrs:{"theme":"filled","type":"play-circle"},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.palyerVod(item, index)}}}),_c('a-icon',{staticClass:"icon-play theme_outlined",attrs:{"type":"play-circle"},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.palyerVod(item, index)}}})],1)])]}):(item.status === 'error')?_vm._t("default",function(){return [_c('div',{staticClass:"vod-def-bg vod-error"},[_c('img',{staticClass:"vod-cover-img",attrs:{"src":item.thumbUrl}}),_c('div',{staticClass:"tooltip-wrap error-wrap"},[_c('span',[_vm._v(" "+_vm._s(item.message ? item.message : '上传失败,继续上传?')+" ")]),_c('a-button',{attrs:{"size":"small"},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.restartUpload(item)}}},[_vm._v(" 确定 ")])],1)])]}):_vm._e(),(['done', 'error'].includes(item.status) && !_vm.isDisabled && !_vm.isDetail)?_c('div',{staticClass:"uploader-preview-delete",on:{"click":function($event){$event.stopPropagation();return _vm.handleDelFileList(index)}}},[_c('a-icon',{staticClass:"pre-delete",attrs:{"type":"minus-circle","theme":"filled"}})],1):_vm._e()],2)}),0)],(_vm.videoVisible)?_c('video-modal',{attrs:{"visible":_vm.videoVisible,"playerOptions":_vm.playerOptions},on:{"update:visible":function($event){_vm.videoVisible=$event}}}):_vm._e(),_c('vodUploadModal',_vm._b({attrs:{"modalTitle":_vm.formData.name,"max_size":_vm.max_size,"maxLength":_vm.maxlength,"propsCategoryMap":_vm.propsDefaultAccept,"defaultList":_vm.fileList},on:{"getSumbitList":_vm.getSumbitList},model:{value:(_vm.chunkUploadVisible),callback:function ($$v) {_vm.chunkUploadVisible=$$v},expression:"chunkUploadVisible"}},'vodUploadModal',_vm.$attrs,false))],2)}
|
|
10952
10952
|
var vod_chunk_uploadvue_type_template_id_8a93562e_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"uploader-text"},[_c('p',[_vm._v("点击上传")]),_c('span',{staticClass:"guage-text"},[_vm._v("上传视频(不超过50M)")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"uploader-text"},[_c('p',[_vm._v("上传视频")])])}]
|
|
10953
10953
|
|
|
10954
10954
|
|
|
10955
10955
|
// CONCATENATED MODULE: ./packages/upload/chunk-upload/vod-chunk-upload.vue?vue&type=template&id=8a93562e&scoped=true&
|
|
10956
10956
|
|
|
10957
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10957
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/component/player-vod/video-modal.vue?vue&type=template&id=05a5d41e&scoped=true&
|
|
10958
10958
|
var video_modalvue_type_template_id_05a5d41e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{attrs:{"visible":_vm.previewVisible,"footer":null,"wrapClassName":"image-modal","width":"65vw","bodyStyle":{
|
|
10959
10959
|
height: '600px',
|
|
10960
10960
|
overflowY: 'auto'
|
|
@@ -10971,14 +10971,14 @@ var carousel_style_ = __webpack_require__("7442");
|
|
|
10971
10971
|
var carousel_ = __webpack_require__("34fc");
|
|
10972
10972
|
var carousel_default = /*#__PURE__*/__webpack_require__.n(carousel_);
|
|
10973
10973
|
|
|
10974
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10974
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/component/player-vod/index.vue?vue&type=template&id=1bf8472c&scoped=true&
|
|
10975
10975
|
var player_vodvue_type_template_id_1bf8472c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"video-container cp",on:{"contextmenu":function($event){$event.preventDefault();}}},[_c('player',{attrs:{"options":_vm.playerOptions}})],1)}
|
|
10976
10976
|
var player_vodvue_type_template_id_1bf8472c_scoped_true_staticRenderFns = []
|
|
10977
10977
|
|
|
10978
10978
|
|
|
10979
10979
|
// CONCATENATED MODULE: ./src/component/player-vod/index.vue?vue&type=template&id=1bf8472c&scoped=true&
|
|
10980
10980
|
|
|
10981
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
10981
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/component/player-vod/player.vue?vue&type=template&id=76757f5e&
|
|
10982
10982
|
var playervue_type_template_id_76757f5e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('video',{ref:"video",staticClass:"video-js vjs-default-skin vjs-big-play-centered",attrs:{"controls":"","webkit-playsinline":"true","playsinline":""},on:{"contextmenu":function($event){$event.preventDefault();}}})}
|
|
10983
10983
|
var playervue_type_template_id_76757f5e_staticRenderFns = []
|
|
10984
10984
|
|
|
@@ -11353,7 +11353,7 @@ var video_modal_component = Object(componentNormalizer["a" /* default */])(
|
|
|
11353
11353
|
)
|
|
11354
11354
|
|
|
11355
11355
|
/* harmony default export */ var video_modal = (video_modal_component.exports);
|
|
11356
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
11356
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/chunk-upload/vod-upload-modal.vue?vue&type=template&id=d40700ea&scoped=true&
|
|
11357
11357
|
var vod_upload_modalvue_type_template_id_d40700ea_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.chunkUploadVisible)?_c('a-modal',{staticClass:"upload-modal upload-modal1 standard-modal standard-modal-white",attrs:{"destroyOnClose":"","bodyStyle":{
|
|
11358
11358
|
height: '644px',
|
|
11359
11359
|
overflowY: 'auto',
|
|
@@ -11364,7 +11364,7 @@ var vod_upload_modalvue_type_template_id_d40700ea_scoped_true_staticRenderFns =
|
|
|
11364
11364
|
|
|
11365
11365
|
// CONCATENATED MODULE: ./packages/upload/chunk-upload/vod-upload-modal.vue?vue&type=template&id=d40700ea&scoped=true&
|
|
11366
11366
|
|
|
11367
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
11367
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/chunk-upload/chunk-upload-new.vue?vue&type=template&id=08a78540&scoped=true&
|
|
11368
11368
|
var chunk_upload_newvue_type_template_id_08a78540_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"chunk-upload-container"},[_c('uploader',{ref:"uploader",staticClass:"uploader-app",attrs:{"options":_vm.options,"autoStart":_vm.autoStart},on:{"file-added":_vm.onFileAdded,"file-success":_vm.onFileSuccess,"file-progress":_vm.onFileProgress,"file-error":_vm.onFileError}},[_c('uploader-unsupport'),_c('uploader-drop',[_c('div',{staticClass:"drap-container dragger-btn",on:{"click":_vm.hanldeDraggerBtnClick}},[_c('a-icon',{attrs:{"type":"folder-add"}}),_c('p',[_vm._v("点击或将文件拖拽到这里上传")])],1)]),_c('uploader-list',{scopedSlots:_vm._u([{key:"default",fn:function(props){return _c('div',{staticClass:"file-list-conatiner"},[_c('ul',{staticClass:"file-list"},_vm._l((props.fileList),function(file){return _c('li',{key:file.id},[_c('uploader-file',{ref:"files",refInFor:true,class:'file_' + file.id,attrs:{"file":file,"list":true},scopedSlots:_vm._u([{key:"default",fn:function(props){return _c('div',{staticClass:"c-file-container",class:{
|
|
11369
11369
|
'file-boder-bottom': ['complete', 'failed'].includes(
|
|
11370
11370
|
_vm.getUploadShowStatus(file, 'status')
|
|
@@ -13062,7 +13062,7 @@ var vod_chunk_upload_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13062
13062
|
}
|
|
13063
13063
|
}
|
|
13064
13064
|
});
|
|
13065
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13065
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/evaluatePage.vue?vue&type=template&id=7bb80553&scoped=true&
|
|
13066
13066
|
var evaluatePagevue_type_template_id_7bb80553_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"evaluate-page"},[_c('div',{staticClass:"evaluate-container"},[(_vm.evaluateResultSetting.evaluateName)?_c('h4',{staticClass:"evaluate-name"},[_vm._v(" "+_vm._s(_vm.evaluateResultSetting.evaluateName))]):_vm._e(),(_vm.evaluateResultSetting.evaluateExplain)?_c('div',{staticClass:"evaluate-explain"},[_c('div',[_vm._v(" "+_vm._s(_vm.evaluateResultSetting.evaluateExplain)+" ")])]):_vm._e(),_c('ul',{staticClass:"evaluate-score"},[_c('li',[_c('div',[_vm._v(_vm._s(_vm.totalLen))]),_c('span',[_vm._v("测评总题")])]),_c('li',[_c('div',[_vm._v(_vm._s(_vm.maxScore))]),_c('span',[_vm._v("测评总分")])]),(_vm.getEvaluateTime)?_c('li',[_c('div',[_vm._v(_vm._s(_vm.getEvaluateTime))]),_c('span',[_vm._v("测试时间(分钟)")])]):_vm._e()]),(_vm.showRange)?_c('div',{staticClass:"evaluate-time-range"},[_vm._v(" "+_vm._s(_vm.timeRange)+" ")]):_vm._e(),_c('a-button',{staticClass:"evaluate-btn",attrs:{"type":"primary","disabled":_vm.disabledEvaluate || _vm.banStart},on:{"click":_vm.writeGuage}},[_vm._v(" "+_vm._s(_vm.getEvaluateText)+" "),(!_vm.isTimeOut && _vm.countdownStr)?[_vm._v("("+_vm._s(_vm.countdownStr)+")")]:_vm._e()],2)],1)])}
|
|
13067
13067
|
var evaluatePagevue_type_template_id_7bb80553_scoped_true_staticRenderFns = []
|
|
13068
13068
|
|
|
@@ -13365,7 +13365,7 @@ var evaluatePage_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13365
13365
|
)
|
|
13366
13366
|
|
|
13367
13367
|
/* harmony default export */ var evaluatePage = (evaluatePage_component.exports);
|
|
13368
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13368
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/evaluateCountdown.vue?vue&type=template&id=15bc47d0&scoped=true&
|
|
13369
13369
|
var evaluateCountdownvue_type_template_id_15bc47d0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"evaluateCountdown",class:{ 'evaluateCountdown-hasTime': _vm.showEvaluateCountdown }},[(_vm.showEvaluateCountdown)?_c('div',{staticClass:"countdown",class:{ 'countdown-red': _vm.countdownRed }},[_c('span',[_vm._v(_vm._s(_vm.countdownStr))]),_c('svg-icon',{attrs:{"icon-class":"zhongtai-zujianliebiao-gongzuoshijian"}})],1):_vm._e(),_c('div',{staticClass:"answered-wrap"},[_vm._v(" 答题情况: "+_vm._s(_vm.setAnswered)+"/"),_c('span',[_vm._v(_vm._s(_vm.totalLen))])])])}
|
|
13370
13370
|
var evaluateCountdownvue_type_template_id_15bc47d0_scoped_true_staticRenderFns = []
|
|
13371
13371
|
|
|
@@ -13499,7 +13499,7 @@ var evaluateCountdown_component = Object(componentNormalizer["a" /* default */])
|
|
|
13499
13499
|
)
|
|
13500
13500
|
|
|
13501
13501
|
/* harmony default export */ var evaluateCountdown = (evaluateCountdown_component.exports);
|
|
13502
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13502
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/answerParse.vue?vue&type=template&id=00cdab3d&scoped=true&
|
|
13503
13503
|
var answerParsevue_type_template_id_00cdab3d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"answerParse",class:{ 'answerParse-success': _vm.answerSuccess }},[_c('div',{staticClass:"answer-res-wrap"},[_c('div',{staticClass:"answer-res"},[_c('svg-icon',{attrs:{"iconClass":_vm.answerIcon}}),_vm._v(" "+_vm._s(_vm.answerResText)+" ")],1),(_vm.answerSuccess)?_c('div',[_vm._v(" "+_vm._s(_vm.scoreText)+"得分:"+_vm._s(_vm.questionScore)+"分 ")]):_vm._e()]),(_vm.correctAnswer)?_c('div',{staticClass:"correct-answer"},[_c('p',[_vm._v("正确答案:")]),_c('span',[_vm._v(_vm._s(_vm.correctAnswer))])]):_vm._e(),_c('div',{staticClass:"answer-key"},[_c('p',[_vm._v("答案解析:")]),_c('span',[_vm._v(_vm._s(_vm.answerKeyText))])])])}
|
|
13504
13504
|
var answerParsevue_type_template_id_00cdab3d_scoped_true_staticRenderFns = []
|
|
13505
13505
|
|
|
@@ -13609,7 +13609,7 @@ var answerParse_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13609
13609
|
)
|
|
13610
13610
|
|
|
13611
13611
|
/* harmony default export */ var answerParse = (answerParse_component.exports);
|
|
13612
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13612
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/NoData.vue?vue&type=template&id=fa98eabe&scoped=true&
|
|
13613
13613
|
var NoDatavue_type_template_id_fa98eabe_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"no-data-tip NoData-page"},[(_vm.showImg)?_c('img',{attrs:{"src":__webpack_require__("3a88")("./" + _vm.noDataImg + ".png"),"alt":""}}):_vm._e(),_c('p',[_vm._v(_vm._s(_vm.$t(_vm.noDataTip)))]),(_vm.handleDesc)?_c('span',[_vm._v(" "+_vm._s(_vm.handleDesc))]):_vm._e()])}
|
|
13614
13614
|
var NoDatavue_type_template_id_fa98eabe_scoped_true_staticRenderFns = []
|
|
13615
13615
|
|
|
@@ -13719,6 +13719,7 @@ var NoData_component = Object(componentNormalizer["a" /* default */])(
|
|
|
13719
13719
|
|
|
13720
13720
|
|
|
13721
13721
|
|
|
13722
|
+
|
|
13722
13723
|
|
|
13723
13724
|
|
|
13724
13725
|
var scaleViewvue_type_script_lang_js_components;
|
|
@@ -13761,14 +13762,14 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13761
13762
|
|
|
13762
13763
|
|
|
13763
13764
|
/* harmony default export */ var scaleViewvue_type_script_lang_js_ = (Object(create["a" /* default */])({
|
|
13764
|
-
name:
|
|
13765
|
+
name: 'scale-view',
|
|
13765
13766
|
mixins: [judgeTypes, NoData],
|
|
13766
13767
|
props: {
|
|
13767
13768
|
ids: {
|
|
13768
13769
|
type: Object,
|
|
13769
13770
|
default: function _default() {
|
|
13770
13771
|
return {
|
|
13771
|
-
guage_id:
|
|
13772
|
+
guage_id: '',
|
|
13772
13773
|
db_id: undefined
|
|
13773
13774
|
};
|
|
13774
13775
|
}
|
|
@@ -13795,7 +13796,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13795
13796
|
},
|
|
13796
13797
|
source: {
|
|
13797
13798
|
type: String,
|
|
13798
|
-
default:
|
|
13799
|
+
default: ''
|
|
13799
13800
|
},
|
|
13800
13801
|
isLock: {
|
|
13801
13802
|
type: Boolean,
|
|
@@ -13803,7 +13804,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13803
13804
|
},
|
|
13804
13805
|
type: {
|
|
13805
13806
|
type: String,
|
|
13806
|
-
default:
|
|
13807
|
+
default: ''
|
|
13807
13808
|
},
|
|
13808
13809
|
styleSetting: {
|
|
13809
13810
|
type: Object,
|
|
@@ -13824,7 +13825,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13824
13825
|
},
|
|
13825
13826
|
openType: {
|
|
13826
13827
|
type: String,
|
|
13827
|
-
default:
|
|
13828
|
+
default: ''
|
|
13828
13829
|
},
|
|
13829
13830
|
scaleApiConfig: {
|
|
13830
13831
|
type: Object,
|
|
@@ -13862,7 +13863,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13862
13863
|
return function (item) {
|
|
13863
13864
|
var res = item.required; // 量表未登录时 判断 url中是否有 formBoldOpen
|
|
13864
13865
|
|
|
13865
|
-
if (!this.styleSetting || !Object.keys(this.styleSetting).length || !(
|
|
13866
|
+
if (!this.styleSetting || !Object.keys(this.styleSetting).length || !('formBoldOpen' in this.styleSetting)) {
|
|
13866
13867
|
return res && this.queryformBoldOpen;
|
|
13867
13868
|
}
|
|
13868
13869
|
|
|
@@ -13871,11 +13872,11 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13871
13872
|
},
|
|
13872
13873
|
scaleStyle: function scaleStyle() {
|
|
13873
13874
|
var fontSize = this.fontSize;
|
|
13874
|
-
if (!fontSize || fontSize ===
|
|
13875
|
+
if (!fontSize || fontSize === 'S') return null;
|
|
13875
13876
|
var keyValue = {
|
|
13876
|
-
L:
|
|
13877
|
-
M:
|
|
13878
|
-
XS:
|
|
13877
|
+
L: 'large',
|
|
13878
|
+
M: 'medium',
|
|
13879
|
+
XS: 'extrasmall'
|
|
13879
13880
|
};
|
|
13880
13881
|
fontSize = keyValue[fontSize];
|
|
13881
13882
|
var scale = fontSize && this.fontSizeObj[fontSize] || 1;
|
|
@@ -13888,7 +13889,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13888
13889
|
};
|
|
13889
13890
|
},
|
|
13890
13891
|
handlePageClass: function handlePageClass() {
|
|
13891
|
-
if (this.type ==
|
|
13892
|
+
if (this.type == 'customList' && !this.noBtn) return false;
|
|
13892
13893
|
if (!this.noBtn && !this.hideBtn) return false;
|
|
13893
13894
|
return true;
|
|
13894
13895
|
},
|
|
@@ -13926,7 +13927,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13926
13927
|
hasScore: function hasScore() {
|
|
13927
13928
|
var config = this.config;
|
|
13928
13929
|
if (!config || !Object.keys(config).length) return false;
|
|
13929
|
-
if (
|
|
13930
|
+
if ('totalScore' in config) return true;
|
|
13930
13931
|
return false;
|
|
13931
13932
|
},
|
|
13932
13933
|
// 预览按钮打开的量表页面
|
|
@@ -13939,7 +13940,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13939
13940
|
hasEvaluateSetting: function hasEvaluateSetting() {
|
|
13940
13941
|
var config = this.config;
|
|
13941
13942
|
if (!config || !Object.keys(config).length) return false;
|
|
13942
|
-
if (
|
|
13943
|
+
if ('evaluateResult' in config && config.evaluateResult) return true;
|
|
13943
13944
|
return false;
|
|
13944
13945
|
},
|
|
13945
13946
|
getTimeValue: function getTimeValue() {
|
|
@@ -13977,7 +13978,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
13977
13978
|
// url中是否有默认值
|
|
13978
13979
|
hasDefault: function hasDefault() {
|
|
13979
13980
|
var hash = window.location.hash;
|
|
13980
|
-
var defaultVariable = [
|
|
13981
|
+
var defaultVariable = ['evaname', 'evadesc', 'evast', 'evadur', 'evaan'];
|
|
13981
13982
|
var hasDefault = defaultVariable.find(function (item) {
|
|
13982
13983
|
return hash.includes(item);
|
|
13983
13984
|
});
|
|
@@ -14004,8 +14005,8 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14004
14005
|
showEvaluateLabel: function showEvaluateLabel() {
|
|
14005
14006
|
return function (item) {
|
|
14006
14007
|
var obj = {
|
|
14007
|
-
EVALUATE_RADIO_BLOCK:
|
|
14008
|
-
EVALUATE_CHECKBOX_BLOCK:
|
|
14008
|
+
EVALUATE_RADIO_BLOCK: '单选题',
|
|
14009
|
+
EVALUATE_CHECKBOX_BLOCK: '多选题'
|
|
14009
14010
|
};
|
|
14010
14011
|
return obj[item.type];
|
|
14011
14012
|
};
|
|
@@ -14020,19 +14021,19 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14020
14021
|
evaluateStartTime = _ref2.evaluateStartTime,
|
|
14021
14022
|
evaluateTime = _ref2.evaluateTime;
|
|
14022
14023
|
|
|
14023
|
-
var arr = [
|
|
14024
|
+
var arr = ['EVALUATE_RADIO_BLOCK', 'EVALUATE_CHECKBOX_BLOCK', 'EVALUATE_SELECT', 'EVALUATE_INPUT'];
|
|
14024
14025
|
var maxScore = (item === null || item === void 0 ? void 0 : item.scoreConfigs) || 0;
|
|
14025
14026
|
var isShow = evaluateAnswer && this.isFinished && arr.includes(item.type) && maxScore;
|
|
14026
14027
|
if (!evaluateStartTime || !evaluateTime || checkAnswerMode && checkAnswerMode == 1) return isShow;
|
|
14027
14028
|
if (!vexutils_default.a.isValidDate(new Date(evaluateStartTime))) return isShow; // 答案解析时间 考试时间结束后
|
|
14028
14029
|
|
|
14029
|
-
var endTime = external_moment_default()(evaluateStartTime).add(evaluateTime,
|
|
14030
|
-
var isRang = endTime.diff(external_moment_default()(),
|
|
14030
|
+
var endTime = external_moment_default()(evaluateStartTime).add(evaluateTime, 'minutes');
|
|
14031
|
+
var isRang = endTime.diff(external_moment_default()(), 'seconds', true);
|
|
14031
14032
|
return isShow && isRang <= 0;
|
|
14032
14033
|
};
|
|
14033
14034
|
},
|
|
14034
14035
|
tipMsg: function tipMsg() {
|
|
14035
|
-
return this.type ===
|
|
14036
|
+
return this.type === 'customList' ? '保存' : '提交';
|
|
14036
14037
|
},
|
|
14037
14038
|
formKey: function formKey() {
|
|
14038
14039
|
return function (item) {
|
|
@@ -14046,12 +14047,12 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14046
14047
|
totalScore = _ref3.totalScore;
|
|
14047
14048
|
|
|
14048
14049
|
totalScore = +totalScore || 0;
|
|
14049
|
-
if (!(evaluateResultConfig !== null && evaluateResultConfig !== void 0 && evaluateResultConfig.length) || !totalScore) return
|
|
14050
|
+
if (!(evaluateResultConfig !== null && evaluateResultConfig !== void 0 && evaluateResultConfig.length) || !totalScore) return '#2474FF';
|
|
14050
14051
|
var matchItem = evaluateResultConfig.find(function (item) {
|
|
14051
14052
|
return item.startScore <= totalScore && totalScore <= item.endScore;
|
|
14052
14053
|
});
|
|
14053
|
-
if (!matchItem) return
|
|
14054
|
-
return matchItem.color ||
|
|
14054
|
+
if (!matchItem) return '#2474FF';
|
|
14055
|
+
return matchItem.color || '#2474FF';
|
|
14055
14056
|
}
|
|
14056
14057
|
},
|
|
14057
14058
|
watch: {
|
|
@@ -14093,18 +14094,18 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14093
14094
|
data: function data() {
|
|
14094
14095
|
var h = this.$createElement;
|
|
14095
14096
|
return {
|
|
14096
|
-
other:
|
|
14097
|
+
other: '',
|
|
14097
14098
|
form: {},
|
|
14098
14099
|
submitForm: {},
|
|
14099
14100
|
rules: {},
|
|
14100
14101
|
config: {},
|
|
14101
14102
|
formArray: [],
|
|
14102
14103
|
mapVisible: false,
|
|
14103
|
-
mapLocation:
|
|
14104
|
+
mapLocation: '',
|
|
14104
14105
|
labelSelectedList: [],
|
|
14105
14106
|
defaultFormArray: [],
|
|
14106
|
-
fontSize:
|
|
14107
|
-
filterArr: [
|
|
14107
|
+
fontSize: '',
|
|
14108
|
+
filterArr: ['SUCCESS_TIP', 'CALLBACK_INTERFACE', 'SPREAD_PARAMS', 'REDIRECT', 'FRONT_ADDRESS', 'RETURN_PATH'],
|
|
14108
14109
|
spinning: true,
|
|
14109
14110
|
indicator: h("a-icon", {
|
|
14110
14111
|
"attrs": {
|
|
@@ -14114,7 +14115,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14114
14115
|
"style": "font-size: 24px"
|
|
14115
14116
|
}),
|
|
14116
14117
|
totalScore: undefined,
|
|
14117
|
-
shareId:
|
|
14118
|
+
shareId: '',
|
|
14118
14119
|
currentTime: external_moment_default()(),
|
|
14119
14120
|
showEvaluatePage: false,
|
|
14120
14121
|
showEvaluateSettingWrap: true,
|
|
@@ -14185,21 +14186,21 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14185
14186
|
|
|
14186
14187
|
|
|
14187
14188
|
this.$info({
|
|
14188
|
-
title:
|
|
14189
|
-
content:
|
|
14189
|
+
title: '已设置填写次数限制',
|
|
14190
|
+
content: '请在包含用户信息的环境中打开此量表',
|
|
14190
14191
|
onOk: function onOk() {
|
|
14191
|
-
_this.$emit(
|
|
14192
|
+
_this.$emit('onCloseSetting');
|
|
14192
14193
|
}
|
|
14193
14194
|
});
|
|
14194
14195
|
}
|
|
14195
14196
|
|
|
14196
14197
|
this.config = map;
|
|
14197
14198
|
|
|
14198
|
-
if (
|
|
14199
|
+
if ('evaluateResultConfig' in map && utils_map_default.a.isJSON(map.evaluateResultConfig)) {
|
|
14199
14200
|
this.config.evaluateResultConfig = JSON.parse(map.evaluateResultConfig);
|
|
14200
14201
|
}
|
|
14201
14202
|
|
|
14202
|
-
if (
|
|
14203
|
+
if ('evaluateResultSetting' in map && utils_map_default.a.isJSON(map.evaluateResultSetting)) {
|
|
14203
14204
|
var _this$config3;
|
|
14204
14205
|
|
|
14205
14206
|
this.config.evaluateResultSetting = JSON.parse(map.evaluateResultSetting); // 随机测评
|
|
@@ -14234,7 +14235,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14234
14235
|
handleFrontAddress: function handleFrontAddress(list) {
|
|
14235
14236
|
if (!list || !list.length) return;
|
|
14236
14237
|
var matchItem = list.find(function (item) {
|
|
14237
|
-
return item.type ===
|
|
14238
|
+
return item.type === 'FRONT_ADDRESS';
|
|
14238
14239
|
});
|
|
14239
14240
|
if (!matchItem || !Object.keys(matchItem).length) return;
|
|
14240
14241
|
var setting;
|
|
@@ -14252,10 +14253,10 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14252
14253
|
|
|
14253
14254
|
if (frontAddress) {
|
|
14254
14255
|
var urlHref = window.location.href;
|
|
14255
|
-
var preStr =
|
|
14256
|
+
var preStr = '?';
|
|
14256
14257
|
|
|
14257
|
-
if (frontAddress.includes(
|
|
14258
|
-
preStr =
|
|
14258
|
+
if (frontAddress.includes('?')) {
|
|
14259
|
+
preStr = '&';
|
|
14259
14260
|
}
|
|
14260
14261
|
|
|
14261
14262
|
var curUrl = "".concat(frontAddress).concat(preStr, "redirect_url=").concat(encodeURIComponent(urlHref));
|
|
@@ -14263,7 +14264,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14263
14264
|
}
|
|
14264
14265
|
},
|
|
14265
14266
|
handleBtnParamsEvaluate: function handleBtnParamsEvaluate(params) {
|
|
14266
|
-
var defaultVariable = [
|
|
14267
|
+
var defaultVariable = ['evaname', 'evadesc', 'evast', 'evadur', 'evaan'];
|
|
14267
14268
|
var res = {};
|
|
14268
14269
|
|
|
14269
14270
|
for (var key in params) {
|
|
@@ -14292,33 +14293,33 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14292
14293
|
}
|
|
14293
14294
|
|
|
14294
14295
|
var obj = {
|
|
14295
|
-
evaluateName:
|
|
14296
|
-
evaluateExplain:
|
|
14297
|
-
evaluateStartTime:
|
|
14298
|
-
evaluateTime:
|
|
14299
|
-
evaluateAnswer:
|
|
14296
|
+
evaluateName: 'evaname',
|
|
14297
|
+
evaluateExplain: 'evadesc',
|
|
14298
|
+
evaluateStartTime: 'evast',
|
|
14299
|
+
evaluateTime: 'evadur',
|
|
14300
|
+
evaluateAnswer: 'evaan'
|
|
14300
14301
|
};
|
|
14301
14302
|
|
|
14302
14303
|
for (var key in evaluateResultSetting) {
|
|
14303
14304
|
var value = evaluateResultSetting[key];
|
|
14304
|
-
var isParseKey = value && key !=
|
|
14305
|
+
var isParseKey = value && key != 'evaluateAnswer' && typeof value === 'string' && value.includes('${');
|
|
14305
14306
|
|
|
14306
14307
|
if (isParseKey) {
|
|
14307
14308
|
var parseValue = value.replace(/\$\{([^}]+)\}/g, function (_v, $1) {
|
|
14308
14309
|
var param;
|
|
14309
14310
|
|
|
14310
|
-
if ($1.startsWith(
|
|
14311
|
-
param = query[$1.split(
|
|
14311
|
+
if ($1.startsWith('form.')) {
|
|
14312
|
+
param = query[$1.split('.')[1]];
|
|
14312
14313
|
}
|
|
14313
14314
|
|
|
14314
|
-
return param ||
|
|
14315
|
+
return param || '';
|
|
14315
14316
|
});
|
|
14316
14317
|
this.$set(evaluateResultSetting, key, parseValue);
|
|
14317
14318
|
} else {
|
|
14318
14319
|
var val = query[obj[key]];
|
|
14319
14320
|
|
|
14320
|
-
if (key ==
|
|
14321
|
-
val = val ===
|
|
14321
|
+
if (key == 'evaluateAnswer') {
|
|
14322
|
+
val = val === 'true' || val == 1 ? true : false;
|
|
14322
14323
|
}
|
|
14323
14324
|
|
|
14324
14325
|
query[obj[key]] && this.$set(evaluateResultSetting, key, val);
|
|
@@ -14327,13 +14328,13 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14327
14328
|
|
|
14328
14329
|
|
|
14329
14330
|
if (this.hasDefault) {
|
|
14330
|
-
var defaultVariable = [
|
|
14331
|
+
var defaultVariable = ['evaname', 'evadesc', 'evast', 'evadur', 'evaan'];
|
|
14331
14332
|
var defObj = {
|
|
14332
|
-
evaname:
|
|
14333
|
-
evadesc:
|
|
14334
|
-
evast:
|
|
14335
|
-
evadur:
|
|
14336
|
-
evaan:
|
|
14333
|
+
evaname: 'evaluateName',
|
|
14334
|
+
evadesc: 'evaluateExplain',
|
|
14335
|
+
evast: 'evaluateStartTime',
|
|
14336
|
+
evadur: 'evaluateTime',
|
|
14337
|
+
evaan: 'evaluateAnswer'
|
|
14337
14338
|
};
|
|
14338
14339
|
defaultVariable.forEach(function (item) {
|
|
14339
14340
|
var key = defObj[item];
|
|
@@ -14341,8 +14342,8 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14341
14342
|
if (!evaluateResultSetting[key]) {
|
|
14342
14343
|
var _val = query[item];
|
|
14343
14344
|
|
|
14344
|
-
if (item ==
|
|
14345
|
-
_val = _val ===
|
|
14345
|
+
if (item == 'evaan') {
|
|
14346
|
+
_val = _val === 'true' || _val == 1 ? true : false;
|
|
14346
14347
|
}
|
|
14347
14348
|
|
|
14348
14349
|
query[item] && _this4.$set(evaluateResultSetting, key, _val);
|
|
@@ -14355,7 +14356,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14355
14356
|
handleQueryParams: function handleQueryParams() {
|
|
14356
14357
|
var params = {};
|
|
14357
14358
|
|
|
14358
|
-
var _iterator = Object(createForOfIteratorHelper["a" /* default */])(new URLSearchParams(window.location.hash.split(
|
|
14359
|
+
var _iterator = Object(createForOfIteratorHelper["a" /* default */])(new URLSearchParams(window.location.hash.split('?')[1]).entries()),
|
|
14359
14360
|
_step;
|
|
14360
14361
|
|
|
14361
14362
|
try {
|
|
@@ -14384,8 +14385,8 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14384
14385
|
// 无默认值 不显示考试入口页面
|
|
14385
14386
|
if (!this.hasDefault) return false; // 有默认值 显示考试入口页面
|
|
14386
14387
|
|
|
14387
|
-
if (!(
|
|
14388
|
-
this.$set(this.config,
|
|
14388
|
+
if (!('evaluateResultSetting' in this.config)) {
|
|
14389
|
+
this.$set(this.config, 'evaluateResultSetting', {});
|
|
14389
14390
|
}
|
|
14390
14391
|
|
|
14391
14392
|
this.setDefaultEvaluate(this.config.evaluateResultSetting);
|
|
@@ -14424,24 +14425,24 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14424
14425
|
}
|
|
14425
14426
|
|
|
14426
14427
|
if (query.evaname) {
|
|
14427
|
-
this.$set(evaluateResultSetting,
|
|
14428
|
+
this.$set(evaluateResultSetting, 'evaluateName', query.evaname);
|
|
14428
14429
|
}
|
|
14429
14430
|
|
|
14430
14431
|
if (query.evadesc) {
|
|
14431
|
-
this.$set(evaluateResultSetting,
|
|
14432
|
+
this.$set(evaluateResultSetting, 'evaluateExplain', query.evadesc);
|
|
14432
14433
|
}
|
|
14433
14434
|
|
|
14434
14435
|
if (query.evast) {
|
|
14435
|
-
this.$set(evaluateResultSetting,
|
|
14436
|
+
this.$set(evaluateResultSetting, 'evaluateStartTime', query.evast);
|
|
14436
14437
|
}
|
|
14437
14438
|
|
|
14438
14439
|
if (query.evadur) {
|
|
14439
|
-
this.$set(evaluateResultSetting,
|
|
14440
|
+
this.$set(evaluateResultSetting, 'evaluateTime', query.evadur);
|
|
14440
14441
|
}
|
|
14441
14442
|
|
|
14442
14443
|
if (query.evaan) {
|
|
14443
|
-
var evaan = query.evaan ===
|
|
14444
|
-
this.$set(evaluateResultSetting,
|
|
14444
|
+
var evaan = query.evaan === 'true' || query.evaan == 1 ? true : false;
|
|
14445
|
+
this.$set(evaluateResultSetting, 'evaluateAnswer', evaan);
|
|
14445
14446
|
}
|
|
14446
14447
|
|
|
14447
14448
|
this.setEvaluateStartTime(evaluateResultSetting);
|
|
@@ -14480,7 +14481,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14480
14481
|
var urlKey = (_item$setting2 = item.setting) === null || _item$setting2 === void 0 ? void 0 : (_item$setting2$outDef = _item$setting2.outDefaultValue) === null || _item$setting2$outDef === void 0 ? void 0 : _item$setting2$outDef.urlKey;
|
|
14481
14482
|
|
|
14482
14483
|
if (urlKey) {
|
|
14483
|
-
var list = urlKey.split(
|
|
14484
|
+
var list = urlKey.split(',');
|
|
14484
14485
|
|
|
14485
14486
|
if (list.length > 1) {
|
|
14486
14487
|
var _val2 = list.map(function (l) {
|
|
@@ -14496,7 +14497,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14496
14497
|
|
|
14497
14498
|
if (_val3) {
|
|
14498
14499
|
_val3 = decodeURIComponent(_val3);
|
|
14499
|
-
defValue = item.type ==
|
|
14500
|
+
defValue = item.type == 'CHECKBOX_BLOCK' ? _val3.split() : _val3;
|
|
14500
14501
|
}
|
|
14501
14502
|
}
|
|
14502
14503
|
}
|
|
@@ -14504,20 +14505,20 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14504
14505
|
}
|
|
14505
14506
|
|
|
14506
14507
|
switch (type) {
|
|
14507
|
-
case
|
|
14508
|
-
formData[key] = defValue ||
|
|
14508
|
+
case 'LOCATION':
|
|
14509
|
+
formData[key] = defValue || '';
|
|
14509
14510
|
break;
|
|
14510
14511
|
|
|
14511
|
-
case
|
|
14512
|
+
case 'SEARCH_CASCADE':
|
|
14512
14513
|
formData[key] = defValue || [];
|
|
14513
14514
|
break;
|
|
14514
14515
|
|
|
14515
|
-
case
|
|
14516
|
-
formData[key] = defValue ||
|
|
14516
|
+
case 'ADDRESS':
|
|
14517
|
+
formData[key] = defValue || '';
|
|
14517
14518
|
_this5.defaultAddress = defValue || {};
|
|
14518
14519
|
break;
|
|
14519
14520
|
|
|
14520
|
-
case
|
|
14521
|
+
case 'LABEL':
|
|
14521
14522
|
formData[key] = defValue || {};
|
|
14522
14523
|
|
|
14523
14524
|
if (vexutils_default.a.isObject(defValue)) {
|
|
@@ -14532,23 +14533,23 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14532
14533
|
|
|
14533
14534
|
break;
|
|
14534
14535
|
|
|
14535
|
-
case
|
|
14536
|
+
case 'TITLE':
|
|
14536
14537
|
formData[key] = item.title;
|
|
14537
14538
|
break;
|
|
14538
14539
|
|
|
14539
|
-
case
|
|
14540
|
-
formData[key] = ((_item$setting3 = item.setting) === null || _item$setting3 === void 0 ? void 0 : _item$setting3.imgUrl) ||
|
|
14540
|
+
case 'IMGCARD':
|
|
14541
|
+
formData[key] = ((_item$setting3 = item.setting) === null || _item$setting3 === void 0 ? void 0 : _item$setting3.imgUrl) || '';
|
|
14541
14542
|
break;
|
|
14542
14543
|
|
|
14543
|
-
case
|
|
14544
|
-
case
|
|
14544
|
+
case 'UPFILE':
|
|
14545
|
+
case 'UPPICTURE':
|
|
14545
14546
|
formData[key] = defValue || [];
|
|
14546
14547
|
break;
|
|
14547
14548
|
// 自定义列表特殊处理
|
|
14548
14549
|
|
|
14549
|
-
case
|
|
14550
|
-
if (defValue && !Array.isArray(defValue) && _this5.type ===
|
|
14551
|
-
formData[key] = defValue.split(
|
|
14550
|
+
case 'CHECKBOX_BLOCK':
|
|
14551
|
+
if (defValue && !Array.isArray(defValue) && _this5.type === 'customList') {
|
|
14552
|
+
formData[key] = defValue.split(',').filter(function (ii) {
|
|
14552
14553
|
return !!ii;
|
|
14553
14554
|
});
|
|
14554
14555
|
} else {
|
|
@@ -14583,9 +14584,9 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14583
14584
|
return spreadParams.domains.map(function (v) {
|
|
14584
14585
|
var obj = {};
|
|
14585
14586
|
|
|
14586
|
-
if (v.valueType ==
|
|
14587
|
+
if (v.valueType == '1') {
|
|
14587
14588
|
obj[v.name] = v.value;
|
|
14588
|
-
} else if (v.valueType ==
|
|
14589
|
+
} else if (v.valueType == '2') {
|
|
14589
14590
|
obj[v.name] = _this6.getQueryVariable(v.value);
|
|
14590
14591
|
}
|
|
14591
14592
|
|
|
@@ -14596,7 +14597,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14596
14597
|
getQueryVariable: function getQueryVariable(variable) {
|
|
14597
14598
|
var query = {};
|
|
14598
14599
|
|
|
14599
|
-
if (this.source ==
|
|
14600
|
+
if (this.source == 'layout') {
|
|
14600
14601
|
// 按钮传参
|
|
14601
14602
|
query = this.params;
|
|
14602
14603
|
} else {
|
|
@@ -14614,42 +14615,42 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14614
14615
|
var results = list.map(function (item) {
|
|
14615
14616
|
var key = _this7.formKey(item);
|
|
14616
14617
|
|
|
14617
|
-
var title = (key ||
|
|
14618
|
+
var title = (key || '').replace(/\n/g, '');
|
|
14618
14619
|
|
|
14619
|
-
_this7.$set(item,
|
|
14620
|
+
_this7.$set(item, 'showTitle', item.title); // 表单校验rule prop如果有 . 会报错, 替换成 ~-~
|
|
14620
14621
|
|
|
14621
14622
|
|
|
14622
|
-
if (title.includes(
|
|
14623
|
-
var newTitle = title.replace(/\./g,
|
|
14623
|
+
if (title.includes('.')) {
|
|
14624
|
+
var newTitle = title.replace(/\./g, '~-~');
|
|
14624
14625
|
|
|
14625
|
-
_this7.$set(item,
|
|
14626
|
+
_this7.$set(item, 'title', newTitle);
|
|
14626
14627
|
}
|
|
14627
14628
|
|
|
14628
|
-
_this7.$set(item,
|
|
14629
|
+
_this7.$set(item, 'isShow', true);
|
|
14629
14630
|
|
|
14630
14631
|
Object.keys(item).forEach(function (key) {
|
|
14631
14632
|
if (utils_map_default.a.isJSON(item[key])) {
|
|
14632
|
-
if (item.type !=
|
|
14633
|
+
if (item.type != 'LOCATION') {
|
|
14633
14634
|
item[key] = JSON.parse(item[key]);
|
|
14634
14635
|
}
|
|
14635
14636
|
}
|
|
14636
14637
|
});
|
|
14637
|
-
var notIndexArr = [
|
|
14638
|
+
var notIndexArr = ['LINEBAR', 'TITLE', 'PROMPT', 'IMGCARD', 'RICH_TEXT'];
|
|
14638
14639
|
|
|
14639
14640
|
if (notIndexArr.indexOf(item.type) < 0 && !item.hide) {
|
|
14640
|
-
_this7.$set(item,
|
|
14641
|
+
_this7.$set(item, 'softcode', i++);
|
|
14641
14642
|
} // "RADIO_BLOCK", "CHECKBOX_BLOCK" 将取值value改为key
|
|
14642
14643
|
|
|
14643
14644
|
|
|
14644
14645
|
if (_this7.isChoice(item.type)) {
|
|
14645
14646
|
_this7.handleFormatOptions(item.options, item.type);
|
|
14646
14647
|
|
|
14647
|
-
if (item.type !=
|
|
14648
|
+
if (item.type != 'SEARCH_CASCADE') {
|
|
14648
14649
|
if (item.dbValue) {
|
|
14649
|
-
_this7.nextLogicEvent(item.dbValue, item, results);
|
|
14650
|
+
_this7.nextLogicEvent(item.dbValue, item, results, true);
|
|
14650
14651
|
} else {
|
|
14651
14652
|
if (item.setting.defaultValue) {
|
|
14652
|
-
_this7.nextLogicEvent(item.setting.defaultValue, item, results);
|
|
14653
|
+
_this7.nextLogicEvent(item.setting.defaultValue, item, results, true);
|
|
14653
14654
|
}
|
|
14654
14655
|
}
|
|
14655
14656
|
}
|
|
@@ -14667,8 +14668,8 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14667
14668
|
_this7.handLenextLogic(item); // 自定义列表特殊处理
|
|
14668
14669
|
|
|
14669
14670
|
|
|
14670
|
-
if (item.type ===
|
|
14671
|
-
item.dbValue = item.dbValue.split(
|
|
14671
|
+
if (item.type === 'CHECKBOX_BLOCK' && item.dbValue && !Array.isArray(item.dbValue) && _this7.type === 'customList') {
|
|
14672
|
+
item.dbValue = item.dbValue.split(',').filter(function (ii) {
|
|
14672
14673
|
return !!ii;
|
|
14673
14674
|
});
|
|
14674
14675
|
}
|
|
@@ -14748,7 +14749,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14748
14749
|
return matchOption.key;
|
|
14749
14750
|
},
|
|
14750
14751
|
isRadioOrCheckBox: function isRadioOrCheckBox(options, type) {
|
|
14751
|
-
var typeArr = [
|
|
14752
|
+
var typeArr = ['RADIO_BLOCK', 'CHECKBOX_BLOCK'];
|
|
14752
14753
|
if (!typeArr.includes(type)) return;
|
|
14753
14754
|
if (!options) return;
|
|
14754
14755
|
|
|
@@ -14763,7 +14764,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14763
14764
|
var isChoice = this.isRadioOrCheckBox(options, type);
|
|
14764
14765
|
if (!isChoice) return;
|
|
14765
14766
|
options.forEach(function (item, i) {
|
|
14766
|
-
if (item.key !==
|
|
14767
|
+
if (item.key !== 'other') {
|
|
14767
14768
|
item.key = i + 1;
|
|
14768
14769
|
}
|
|
14769
14770
|
|
|
@@ -14781,73 +14782,73 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14781
14782
|
var newTitle = _this10.formKey(item); // 表单校验rule prop如果有 . 会报错, 替换成 ~-~
|
|
14782
14783
|
|
|
14783
14784
|
|
|
14784
|
-
if (newTitle.includes(
|
|
14785
|
-
newTitle = newTitle.replace(/\./g,
|
|
14785
|
+
if (newTitle.includes('.')) {
|
|
14786
|
+
newTitle = newTitle.replace(/\./g, '~-~');
|
|
14786
14787
|
}
|
|
14787
14788
|
|
|
14788
14789
|
rules[newTitle] = [{
|
|
14789
14790
|
required: item.required,
|
|
14790
|
-
message:
|
|
14791
|
-
trigger:
|
|
14791
|
+
message: '必填',
|
|
14792
|
+
trigger: 'change'
|
|
14792
14793
|
}];
|
|
14793
14794
|
|
|
14794
|
-
if (item.type ==
|
|
14795
|
+
if (item.type == 'MOBILE' && item.validation) {
|
|
14795
14796
|
rules[newTitle].push({
|
|
14796
14797
|
pattern: /^1[3456789]\d{9}$/,
|
|
14797
|
-
message:
|
|
14798
|
-
trigger:
|
|
14798
|
+
message: '格式错误',
|
|
14799
|
+
trigger: 'blur'
|
|
14799
14800
|
});
|
|
14800
|
-
} else if (item.type ==
|
|
14801
|
+
} else if (item.type == 'ID_CARD' && item.validation) {
|
|
14801
14802
|
rules[newTitle].push({
|
|
14802
14803
|
pattern: /^\d{6}(((19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|x|X))|(\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}))$/,
|
|
14803
|
-
message:
|
|
14804
|
-
trigger:
|
|
14804
|
+
message: '格式错误',
|
|
14805
|
+
trigger: 'blur'
|
|
14805
14806
|
});
|
|
14806
|
-
} else if (item.type ==
|
|
14807
|
+
} else if (item.type == 'ADDRESS' && item.required) {
|
|
14807
14808
|
if (_this10.handleAddressType(item)) {
|
|
14808
14809
|
rules[newTitle].push({
|
|
14809
14810
|
validator: _this10.checkAdress,
|
|
14810
|
-
trigger:
|
|
14811
|
+
trigger: 'change'
|
|
14811
14812
|
});
|
|
14812
14813
|
}
|
|
14813
|
-
} else if (item.type ==
|
|
14814
|
+
} else if (item.type == 'LABEL' && item.required) {
|
|
14814
14815
|
rules[newTitle].push({
|
|
14815
14816
|
validator: _this10.checkLabel,
|
|
14816
|
-
trigger:
|
|
14817
|
+
trigger: 'change'
|
|
14817
14818
|
});
|
|
14818
|
-
} else if (item.type ==
|
|
14819
|
+
} else if (item.type == 'DATETIME' && _this10.type == 'customList') {
|
|
14819
14820
|
// 自定义列表特殊处理日期时间 最大值
|
|
14820
14821
|
// dateMaxType 1当前日期时间 2指定日期时间 3其他日期时间字段
|
|
14821
14822
|
var dateMaxType = _this10.handleDateMaxType(item);
|
|
14822
14823
|
|
|
14823
14824
|
if (!dateMaxType) return;
|
|
14824
14825
|
var obj = {
|
|
14825
|
-
1:
|
|
14826
|
-
2:
|
|
14827
|
-
3:
|
|
14826
|
+
1: 'checkDateMaxCur',
|
|
14827
|
+
2: 'checkDateMaxSet',
|
|
14828
|
+
3: 'checkDateMaxOther'
|
|
14828
14829
|
};
|
|
14829
14830
|
var methodName = obj[dateMaxType];
|
|
14830
14831
|
rules[newTitle].push({
|
|
14831
14832
|
validator: function validator(rule, value, callback) {
|
|
14832
14833
|
return _this10[methodName](rule, value, callback, item);
|
|
14833
14834
|
},
|
|
14834
|
-
trigger:
|
|
14835
|
+
trigger: 'change'
|
|
14835
14836
|
});
|
|
14836
|
-
} else if (item.type ===
|
|
14837
|
+
} else if (item.type === 'RADIO_BLOCK') {
|
|
14837
14838
|
_this10.choiceComObj[_this10.formKey(item)] = {};
|
|
14838
14839
|
rules[newTitle].push({
|
|
14839
14840
|
validator: function validator(rule, value, callback) {
|
|
14840
14841
|
return _this10.checkRadio(rule, value, callback, item);
|
|
14841
14842
|
},
|
|
14842
|
-
trigger:
|
|
14843
|
+
trigger: 'change'
|
|
14843
14844
|
});
|
|
14844
|
-
} else if (item.type ===
|
|
14845
|
+
} else if (item.type === 'CHECKBOX_BLOCK') {
|
|
14845
14846
|
_this10.choiceComObj[_this10.formKey(item)] = {};
|
|
14846
14847
|
rules[newTitle].push({
|
|
14847
14848
|
validator: function validator(rule, value, callback) {
|
|
14848
14849
|
return _this10.checkCheckbox(rule, value, callback, item);
|
|
14849
14850
|
},
|
|
14850
|
-
trigger:
|
|
14851
|
+
trigger: 'change'
|
|
14851
14852
|
});
|
|
14852
14853
|
}
|
|
14853
14854
|
});
|
|
@@ -14855,7 +14856,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14855
14856
|
},
|
|
14856
14857
|
handleAddressType: function handleAddressType(item) {
|
|
14857
14858
|
var setObj = {
|
|
14858
|
-
addressType:
|
|
14859
|
+
addressType: 'province-city-district-address'
|
|
14859
14860
|
};
|
|
14860
14861
|
|
|
14861
14862
|
if (utils_map_default.a.isJSON(item.setting)) {
|
|
@@ -14864,7 +14865,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14864
14865
|
setObj = item.setting;
|
|
14865
14866
|
}
|
|
14866
14867
|
|
|
14867
|
-
var isAdress = setObj.addressType.includes(
|
|
14868
|
+
var isAdress = setObj.addressType.includes('address');
|
|
14868
14869
|
return isAdress;
|
|
14869
14870
|
},
|
|
14870
14871
|
checkAdress: function checkAdress(rule, value, callback) {
|
|
@@ -14872,14 +14873,14 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14872
14873
|
address = _ref8.address;
|
|
14873
14874
|
|
|
14874
14875
|
if (!address) {
|
|
14875
|
-
return callback(new Error(
|
|
14876
|
+
return callback(new Error('必填'));
|
|
14876
14877
|
}
|
|
14877
14878
|
|
|
14878
14879
|
callback();
|
|
14879
14880
|
},
|
|
14880
14881
|
checkLabel: function checkLabel(rule, value, callback) {
|
|
14881
14882
|
if (!value || !Object.keys(value).length) {
|
|
14882
|
-
return callback(new Error(
|
|
14883
|
+
return callback(new Error('必填'));
|
|
14883
14884
|
}
|
|
14884
14885
|
|
|
14885
14886
|
var labelStr = value.labelStr,
|
|
@@ -14887,7 +14888,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14887
14888
|
labels = _value$labels === void 0 ? [] : _value$labels;
|
|
14888
14889
|
|
|
14889
14890
|
if (!labelStr || !labels.length) {
|
|
14890
|
-
return callback(new Error(
|
|
14891
|
+
return callback(new Error('必填'));
|
|
14891
14892
|
}
|
|
14892
14893
|
|
|
14893
14894
|
callback();
|
|
@@ -14908,14 +14909,14 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14908
14909
|
if (!dateType) return callback();
|
|
14909
14910
|
var dateMaxValue = this.currentTime;
|
|
14910
14911
|
|
|
14911
|
-
if (dateType ==
|
|
14912
|
-
dateMaxValue = this.currentTime.format(
|
|
14912
|
+
if (dateType == 'time') {
|
|
14913
|
+
dateMaxValue = this.currentTime.format('HH:mm:ss');
|
|
14913
14914
|
}
|
|
14914
14915
|
|
|
14915
14916
|
var isMax = this.handleMax(dateType, value, dateMaxValue);
|
|
14916
14917
|
|
|
14917
14918
|
if (!isMax) {
|
|
14918
|
-
return callback(new Error(
|
|
14919
|
+
return callback(new Error('最大不能超过当前日期时间'));
|
|
14919
14920
|
}
|
|
14920
14921
|
|
|
14921
14922
|
callback();
|
|
@@ -14930,7 +14931,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14930
14931
|
var isMax = this.handleMax(dateType, value, dateMaxValue);
|
|
14931
14932
|
|
|
14932
14933
|
if (!isMax) {
|
|
14933
|
-
return callback(new Error(
|
|
14934
|
+
return callback(new Error('最大不能超过指定日期时间'));
|
|
14934
14935
|
}
|
|
14935
14936
|
|
|
14936
14937
|
callback();
|
|
@@ -14959,7 +14960,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
14959
14960
|
checkRadio: function checkRadio(rule, value, callback, item) {
|
|
14960
14961
|
if (!value) return callback();
|
|
14961
14962
|
var options = item.options;
|
|
14962
|
-
if (!options.length || value ===
|
|
14963
|
+
if (!options.length || value === 'other') return callback();
|
|
14963
14964
|
var key = this.formKey(item);
|
|
14964
14965
|
|
|
14965
14966
|
var _ref9 = this.choiceComObj[key] || {},
|
|
@@ -15000,7 +15001,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15000
15001
|
|
|
15001
15002
|
for (; i < len; i++) {
|
|
15002
15003
|
v = value[i];
|
|
15003
|
-
if (v ===
|
|
15004
|
+
if (v === 'other') continue;
|
|
15004
15005
|
var matchItem = options.find(function (o, j) {
|
|
15005
15006
|
if (j + 1 === v) {
|
|
15006
15007
|
return true;
|
|
@@ -15022,14 +15023,14 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15022
15023
|
callback();
|
|
15023
15024
|
},
|
|
15024
15025
|
handleMax: function handleMax(dateType, value, dateMaxValue) {
|
|
15025
|
-
var curValue =
|
|
15026
|
-
var tempValue =
|
|
15026
|
+
var curValue = '';
|
|
15027
|
+
var tempValue = '';
|
|
15027
15028
|
|
|
15028
|
-
if (dateType ==
|
|
15029
|
-
var curYMD = this.currentTime.format(
|
|
15029
|
+
if (dateType == 'time') {
|
|
15030
|
+
var curYMD = this.currentTime.format('YYYY MM DD ');
|
|
15030
15031
|
curValue = external_moment_default()(curYMD + dateMaxValue).valueOf();
|
|
15031
15032
|
tempValue = external_moment_default()(curYMD + value).valueOf();
|
|
15032
|
-
} else if (dateType ==
|
|
15033
|
+
} else if (dateType == 'date') {
|
|
15033
15034
|
curValue = external_moment_default()(dateMaxValue).valueOf();
|
|
15034
15035
|
tempValue = external_moment_default()(value).valueOf();
|
|
15035
15036
|
} else {
|
|
@@ -15049,7 +15050,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15049
15050
|
return valObj.address || valObj.name;
|
|
15050
15051
|
}
|
|
15051
15052
|
|
|
15052
|
-
return
|
|
15053
|
+
return '';
|
|
15053
15054
|
},
|
|
15054
15055
|
handleSelectLocation: function handleSelectLocation(e, item) {
|
|
15055
15056
|
var locationProp = e.locationProp,
|
|
@@ -15060,16 +15061,16 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15060
15061
|
this.mapVisible = isInit || false;
|
|
15061
15062
|
},
|
|
15062
15063
|
isInput: function isInput(type) {
|
|
15063
|
-
return type ==
|
|
15064
|
+
return type == 'INPUT' || type == 'ID_CARD' || type == 'MOBILE' || type == 'EVALUATE_INPUT';
|
|
15064
15065
|
},
|
|
15065
15066
|
isChoice: function isChoice(type) {
|
|
15066
|
-
return type ==
|
|
15067
|
+
return type == 'SELECT' || type == 'RADIO_BLOCK' || type == 'CHECKBOX_BLOCK' || type == 'SEARCH_CASCADE' || type == 'EVALUATE_RADIO_BLOCK' || type == 'EVALUATE_CHECKBOX_BLOCK' || type == 'EVALUATE_SELECT';
|
|
15067
15068
|
},
|
|
15068
15069
|
isTime: function isTime(type) {
|
|
15069
|
-
return type ==
|
|
15070
|
+
return type == 'DATE' || type == 'TIME' || type == 'DATETIME';
|
|
15070
15071
|
},
|
|
15071
15072
|
isUpload: function isUpload(type) {
|
|
15072
|
-
return type ==
|
|
15073
|
+
return type == 'UPFILE' || type == 'UPPICTURE';
|
|
15073
15074
|
},
|
|
15074
15075
|
writeGuage: function writeGuage(showCountdown) {
|
|
15075
15076
|
this.showEvaluateSettingWrap = false;
|
|
@@ -15082,9 +15083,9 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15082
15083
|
this.banSubmit = true;
|
|
15083
15084
|
this.submitMethod();
|
|
15084
15085
|
this.$warning({
|
|
15085
|
-
title:
|
|
15086
|
-
content:
|
|
15087
|
-
okText:
|
|
15086
|
+
title: '温馨提示',
|
|
15087
|
+
content: '测评时间到了,结束测评!',
|
|
15088
|
+
okText: '确定',
|
|
15088
15089
|
onOk: function onOk() {}
|
|
15089
15090
|
});
|
|
15090
15091
|
},
|
|
@@ -15173,22 +15174,22 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15173
15174
|
};
|
|
15174
15175
|
|
|
15175
15176
|
this.$confirm({
|
|
15176
|
-
title:
|
|
15177
|
+
title: '提示',
|
|
15177
15178
|
icon: function icon() {
|
|
15178
15179
|
return null;
|
|
15179
15180
|
},
|
|
15180
15181
|
content: content,
|
|
15181
|
-
okText:
|
|
15182
|
-
cancelText:
|
|
15182
|
+
okText: '确定',
|
|
15183
|
+
cancelText: '关闭',
|
|
15183
15184
|
onOk: function onOk() {},
|
|
15184
15185
|
onCancel: function onCancel() {},
|
|
15185
|
-
class:
|
|
15186
|
+
class: 'evatip-modal-wrap'
|
|
15186
15187
|
});
|
|
15187
15188
|
},
|
|
15188
15189
|
// 选择组件
|
|
15189
15190
|
handleChoice: function handleChoice(choiceValue, formItem) {
|
|
15190
15191
|
var _choiceValue$value = choiceValue.value,
|
|
15191
|
-
value = _choiceValue$value === void 0 ?
|
|
15192
|
+
value = _choiceValue$value === void 0 ? '' : _choiceValue$value,
|
|
15192
15193
|
_choiceValue$list = choiceValue.list,
|
|
15193
15194
|
list = _choiceValue$list === void 0 ? [] : _choiceValue$list;
|
|
15194
15195
|
this.nextLogicEvent(value, formItem, this.formArray);
|
|
@@ -15213,32 +15214,95 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15213
15214
|
|
|
15214
15215
|
if (matchEle) {
|
|
15215
15216
|
if (!list.length) {
|
|
15216
|
-
_this12.form[key] =
|
|
15217
|
+
_this12.form[key] = '';
|
|
15217
15218
|
} else {
|
|
15218
15219
|
var relationFieldList = list.map(function (v) {
|
|
15219
|
-
return v[item.relationField] ||
|
|
15220
|
-
}) ||
|
|
15221
|
-
_this12.form[key] = relationFieldList.join(
|
|
15220
|
+
return v[item.relationField] || '/';
|
|
15221
|
+
}) || '';
|
|
15222
|
+
_this12.form[key] = relationFieldList.join(',');
|
|
15222
15223
|
}
|
|
15223
15224
|
}
|
|
15224
15225
|
});
|
|
15225
15226
|
},
|
|
15227
|
+
// 设置的logic condition 最大next_subject
|
|
15228
|
+
handleLogicMaxNext: function handleLogicMaxNext() {
|
|
15229
|
+
var _Math$max;
|
|
15230
|
+
|
|
15231
|
+
var condition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
15232
|
+
var arr = condition.map(function (_ref11) {
|
|
15233
|
+
var next_subject = _ref11.next_subject;
|
|
15234
|
+
return next_subject == 'end' ? 9999 : +(next_subject || 9999);
|
|
15235
|
+
});
|
|
15236
|
+
|
|
15237
|
+
var max = (_Math$max = Math.max).call.apply(_Math$max, [null].concat(Object(toConsumableArray["a" /* default */])(arr)));
|
|
15238
|
+
|
|
15239
|
+
return max;
|
|
15240
|
+
},
|
|
15241
|
+
// 当前formItem 下一个触发logicCodition item 的seq
|
|
15242
|
+
handleLogicList: function handleLogicList(formItem, formArray) {
|
|
15243
|
+
var seq = formItem.seq;
|
|
15244
|
+
var list = formArray.map(function (item) {
|
|
15245
|
+
if (item.seq > seq && item.isShow && item.__isLogic__) return item;
|
|
15246
|
+
return false;
|
|
15247
|
+
});
|
|
15248
|
+
var nextItemMax = 0;
|
|
15249
|
+
var i = 0,
|
|
15250
|
+
len = list.length,
|
|
15251
|
+
item;
|
|
15252
|
+
|
|
15253
|
+
for (; i < len; i++) {
|
|
15254
|
+
item = list[i];
|
|
15255
|
+
var curVal = this.form[this.formKey(item)];
|
|
15256
|
+
if (!curVal) continue;
|
|
15257
|
+
|
|
15258
|
+
if (Array.isArray(curVal)) {
|
|
15259
|
+
if (!curVal.length) continue;
|
|
15260
|
+
}
|
|
15261
|
+
|
|
15262
|
+
var _item = item,
|
|
15263
|
+
nextLogic = _item.nextLogic,
|
|
15264
|
+
_seq = _item.seq,
|
|
15265
|
+
__isLogic__ = _item.__isLogic__,
|
|
15266
|
+
__lastSeq__ = _item.__lastSeq__;
|
|
15267
|
+
if (!nextLogic.next_logic_is || !nextLogic.condition.length) continue;
|
|
15268
|
+
|
|
15269
|
+
if (__lastSeq__) {
|
|
15270
|
+
nextItemMax = __lastSeq__;
|
|
15271
|
+
break;
|
|
15272
|
+
}
|
|
15273
|
+
}
|
|
15274
|
+
|
|
15275
|
+
return nextItemMax;
|
|
15276
|
+
},
|
|
15226
15277
|
// 跳题逻辑
|
|
15227
15278
|
nextLogicEvent: function nextLogicEvent(choiceValue, formItem) {
|
|
15228
15279
|
var _this13 = this;
|
|
15229
15280
|
|
|
15230
15281
|
var formArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
15282
|
+
var isInit = arguments.length > 3 ? arguments[3] : undefined;
|
|
15231
15283
|
var nextLogic = formItem.nextLogic,
|
|
15232
15284
|
seq = formItem.seq;
|
|
15233
15285
|
if (!nextLogic) return;
|
|
15234
15286
|
|
|
15235
|
-
if (nextLogic.next_logic_is) {
|
|
15287
|
+
if (nextLogic.next_logic_is && nextLogic.condition.length) {
|
|
15288
|
+
var nextMax = 9999,
|
|
15289
|
+
nextItemMax = 0;
|
|
15290
|
+
|
|
15291
|
+
if (!isInit) {
|
|
15292
|
+
nextMax = this.handleLogicMaxNext(nextLogic.condition);
|
|
15293
|
+
nextItemMax = this.handleLogicList(formItem, formArray);
|
|
15294
|
+
}
|
|
15295
|
+
|
|
15236
15296
|
nextLogic.condition.some(function (con) {
|
|
15237
15297
|
var value = con.value,
|
|
15238
15298
|
next_subject = con.next_subject;
|
|
15239
|
-
var lastSeq = next_subject ==
|
|
15299
|
+
var lastSeq = next_subject == 'end' ? 9999 : next_subject;
|
|
15240
15300
|
|
|
15241
|
-
if (
|
|
15301
|
+
if (nextItemMax && nextItemMax > seq && nextItemMax < nextMax) {
|
|
15302
|
+
nextMax = nextItemMax;
|
|
15303
|
+
}
|
|
15304
|
+
|
|
15305
|
+
if (nextLogic.next_logic == 'condition') {
|
|
15242
15306
|
var hasValue = false;
|
|
15243
15307
|
|
|
15244
15308
|
if (Array.isArray(choiceValue)) {
|
|
@@ -15247,6 +15311,9 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15247
15311
|
hasValue = choiceValue === value;
|
|
15248
15312
|
}
|
|
15249
15313
|
|
|
15314
|
+
formItem.__isLogic__ = hasValue;
|
|
15315
|
+
formItem.__lastSeq__ = seq + 1;
|
|
15316
|
+
|
|
15250
15317
|
if (hasValue) {
|
|
15251
15318
|
formArray.forEach(function (item) {
|
|
15252
15319
|
if (item.seq > seq && item.seq < lastSeq) {
|
|
@@ -15254,9 +15321,9 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15254
15321
|
|
|
15255
15322
|
var key = _this13.formKey(item);
|
|
15256
15323
|
|
|
15257
|
-
_this13.form[key] && (_this13.form[key] =
|
|
15258
|
-
} else {
|
|
15259
|
-
item
|
|
15324
|
+
_this13.form[key] && (_this13.form[key] = '');
|
|
15325
|
+
} else if (item.seq >= lastSeq && item.seq < nextMax) {
|
|
15326
|
+
_this13.$set(item, 'isShow', true);
|
|
15260
15327
|
}
|
|
15261
15328
|
});
|
|
15262
15329
|
return true;
|
|
@@ -15267,16 +15334,18 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15267
15334
|
}
|
|
15268
15335
|
});
|
|
15269
15336
|
}
|
|
15270
|
-
} else if (nextLogic.next_logic ==
|
|
15337
|
+
} else if (nextLogic.next_logic == 'uncondition') {
|
|
15338
|
+
var res = utils_map_default.a.isEmpty(choiceValue);
|
|
15339
|
+
formItem.__isLogic__ = !res;
|
|
15340
|
+
formItem.__lastSeq__ = seq + 1;
|
|
15271
15341
|
formArray.forEach(function (item) {
|
|
15272
15342
|
var key = _this13.formKey(item);
|
|
15273
15343
|
|
|
15274
15344
|
if (item.seq > seq && item.seq < lastSeq) {
|
|
15275
|
-
var res = utils_map_default.a.isEmpty(choiceValue);
|
|
15276
15345
|
item.isShow = res; // 跳过时 清空已填内容
|
|
15277
15346
|
|
|
15278
15347
|
if (!res) {
|
|
15279
|
-
_this13.form[key] && (_this13.form[key] =
|
|
15348
|
+
_this13.form[key] && (_this13.form[key] = '');
|
|
15280
15349
|
}
|
|
15281
15350
|
}
|
|
15282
15351
|
});
|
|
@@ -15326,11 +15395,11 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15326
15395
|
}
|
|
15327
15396
|
});
|
|
15328
15397
|
|
|
15329
|
-
if (relation_logic ==
|
|
15398
|
+
if (relation_logic == 'OR') {
|
|
15330
15399
|
formItem.isShow = results.some(function (el) {
|
|
15331
15400
|
return el;
|
|
15332
15401
|
});
|
|
15333
|
-
} else if (relation_logic ==
|
|
15402
|
+
} else if (relation_logic == 'AND') {
|
|
15334
15403
|
formItem.isShow = results.every(function (el) {
|
|
15335
15404
|
return el;
|
|
15336
15405
|
});
|
|
@@ -15345,14 +15414,14 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15345
15414
|
radioChange: function radioChange(val, item, obj) {
|
|
15346
15415
|
var key = this.formKey(item);
|
|
15347
15416
|
this.form[key] = val;
|
|
15348
|
-
item.type ===
|
|
15417
|
+
item.type === 'RADIO_BLOCK' && this.$set(this.choiceComObj, key, obj);
|
|
15349
15418
|
this.nextLogicEvent(val, item, this.formArray);
|
|
15350
15419
|
},
|
|
15351
15420
|
// 多选组件回调
|
|
15352
15421
|
checkboxChange: function checkboxChange(val, item, obj) {
|
|
15353
15422
|
var key = this.formKey(item);
|
|
15354
15423
|
this.form[key] = val;
|
|
15355
|
-
item.type ===
|
|
15424
|
+
item.type === 'CHECKBOX_BLOCK' && this.$set(this.choiceComObj, key, obj);
|
|
15356
15425
|
this.nextLogicEvent(val, item, this.formArray);
|
|
15357
15426
|
},
|
|
15358
15427
|
// 标签组件回调
|
|
@@ -15367,7 +15436,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15367
15436
|
},
|
|
15368
15437
|
handleGetLabelSubmit: function handleGetLabelSubmit(labelSelectedList) {
|
|
15369
15438
|
if (!labelSelectedList || !labelSelectedList.length) return {
|
|
15370
|
-
labelStr:
|
|
15439
|
+
labelStr: '',
|
|
15371
15440
|
labels: []
|
|
15372
15441
|
};
|
|
15373
15442
|
var selectedList = labelSelectedList || [];
|
|
@@ -15380,7 +15449,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15380
15449
|
});
|
|
15381
15450
|
this.labelSelectedList = selectedList;
|
|
15382
15451
|
return {
|
|
15383
|
-
labelStr: labelStrList.join(
|
|
15452
|
+
labelStr: labelStrList.join(','),
|
|
15384
15453
|
labels: labels
|
|
15385
15454
|
};
|
|
15386
15455
|
},
|
|
@@ -15412,7 +15481,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15412
15481
|
});
|
|
15413
15482
|
|
|
15414
15483
|
if (!hasEvaluate) {
|
|
15415
|
-
this.confirmSubmit(
|
|
15484
|
+
this.confirmSubmit('确认要提交吗?');
|
|
15416
15485
|
return;
|
|
15417
15486
|
} // 包含测评组件,不包含考试时长,点击提交,弹出二次确认对话框,确认要结束测评吗?
|
|
15418
15487
|
// 判断有无测评配置 并且在测评时间内
|
|
@@ -15421,13 +15490,13 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15421
15490
|
var evaluateResultSetting = this.config.evaluateResultSetting;
|
|
15422
15491
|
|
|
15423
15492
|
if (!evaluateResultSetting || !Object.keys(evaluateResultSetting).length && !this.showEvaluateEntry) {
|
|
15424
|
-
this.confirmSubmit(
|
|
15493
|
+
this.confirmSubmit('确认要结束测评吗?');
|
|
15425
15494
|
return;
|
|
15426
15495
|
} // 表单内嵌量表, 没有开始答题, 不需要调用保存接口
|
|
15427
15496
|
|
|
15428
15497
|
|
|
15429
|
-
if (this.openType ==
|
|
15430
|
-
this.$emit(
|
|
15498
|
+
if (this.openType == 'formIframe' && this.showEvaluateEntry) {
|
|
15499
|
+
this.$emit('submitNoRequest');
|
|
15431
15500
|
return;
|
|
15432
15501
|
} // 无倒计时
|
|
15433
15502
|
|
|
@@ -15435,17 +15504,17 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15435
15504
|
var countdownDom = this.$refs.evaluateCountdown;
|
|
15436
15505
|
|
|
15437
15506
|
if (!(countdownDom !== null && countdownDom !== void 0 && countdownDom.showEvaluateCountdown)) {
|
|
15438
|
-
this.confirmSubmit(
|
|
15507
|
+
this.confirmSubmit('确认要结束测评吗?');
|
|
15439
15508
|
return;
|
|
15440
15509
|
} // 在倒计时内
|
|
15441
15510
|
|
|
15442
15511
|
|
|
15443
|
-
var message =
|
|
15512
|
+
var message = '确认要提前结束测评吗?';
|
|
15444
15513
|
var setAnswered = (_this$$refs$evaluateC = this.$refs.evaluateCountdown) === null || _this$$refs$evaluateC === void 0 ? void 0 : _this$$refs$evaluateC.setAnswered;
|
|
15445
15514
|
var totalLen = (_this$$refs$evaluateC2 = this.$refs.evaluateCountdown) === null || _this$$refs$evaluateC2 === void 0 ? void 0 : _this$$refs$evaluateC2.totalLen; // 存在未解答题目
|
|
15446
15515
|
|
|
15447
15516
|
if (setAnswered < totalLen) {
|
|
15448
|
-
message =
|
|
15517
|
+
message = '存在未解答的题目,确定要提前结束吗?';
|
|
15449
15518
|
}
|
|
15450
15519
|
|
|
15451
15520
|
this.confirmSubmit(message);
|
|
@@ -15454,10 +15523,10 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15454
15523
|
var _this = this;
|
|
15455
15524
|
|
|
15456
15525
|
this.$confirm({
|
|
15457
|
-
title:
|
|
15526
|
+
title: '温馨提示',
|
|
15458
15527
|
content: message,
|
|
15459
|
-
okText:
|
|
15460
|
-
cancelText:
|
|
15528
|
+
okText: '确定',
|
|
15529
|
+
cancelText: '取消',
|
|
15461
15530
|
onOk: function onOk() {
|
|
15462
15531
|
_this.onSubmitForm();
|
|
15463
15532
|
},
|
|
@@ -15467,7 +15536,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15467
15536
|
onSubmitForm: function onSubmitForm() {
|
|
15468
15537
|
var _this16 = this;
|
|
15469
15538
|
|
|
15470
|
-
this.$refs[
|
|
15539
|
+
this.$refs['ruleForm'].validate(function (valid, keys) {
|
|
15471
15540
|
if (valid) {
|
|
15472
15541
|
_this16.submitMethod();
|
|
15473
15542
|
} else {
|
|
@@ -15493,7 +15562,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15493
15562
|
},
|
|
15494
15563
|
submitMethod: function submitMethod() {
|
|
15495
15564
|
var hasSpreadParams = this.defaultFormArray.find(function (v) {
|
|
15496
|
-
return v.type ===
|
|
15565
|
+
return v.type === 'SPREAD_PARAMS';
|
|
15497
15566
|
});
|
|
15498
15567
|
|
|
15499
15568
|
if (hasSpreadParams) {
|
|
@@ -15507,17 +15576,17 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15507
15576
|
|
|
15508
15577
|
|
|
15509
15578
|
var checkBoxKey = this.defaultFormArray.find(function (ii) {
|
|
15510
|
-
return ii.type ==
|
|
15579
|
+
return ii.type == 'CHECKBOX_BLOCK';
|
|
15511
15580
|
});
|
|
15512
15581
|
|
|
15513
|
-
if (checkBoxKey && Array.isArray(this.form[checkBoxKey.title]) && this.type ===
|
|
15514
|
-
this.form[checkBoxKey.title] = this.form[checkBoxKey.title].join(
|
|
15582
|
+
if (checkBoxKey && Array.isArray(this.form[checkBoxKey.title]) && this.type === 'customList') {
|
|
15583
|
+
this.form[checkBoxKey.title] = this.form[checkBoxKey.title].join(',');
|
|
15515
15584
|
}
|
|
15516
15585
|
|
|
15517
15586
|
var scoreJson = this.handleScoreJson();
|
|
15518
15587
|
var params;
|
|
15519
15588
|
|
|
15520
|
-
if (this.type ===
|
|
15589
|
+
if (this.type === 'customList') {
|
|
15521
15590
|
params = {
|
|
15522
15591
|
definedListId: this.ids.guage_id,
|
|
15523
15592
|
dbId: this.ids.db_id,
|
|
@@ -15539,7 +15608,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15539
15608
|
}
|
|
15540
15609
|
|
|
15541
15610
|
var tipSetting = this.defaultFormArray.find(function (item) {
|
|
15542
|
-
return item.type ===
|
|
15611
|
+
return item.type === 'SUCCESS_TIP';
|
|
15543
15612
|
});
|
|
15544
15613
|
|
|
15545
15614
|
if (tipSetting) {
|
|
@@ -15554,7 +15623,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15554
15623
|
}
|
|
15555
15624
|
|
|
15556
15625
|
var hasCallbackItem = this.defaultFormArray.find(function (v) {
|
|
15557
|
-
return v.type ===
|
|
15626
|
+
return v.type === 'CALLBACK_INTERFACE';
|
|
15558
15627
|
});
|
|
15559
15628
|
var isCallback = false;
|
|
15560
15629
|
|
|
@@ -15567,7 +15636,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15567
15636
|
*/
|
|
15568
15637
|
|
|
15569
15638
|
|
|
15570
|
-
this.$emit(
|
|
15639
|
+
this.$emit('onSubmit', params, hasCallbackItem, isCallback);
|
|
15571
15640
|
},
|
|
15572
15641
|
handleScoreJson: function handleScoreJson() {
|
|
15573
15642
|
var _this17 = this;
|
|
@@ -15587,13 +15656,13 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15587
15656
|
var keyTemp;
|
|
15588
15657
|
if (itemTemp && itemTemp.databaseTitle) keyTemp = itemTemp.databaseTitle;
|
|
15589
15658
|
|
|
15590
|
-
if (_this17.type ==
|
|
15591
|
-
if (itemTemp.setting && itemTemp.setting.dateType ==
|
|
15592
|
-
if (itemTemp.setting && itemTemp.setting.dateType ==
|
|
15659
|
+
if (_this17.type == 'customList' && itemTemp && itemTemp.setting && itemTemp.setting.startToStop != 1 && curValue && itemTemp.type == 'DATETIME') {
|
|
15660
|
+
if (itemTemp.setting && itemTemp.setting.dateType == 'time' && curValue) curValue = external_moment_default()().format('YYYY-MM-DD ') + curValue;
|
|
15661
|
+
if (itemTemp.setting && itemTemp.setting.dateType == 'date' && curValue) curValue = external_moment_default()(curValue).format('YYYY-MM-DD ') + external_moment_default()().format('HH:mm:ss');
|
|
15593
15662
|
} // 处理choice选项 将key替换为value
|
|
15594
15663
|
|
|
15595
15664
|
|
|
15596
|
-
var isChoice = [
|
|
15665
|
+
var isChoice = ['RADIO_BLOCK', 'CHECKBOX_BLOCK'].includes(itemTemp.type);
|
|
15597
15666
|
|
|
15598
15667
|
if (isChoice) {
|
|
15599
15668
|
var _curValue;
|
|
@@ -15601,19 +15670,19 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15601
15670
|
var options = itemTemp.options;
|
|
15602
15671
|
var obj = _this17.choiceComObj[key];
|
|
15603
15672
|
|
|
15604
|
-
if (itemTemp.type ===
|
|
15673
|
+
if (itemTemp.type === 'RADIO_BLOCK' && curValue) {
|
|
15605
15674
|
curValue = _this17.handleChoiceItem(curValue, options, obj);
|
|
15606
15675
|
}
|
|
15607
15676
|
|
|
15608
|
-
if (itemTemp.type ===
|
|
15677
|
+
if (itemTemp.type === 'CHECKBOX_BLOCK' && (_curValue = curValue) !== null && _curValue !== void 0 && _curValue.length) {
|
|
15609
15678
|
var resArr = _this17.handleCheckboxParams(curValue, options, obj);
|
|
15610
15679
|
|
|
15611
15680
|
curValue = resArr;
|
|
15612
15681
|
}
|
|
15613
15682
|
}
|
|
15614
15683
|
|
|
15615
|
-
if (key.includes(
|
|
15616
|
-
var newKey = keyTemp ? keyTemp.replace(/~-~/g,
|
|
15684
|
+
if (key.includes('~-~')) {
|
|
15685
|
+
var newKey = keyTemp ? keyTemp.replace(/~-~/g, '.') : key.replace(/~-~/g, '.');
|
|
15617
15686
|
res[newKey] = curValue;
|
|
15618
15687
|
} else {
|
|
15619
15688
|
res[keyTemp || key] = !curValue ? null : curValue;
|
|
@@ -15627,7 +15696,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15627
15696
|
_loop(key);
|
|
15628
15697
|
}
|
|
15629
15698
|
|
|
15630
|
-
console.log(
|
|
15699
|
+
console.log('res', res);
|
|
15631
15700
|
return res;
|
|
15632
15701
|
},
|
|
15633
15702
|
handleCheckboxParams: function handleCheckboxParams(value, options, obj) {
|
|
@@ -15658,13 +15727,13 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15658
15727
|
return res;
|
|
15659
15728
|
},
|
|
15660
15729
|
handleChoiceItem: function handleChoiceItem(value, options, obj) {
|
|
15661
|
-
var
|
|
15662
|
-
othersText =
|
|
15663
|
-
|
|
15664
|
-
optionsPreSuffixObj =
|
|
15730
|
+
var _ref12 = obj || {},
|
|
15731
|
+
othersText = _ref12.othersText,
|
|
15732
|
+
_ref12$optionsPreSuff = _ref12.optionsPreSuffixObj,
|
|
15733
|
+
optionsPreSuffixObj = _ref12$optionsPreSuff === void 0 ? {} : _ref12$optionsPreSuff;
|
|
15665
15734
|
|
|
15666
|
-
if (value ===
|
|
15667
|
-
return othersText ||
|
|
15735
|
+
if (value === 'other') {
|
|
15736
|
+
return othersText || '其他';
|
|
15668
15737
|
}
|
|
15669
15738
|
|
|
15670
15739
|
var matchItem = options.find(function (o, i) {
|
|
@@ -15676,7 +15745,7 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15676
15745
|
});
|
|
15677
15746
|
if (!matchItem) return;
|
|
15678
15747
|
if (!matchItem.prefix && !matchItem.suffix) return matchItem.value;
|
|
15679
|
-
var resValue = optionsPreSuffixObj[value] ||
|
|
15748
|
+
var resValue = optionsPreSuffixObj[value] || '';
|
|
15680
15749
|
|
|
15681
15750
|
if (matchItem.prefix) {
|
|
15682
15751
|
resValue = matchItem.prefix + resValue;
|
|
@@ -15690,15 +15759,15 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15690
15759
|
this.$refs.ruleForm.resetFields();
|
|
15691
15760
|
},
|
|
15692
15761
|
cancel: function cancel() {
|
|
15693
|
-
this.$emit(
|
|
15762
|
+
this.$emit('onCloseSetting');
|
|
15694
15763
|
},
|
|
15695
15764
|
handleEvaluationScore: function handleEvaluationScore(ele) {
|
|
15696
|
-
var
|
|
15697
|
-
|
|
15698
|
-
minScore =
|
|
15699
|
-
|
|
15700
|
-
maxScore =
|
|
15701
|
-
scoreType =
|
|
15765
|
+
var _ref13 = ele.scoreConfigs || {},
|
|
15766
|
+
_ref13$minScore = _ref13.minScore,
|
|
15767
|
+
minScore = _ref13$minScore === void 0 ? 0 : _ref13$minScore,
|
|
15768
|
+
_ref13$maxScore = _ref13.maxScore,
|
|
15769
|
+
maxScore = _ref13$maxScore === void 0 ? 0 : _ref13$maxScore,
|
|
15770
|
+
scoreType = _ref13.scoreType;
|
|
15702
15771
|
|
|
15703
15772
|
return "(".concat(maxScore, "\u5206)");
|
|
15704
15773
|
}
|
|
@@ -15706,8 +15775,8 @@ var scaleViewvue_type_script_lang_js_components;
|
|
|
15706
15775
|
}));
|
|
15707
15776
|
// CONCATENATED MODULE: ./packages/scale-view/scaleView.vue?vue&type=script&lang=js&
|
|
15708
15777
|
/* harmony default export */ var scale_view_scaleViewvue_type_script_lang_js_ = (scaleViewvue_type_script_lang_js_);
|
|
15709
|
-
// EXTERNAL MODULE: ./packages/scale-view/scaleView.vue?vue&type=style&index=0&id=
|
|
15710
|
-
var
|
|
15778
|
+
// EXTERNAL MODULE: ./packages/scale-view/scaleView.vue?vue&type=style&index=0&id=73f10a27&lang=less&scoped=true&
|
|
15779
|
+
var scaleViewvue_type_style_index_0_id_73f10a27_lang_less_scoped_true_ = __webpack_require__("28d2");
|
|
15711
15780
|
|
|
15712
15781
|
// CONCATENATED MODULE: ./packages/scale-view/scaleView.vue
|
|
15713
15782
|
|
|
@@ -15724,20 +15793,20 @@ var scaleView_component = Object(componentNormalizer["a" /* default */])(
|
|
|
15724
15793
|
staticRenderFns,
|
|
15725
15794
|
false,
|
|
15726
15795
|
null,
|
|
15727
|
-
"
|
|
15796
|
+
"73f10a27",
|
|
15728
15797
|
null
|
|
15729
15798
|
|
|
15730
15799
|
)
|
|
15731
15800
|
|
|
15732
15801
|
/* harmony default export */ var scaleView = (scaleView_component.exports);
|
|
15733
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15802
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/customList.vue?vue&type=template&id=d295e338&scoped=true&
|
|
15734
15803
|
var customListvue_type_template_id_d295e338_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"r-scale"},[(_vm.spinning)?_vm._t("default",function(){return [_c('a-spin',{attrs:{"indicator":_vm.indicator}})]}):_vm._t("default",function(){return [_c('a-form-model',{ref:"ruleForm",staticClass:"main",attrs:{"model":_vm.form,"rules":_vm.rules,"layout":_vm.form.layout}},[_vm._l((_vm.formArray),function(item){return [(item.type == 'TITLE')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[_c('h1',{staticClass:"lb-title"},[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:"lb-title"},[_vm._v(_vm._s(item.describe))])]):_vm._e()]:(item.type == 'LINEBAR')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[(item.title)?_c('div',{staticClass:"linebar-div"},[_c('span',[_vm._v(_vm._s(item.title))]),_c('a-divider')],1):[_c('a-divider')]],2):_vm._e()]:(item.type == 'PROMPT')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,staticClass:"my-prompt",attrs:{"colon":false}},[_c('MyPrompt',{key:item.id || item.seq,attrs:{"options":item.setting}})],1):_vm._e()]:(item.type == 'IMGCARD')?[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"colon":false}},[(item.setting.imgLink)?_c('a',{attrs:{"href":item.setting.imgLink,"target":"_blank"}},[_c('img',{staticClass:"img-card",attrs:{"src":item.setting.imgUrl}})]):_c('img',{staticClass:"img-card",attrs:{"src":item.setting.imgUrl}})]):_vm._e()]:[(_vm.isShowItem(item))?_c('a-form-model-item',{key:item.id || item.seq,attrs:{"label":("" + (item.title)),"prop":item.title}},[(_vm.isInput(item.type))?_c('MyInput',_vm._b({attrs:{"type":item.valueType,"row":item.setting.inputRow || 1,"isLock":_vm.isLock},model:{value:(_vm.form[item.title]),callback:function ($$v) {_vm.$set(_vm.form, item.title, $$v)},expression:"form[item.title]"}},'MyInput',_vm.$attrs,false)):(_vm.isChoice(item.type))?_c('MyChoice',_vm._b({attrs:{"item":item,"isLock":_vm.isLock},on:{"change":function($event){return _vm.handleChoice($event, item)},"radioChange":_vm.radioChange,"checkboxChange":_vm.checkboxChange},model:{value:(_vm.form[item.title]),callback:function ($$v) {_vm.$set(_vm.form, item.title, $$v)},expression:"form[item.title]"}},'MyChoice',_vm.$attrs,false)):(_vm.isTime(item.type))?_c('MyTime',_vm._b({attrs:{"value":_vm.form[item.title],"type":item.type,"startToStop":item.setting.startToStop,"dateType":item.setting.dateType,"isLock":_vm.isLock},on:{"change":function($event){return _vm.changeTime($event, item)}}},'MyTime',_vm.$attrs,false)):(_vm.isUpload(item.type))?_c('MyUpload',_vm._b({attrs:{"upType":item.type,"useFileList":item.useFileList,"limitPic":item.setting.limitPic,"isLock":_vm.isLock},on:{"change":function($event){return _vm.changeUpload($event, item)}}},'MyUpload',_vm.$attrs,false)):(item.type === 'LOCATION')?_c('div',{class:{ 'map-container': !_vm.isLock },on:{"click":function($event){!_vm.isLock && (_vm.mapVisible = !_vm.mapVisible)}}},[_c('a-input',{attrs:{"placeholder":"请选择","value":_vm.handleGetAddress(_vm.form[item.title]),"disabled":""}},[_c('a-icon',{attrs:{"slot":"prefix","type":"info-circle"},slot:"prefix"})],1),_c('MapComp',_vm._b({attrs:{"visible":_vm.mapVisible,"locationProp":_vm.form[item.title],"isLock":_vm.isLock},on:{"update:visible":function($event){_vm.mapVisible=$event},"selectLocation":function($event){return _vm.handleSelectLocation($event, item)}}},'MapComp',_vm.$attrs,false))],1):(item.type === 'ADDRESS')?_c('MyAddress',_vm._b({attrs:{"setting":item.setting,"defaultValue":_vm.defaultAddress,"isLock":_vm.isLock},on:{"change":function($event){return _vm.changeAddress($event, item)}}},'MyAddress',_vm.$attrs,false)):(item.type === 'LABEL')?_c('label-form',_vm._b({attrs:{"item":item,"selectedList":_vm.labelSelectedList,"isLock":_vm.isLock},on:{"onChange":function($event){return _vm.labelChange($event, item)}}},'label-form',_vm.$attrs,false)):(item.type === 'VEDIO')?_c('vod-Chunk-upload',_vm._b({attrs:{"source":'guage',"formData":item,"limitNum":item.setting.limitPic,"defFileList":_vm.form[item.title]},on:{"vodFileList":function($event){return _vm.vodFileList($event, item)}}},'vod-Chunk-upload',_vm.$attrs,false)):_vm._e()],1):_vm._e()]]})],2),(!_vm.noBtn)?_c('div',{staticClass:"footer"},[_c('a-button',{staticStyle:{"margin-right":"10px"},on:{"click":_vm.cancel}},[_vm._v("取消")]),_c('a-button',{attrs:{"type":"primary"},on:{"click":_vm.onSubmit}},[_vm._v("保存")])],1):_vm._e()]})],2)}
|
|
15735
15804
|
var customListvue_type_template_id_d295e338_scoped_true_staticRenderFns = []
|
|
15736
15805
|
|
|
15737
15806
|
|
|
15738
15807
|
// CONCATENATED MODULE: ./packages/scale-view/customList.vue?vue&type=template&id=d295e338&scoped=true&
|
|
15739
15808
|
|
|
15740
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15809
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/scale-view/formitem/r-upload-custom-list.vue?vue&type=template&id=07a87b0c&scoped=true&
|
|
15741
15810
|
var r_upload_custom_listvue_type_template_id_07a87b0c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"r-upload"},[(_vm.upType == 'UPFILE')?_c('a-upload-dragger',{attrs:{"name":"file","multiple":true,"defaultFileList":_vm.defaultFileList,"action":_vm.uploadFileUrl,"disabled":_vm.isLock},on:{"change":_vm.handleFileChange}},[_c('p',{staticClass:"dragger-upload-text"},[_c('a-icon',{staticClass:"m-icon",attrs:{"type":"plus"}}),_vm._v("请点击文件上传,单个文件50M以内。 ")],1)]):_vm._e(),(_vm.upType == 'UPPICTURE')?_c('a-upload',{attrs:{"list-type":"picture-card","accept":"image/*","method":"post","defaultFileList":_vm.defaultFileList,"action":_vm.uploadPictureUrl,"before-upload":_vm.beforeUpload,"disabled":_vm.isLock || _vm.isUploading},on:{"preview":_vm.handlePreview,"change":_vm.handlePictureChange}},[(_vm.fileList.length < _vm.limitPic)?_c('div',[_c('a-icon',{attrs:{"type":"plus"}}),_c('div',{staticClass:"ant-upload-text"},[_vm._v(" 添加图片 ")])],1):_vm._e()]):_vm._e(),_c('a-modal',{attrs:{"visible":_vm.previewVisible,"footer":null},on:{"cancel":_vm.handleCancel}},[_c('img',{staticStyle:{"width":"100%"},attrs:{"alt":"example","src":_vm.previewImage}})])],1)}
|
|
15742
15811
|
var r_upload_custom_listvue_type_template_id_07a87b0c_scoped_true_staticRenderFns = []
|
|
15743
15812
|
|
|
@@ -17089,7 +17158,7 @@ module.exports = require("ant-design-vue/es/radio");
|
|
|
17089
17158
|
|
|
17090
17159
|
"use strict";
|
|
17091
17160
|
|
|
17092
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17161
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/select-label/labelFormContent.vue?vue&type=template&id=3b3d070c&scoped=true&
|
|
17093
17162
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"labelFormContent-page"},[(_vm.allDisable)?_c('div',{staticClass:"label-disable-wrap"},[_c('p',{staticClass:"label-disable-title"},[_vm._v("无可选标签")]),_c('p',{staticClass:"label-disable-desc"},[_vm._v("请联系管理员进行标签管理设置")])]):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.allDisable),expression:"!allDisable"}],staticStyle:{"height":"100%"}},[_c('div',{staticClass:"label-wrap"},[(_vm.explicit)?_c('div',{staticClass:"explicit-continer"},[_c('a-tabs',{attrs:{"hideAdd":"","activeKey":_vm.labelAnchorKey,"type":"card","tab-position":"top"},on:{"change":_vm.labelAnchorTabsOnChange}},[_vm._l((_vm.labelConfig),function(v,i){return [_c('a-tab-pane',{key:v.curKey},[_c('span',{attrs:{"slot":"tab"},slot:"tab"},[_vm._v(" "+_vm._s(i)+" "),_c('span',{staticClass:"edit-label-type"},[_vm._v("("+_vm._s(v.multipleChoice == 2 ? '单' : '多')+"选)")])]),_c('div',{staticClass:"explicit-label-wrap left-label-wrap"},[_c('div',{staticClass:"edit-label-content"},[_c('labelClassify',{attrs:{"classifyItem":v,"handleLabelChange":_vm.handleLabelChange,"handleLabelColor":_vm.handleLabelColor,"handleDelLabel":_vm.handleDelLabel,"hanldeBlur":_vm.hanldeBlur,"handleAddLabel":_vm.handleAddLabel,"clearaddVal":_vm.clearaddVal,"isEdit":_vm.isEdit,"sourceType":_vm.sourceType}})],1)])])]})],2)],1):_c('div',{staticClass:"left-label-wrap",class:{
|
|
17094
17163
|
'total-left-label-wrap': _vm.isChangeWindow
|
|
17095
17164
|
}},[_c('a-tabs',{attrs:{"hideAdd":"","activeKey":_vm.labelAnchorKey,"tab-position":"left"},on:{"change":_vm.labelAnchorTabsOnChange}},[_vm._l((_vm.labelConfig),function(v,i){return [_c('a-tab-pane',{key:v.curKey},[_c('span',{attrs:{"slot":"tab"},slot:"tab"},[_vm._v(" "+_vm._s(i)+" ")])])]})],2)],1),(!_vm.explicit)?_c('div',{staticClass:"right-label-wrap",class:{
|
|
@@ -17232,7 +17301,7 @@ var create = __webpack_require__("8aef");
|
|
|
17232
17301
|
var vexutils_ = __webpack_require__("9715");
|
|
17233
17302
|
var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
17234
17303
|
|
|
17235
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
17304
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"463dbce7-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/select-label/label-classify.vue?vue&type=template&id=a7ea64a2&scoped=true&
|
|
17236
17305
|
var label_classifyvue_type_template_id_a7ea64a2_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"edit-content"},[(!_vm.itemList)?_c('div',{staticClass:"label-disable-wrap"},[_c('p',{staticClass:"label-disable-title"},[_vm._v("无可选标签")]),_c('p',{staticClass:"label-disable-desc"},[_vm._v("请联系管理员进行标签管理设置")])]):_c('div',{staticClass:"label-content"},[_vm._l((_vm.itemList),function(item){return _c('a-checkable-tag',{key:item.labelId,class:{ 'sys-label-tag': item.isPublic && item.isPublic == 1 },style:(_vm.handleLabelColor(item)),on:{"change":function($event){return _vm.handleLabelChange($event, item, _vm.classifyItem)}},model:{value:(item.isSelect),callback:function ($$v) {_vm.$set(item, "isSelect", $$v)},expression:"item.isSelect"}},[_c('a-tooltip',{attrs:{"placement":"topLeft"}},[_c('template',{slot:"title"},[_c('span',[_vm._v(_vm._s(item.labelName))])]),_vm._v(" "+_vm._s(item.labelName)+" ")],2),(_vm.sourceType != 'guage')?[_c('a-icon',{directives:[{name:"show",rawName:"v-show",value:(!(item.isPublic && item.isPublic == 1)),expression:"!(item.isPublic && item.isPublic == 1)"}],staticClass:"label-close",attrs:{"type":"close"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handleDelLabel(item, _vm.classifyItem)}}})]:_vm._e()],2)}),(_vm.classifyItem.allowCreateByPersonal == 1 )?[(_vm.isEdit && !_vm.classifyItem.isNoAdd && _vm.sourceType != 'guage')?_c('a-button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.classifyItem.showAdd),expression:"!classifyItem.showAdd"}],staticClass:"label-add",attrs:{"type":"dashed"},on:{"click":function($event){return _vm.handleAddLabel($event, _vm.classifyItem)}}},[_c('a-icon',{attrs:{"type":"plus"}}),_vm._v(" 标签 ")],1):_vm._e(),(_vm.isEdit && !_vm.classifyItem.isNoAdd && _vm.sourceType != 'guage')?_c('a-input',{directives:[{name:"show",rawName:"v-show",value:(_vm.classifyItem.showAdd),expression:"classifyItem.showAdd"}],staticClass:"label-add add-input",on:{"blur":function($event){return _vm.hanldeBlur($event, _vm.classifyItem)}},model:{value:(_vm.classifyItem.addVal),callback:function ($$v) {_vm.$set(_vm.classifyItem, "addVal", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:"classifyItem.addVal"}},[_c('a-icon',{attrs:{"slot":"suffix","type":"close"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clearaddVal($event, _vm.classifyItem)}},slot:"suffix"})],1):_vm._e()]:_vm._e()],2)])}
|
|
17237
17306
|
var label_classifyvue_type_template_id_a7ea64a2_scoped_true_staticRenderFns = []
|
|
17238
17307
|
|