common-detail.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!--<template>-->
  2. <!--<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="visible" :append-to-body="true" width="600px">-->
  3. <!--<el-table :data="historyList" border v-loading="historyLoading" style="width: 100%;">-->
  4. <!--<el-table-column width="100" prop="taskName" header-align="center" align="center" label="流程进度"></el-table-column>-->
  5. <!--<el-table-column width="80" prop="userName" header-align="center" align="center" label="处理人"></el-table-column>-->
  6. <!--<el-table-column prop="comment" header-align="center" align="center" label="备注 / 审批意见"></el-table-column>-->
  7. <!--<el-table-column width="100" prop="taskCreateTime" header-align="center" align="center" label="开始时间"></el-table-column>-->
  8. <!--<el-table-column width="100" prop="taskEndTime" header-align="center" align="center" label="结束时间"></el-table-column>-->
  9. <!--</el-table>-->
  10. <!--<div slot="footer" class="dialog-footer">-->
  11. <!--<el-button type="success" @click="dataFormSubmit(1)">通 过</el-button>-->
  12. <!--<el-button type="info" @click="dataFormSubmit(0)">驳 回</el-button>-->
  13. <!--<el-button @click="visible = false">返回</el-button>-->
  14. <!--</div>-->
  15. <!--</el-dialog>-->
  16. <!--</template>-->
  17. <!--<script>-->
  18. <!--import { getToken } from "@/utils/auth";-->
  19. <!--import { treeselect, listDept } from "@/api/system/dept";-->
  20. <!--import Treeselect from "@riophae/vue-treeselect";-->
  21. <!--import "@riophae/vue-treeselect/dist/vue-treeselect.css";-->
  22. <!--import {getHistorylist} from "@/api/branch/approvedanger";-->
  23. <!--export default {-->
  24. <!--name: "questionnaire-detail",-->
  25. <!--components: { Treeselect },-->
  26. <!--data() {-->
  27. <!--return {-->
  28. <!--rules: {-->
  29. <!--},-->
  30. <!--taskForm: {},-->
  31. <!--title: null,-->
  32. <!--visible: false,-->
  33. <!--deptOptions: [],-->
  34. <!--//流转列表-->
  35. <!--historyList: [],-->
  36. <!--// rejectList: [],-->
  37. <!--historyLoading: true,-->
  38. <!--dialogType: 0,-->
  39. <!--}-->
  40. <!--},-->
  41. <!--methods: {-->
  42. <!--init(id, taskId, processId, taskName, dialogType) {-->
  43. <!--// 流转列表-->
  44. <!--getHistorylist({ "processId": processId }).then(response => {-->
  45. <!--this.historyList = response.rows;-->
  46. <!--this.historyLoading = false-->
  47. <!--});-->
  48. <!--this.reset();-->
  49. <!--this.visible = true;-->
  50. <!--// if (taskName == "支部申请") {-->
  51. <!--// this.newDeptIdDisabled = false;-->
  52. <!--// } else {-->
  53. <!--// this.newDeptIdDisabled = true;-->
  54. <!--// }-->
  55. <!--// this.dialogType = dialogType;-->
  56. <!--// if (dialogType == 1) {-->
  57. <!--// this.title = taskName + "处理";-->
  58. <!--// } else {-->
  59. <!--// this.title = "查看详情";-->
  60. <!--// }-->
  61. <!--// this.taskForm.objId = id;-->
  62. <!--// this.taskForm.taskId = taskId;-->
  63. <!--// this.taskForm.taskName = taskName;-->
  64. <!--// getMember(id).then(response => {-->
  65. <!--// this.taskForm.obj = response.data;-->
  66. <!--// this.taskForm.oldDeptId = Number(response.data.oldDeptId);-->
  67. <!--// this.taskForm.newDeptId = Number(response.data.newDeptId);-->
  68. <!--// this.taskForm.userId = Number(response.data.userId);-->
  69. <!--// console.log(typeof(this.taskForm.newDeptId))-->
  70. <!--// console.log(typeof(this.taskForm.userId))-->
  71. <!--// });-->
  72. <!--// this.getTreeselect();-->
  73. <!--// this.getUserList();-->
  74. <!--},-->
  75. <!--reset() {-->
  76. <!--this.taskForm = {-->
  77. <!--oldDeptId: null,-->
  78. <!--newDeptId: null,-->
  79. <!--comment: '',-->
  80. <!--};-->
  81. <!--},-->
  82. <!--dataFormSubmit(condition) {-->
  83. <!--this.$refs["form"].validate(valid => {-->
  84. <!--if (valid) {-->
  85. <!--if (this.taskForm.taskName == "支部申请") {-->
  86. <!--this.taskForm.obj.oldDeptId = this.taskForm.oldDeptId;-->
  87. <!--this.taskForm.obj.newDeptId = this.taskForm.newDeptId;-->
  88. <!--this.$forceUpdate();-->
  89. <!--}-->
  90. <!--this.taskForm.condition = condition;-->
  91. <!--handle(this.taskForm).then(response => {-->
  92. <!--this.visible = false;-->
  93. <!--this.$modal.msgSuccess("提交成功");-->
  94. <!--// refreshDataList事件:调用父组件getList方法刷新页面-->
  95. <!--this.$emit('refreshDataList');-->
  96. <!--});-->
  97. <!--}-->
  98. <!--});-->
  99. <!--},-->
  100. <!--/** 查询部门下拉树结构 */-->
  101. <!--getTreeselect() {-->
  102. <!--treeselect().then(response => {-->
  103. <!--this.deptOptions = response.data;-->
  104. <!--});-->
  105. <!--},-->
  106. <!--}-->
  107. <!--}-->
  108. <!--</script>-->
  109. <!--<style scoped lang="scss">-->
  110. <!--::v-deep .el-input.is-disabled .el-input__inner {-->
  111. <!--color: #606266;-->
  112. <!--background-color: transparent;-->
  113. <!--}-->
  114. <!--</style>-->