tb-person-filing-judge.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  25. <!-- ------- 内容部分 ------- -->
  26. <div class="s-body">
  27. <div class="c-panel">
  28. <el-form v-if="m">
  29. <el-row>
  30. <el-col :span="12">
  31. <sa-info name="姓名" br>{{m.name}}</sa-info>
  32. <sa-info name="部门" br>{{m.deptName}}</sa-info>
  33. <sa-info type="enum" name="类型" :value="m.type" :jv="{1: '临时', 2: '内部'}" br></sa-info>
  34. <sa-info name="身份证" br>{{m.idCadStr}}</sa-info>
  35. </el-col>
  36. <el-col :span="12">
  37. <sa-info name="来访事由" br>{{m.visitReason}}</sa-info>
  38. <sa-info name="备注" br>{{m.remark}}</sa-info>
  39. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  40. <sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
  41. </el-col>
  42. </el-row>
  43. </el-form>
  44. </div>
  45. </div>
  46. <!-- ------- 底部按钮 ------- -->
  47. <div class="s-foot">
  48. <el-button type="success" @click="judge(1)">通过</el-button>
  49. <el-button type="danger" @click="judge(2)">不通过</el-button>
  50. </div>
  51. </div>
  52. <script>
  53. var app = new Vue({
  54. components: {
  55. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  56. },
  57. el: '.vue-box',
  58. data: {
  59. id: sa.p('id', 0), // 获取数据ID
  60. m: null
  61. },
  62. methods: {
  63. judge(state) {
  64. sa.ajax('/TbPersonFiling/judge', {
  65. id: this.id,
  66. judgeState: state
  67. }, function(res) {
  68. sa.alert('操作成功');
  69. setTimeout(() => {
  70. parent.app.f5(); // 刷新父页面列表
  71. sa.closeCurrIframe(); // 关闭本页
  72. }, 2000)
  73. }.bind(this))
  74. }
  75. },
  76. mounted: function() {
  77. sa.ajax('/TbPersonFiling/getById?id=' + this.id, function(res) {
  78. this.m = res.data;
  79. if (res.data == null) {
  80. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  81. }
  82. }.bind(this))
  83. }
  84. })
  85. </script>
  86. </body>
  87. </html>