appraisal.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!-- 评价列表 -->
  2. <template>
  3. <view style="padding: 10upx 0 30upx;">
  4. <view class="loading_text" v-if="loading">加载中...</view>
  5. <view class="main_width" v-else>
  6. <view style="border-bottom: 4upx solid #eeeeee;padding: 20upx 0;" :key="index" v-for="(item,index) in data"
  7. class="item">
  8. <trailerStars allowTap="0" :innerScore="item.result_level">
  9. </trailerStars>
  10. <navigator v-if="type!=1" :url="'../order/detail?detailType=1&id='+item.biz_recruitid"
  11. style="margin-top: 12upx;color: #2bb59e;font-weight: bold;" class="main_text">招聘信息:{{item.btr_title}}
  12. </navigator>
  13. <view style="margin-top: 6upx;" class="main_text">
  14. {{type>=4?'被评价者':'评价者'}}:{{type>=4?item.apaee_name:item.apaer_name}}</view>
  15. <view style="margin-top: 6upx;" class="main_text">{{item.result_desc||'系统默认好评!'}}</view>
  16. <view style="margin-top: 4upx;color: #8E97AE;">{{item.createtime}}</view>
  17. </view>
  18. </view>
  19. <view class="loading_text" v-if="data.length==0&&!loading">暂无数据</view>
  20. </view>
  21. </template>
  22. <script>
  23. import commonData from '../../commonData.js'
  24. import commonFun from '../../commonFun.js'
  25. import trailerStars from '../../components/starts/index.vue'
  26. export default {
  27. data() {
  28. return {
  29. user_info: {},
  30. sys_role: commonData.sys_role, //角色
  31. data: [],
  32. id: uni.getStorageSync('USER_INFO')['id'],
  33. loading: true,
  34. type: '',
  35. }
  36. },
  37. methods: {
  38. // 获取数据
  39. get_data() {
  40. this.loading = true
  41. uni.showLoading({
  42. title: '加载中...',
  43. mask: true
  44. })
  45. let params = {
  46. bizCatalog: 'AppraisalEntity',
  47. handleMode: 'fetchall',
  48. pageIndex: 1,
  49. pageSize: 1000,
  50. query: commonData.appraisal_query_arr(this.id)[this.type],
  51. }
  52. console.log('评价列表请求参数')
  53. console.log(params)
  54. commonFun.requestUrl('&WsAjaxBiz=Trader&WsAjaxAction=fetchPageData', params, res => {
  55. if (res.status) {
  56. this.data = res.data.Result.pageData
  57. console.log('评价列表获取数据')
  58. console.log(this.data)
  59. }
  60. this.loading = false
  61. uni.hideLoading()
  62. uni.stopPullDownRefresh()
  63. })
  64. },
  65. onPullDownRefresh() {
  66. this.get_data()
  67. },
  68. },
  69. components: {
  70. trailerStars
  71. },
  72. onLoad(e) {
  73. if (e.id) {
  74. this.id = e.id
  75. }
  76. this.type = e.type ? e.type : (this.sys_role == 0 ? 4 : 5)
  77. this.get_data()
  78. uni.setNavigationBarTitle({
  79. title: commonData.appraisal_query_arr(this.id)[this.type]['title_show']
  80. })
  81. },
  82. };
  83. </script>
  84. <style>
  85. </style>