orderOverList.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div class="container">
  3. <fullscreen :fullscreen.sync="fullscreen" class="container-box">
  4. <div class="titbox">
  5. <h2 class="font-ui">工单超时预警服务列表</h2>
  6. <div>
  7. <i class="el-icon-refresh" @click="iconCli(1)"></i>
  8. <i class="el-icon-full-screen" @click="iconCli(2)"></i>
  9. <!-- <i class="el-icon-folder-opened"></i>-->
  10. <!-- <i class="el-icon-view"></i>-->
  11. <!-- <i class="el-icon-more"></i>-->
  12. </div>
  13. </div>
  14. <div class="search">
  15. <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
  16. </div>
  17. <div class="tabbox">
  18. <el-table
  19. height="calc(100% - 40px)"
  20. v-loading="loading"
  21. class="com-table"
  22. ref="multipleTable"
  23. :data="tableData"
  24. tooltip-effect="dark"
  25. size="small"
  26. border
  27. style="width: 100%"
  28. >
  29. <el-table-column
  30. align="center"
  31. prop="processWOID"
  32. label="工单编号"
  33. show-overflow-tooltip
  34. >
  35. </el-table-column>
  36. <el-table-column
  37. align="center"
  38. prop="alarmInfoId"
  39. show-overflow-tooltip
  40. label="告警信息编号"
  41. >
  42. </el-table-column>
  43. <el-table-column
  44. prop="alarmType"
  45. label="告警类型"
  46. show-overflow-tooltip
  47. ></el-table-column>
  48. <el-table-column align="center" prop="description" label="告警内容">
  49. </el-table-column>
  50. <el-table-column
  51. width="120"
  52. align="center"
  53. prop="alarmTime"
  54. label="告警时间"
  55. >
  56. </el-table-column>
  57. <el-table-column align="center" prop="alarmStatus" label="告警状态">
  58. </el-table-column>
  59. </el-table>
  60. <el-pagination
  61. class="pageBox"
  62. @current-change="currchange"
  63. layout="prev, pager, next"
  64. background
  65. :total="total"
  66. >
  67. </el-pagination>
  68. </div>
  69. </fullscreen>
  70. </div>
  71. </template>
  72. <script>
  73. import mySearch from "../../../components/search";
  74. export default {
  75. components: {
  76. mySearch,
  77. },
  78. data() {
  79. return {
  80. fullscreen: false,
  81. total: 0,
  82. pageSize: 1,
  83. tableData: [],
  84. searchList: [
  85. {
  86. type: "input",
  87. tit: "CRM订单号",
  88. value: "",
  89. width: "100%",
  90. options: [],
  91. },
  92. ],
  93. params: {
  94. complaintWOID: "1",
  95. },
  96. loading: false,
  97. };
  98. },
  99. methods: {
  100. //搜索数据
  101. searchInfo(v) {
  102. this.params = {};
  103. v[0] ? (this.params.complaintWOID = v[0]) : "";
  104. this.getList(this.params, this.pageSize);
  105. },
  106. //获取列表
  107. getList(v, n) {
  108. this.loading = true;
  109. this.pageSize = n;
  110. this.$http({
  111. url: "/compvis/ipv/processWoAlarm",
  112. method: "post",
  113. headers: {
  114. "Content-Type": "application/json",
  115. page: '{"pageNo":"' + n + '","pageSize":"10"}',
  116. },
  117. data: v,
  118. }).then((res) => {
  119. this.loading = false;
  120. this.tableData = res.data.data;
  121. this.total = res.data.totalRecord;
  122. });
  123. },
  124. //功能栏
  125. iconCli(v) {
  126. if (v === 1) {
  127. this.getList(this.params, this.pageSize);
  128. }
  129. if (v === 2) {
  130. this.fullscreen = !this.fullscreen;
  131. }
  132. },
  133. // 分页
  134. currchange(v) {
  135. this.pageSize = v;
  136. this.getList(this.params, this.pageSize);
  137. },
  138. },
  139. mounted() {
  140. if (this.$route.params.complaintWOID) {
  141. this.searchList[0].value = this.$route.params.complaintWOID;
  142. this.params.complaintWOID = this.$route.params.complaintWOID;
  143. } else {
  144. this.searchList[0].value = "";
  145. this.params.complaintWOID = "";
  146. }
  147. this.getList(this.params, this.pageSize);
  148. },
  149. created() {},
  150. watch: {
  151. $route(to, from) {
  152. if (from.name == "processWoQuery" && this.$route.params.complaintWOID) {
  153. this.searchList[0].value = this.$route.params.complaintWOID;
  154. this.params.complaintWOID = this.$route.params.complaintWOID;
  155. this.getList(this.params, this.pageSize);
  156. } else {
  157. this.searchList[0].value = "";
  158. this.params.complaintWOID = "";
  159. }
  160. },
  161. },
  162. };
  163. </script>
  164. <style>
  165. .el-input__suffix {
  166. cursor: pointer;
  167. }
  168. </style>
  169. <style scoped lang="scss">
  170. .titbox {
  171. div {
  172. float: right;
  173. i {
  174. font-size: 22px;
  175. margin-left: 20px;
  176. cursor: pointer;
  177. }
  178. }
  179. }
  180. .tabbox {
  181. margin-top: 15px;
  182. }
  183. .pageBox {
  184. text-align: right;
  185. margin-top: 10px;
  186. }
  187. </style>