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.
 
 
 
 
 
 

192 lines
3.7 KiB

  1. <template>
  2. <view class="page">
  3. <view class="studSeeSec1">
  4. <view class="studSeeSec1Box">
  5. <l-select :range="selectArr1" :placeholder="placeholder" @change="bindDateChange" valueField="value" textField="text" />
  6. </view>
  7. </view>
  8. <view class="studSeeSec2">
  9. <view class="tips" v-show="!flag">暂无数据!</view>
  10. <view class="studSeeSec2List" v-show="flag">
  11. <view class="studSeeSec2Li" v-for="(n,ind) in data" :key="n.ID">
  12. <div>
  13. <text>{{ n.EncourgeName }}</text>
  14. <text class="EncourgeLevel" v-if="n.EncourgeLevel != null">【 {{ n.EncourgeLevel }} 】 【 {{ n.EncourgeSort }} 】</text>
  15. </div>
  16. <div>奖励金额:<text>{{ n.Fee }}</text>元</div>
  17. <div>{{ n.Reason }}</div>
  18. <div class="dateRow">奖励日期:{{ n.EncourgeDate }}</div>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default{
  26. data() {
  27. return {
  28. value: 0,
  29. flag:false,
  30. selectArr1: [],
  31. placeholder: '请选择学期',
  32. data: []
  33. }
  34. },
  35. methods:{
  36. init() {
  37. //获取学年学期列表
  38. let _this = this;
  39. _this.LOADING('加载数据中…')
  40. _this.HTTP_GET(
  41. 'StuEncourgement/academicAndSemesterList',
  42. {},
  43. '加载数据时出错'
  44. ).then( res => {
  45. this.HIDE_LOADING()
  46. // console.log(res)
  47. _this.selectArr1 = res;
  48. _this.placeholder = res[0].text;
  49. _this.getListAjax(res[0].value);
  50. })
  51. },
  52. bindDateChange: function(e) {
  53. // console.log(e);
  54. this.getListAjax(e)
  55. },
  56. getListAjax(id) {
  57. var param = { value: id };
  58. let _this = this;
  59. _this.LOADING('加载数据中…')
  60. _this.HTTP_GET(
  61. 'StuEncourgement/encourgementList',
  62. param,
  63. '加载数据时出错'
  64. ).then( res => {
  65. this.HIDE_LOADING()
  66. // console.log(res)
  67. if (res == null || res.length <= 0) {
  68. _this.flag = false;
  69. return;
  70. }
  71. _this.flag = true;
  72. _this.data = res;
  73. })
  74. }
  75. },
  76. created() {
  77. this.init()
  78. }
  79. }
  80. </script>
  81. <style lang="less" scoped>
  82. /deep/ .picker {
  83. text-align: center;
  84. }
  85. /deep/ .cu-form-group {
  86. background: #fff;
  87. height: 28px;
  88. border-radius: 14px;
  89. line-height: 28px;
  90. text-align: center;
  91. font-size: 15px;
  92. color: #1a1a1a;
  93. position: relative;
  94. margin: 0 auto;
  95. min-height: 28px;
  96. }
  97. .studSeeSec1 {
  98. background: #0c86d8;
  99. height: 100px;
  100. padding-top: 10px;
  101. }
  102. .studSeeSec1Box {
  103. width: 84%;
  104. background: #fff;
  105. height: 28px;
  106. border-radius: 14px;
  107. line-height: 28px;
  108. text-align: center;
  109. font-size: 15px;
  110. color: #1a1a1a;
  111. position: relative;
  112. margin: 0 auto;
  113. }
  114. .studSeeSec2Top {
  115. padding: 0 12px;
  116. margin-top: -52px;
  117. }
  118. .studSeeSec2TopBox {
  119. background: #fff;
  120. padding: 20px 0;
  121. text-align: center;
  122. font-size: 0;
  123. border-radius: 4px;
  124. }
  125. .studSeeSec2TopBox > * {
  126. display: inline-block;
  127. vertical-align: middle;
  128. }
  129. .studSeeSec2Line {
  130. height: 25px;
  131. width: 1px;
  132. background: #d6dfe2;
  133. margin: 0 40px;
  134. }
  135. .studSeeSec2Txt {
  136. color: #8a8a8a;
  137. }
  138. .studSeeSec2Txt view:first-child {
  139. font-size: 12px;
  140. }
  141. .studSeeSec2Txt view:first-child text {
  142. font-size: 20px;
  143. color: #0089fe;
  144. margin-right: 5px;
  145. }
  146. .studSeeSec2Txt view:last-child {
  147. font-size: 15px;
  148. }
  149. .studSeeSec2List {
  150. margin-top: 10px;
  151. background: #fff;
  152. }
  153. .studSeeSec2Li {
  154. padding: 0 12px 0 30px;
  155. border-bottom: 1px solid #d6dfe2;
  156. line-height: 24px;
  157. font-size: 13px;
  158. color: #7a7a7a;
  159. position: relative;
  160. }
  161. .studSeeSec2Li:before {
  162. /*content: '';*/
  163. position: absolute;
  164. top: 0;
  165. bottom: 0;
  166. left: 12px;
  167. margin: auto;
  168. width: 6px;
  169. height: 6px;
  170. background: #8ac9ff;
  171. border-radius: 50%;
  172. }
  173. .studSeeSec2List .EncourgeLevel {
  174. float: right;
  175. }
  176. .studSeeSec2List image {
  177. width: 12px;
  178. margin-right: 5px;
  179. position: relative;
  180. top: 2px;
  181. }
  182. .studSeeSec2Li .dateRow {
  183. text-align: right;
  184. }
  185. .studSeeSec2 .tips {
  186. text-align: center;
  187. }
  188. </style>