tb-person-filing-judge.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>人员备案-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <!-- 所有的 css js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. .rota {
  22. position: relative;
  23. right: 6px;
  24. font-size: 10px;
  25. cursor: pointer;
  26. padding: 3px;
  27. border-radius: 5px;
  28. bottom: 5em;
  29. color: cornflowerblue
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  35. <!-- ------- 内容部分 ------- -->
  36. <div class="s-body">
  37. <div class="c-panel">
  38. <el-form v-if="m">
  39. <el-row>
  40. <el-col :span="12">
  41. <sa-info name="姓名" br>{{m.name}}</sa-info>
  42. <sa-info name="单位" br>{{m.deptName}}</sa-info>
  43. <sa-info name="身份证" br>{{m.idCadStr}}</sa-info>
  44. <sa-item type="datetime" name="备案过期" v-model="m.endTime" br></sa-item>
  45. <sa-item name="审核意见" type="textarea" v-model="m.judgeContent" br></sa-item>
  46. </el-col>
  47. <el-col :span="12">
  48. <sa-info name="联系号码" br>{{m.phone}}</sa-info>
  49. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  50. <sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
  51. <sa-info type="img" name="人脸" :value="m.photo" br>
  52. <span slot="tip" class="rota">
  53. <span @click="rotaFn(-90)">
  54. <i class="el-icon-refresh-left"></i>
  55. </span>
  56. <span style="margin-left: 10px;" @click="rotaFn(90)">
  57. <i class="el-icon-refresh-right"></i>
  58. </span>
  59. </span>
  60. </sa-info>
  61. </el-col>
  62. </el-row>
  63. </el-form>
  64. </div>
  65. </div>
  66. <!-- ------- 底部按钮 ------- -->
  67. <div class="s-foot">
  68. <el-button type="success" @click="judge(1)">通过</el-button>
  69. <el-button type="danger" @click="judge(2)">不通过</el-button>
  70. </div>
  71. </div>
  72. <script>
  73. var app = new Vue({
  74. components: {
  75. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue'),
  76. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue')
  77. },
  78. el: '.vue-box',
  79. data: {
  80. dialogVisible: false,
  81. form: {
  82. direction: 1,
  83. num: 90
  84. },
  85. id: sa.p('id', 0), // 获取数据ID
  86. m: {}
  87. },
  88. methods: {
  89. rotaFn(rota) {
  90. let m = this.m;
  91. sa.ajax('/TbPersonFiling/rota', {
  92. rota: rota,
  93. id:m.id
  94. }, function(resp) {
  95. this.getInfo();
  96. }.bind(this))
  97. },
  98. judge(state) {
  99. if (state == 2 && !this.m.judgeContent) {
  100. sa.error('请录入审核意见');
  101. return;
  102. }
  103. sa.ajax('/TbPersonFiling/judge', {
  104. id: this.id,
  105. judgeState: state,
  106. judgeContent: this.m.judgeContent,
  107. endTime: this.m.endTime
  108. }, function(res) {
  109. sa.alert('操作成功');
  110. setTimeout(() => {
  111. sa.closeCurrIframe(); // 关闭本页
  112. parent.app.f5(); // 刷新父页面列表
  113. }, 1000)
  114. }.bind(this))
  115. },
  116. getInfo(){
  117. sa.ajax('/TbPersonFiling/getById?id=' + this.id, function(res) {
  118. this.m = res.data;
  119. if (res.data == null) {
  120. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  121. }
  122. }.bind(this))
  123. }
  124. },
  125. mounted: function() {
  126. this.getInfo();
  127. }
  128. })
  129. </script>
  130. </body>
  131. </html>