应用层PC端前端服务

archiveList.vue 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
  4. <el-form-item label="案件编号" prop="caseNum">
  5. <el-input v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
  6. </el-form-item>
  7. <!-- <el-form-item label="案件状态" prop="caseStatus">
  8. <el-select
  9. v-model="queryParams.caseStatus"
  10. placeholder="请选择案件状态"
  11. clearable
  12. @keyup.enter.native="handleQuery"
  13. >
  14. <el-option
  15. v-for="dict in dict.type.case_status"
  16. :key="dict.value"
  17. :label="dict.label"
  18. :value="dict.value"
  19. ></el-option>
  20. </el-select>
  21. </el-form-item> -->
  22. <!-- <el-form-item label="开庭日期" prop="hearDate">
  23. <el-date-picker
  24. v-model="queryParams.hearDate"
  25. type="daterange"
  26. range-separator="至"
  27. start-placeholder="开始日期"
  28. end-placeholder="结束日期"
  29. >
  30. </el-date-picker>
  31. </el-form-item> -->
  32. <el-form-item>
  33. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  34. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  35. </el-form-item>
  36. </el-form>
  37. <el-table v-loading="loading" :data="dataList" style="width: 100%">
  38. <el-table-column label="序号" type="index" align="center">
  39. <template slot-scope="scope">
  40. <span>{{
  41. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  42. }}</span>
  43. </template>
  44. </el-table-column>
  45. <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
  46. <el-table-column label="案件标的" align="center" prop="caseSubjectAmount" />
  47. <el-table-column label="立案日期" align="center" prop="registerDate" :show-overflow-tooltip="true" />
  48. <el-table-column label="案件状态" align="center" prop="caseStatusName">
  49. <template slot-scope="scope">
  50. <el-tag type="success">{{ scope.row.caseStatusName }}</el-tag>
  51. </template>
  52. </el-table-column>
  53. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  54. <template slot-scope="scope">
  55. <el-button size="mini" type="text" icon="el-icon-reading"
  56. v-if="scope.row.filearbitraUrl && scope.row.filearbitraUrl !== ''"
  57. @click="showModel(scope.row)">查看裁决书</el-button>
  58. <el-button size="mini" type="text" icon="el-icon-reading" @click="showDetail(scope.row)">归档详情</el-button>
  59. </template>
  60. </el-table-column>
  61. </el-table>
  62. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  63. @pagination="getList(queryParams)" />
  64. <!-- 弹窗 -->
  65. <archiveDetailsDialog v-if="showarchiveDetails" :showarchiveDetails="showarchiveDetails" :videoList="videoList" :detailform="detailform"
  66. :flagLoading="flagLoading" @cancelpaymentdetails="cancelpaymentdetails" @updataList="updataList">
  67. </archiveDetailsDialog>
  68. </div>
  69. </template>
  70. <script>
  71. import { caseApplicationList, selectSignSealUrl } from "@/api/awardManagement/awardManagement";
  72. import { adjudicationArchives, videoList } from "@/api/caseFiling/caseFiling";
  73. import archiveDetailsDialog from "./components/archiveDetailsDialog.vue";
  74. export default {
  75. name: "archiveList",
  76. dicts: ["case_status"],
  77. components: { archiveDetailsDialog },
  78. data() {
  79. return {
  80. queryParams: {
  81. pageNum: 1,
  82. pageSize: 10,
  83. },
  84. // 遮罩层
  85. loading: false,
  86. // 总条数
  87. total: 0,
  88. // 表格数据
  89. list: [],
  90. // 是否显示弹出层
  91. // 弹出层内容
  92. form: {},
  93. // 校验表单
  94. rules: {},
  95. dataList: [],
  96. detailform: {}, //详情数据
  97. showarchiveDetails: false, //详情数据弹框
  98. flagLoading: false, //详情弹框loading
  99. videoList:""
  100. };
  101. },
  102. created() {
  103. this.queryParams.caseStatusList = [17];
  104. this.getList(this.queryParams);
  105. },
  106. methods: {
  107. showModel(row) {
  108. selectSignSealUrl({ id: row.id }).then(res => {
  109. let url = res.data.filearbitraUrl;
  110. window.open(url)
  111. })
  112. },
  113. updataList() {
  114. this.getList(this.queryParams);
  115. },
  116. /** 搜索按钮操作 */
  117. handleQuery() {
  118. this.queryParams.pageNum = 1;
  119. this.getList(this.queryParams);
  120. },
  121. /** 重置按钮操作 */
  122. resetQuery() {
  123. this.resetForm("queryForm");
  124. this.handleQuery();
  125. },
  126. // 查询列表数据
  127. getList(parms) {
  128. this.loading = true;
  129. caseApplicationList(parms).then((response) => {
  130. this.dataList = response.rows;
  131. this.total = response.total;
  132. this.loading = false;
  133. });
  134. },
  135. // model框显示
  136. showDetail(row) {
  137. this.getDetail({ id: row.id });
  138. this.getvideoList({ caseId: row.id });
  139. this.showarchiveDetails = true;
  140. this.flagLoading = true;
  141. },
  142. // 关闭弹窗
  143. cancelpaymentdetails() {
  144. this.showarchiveDetails = false;
  145. },
  146. // 根据id查询视频列表
  147. getvideoList(data) {
  148. videoList(data).then(res => {
  149. this.videoList = res.data;
  150. })
  151. },
  152. /** 查询详情 */
  153. getDetail(parms) {
  154. adjudicationArchives(parms).then((res) => {
  155. this.detailform = res.data;
  156. this.flagLoading = false;
  157. });
  158. },
  159. },
  160. };
  161. </script>
  162. <style lang="scss" scoped></style>