特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.6 KiB

4 months ago
3 months ago
4 months ago
  1. <template>
  2. <uv-popup ref="popup" :round="30">
  3. <view class="content">
  4. <scroll-view
  5. scroll-y="true"
  6. style="height: 100%;"
  7. @scrolltolower="loadMoreData">
  8. <view class="item"
  9. v-for="(item, index) in list"
  10. :key="item.id"
  11. >
  12. <contractManageItem
  13. @click="send(item)"
  14. :item="item"/>
  15. </view>
  16. </scroll-view>
  17. </view>
  18. </uv-popup>
  19. </template>
  20. <script>
  21. import mixinList from '@/mixins/list.js'
  22. import contractManageItem from './contractManageItem'
  23. export default {
  24. components : {
  25. contractManageItem,
  26. },
  27. mixins : [mixinList],
  28. data() {
  29. return {
  30. mixinsListApi : 'queryContractTemplateList',
  31. uid : 0,
  32. }
  33. },
  34. methods: {
  35. open(id){
  36. this.uid = id
  37. this.getData()
  38. this.$refs.popup.open('bottom')
  39. },
  40. send(item){
  41. uni.showModal({
  42. title: `确认发送${item.title}合同吗?`,
  43. success : e => {
  44. if(e.confirm){
  45. this.$api('addContract', {
  46. bossPage : item.bossPage,
  47. bossPosition : item.bossPosition,
  48. bossStatus : 0,
  49. employeePage : item.employeePage,
  50. employeePosition : item.employeePosition,
  51. template : item.template,
  52. contract : item.template,
  53. employeeStatus : 0,
  54. employeeId : this.uid,
  55. title : item.title,
  56. }).then(res => {
  57. if(res.code == 200){
  58. uni.showToast({
  59. title: '发送成功',
  60. icon: 'none'
  61. })
  62. this.$refs.popup.close()
  63. }
  64. })
  65. }
  66. }
  67. })
  68. },
  69. }
  70. }
  71. </script>
  72. <style scoped lang="scss">
  73. .content{
  74. height: 60vh;
  75. width: 100%;
  76. padding-top: 30rpx;
  77. .item{
  78. }
  79. }
  80. </style>