reply.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div>
  3. <div class="simple-container">
  4. <simple-form
  5. :form="table_form"
  6. :handle="table_handle"
  7. @search="handleSearch"
  8. ></simple-form>
  9. <simple-table
  10. :list="table_list"
  11. :config="table_config"
  12. :loading="table_loading"
  13. :handle-row="table_handle_row"
  14. ></simple-table>
  15. <!-- <simple-pagination
  16. :page="page"
  17. :total="total"
  18. @change="handleChange"
  19. ></simple-pagination> -->
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import simpleForm from "./components/form.vue";
  25. import simpleTable from "./components/table.vue";
  26. // import simplePagination from "./components/pagination.vue";
  27. export default {
  28. components: {
  29. simpleTable,
  30. simpleForm,
  31. // simplePagination,
  32. },
  33. data() {
  34. return {
  35. page: 1,
  36. rows: 10,
  37. total: 0,
  38. table_loading: false,
  39. table_search: {},
  40. table_form: [
  41. {
  42. label: "统计月份",
  43. props: "time",
  44. type: "month",
  45. },
  46. // {
  47. // label: "绩效类型",
  48. // props: "performance_type",
  49. // type: "select",
  50. // dictionary: [
  51. // {
  52. // label: "部门绩效",
  53. // value: "部门绩效",
  54. // },
  55. // {
  56. // label: "员工绩效",
  57. // value: "员工绩效",
  58. // },
  59. // ],
  60. // },
  61. // {
  62. // label: "绩效分类",
  63. // props: "performance_class",
  64. // type: "select",
  65. // dictionary: [
  66. // {
  67. // label: "GS",
  68. // value: "GS",
  69. // },
  70. // {
  71. // label: "KPI",
  72. // value: "KPI",
  73. // },
  74. // ],
  75. // },
  76. ],
  77. table_list: [],
  78. table_handle: [
  79. {
  80. label: "导出",
  81. props: "download",
  82. },
  83. ],
  84. table_handle_row: [],
  85. table_config: [
  86. {
  87. label: "科室名称",
  88. props: "dept",
  89. },
  90. {
  91. label: "科室经理",
  92. props: "loginName",
  93. },
  94. {
  95. label: "待办接收数",
  96. props: "number",
  97. },
  98. {
  99. label: "完成回复率",
  100. props: "percentageReply",
  101. },
  102. {
  103. label: "超期率",
  104. props: "percentageTimeOut",
  105. },
  106. {
  107. label: "累计超期时间",
  108. props: "day",
  109. },
  110. ],
  111. };
  112. },
  113. methods: {
  114. handleInit(data) {
  115. this.table_loading = true;
  116. this.$http({
  117. url: "/market/CMKIssued/CMKIssuedReplyStatistics",
  118. method: "post",
  119. headers: {
  120. "Content-Type": "application/json",
  121. },
  122. data: data,
  123. }).then(({data}) => {
  124. // console.log(res,'data');
  125. // this.total = count;
  126. this.table_list = data;
  127. this.table_loading = false;
  128. });
  129. // const data = [];
  130. // let index = 0;
  131. // while (index < 10) {
  132. // data.push({
  133. // department_name: `科室${index}`,
  134. // department_manager: `经理${index}`,
  135. // received_umber: `${index}`,
  136. // response_rate: `${index + 1}0`,
  137. // overdue_rate: `50%`,
  138. // cumulative_overtime: `3`,
  139. // });
  140. // index = index + 1;
  141. // }
  142. },
  143. handleSearch(data) {
  144. this.table_search = data;
  145. this.handleReset();
  146. this.handleInit({...data});
  147. },
  148. handleChange(page) {
  149. this.page = page;
  150. this.handleInit({...this.table_search});
  151. },
  152. handleReset() {
  153. this.page = 1;
  154. },
  155. },
  156. mounted() {
  157. this.handleInit({});
  158. },
  159. };
  160. </script>
  161. <style></style>