btnApproveLog.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div>
  3. <el-button size="mini" @click="click">绩效审批记录</el-button>
  4. <el-dialog title="绩效审批记录" :visible.sync="open" width="1000px" :close-on-click-modal="false">
  5. <el-table size="mini" height="500px" v-loading="loading" :data="listData">
  6. <el-table-column label="时间" align="center" prop="createTime" />
  7. <el-table-column label="阶段" align="center" prop="performanceStatus" >
  8. <template slot-scope="scope">
  9. <dict-tag :options="dict.type.ehr_pm_status" :value="scope.row.performanceStatus"/>
  10. </template>
  11. </el-table-column>
  12. <el-table-column label="评估人" align="center" prop="staffName" />
  13. <el-table-column label="状态" align="center" prop="status" >
  14. <template slot-scope="scope">
  15. <dict-tag :options="dict.type.ehr_pm_flow_status" :value="scope.row.status"/>
  16. </template>
  17. </el-table-column>
  18. <el-table-column label="结果" align="center" prop="result" />
  19. </el-table>
  20. </el-dialog>
  21. </div>
  22. </template>
  23. <script>
  24. import { listFlow} from "@/api/business/ehr/pm/flow";
  25. export default {
  26. name: "ApproveLogDialog",
  27. dicts: ['ehr_pm_status','ehr_pm_flow_status'],
  28. props: ['pmId'],
  29. data() {
  30. return {
  31. // 查询参数
  32. queryParams: {
  33. pageNum: 1,
  34. pageSize: 1000,
  35. performanceId: null,
  36. },
  37. // 总条数
  38. total: 0,
  39. // 表格数据
  40. listData: [],
  41. // 遮罩层
  42. loading: true,
  43. // 是否显示弹出层
  44. open: false,
  45. };
  46. },
  47. watch: {},
  48. methods: {
  49. //点击了当前按钮
  50. click() {
  51. this.queryParams.performanceId = this.pmId;
  52. this.open = true;
  53. this.loading = true;
  54. listFlow(this.queryParams).then(response => {
  55. this.listData = response.rows;
  56. this.total = response.total;
  57. this.loading = false;
  58. });
  59. },
  60. },
  61. created() {},
  62. mounted() {},
  63. destroyed() {},
  64. };
  65. </script>