dialog.info.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <template>
  2. <div class="edu-training-edit">
  3. <DialogCom title="调阅任务详情" :visible.sync="isShow" width="960px">
  4. <div class="page-body">
  5. <el-descriptions
  6. class="margin-top"
  7. :column="2"
  8. size="medium"
  9. border
  10. :label-style="labelStyle"
  11. :contentStyle="content_style"
  12. >
  13. <el-descriptions-item labelClassName="gx_info_label" label="任务名称">
  14. {{ formData.taskName }}
  15. </el-descriptions-item>
  16. <el-descriptions-item labelClassName="gx_info_label" label="任务进度">
  17. <dict-tag
  18. :options="dict.type.retrieval_task_status"
  19. :value="formData.status"
  20. />
  21. </el-descriptions-item>
  22. <el-descriptions-item labelClassName="gx_info_label" label="任务时间">
  23. {{ formData.planStartTime }}-{{ formData.planEndTime }}
  24. </el-descriptions-item>
  25. <el-descriptions-item labelClassName="gx_info_label" label="调阅机构">
  26. {{ formData.orgName}}
  27. </el-descriptions-item>
  28. <el-descriptions-item labelClassName="gx_info_label" label="调阅人员">
  29. {{ formData.roleName}}
  30. </el-descriptions-item>
  31. <el-descriptions-item labelClassName="gx_info_label" label="登记人">
  32. {{ formData.retrievalUserName}}
  33. </el-descriptions-item>
  34. <el-descriptions-item labelClassName="gx_info_label" label="调阅开始时间">
  35. {{ formData.startTime}}
  36. </el-descriptions-item>
  37. <el-descriptions-item labelClassName="gx_info_label" label="调阅结束时间">
  38. {{ formData.endTime}}
  39. </el-descriptions-item>
  40. </el-descriptions>
  41. <el-form
  42. :model="formData"
  43. size="small"
  44. ref="form"
  45. label-position="right"
  46. label-width="120px"
  47. label-suffix=":"
  48. >
  49. <!-- <el-row>
  50. <el-col :span="12">
  51. <el-form-item prop="type" label="任务名称">{{
  52. formData.taskName
  53. }}</el-form-item>
  54. </el-col>
  55. <el-col :span="12">
  56. <el-form-item label="任务进度">
  57. <template>
  58. <dict-tag
  59. :options="dict.type.retrieval_task_status"
  60. :value="formData.status"
  61. />
  62. </template>
  63. </el-form-item>
  64. </el-col>
  65. <el-col :span="12">
  66. <el-form-item prop="trainingStartDateTime" label="任务时间"
  67. >{{ formData.planStartTime }}-{{
  68. formData.planEndTime
  69. }}</el-form-item
  70. >
  71. </el-col>
  72. <el-col :span="12">
  73. <el-form-item prop="dueCount" label="调阅机构">{{
  74. formData.orgName
  75. }}</el-form-item>
  76. </el-col>
  77. <el-col :span="12">
  78. <el-form-item prop="dueCount" label="调阅人员">{{
  79. formData.roleName
  80. }}</el-form-item>
  81. </el-col>
  82. <el-col :span="12">
  83. <el-form-item prop="dueCount" label="登记人">{{
  84. formData.retrievalUserName
  85. }}</el-form-item>
  86. </el-col>
  87. <el-col :span="12">
  88. <el-form-item prop="trainingEndDateTime" label="调阅开始时间">{{
  89. formData.startTime
  90. }}</el-form-item>
  91. </el-col>
  92. <el-col :span="12">
  93. <el-form-item prop="trainingEndDateTime" label="调阅结束时间">{{
  94. formData.endTime
  95. }}</el-form-item>
  96. </el-col>
  97. </el-row> -->
  98. <div class="extend_mod">
  99. <el-table
  100. v-loading="loading"
  101. :data="formData.taskDataVoList"
  102. @selection-change="handleSelectionChange"
  103. border=""
  104. >
  105. <el-table-column label="序号" type="index" width="100" align="center">
  106. <template slot-scope="scope">
  107. <span>{{ scope.$index + 1 }}</span>
  108. </template>
  109. </el-table-column>
  110. <el-table-column
  111. label="硬盘录像机"
  112. align="center"
  113. prop="hostName"
  114. />
  115. <el-table-column
  116. label="通道名称"
  117. align="center"
  118. prop="channelName"
  119. />
  120. <el-table-column label="调阅项目" align="center" prop="project">
  121. <template slot-scope="scope">
  122. <dict-tag
  123. :options="dict.type.core_registration_project"
  124. :value="scope.row.project"
  125. />
  126. </template>
  127. </el-table-column>
  128. <el-table-column label="检查情况" align="center" prop="situation">
  129. <template slot-scope="scope">
  130. <dict-tag
  131. :options="dict.type.core_check_type"
  132. :value="scope.row.situation"
  133. />
  134. </template>
  135. </el-table-column>
  136. <el-table-column label="说明" align="center" prop="remark" />
  137. </el-table>
  138. </div>
  139. </el-form>
  140. </div>
  141. <div slot="footer" class="dialog-footer">
  142. <el-button @click="onHide">关闭</el-button>
  143. </div>
  144. </DialogCom>
  145. </div>
  146. </template>
  147. <script>
  148. import { mapState, mapMutations } from "vuex";
  149. import { getEduTask } from "@/api/core/edu/eduTask";
  150. import { getTask } from "@/api/core/task";
  151. export default {
  152. components: {},
  153. dicts: [
  154. "core_registration_project",
  155. "core_check_type",
  156. "retrieval_task_status",
  157. ],
  158. data() {
  159. const params = this.$route.params;
  160. return {
  161. labelStyle: {
  162. color: "#000",
  163. "text-align": "center",
  164. height: "40px",
  165. "min-width": "150px",
  166. "word-break": "keep-all",
  167. },
  168. content_style: {
  169. "text-align": "left",
  170. "min-width": "300px",
  171. "word-break": "break-all",
  172. },
  173. id: params ? params.id : null,
  174. isShow: false,
  175. formData: this.reset(),
  176. };
  177. },
  178. props: {},
  179. watch: {},
  180. computed: {
  181. ...mapState(["loginUser"]),
  182. },
  183. methods: {
  184. ...mapMutations([]),
  185. reset(other = {}) {
  186. return {
  187. id: null,
  188. taskName: null,
  189. status: null,
  190. planStartTime: null,
  191. planEndTime: null,
  192. orgName: null,
  193. roleName: null,
  194. retrievalUserName: null,
  195. startTime: null,
  196. endTime: null,
  197. taskDataVoList: [],
  198. ...other,
  199. };
  200. },
  201. async refresh(id, other) {
  202. if (!id) {
  203. this.reset(other);
  204. } else {
  205. getTask(id).then((response) => {
  206. this.formData = response.data;
  207. this.open = true;
  208. this.title = "调阅详情";
  209. });
  210. }
  211. },
  212. async show(id, other = {}) {
  213. this.id = id;
  214. await this.refresh(id, other);
  215. this.isShow = true;
  216. },
  217. // 事件
  218. onHide() {
  219. this.isShow = false;
  220. },
  221. // 事件
  222. //apimark//
  223. },
  224. mounted() {},
  225. };
  226. </script>
  227. <style lang="scss">
  228. .edu-training-edit {
  229. }
  230. </style>