Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

188 lignes
4.3 KiB

  1. <template>
  2. <view v-if="ready" class="box" style="padding-top: 0; ">
  3. <view class="answertotalContent">
  4. <view class="progress">
  5. </view>
  6. <view class="answertotalTopic">
  7. <view class="answertotaScore">
  8. <span>评价总分</span>
  9. <p id="cpageTitle">{{this.sumScore}}</p>
  10. </view>
  11. </view>
  12. <view class="answertotalLookButton" >
  13. <p class="confirm" @click="action('confirm')" >确认分数,并保存</p>
  14. <p class="backs" @click="action('back')" >返回重测</p>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. /*
  21. * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
  22. * Copyright (c) 2013-2020 上海力软信息技术有限公司
  23. * 创建人:超级管理员
  24. * 日 期:2020-10-20 09:37
  25. * 描 述:班级工作记事
  26. */
  27. /**
  28. * 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
  29. * 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
  30. * { "path": "pages/partyevaluatzp/single", "style": { "navigationBarTitleText": "表单详情页" } }
  31. *
  32. * (navigationBarTitleText 字段为本页面的标题文本,可以修改)
  33. * (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
  34. */
  35. import get from 'lodash/get'
  36. import set from 'lodash/set'
  37. import moment from 'moment'
  38. import customPageMixins from '@/common/custompage.js'
  39. export default {
  40. mixins: [customPageMixins],
  41. data() {
  42. return {
  43. // 页面相关参数
  44. Id:null,
  45. sumScore: null,
  46. data:[],
  47. ready: false,
  48. }
  49. },
  50. async onLoad({ Id,sumScore, data }) {
  51. await this.init(Id,sumScore, data)
  52. },
  53. methods: {
  54. // 页面初始化
  55. async init(Id,sumScore, data) {
  56. this.LOADING('加载数据中...')
  57. this.Id=Id
  58. this.sumScore = Number(sumScore).toFixed(2)
  59. this.data = JSON.parse(data)
  60. this.ready = true
  61. this.HIDE_LOADING()
  62. },
  63. // 点击 「确认分数」、「返回重测」、 按钮
  64. async action(type) {
  65. switch (type) {
  66. case 'confirm':
  67. if (!(await this.CONFIRM('保存项目', '确定保存吗?', true))) {
  68. return
  69. }
  70. this.HTTP_POST('learun/adms/evaluatingindicator/savelist', { strEntity: JSON.stringify(this.data)}, '保存失败').then(success => {
  71. if(!success) { return }
  72. this.TOAST('保存成功', 'success')
  73. this.NAV_TO(`./SucceedXZ`)
  74. })
  75. return
  76. case 'back':
  77. this.NAV_BACK(2)
  78. break
  79. default: break
  80. }
  81. },
  82. }
  83. }
  84. </script>
  85. <style lang="less">
  86. uni-page-body{
  87. height: 100%;
  88. }
  89. .box{
  90. height: 100%;
  91. width: 100%;
  92. background: url(../../common/images/content.png);
  93. background-repeat: no-repeat;
  94. background-size: 100% 100%;
  95. /* position: relative; */
  96. }
  97. .answertotalContent{
  98. position: relative;
  99. background-color: #FFFFFF;
  100. height: 70%;
  101. top: 25%;
  102. width: 93%;
  103. margin: 0 auto;
  104. border-radius: 10px;
  105. }
  106. .answertotalTopic{
  107. width: 350rpx;
  108. height: 350rpx;
  109. box-shadow: #e8e7e7 0rpx 0rpx 8rpx 4rpx ;
  110. border-radius: 50%;
  111. position: relative;
  112. top: 35%;
  113. left: 50%;
  114. transform: translate(-50%,-50%);
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. }
  119. .answertotaScore{
  120. width: 290rpx;
  121. height: 290rpx;
  122. border: 6rpx solid #f5e285;
  123. border-radius: 50%;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. flex-direction:column;
  128. }
  129. .answertotaScore span{
  130. color: #b0afaf;
  131. font-size: 30rpx;
  132. }
  133. .answertotaScore p{
  134. color: #404040;
  135. font-size: 70rpx;
  136. font-weight: 800;
  137. }
  138. .answertotalLookButton{
  139. width: 80%;
  140. float: none;
  141. position: absolute;
  142. bottom: 0%;
  143. left: 50%;
  144. transform: translate(-50%,-50%);
  145. }
  146. .answertotalLookButton p{
  147. background-color: #e1bb53;
  148. margin: 0 auto;
  149. color: #FFFFFF;
  150. border-radius: 50rpx;
  151. font-size: 36rpx;
  152. color: #FFFFFF;
  153. width: 80%;
  154. height: 72rpx;
  155. text-align: center;
  156. line-height: 72rpx;
  157. margin-bottom: 20rpx;
  158. }
  159. .answertotalLookButton p:last-child{
  160. border: 2rpx solid #e1bb53;
  161. background-color: #FFFFFF;
  162. color: #e1bb53;
  163. }
  164. </style>