ecinc-cloud-moahygl 9.5.4 → 9.5.6
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/index.js +5 -30
- package/lib/ecmoahygl.common.js +505 -30
- package/lib/ecmoahygl.umd.js +505 -30
- package/lib/ecmoahygl.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/ecmoahygl.umd.js
CHANGED
|
@@ -18382,6 +18382,22 @@ module.exports = exports;
|
|
|
18382
18382
|
})));
|
|
18383
18383
|
|
|
18384
18384
|
|
|
18385
|
+
/***/ }),
|
|
18386
|
+
|
|
18387
|
+
/***/ "5fb8":
|
|
18388
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
18389
|
+
|
|
18390
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
18391
|
+
|
|
18392
|
+
// load the styles
|
|
18393
|
+
var content = __webpack_require__("9e08");
|
|
18394
|
+
if(content.__esModule) content = content.default;
|
|
18395
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
18396
|
+
if(content.locals) module.exports = content.locals;
|
|
18397
|
+
// add the styles to the DOM
|
|
18398
|
+
var add = __webpack_require__("499e").default
|
|
18399
|
+
var update = add("1aec6ce2", content, true, {"sourceMap":false,"shadowMode":false});
|
|
18400
|
+
|
|
18385
18401
|
/***/ }),
|
|
18386
18402
|
|
|
18387
18403
|
/***/ "5fbd":
|
|
@@ -22466,6 +22482,20 @@ if(content.locals) module.exports = content.locals;
|
|
|
22466
22482
|
var add = __webpack_require__("499e").default
|
|
22467
22483
|
var update = add("bc91f9b6", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22468
22484
|
|
|
22485
|
+
/***/ }),
|
|
22486
|
+
|
|
22487
|
+
/***/ "9e08":
|
|
22488
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22489
|
+
|
|
22490
|
+
// Imports
|
|
22491
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
22492
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
22493
|
+
// Module
|
|
22494
|
+
exports.push([module.i, ".voteInfo-box[data-v-dff72a64]{color:#999;font-size:12px}.height0[data-v-dff72a64]{height:calc(100vh - 152px)}.container[data-v-dff72a64],.height1[data-v-dff72a64]{height:calc(100vh - 100px)}.container[data-v-dff72a64]{overflow-y:scroll;padding-left:16px;padding-right:16px}.container .subject-title[data-v-dff72a64]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.container .subject-xuanxiang-radio[data-v-dff72a64] .van-radio-group .van-radio{margin-bottom:10px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.container .subject-xuanxiang-radio .subject-xuanxiang-radio-item p[data-v-dff72a64]{margin:0}.container .subject-xuanxiang-radio .subject-xuanxiang-radio-item .img-box[data-v-dff72a64]{height:84px}.container .subject-xuanxiang-checkbox[data-v-dff72a64] .van-checkbox-group .van-checkbox{margin-bottom:10px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.container .subject-xuanxiang-checkbox .subject-xuanxiang-checkbox-item p[data-v-dff72a64]{margin:0}.container .subject-xuanxiang-checkbox .subject-xuanxiang-checkbox-item .img-box[data-v-dff72a64]{height:84px}.btnBox[data-v-dff72a64]{position:fixed;width:100%;bottom:0;left:0;height:64px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:10px 16px;background-color:#fff;border-top:1px solid #ebedf0}", ""]);
|
|
22495
|
+
// Exports
|
|
22496
|
+
module.exports = exports;
|
|
22497
|
+
|
|
22498
|
+
|
|
22469
22499
|
/***/ }),
|
|
22470
22500
|
|
|
22471
22501
|
/***/ "9e14":
|
|
@@ -30470,6 +30500,17 @@ var update = add("6b068305", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
30470
30500
|
})));
|
|
30471
30501
|
|
|
30472
30502
|
|
|
30503
|
+
/***/ }),
|
|
30504
|
+
|
|
30505
|
+
/***/ "ec94":
|
|
30506
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30507
|
+
|
|
30508
|
+
"use strict";
|
|
30509
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_newTouPiao_vue_vue_type_style_index_0_id_dff72a64_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5fb8");
|
|
30510
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_newTouPiao_vue_vue_type_style_index_0_id_dff72a64_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_newTouPiao_vue_vue_type_style_index_0_id_dff72a64_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
30511
|
+
/* unused harmony reexport * */
|
|
30512
|
+
|
|
30513
|
+
|
|
30473
30514
|
/***/ }),
|
|
30474
30515
|
|
|
30475
30516
|
/***/ "eda5":
|
|
@@ -51945,6 +51986,466 @@ var QRwaiting_component = normalizeComponent(
|
|
|
51945
51986
|
)
|
|
51946
51987
|
|
|
51947
51988
|
/* harmony default export */ var QRwaiting = (QRwaiting_component.exports);
|
|
51989
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d3ac57a0-vue-loader-template"}!./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/ecmoa/hygl/src/mapp/tpgl/components/newTouPiao.vue?vue&type=template&id=dff72a64&scoped=true&
|
|
51990
|
+
var newTouPiaovue_type_template_id_dff72a64_scoped_true_render = function render() {
|
|
51991
|
+
var _vm = this,
|
|
51992
|
+
_c = _vm._self._c;
|
|
51993
|
+
return _c('div', {
|
|
51994
|
+
staticClass: "app-container"
|
|
51995
|
+
}, [_c('div', [_c('van-cell', [_c('template', {
|
|
51996
|
+
slot: "title"
|
|
51997
|
+
}, [_c('span', {
|
|
51998
|
+
staticStyle: {
|
|
51999
|
+
"font-size": "16px"
|
|
52000
|
+
}
|
|
52001
|
+
}, [_vm._v(_vm._s(_vm.voteInfo.voteTheme))])])], 2), _c('van-cell', {
|
|
52002
|
+
staticStyle: {
|
|
52003
|
+
"align-items": "center"
|
|
52004
|
+
}
|
|
52005
|
+
}, [_c('template', {
|
|
52006
|
+
slot: "title"
|
|
52007
|
+
}, [_c('div', {
|
|
52008
|
+
staticClass: "voteInfo-box"
|
|
52009
|
+
}, [_c('span', {
|
|
52010
|
+
staticStyle: {
|
|
52011
|
+
"margin-right": "8px"
|
|
52012
|
+
}
|
|
52013
|
+
}, [_vm._v(_vm._s(_vm.voteInfo.sponsor))]), _c('span', [_vm._v(_vm._s(_vm.voteInfo.startTime) + "至" + _vm._s(_vm.voteInfo.endTime))])])]), _c('template', {
|
|
52014
|
+
slot: "label"
|
|
52015
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.voteInfo.voteDes))])])], 2)], 1), _vm.vo.passenger && _vm.vo.passenger['subjects'] ? _c('div', {
|
|
52016
|
+
staticClass: "container",
|
|
52017
|
+
class: {
|
|
52018
|
+
'height0': !_vm.routerParams.canEdit,
|
|
52019
|
+
'height1': _vm.routerParams.canEdit
|
|
52020
|
+
}
|
|
52021
|
+
}, _vm._l(_vm.vo.passenger['subjects'], function (item, index) {
|
|
52022
|
+
return _c('div', {
|
|
52023
|
+
key: index
|
|
52024
|
+
}, [_c('p', {
|
|
52025
|
+
staticClass: "subject-title"
|
|
52026
|
+
}, [_c('span', [_vm._v(_vm._s(index + 1) + "、")]), _c('van-tag', {
|
|
52027
|
+
staticStyle: {
|
|
52028
|
+
"margin-right": "8px"
|
|
52029
|
+
},
|
|
52030
|
+
attrs: {
|
|
52031
|
+
"type": "primary"
|
|
52032
|
+
}
|
|
52033
|
+
}, [_vm._v(_vm._s(_vm.voteTypeArr[item.voteType - 1]))]), _c('span', [_vm._v(_vm._s(item.subject))])], 1), item.voteType === 1 ? _c('div', {
|
|
52034
|
+
staticClass: "subject-xuanxiang-radio"
|
|
52035
|
+
}, [_c('van-radio-group', {
|
|
52036
|
+
model: {
|
|
52037
|
+
value: item.checkedValue,
|
|
52038
|
+
callback: function callback($$v) {
|
|
52039
|
+
_vm.$set(item, "checkedValue", $$v);
|
|
52040
|
+
},
|
|
52041
|
+
expression: "item.checkedValue"
|
|
52042
|
+
}
|
|
52043
|
+
}, _vm._l(item.passenger['choices'], function (choice, _index) {
|
|
52044
|
+
return _c('van-radio', {
|
|
52045
|
+
key: _index,
|
|
52046
|
+
attrs: {
|
|
52047
|
+
"name": choice.id,
|
|
52048
|
+
"icon-size": "18px",
|
|
52049
|
+
"disabled": !_vm.routerParams.canEdit
|
|
52050
|
+
}
|
|
52051
|
+
}, [_c('div', {
|
|
52052
|
+
staticClass: "subject-xuanxiang-radio-item"
|
|
52053
|
+
}, [_c('p', [_vm._v(_vm._s(choice.subject))]), choice.coverUrl !== null ? _c('img', {
|
|
52054
|
+
staticClass: "img-box",
|
|
52055
|
+
staticStyle: {
|
|
52056
|
+
"margin": "10px 0px"
|
|
52057
|
+
},
|
|
52058
|
+
attrs: {
|
|
52059
|
+
"src": _vm.base_api + '/hygl/vote/download?dataField=voteFile&nameField=voteFileName&id=' + choice.id
|
|
52060
|
+
}
|
|
52061
|
+
}) : _vm._e()])]);
|
|
52062
|
+
}), 1)], 1) : _vm._e(), item.voteType === 2 ? _c('div', {
|
|
52063
|
+
staticClass: "subject-xuanxiang-checkbox"
|
|
52064
|
+
}, [_c('van-checkbox-group', {
|
|
52065
|
+
model: {
|
|
52066
|
+
value: item.checkedValue,
|
|
52067
|
+
callback: function callback($$v) {
|
|
52068
|
+
_vm.$set(item, "checkedValue", $$v);
|
|
52069
|
+
},
|
|
52070
|
+
expression: "item.checkedValue"
|
|
52071
|
+
}
|
|
52072
|
+
}, _vm._l(item.passenger['choices'], function (choice, _index) {
|
|
52073
|
+
return _c('van-checkbox', {
|
|
52074
|
+
key: _index,
|
|
52075
|
+
attrs: {
|
|
52076
|
+
"icon-size": "18px",
|
|
52077
|
+
"name": choice.id,
|
|
52078
|
+
"disabled": !_vm.routerParams.canEdit
|
|
52079
|
+
}
|
|
52080
|
+
}, [_c('div', {
|
|
52081
|
+
staticClass: "subject-xuanxiang-checkbox-item"
|
|
52082
|
+
}, [_c('p', [_vm._v(_vm._s(choice.subject))]), choice.coverUrl !== null ? _c('img', {
|
|
52083
|
+
staticClass: "img-box",
|
|
52084
|
+
staticStyle: {
|
|
52085
|
+
"margin": "10px 0px"
|
|
52086
|
+
},
|
|
52087
|
+
attrs: {
|
|
52088
|
+
"src": _vm.base_api + '/hygl/vote/download?dataField=voteFile&nameField=voteFileName&id=' + choice.id
|
|
52089
|
+
}
|
|
52090
|
+
}) : _vm._e()])]);
|
|
52091
|
+
}), 1)], 1) : _vm._e()]);
|
|
52092
|
+
}), 0) : _vm._e(), _vm.routerParams.canEdit ? _c('div', {
|
|
52093
|
+
staticClass: "btnBox"
|
|
52094
|
+
}, [_vm.vo.choiceStatus !== 2 ? _c('van-button', {
|
|
52095
|
+
staticStyle: {
|
|
52096
|
+
"width": "100%"
|
|
52097
|
+
},
|
|
52098
|
+
attrs: {
|
|
52099
|
+
"type": "info"
|
|
52100
|
+
},
|
|
52101
|
+
on: {
|
|
52102
|
+
"click": _vm.submitVoteResInfo
|
|
52103
|
+
}
|
|
52104
|
+
}, [_vm._v("提交问卷")]) : _vm._e(), _vm.vo.choiceStatus === 2 ? _c('van-button', {
|
|
52105
|
+
staticStyle: {
|
|
52106
|
+
"width": "100%"
|
|
52107
|
+
},
|
|
52108
|
+
attrs: {
|
|
52109
|
+
"type": "info"
|
|
52110
|
+
},
|
|
52111
|
+
on: {
|
|
52112
|
+
"click": _vm.backVoteResInfo
|
|
52113
|
+
}
|
|
52114
|
+
}, [_vm._v("返回")]) : _vm._e()], 1) : _vm._e()]);
|
|
52115
|
+
};
|
|
52116
|
+
var newTouPiaovue_type_template_id_dff72a64_scoped_true_staticRenderFns = [];
|
|
52117
|
+
|
|
52118
|
+
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/mapp/tpgl/components/newTouPiao.vue?vue&type=template&id=dff72a64&scoped=true&
|
|
52119
|
+
|
|
52120
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/ecmoa/hygl/src/mapp/tpgl/components/newTouPiao.vue?vue&type=script&lang=js&
|
|
52121
|
+
/* harmony default export */ var newTouPiaovue_type_script_lang_js_ = ({
|
|
52122
|
+
components: {},
|
|
52123
|
+
props: {},
|
|
52124
|
+
data: function data() {
|
|
52125
|
+
return {
|
|
52126
|
+
base_api: "/apigw",
|
|
52127
|
+
// 问卷主题详情
|
|
52128
|
+
voteInfo: {},
|
|
52129
|
+
voteResult: {},
|
|
52130
|
+
// 路由参数
|
|
52131
|
+
routerParams: {},
|
|
52132
|
+
id: '',
|
|
52133
|
+
account: '',
|
|
52134
|
+
orgCode: '',
|
|
52135
|
+
canEdit: null,
|
|
52136
|
+
vo: {},
|
|
52137
|
+
voteTypeArr: ['单选', '多选'],
|
|
52138
|
+
resInfoList: [],
|
|
52139
|
+
// 投票结果列表
|
|
52140
|
+
myChoiceList: []
|
|
52141
|
+
};
|
|
52142
|
+
},
|
|
52143
|
+
computed: {},
|
|
52144
|
+
watch: {},
|
|
52145
|
+
created: function created() {
|
|
52146
|
+
this.$bus.emit('hideBottom');
|
|
52147
|
+
},
|
|
52148
|
+
beforeDestroy: function beforeDestroy() {
|
|
52149
|
+
this.$bus.emit('showBottom');
|
|
52150
|
+
this.$wv.setTitle({
|
|
52151
|
+
'bool': true,
|
|
52152
|
+
'text': '我参与的',
|
|
52153
|
+
'color': '#000000'
|
|
52154
|
+
});
|
|
52155
|
+
},
|
|
52156
|
+
mounted: function mounted() {
|
|
52157
|
+
var _this2 = this;
|
|
52158
|
+
this.$bus.emit('hideBottom');
|
|
52159
|
+
this.$nextTick(function () {
|
|
52160
|
+
_this2.routerParams = _this2.$route.query;
|
|
52161
|
+
_this2.$wv.setTitle({
|
|
52162
|
+
'bool': true,
|
|
52163
|
+
'text': _this2.routerParams.text ? _this2.routerParams.text : '我参与的',
|
|
52164
|
+
'color': '#000000'
|
|
52165
|
+
});
|
|
52166
|
+
console.log(location.href, 'url');
|
|
52167
|
+
console.log('this.routerParams', _this2.$route);
|
|
52168
|
+
_this2.openMyParticipate();
|
|
52169
|
+
_this2.routerParams.canEdit = Number(_this2.routerParams.canEdit);
|
|
52170
|
+
});
|
|
52171
|
+
},
|
|
52172
|
+
methods: {
|
|
52173
|
+
backVoteResInfo: function backVoteResInfo() {
|
|
52174
|
+
this.$router.back(-1);
|
|
52175
|
+
},
|
|
52176
|
+
submitVoteResInfo: function submitVoteResInfo() {
|
|
52177
|
+
var _this3 = this;
|
|
52178
|
+
this.choiceTotle = 0;
|
|
52179
|
+
// 投票校验
|
|
52180
|
+
var flag = true;
|
|
52181
|
+
this.vo.passenger.subjects.forEach(function (item) {
|
|
52182
|
+
if (!item.checkedValue) {
|
|
52183
|
+
flag = false;
|
|
52184
|
+
}
|
|
52185
|
+
});
|
|
52186
|
+
if (!flag) {
|
|
52187
|
+
this.$toast('还有题目未选择');
|
|
52188
|
+
return;
|
|
52189
|
+
}
|
|
52190
|
+
this.vo.passenger.subjects.forEach(function (item) {
|
|
52191
|
+
item.passenger.choices.forEach(function (data) {
|
|
52192
|
+
if (Array.isArray(item.checkedValue)) {
|
|
52193
|
+
if (item.checkedValue.includes(data.id)) {
|
|
52194
|
+
_this3.choiceTotle++;
|
|
52195
|
+
var tmpObj = {
|
|
52196
|
+
resultId: _this3.voteResult.id,
|
|
52197
|
+
subjectId: item.id,
|
|
52198
|
+
subjectName: item.subject,
|
|
52199
|
+
voteType: item.voteType,
|
|
52200
|
+
choiceId: data.id,
|
|
52201
|
+
choiceName: data.subject,
|
|
52202
|
+
status: 1
|
|
52203
|
+
};
|
|
52204
|
+
_this3.initResultInfo(tmpObj);
|
|
52205
|
+
}
|
|
52206
|
+
} else if (item.checkedValue === data.id) {
|
|
52207
|
+
_this3.choiceTotle++;
|
|
52208
|
+
var _tmpObj = {
|
|
52209
|
+
resultId: _this3.voteResult.id,
|
|
52210
|
+
subjectId: item.id,
|
|
52211
|
+
subjectName: item.subject,
|
|
52212
|
+
voteType: item.voteType,
|
|
52213
|
+
choiceId: data.id,
|
|
52214
|
+
choiceName: data.subject,
|
|
52215
|
+
status: 1
|
|
52216
|
+
};
|
|
52217
|
+
_this3.initResultInfo(_tmpObj);
|
|
52218
|
+
}
|
|
52219
|
+
});
|
|
52220
|
+
});
|
|
52221
|
+
},
|
|
52222
|
+
/**
|
|
52223
|
+
* 初始化投票结果明细
|
|
52224
|
+
*/
|
|
52225
|
+
initResultInfo: function initResultInfo(obj) {
|
|
52226
|
+
var _this = this;
|
|
52227
|
+
this.$http({
|
|
52228
|
+
method: 'POST',
|
|
52229
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
52230
|
+
url: 'hygl/voteResultInfo/addNew'
|
|
52231
|
+
}).then(function (res) {
|
|
52232
|
+
if (res.code === 'success') {
|
|
52233
|
+
var resobj = res.body.vo;
|
|
52234
|
+
resobj.resultId = obj.resultId;
|
|
52235
|
+
resobj.subjectId = obj.subjectId;
|
|
52236
|
+
resobj.subjectName = obj.subjectName;
|
|
52237
|
+
resobj.voteType = obj.voteType;
|
|
52238
|
+
resobj.choiceId = obj.choiceId;
|
|
52239
|
+
resobj.choiceName = obj.choiceName;
|
|
52240
|
+
resobj.status = obj.status;
|
|
52241
|
+
_this.resInfoList.push(resobj);
|
|
52242
|
+
if (_this.resInfoList.length === _this.choiceTotle) {
|
|
52243
|
+
_this.saveVoteResInfo(_this.resInfoList[0]);
|
|
52244
|
+
}
|
|
52245
|
+
} else {
|
|
52246
|
+
_this.$toast(res.message);
|
|
52247
|
+
}
|
|
52248
|
+
});
|
|
52249
|
+
},
|
|
52250
|
+
/**
|
|
52251
|
+
* 投票明细保存
|
|
52252
|
+
*/
|
|
52253
|
+
saveVoteResInfo: function saveVoteResInfo(resobj) {
|
|
52254
|
+
var _this4 = this;
|
|
52255
|
+
// const _this = this
|
|
52256
|
+
this.$http({
|
|
52257
|
+
method: 'POST',
|
|
52258
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
52259
|
+
data: resobj,
|
|
52260
|
+
url: 'hygl/voteResultInfo/insert'
|
|
52261
|
+
}).then(function (res) {
|
|
52262
|
+
if (res.code === 'success') {
|
|
52263
|
+
_this4.resInfoList.splice(0, 1);
|
|
52264
|
+
if (_this4.resInfoList.length > 0) {
|
|
52265
|
+
_this4.saveVoteResInfo(_this4.resInfoList[0]);
|
|
52266
|
+
} else {
|
|
52267
|
+
_this4.voteResult.choiceStatus = 2;
|
|
52268
|
+
// 更新用户是否投票的状态
|
|
52269
|
+
_this4.$http({
|
|
52270
|
+
method: 'PUT',
|
|
52271
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
52272
|
+
data: _this4.voteResult,
|
|
52273
|
+
url: 'hygl/voteResult/update'
|
|
52274
|
+
}).then(function (res) {
|
|
52275
|
+
if (res.code === 'success') {
|
|
52276
|
+
_this4.$toast('您已完成问卷');
|
|
52277
|
+
_this4.$router.go(-1);
|
|
52278
|
+
// 显示统计
|
|
52279
|
+
// this.getQueryThemeVoters()
|
|
52280
|
+
// this.getQuerydataByTheme()
|
|
52281
|
+
// this.queryCurUserStat()
|
|
52282
|
+
} else {
|
|
52283
|
+
_this4.$toast(res.message, '操作提示', {
|
|
52284
|
+
type: 'error'
|
|
52285
|
+
});
|
|
52286
|
+
}
|
|
52287
|
+
});
|
|
52288
|
+
}
|
|
52289
|
+
} else {
|
|
52290
|
+
_this4.$toast(res.message, '操作提示', {
|
|
52291
|
+
type: 'error'
|
|
52292
|
+
});
|
|
52293
|
+
}
|
|
52294
|
+
});
|
|
52295
|
+
},
|
|
52296
|
+
/**
|
|
52297
|
+
* 查询当前用户投票信息
|
|
52298
|
+
*/
|
|
52299
|
+
queryCurUserStat: function queryCurUserStat() {
|
|
52300
|
+
var _this5 = this;
|
|
52301
|
+
this.$http({
|
|
52302
|
+
method: 'GET',
|
|
52303
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
52304
|
+
url: 'hygl/voteResult/getById',
|
|
52305
|
+
params: {
|
|
52306
|
+
'id': this.voteResult.id
|
|
52307
|
+
}
|
|
52308
|
+
}).then(function (res) {
|
|
52309
|
+
if (res.code === 'success') {
|
|
52310
|
+
console.log('res==', res);
|
|
52311
|
+
_this5.myChoiceList = res.body.vo.passenger.voteResultInfos;
|
|
52312
|
+
// 回显答案选项
|
|
52313
|
+
if (_this5.vo.passenger['subjects'] && _this5.vo.passenger['subjects'].length) {
|
|
52314
|
+
_this5.vo.passenger['subjects'].forEach(function (el) {
|
|
52315
|
+
if (Number(el.voteType) === 1) {
|
|
52316
|
+
el.checkedValue = '';
|
|
52317
|
+
} else if (Number(el.voteType) === 2) {
|
|
52318
|
+
el.checkedValue = [];
|
|
52319
|
+
}
|
|
52320
|
+
// el.checkedValue = Number(el.voteType) === 1 ? '' : []
|
|
52321
|
+
if (_this5.myChoiceList && _this5.myChoiceList.length) {
|
|
52322
|
+
_this5.myChoiceList.forEach(function (item) {
|
|
52323
|
+
if (el.id === item.subjectId) {
|
|
52324
|
+
if (Number(el.voteType) === 1) {
|
|
52325
|
+
_this5.$set(el, 'checkedValue', item.choiceId);
|
|
52326
|
+
} else {
|
|
52327
|
+
el.checkedValue.push(item.choiceId);
|
|
52328
|
+
}
|
|
52329
|
+
}
|
|
52330
|
+
});
|
|
52331
|
+
}
|
|
52332
|
+
});
|
|
52333
|
+
_this5.$forceUpdate();
|
|
52334
|
+
}
|
|
52335
|
+
} else {
|
|
52336
|
+
_this5.$toast(res.message, '操作提示', {
|
|
52337
|
+
type: 'error'
|
|
52338
|
+
});
|
|
52339
|
+
}
|
|
52340
|
+
});
|
|
52341
|
+
},
|
|
52342
|
+
// 获取参数
|
|
52343
|
+
openMyParticipate: function openMyParticipate() {
|
|
52344
|
+
this.id = this.routerParams.id;
|
|
52345
|
+
this.account = this.routerParams.account;
|
|
52346
|
+
this.orgCode = this.routerParams.orgCode;
|
|
52347
|
+
this.canEdit = this.routerParams.canEdit;
|
|
52348
|
+
console.log('this.canEdit', this.canEdit);
|
|
52349
|
+
this.getVoteInfo();
|
|
52350
|
+
this.startVote();
|
|
52351
|
+
},
|
|
52352
|
+
// 获取投票主题详情
|
|
52353
|
+
getVoteInfo: function getVoteInfo() {
|
|
52354
|
+
var _this6 = this;
|
|
52355
|
+
this.$http({
|
|
52356
|
+
url: 'hygl/vote/getById?id=' + this.id,
|
|
52357
|
+
method: 'GET',
|
|
52358
|
+
contentType: 'application/x-www-form-urlencoded'
|
|
52359
|
+
}).then(function (res) {
|
|
52360
|
+
_this6.voteInfo = res.body.vo;
|
|
52361
|
+
});
|
|
52362
|
+
},
|
|
52363
|
+
// 开始投票
|
|
52364
|
+
startVote: function startVote() {
|
|
52365
|
+
var _this7 = this;
|
|
52366
|
+
this.$http({
|
|
52367
|
+
method: 'POST',
|
|
52368
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
52369
|
+
url: 'hygl/voteResult/querydata',
|
|
52370
|
+
data: [{
|
|
52371
|
+
compare: '=',
|
|
52372
|
+
field: 'voteId',
|
|
52373
|
+
merge: true,
|
|
52374
|
+
value: this.id
|
|
52375
|
+
}, {
|
|
52376
|
+
compare: '=',
|
|
52377
|
+
field: 'orgCode',
|
|
52378
|
+
merge: true,
|
|
52379
|
+
value: this.orgCode
|
|
52380
|
+
}, {
|
|
52381
|
+
compare: '=',
|
|
52382
|
+
field: 'account',
|
|
52383
|
+
merge: true,
|
|
52384
|
+
value: this.account
|
|
52385
|
+
}]
|
|
52386
|
+
}).then(function (res) {
|
|
52387
|
+
if (res.code === 'success') {
|
|
52388
|
+
_this7.voteResult = res.body.listdata[0];
|
|
52389
|
+
_this7.getByIdFunc();
|
|
52390
|
+
} else {
|
|
52391
|
+
_this7.$toast(res.message);
|
|
52392
|
+
}
|
|
52393
|
+
});
|
|
52394
|
+
},
|
|
52395
|
+
/**
|
|
52396
|
+
* 获取投票主题信息
|
|
52397
|
+
*/
|
|
52398
|
+
getByIdFunc: function getByIdFunc() {
|
|
52399
|
+
var _this8 = this;
|
|
52400
|
+
this.$http({
|
|
52401
|
+
method: 'GET',
|
|
52402
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
52403
|
+
url: 'hygl/vote/getById',
|
|
52404
|
+
params: {
|
|
52405
|
+
id: this.id
|
|
52406
|
+
}
|
|
52407
|
+
}).then(function (res) {
|
|
52408
|
+
if (res.code === 'success') {
|
|
52409
|
+
_this8.vo = res.body.vo;
|
|
52410
|
+
if (_this8.voteResult.choiceStatus === 2) {
|
|
52411
|
+
// 已投票,显示统计
|
|
52412
|
+
// this.getQueryThemeVoters()
|
|
52413
|
+
// this.getQuerydataByTheme()
|
|
52414
|
+
_this8.queryCurUserStat();
|
|
52415
|
+
}
|
|
52416
|
+
} else {
|
|
52417
|
+
_this8.$toast(res.message);
|
|
52418
|
+
}
|
|
52419
|
+
});
|
|
52420
|
+
}
|
|
52421
|
+
}
|
|
52422
|
+
});
|
|
52423
|
+
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/mapp/tpgl/components/newTouPiao.vue?vue&type=script&lang=js&
|
|
52424
|
+
/* harmony default export */ var components_newTouPiaovue_type_script_lang_js_ = (newTouPiaovue_type_script_lang_js_);
|
|
52425
|
+
// EXTERNAL MODULE: ./packages/ecmoa/hygl/src/mapp/tpgl/components/newTouPiao.vue?vue&type=style&index=0&id=dff72a64&prod&scoped=true&lang=scss&
|
|
52426
|
+
var newTouPiaovue_type_style_index_0_id_dff72a64_prod_scoped_true_lang_scss_ = __webpack_require__("ec94");
|
|
52427
|
+
|
|
52428
|
+
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/mapp/tpgl/components/newTouPiao.vue
|
|
52429
|
+
|
|
52430
|
+
|
|
52431
|
+
|
|
52432
|
+
|
|
52433
|
+
|
|
52434
|
+
|
|
52435
|
+
/* normalize component */
|
|
52436
|
+
|
|
52437
|
+
var newTouPiao_component = normalizeComponent(
|
|
52438
|
+
components_newTouPiaovue_type_script_lang_js_,
|
|
52439
|
+
newTouPiaovue_type_template_id_dff72a64_scoped_true_render,
|
|
52440
|
+
newTouPiaovue_type_template_id_dff72a64_scoped_true_staticRenderFns,
|
|
52441
|
+
false,
|
|
52442
|
+
null,
|
|
52443
|
+
"dff72a64",
|
|
52444
|
+
null
|
|
52445
|
+
|
|
52446
|
+
)
|
|
52447
|
+
|
|
52448
|
+
/* harmony default export */ var newTouPiao = (newTouPiao_component.exports);
|
|
51948
52449
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d3ac57a0-vue-loader-template"}!./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/ecmoa/hygl/src/mapp/taskItem/index.vue?vue&type=template&id=77f09824&scoped=true&
|
|
51949
52450
|
var taskItemvue_type_template_id_77f09824_scoped_true_render = function render() {
|
|
51950
52451
|
var _vm = this,
|
|
@@ -54288,6 +54789,9 @@ function hygl_toPrimitive(t, r) { if ("object" != hygl_typeof(t) || !t) return t
|
|
|
54288
54789
|
// mapp signQR
|
|
54289
54790
|
|
|
54290
54791
|
|
|
54792
|
+
// mapp vote
|
|
54793
|
+
|
|
54794
|
+
|
|
54291
54795
|
// mapp taskItem
|
|
54292
54796
|
|
|
54293
54797
|
|
|
@@ -54297,36 +54801,7 @@ function hygl_toPrimitive(t, r) { if ("object" != hygl_typeof(t) || !t) return t
|
|
|
54297
54801
|
|
|
54298
54802
|
// 以对象的结构保存组件,便于遍历
|
|
54299
54803
|
var components = {
|
|
54300
|
-
|
|
54301
|
-
HyglIpadLogin: login,
|
|
54302
|
-
HyglIpadFileView: FileView,
|
|
54303
|
-
HyglIpadHistoryMettings: historyMettings,
|
|
54304
|
-
HyglIpadHyfw: hyfw,
|
|
54305
|
-
HyglIpadHyjl: hyjl,
|
|
54306
|
-
HyglIpadMettingsDetail: MettingsDetail,
|
|
54307
|
-
HyglIpadNowmetting: nowmetting,
|
|
54308
|
-
HyglMapp: mapp,
|
|
54309
|
-
HyglMappAddyt: addyt,
|
|
54310
|
-
HyglMappMeetPeople: meetPeople,
|
|
54311
|
-
HyglMappMeetRecord: meetRecord,
|
|
54312
|
-
HyglMappMeetSign: meetSign,
|
|
54313
|
-
HyglHyAdministration: hyAdministration,
|
|
54314
|
-
HyglHyAdministrationComHyyt: hyyt,
|
|
54315
|
-
HyglHyAdministrationComHzxx: hzxx,
|
|
54316
|
-
HyglHyAdministrationComQdxx: qdxx,
|
|
54317
|
-
HyglHyroom: hyroom,
|
|
54318
|
-
HyglHySchedule: hySchedule,
|
|
54319
|
-
HyglBanner: banner,
|
|
54320
|
-
HyglHysp: hysp,
|
|
54321
|
-
HyglHytongz: hytongz,
|
|
54322
|
-
HyglHytongzDianbd: dianbd,
|
|
54323
|
-
HyglHytongzHybaom: hybaom,
|
|
54324
|
-
HyglHytongzAddpeople: addpeople,
|
|
54325
|
-
HyglSignQR: QRwaiting,
|
|
54326
|
-
HyglTaskItem: taskItem,
|
|
54327
|
-
HyglWdhy: wdhy,
|
|
54328
|
-
HyglWdhySeatSet: seatSet,
|
|
54329
|
-
HyglNewTouPiao: HyglNewTouPiao
|
|
54804
|
+
HyglMapp: mapp
|
|
54330
54805
|
};
|
|
54331
54806
|
// 定义 install 方法
|
|
54332
54807
|
var hygl_install = function install(Vue) {
|