From b0da8df316a55b6f530f73d0e699b6ea26b5fb32 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sun, 7 Feb 2021 17:07:48 +0800 Subject: [PATCH] jiaru yuangong kaohe --- .../myQuestionAnswerManage.js | 17 +-- .../staffAssessmentManage.html | 103 ++++++++++++++++++ .../staffAssessmentManage.js | 93 ++++++++++++++++ .../userQuestionAnswerManage.js | 5 +- public/vcCore/vc-en.js | 3 +- 5 files changed, 212 insertions(+), 9 deletions(-) create mode 100644 public/pages/property/staffAssessmentManage/staffAssessmentManage.html create mode 100644 public/pages/property/staffAssessmentManage/staffAssessmentManage.js diff --git a/public/pages/property/myQuestionAnswerManage/myQuestionAnswerManage.js b/public/pages/property/myQuestionAnswerManage/myQuestionAnswerManage.js index c3beea9f7..74257cf53 100644 --- a/public/pages/property/myQuestionAnswerManage/myQuestionAnswerManage.js +++ b/public/pages/property/myQuestionAnswerManage/myQuestionAnswerManage.js @@ -16,8 +16,8 @@ qaType: '', qaName: '', qaId: '', - communityId:vc.getCurrentCommunity().communityId, - roleCd:'staff' + communityId: vc.getCurrentCommunity().communityId, + roleCd: 'staff' } } }, @@ -59,8 +59,11 @@ } ); }, - _toQuestionAnswerTitle:function(_questionAnswer){ - vc.jumpToPage('/admin.html#/pages/property/userQuestionAnswerManage?qaId='+_questionAnswer.qaId+"&objType="+_questionAnswer.objType+"&objId="+_questionAnswer.objId) + _toQuestionAnswerTitle: function (_questionAnswer) { + vc.jumpToPage('/admin.html#/pages/property/userQuestionAnswerManage?qaId=' + + _questionAnswer.qaId + "&objType=" + _questionAnswer.objType + + "&objId=" + _questionAnswer.objId + + "&answerType=1002&userQaId=-1") }, _queryQuestionAnswerMethod: function () { vc.component._listQuestionAnswers(DEFAULT_PAGE, DEFAULT_ROWS); @@ -72,10 +75,10 @@ vc.component.myQuestionAnswerManageInfo.moreCondition = true; } }, - _getStateName:function(_state){ - if(_state == '1201'){ + _getStateName: function (_state) { + if (_state == '1201') { return '待领导评价'; - }else if(_state == '1202'){ + } else if (_state == '1202') { return '完成'; } diff --git a/public/pages/property/staffAssessmentManage/staffAssessmentManage.html b/public/pages/property/staffAssessmentManage/staffAssessmentManage.html new file mode 100644 index 000000000..f28dc9769 --- /dev/null +++ b/public/pages/property/staffAssessmentManage/staffAssessmentManage.html @@ -0,0 +1,103 @@ +
+
+
+
+
+
查询条件
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+ + +
+
+
+
+
+
+
+
+
员工考核
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
员工名称问卷名称开始时间结束时间状态自评得分考核得分操作
{{questionAnswer.personName}}{{questionAnswer.qaName}}{{questionAnswer.startTime}}{{questionAnswer.endTime}}{{_getStateName(questionAnswer.state)}}{{questionAnswer.score}}{{questionAnswer.evaluationScore}} +
+ + +
+
+
    +
    + + +
    +
    +
    +
    + +
    \ No newline at end of file diff --git a/public/pages/property/staffAssessmentManage/staffAssessmentManage.js b/public/pages/property/staffAssessmentManage/staffAssessmentManage.js new file mode 100644 index 000000000..fa0c03c51 --- /dev/null +++ b/public/pages/property/staffAssessmentManage/staffAssessmentManage.js @@ -0,0 +1,93 @@ +/** + 入驻小区 +**/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + staffAssessmentManageInfo: { + questionAnswers: [], + total: 0, + records: 1, + moreCondition: false, + qaId: '', + conditions: { + qaType: '', + qaName: '', + qaId: '', + communityId:vc.getCurrentCommunity().communityId, + roleCd:'staff', + state:'1201' + } + } + }, + _initMethod: function () { + vc.component._listQuestionAnswers(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _initEvent: function () { + + vc.on('staffAssessmentManage', 'listQuestionAnswer', function (_param) { + vc.component._listQuestionAnswers(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listQuestionAnswers(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listQuestionAnswers: function (_page, _rows) { + + vc.component.staffAssessmentManageInfo.conditions.page = _page; + vc.component.staffAssessmentManageInfo.conditions.row = _rows; + var param = { + params: vc.component.staffAssessmentManageInfo.conditions + }; + + //发送get请求 + vc.http.apiGet('/userQuestionAnswer/queryUserQuestionAnswer', + param, + function (json, res) { + var _staffAssessmentManageInfo = JSON.parse(json); + vc.component.staffAssessmentManageInfo.total = _staffAssessmentManageInfo.total; + vc.component.staffAssessmentManageInfo.records = _staffAssessmentManageInfo.records; + vc.component.staffAssessmentManageInfo.questionAnswers = _staffAssessmentManageInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.staffAssessmentManageInfo.records, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _toQuestionAnswerTitle:function(_questionAnswer){ + vc.jumpToPage('/admin.html#/pages/property/userQuestionAnswerManage?qaId='+_questionAnswer.qaId + +"&objType="+_questionAnswer.objType + +"&objId="+_questionAnswer.objId + +"&answerType=2003" + +"&userQaId="+_questionAnswer.userQaId) + }, + _queryQuestionAnswerMethod: function () { + vc.component._listQuestionAnswers(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _moreCondition: function () { + if (vc.component.staffAssessmentManageInfo.moreCondition) { + vc.component.staffAssessmentManageInfo.moreCondition = false; + } else { + vc.component.staffAssessmentManageInfo.moreCondition = true; + } + }, + _getStateName:function(_state){ + if(_state == '1201'){ + return '待领导评价'; + }else if(_state == '1202'){ + return '完成'; + } + + return '待答题' + } + + + } + }); +})(window.vc); diff --git a/public/pages/property/userQuestionAnswerManage/userQuestionAnswerManage.js b/public/pages/property/userQuestionAnswerManage/userQuestionAnswerManage.js index 11f5e8273..9fd2fa879 100644 --- a/public/pages/property/userQuestionAnswerManage/userQuestionAnswerManage.js +++ b/public/pages/property/userQuestionAnswerManage/userQuestionAnswerManage.js @@ -14,7 +14,8 @@ qaId: '', objType: '', objId: '', - answerType: '1002' + answerType: '1002', + userQaId:'-1' } }, _initMethod: function () { @@ -23,6 +24,8 @@ _that.qaId = _qaId; _that.objType = vc.getParam('objType'); _that.objId = vc.getParam('objId'); + _that.answerType = vc.getParam('answerType'); + _that.userQaId = vc.getParam('userQaId'); vc.component._listQuestionAnswerTitles(DEFAULT_PAGE, DEFAULT_ROWS); }, _initEvent: function () { diff --git a/public/vcCore/vc-en.js b/public/vcCore/vc-en.js index 077699bfb..335ff581a 100644 --- a/public/vcCore/vc-en.js +++ b/public/vcCore/vc-en.js @@ -16,6 +16,7 @@ "moreMsg":"more message", "title":"CommunityManagement|java110", "noAccount":"no account?", - "areyouhasaccount":"are you has account?" + "areyouhasaccount":"are you has account?", + "我的小区":"my community" } })(window) \ No newline at end of file