From bec43e4dca42bf67e0babd9a0fd8709f2aaa7aba Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 10 Mar 2023 19:02:08 +0800 Subject: [PATCH] optimize --- api/examine/examineApi.js | 33 ++++++ components/service/service-property.vue | 5 + constant/url.js | 2 + pages.json | 9 ++ pages/complaint/examineStaff.vue | 138 ++++++++++++++++++++++ pages/itemRelease/myItemReleaseDetail.vue | 6 +- 6 files changed, 190 insertions(+), 3 deletions(-) create mode 100644 api/examine/examineApi.js create mode 100644 pages/complaint/examineStaff.vue diff --git a/api/examine/examineApi.js b/api/examine/examineApi.js new file mode 100644 index 0000000..e6bee65 --- /dev/null +++ b/api/examine/examineApi.js @@ -0,0 +1,33 @@ +import { + requestNoAuth,request +} from '../../lib/java110/java110Request.js'; +import + url + from '../../constant/url.js'; + + +/** + * 查询业主小区 + * @param {Object} dataObj 对象 + */ +export function getExamineStaffs(dataObj) { + return new Promise( + (resolve, reject) => { + request({ + url: url.listExamineStaff, + method: "GET", + data: dataObj, + //动态数据 + success: function(res) { + if (res.statusCode == 200) { + let _data = res.data.data; + resolve(_data); + } + }, + fail: function(e) { + reject(e); + } + }); + }) + +} diff --git a/components/service/service-property.vue b/components/service/service-property.vue index 32ca5d2..67955b1 100644 --- a/components/service/service-property.vue +++ b/components/service/service-property.vue @@ -155,6 +155,11 @@ src: this.imgUrl + '/h5/images/serve/my3.png', href: '/pages/machine/chargeMachines' }, + { + name: '物业打分', + src: this.imgUrl + '/h5/images/serve/my9.png', + href: '/pages/complaint/examineStaff' + }, // { // name: "返省上报", diff --git a/constant/url.js b/constant/url.js index 95205e9..18a58cb 100755 --- a/constant/url.js +++ b/constant/url.js @@ -196,6 +196,8 @@ export default { queryOaWorkflowUser: baseUrl+"app/oaWorkflow/queryOaWorkflowUser", listChargeMachine:baseUrl+"app/chargeMachine.listChargeMachine", listChargeMachinePort:baseUrl+"app/chargeMachine.listChargeMachinePort", + listExamineStaff:baseUrl+"app/examine.listExamineStaff", // 查询打分员工 + NEED_NOT_LOGIN_PAGE: [ diff --git a/pages.json b/pages.json index 5717ff0..9657417 100755 --- a/pages.json +++ b/pages.json @@ -784,6 +784,15 @@ } } + ,{ + "path" : "pages/complaint/examineStaff", + "style" : + { + "navigationBarTitleText": "物业人员打分", + "enablePullDownRefresh": false + } + + } ], "tabBar": { "color": "#272636", diff --git a/pages/complaint/examineStaff.vue b/pages/complaint/examineStaff.vue new file mode 100644 index 0000000..01744c3 --- /dev/null +++ b/pages/complaint/examineStaff.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/pages/itemRelease/myItemReleaseDetail.vue b/pages/itemRelease/myItemReleaseDetail.vue index 67a0413..e3b0e64 100644 --- a/pages/itemRelease/myItemReleaseDetail.vue +++ b/pages/itemRelease/myItemReleaseDetail.vue @@ -83,7 +83,7 @@ methods: { _loadDetail: function() { let _that = this; - getMyItemRelease(this,{ + getMyItemRelease({ page: 1, row: 1, irId: this.irId, @@ -95,7 +95,7 @@ }, _loadDetailResNames: function() { let _that = this; - getItemReleaseRes(this,{ + getItemReleaseRes({ page: 1, row: 100, irId: this.irId, @@ -106,7 +106,7 @@ }, _loadComment: function() { let _that = this; - queryOaWorkflowUser(this,{ + queryOaWorkflowUser({ page: 1, row: 100, id: this.irId,