dialog.info.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <div class="edu-training-edit">
  3. <el-dialog title="调阅详情" :visible.sync="isShow" width="960px">
  4. <div class="page-body">
  5. <el-form :model="formData" size="small" ref="form" label-position="right" label-width="120px"
  6. label-suffix=":">
  7. <el-row>
  8. <el-col :span="12">
  9. <el-form-item prop="type" label="任务名称">{{
  10. formData.taskName
  11. }}</el-form-item>
  12. </el-col>
  13. <el-col :span="12">
  14. <el-form-item label="任务状态">
  15. <template>
  16. <dict-tag :options="dict.type.retrieval_task_status" :value="formData.status"/>
  17. </template>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="12">
  21. <el-form-item prop="trainingStartDateTime" label="任务时间">{{
  22. formData.planStartTime
  23. }}-{{ formData.planEndTime}}</el-form-item>
  24. </el-col>
  25. <el-col :span="12">
  26. <el-form-item prop="dueCount" label="调阅机构">{{
  27. formData.orgName
  28. }}</el-form-item>
  29. </el-col>
  30. <el-col :span="12">
  31. <el-form-item prop="dueCount" label="调阅角色">{{
  32. formData.roleName
  33. }}</el-form-item>
  34. </el-col>
  35. <el-col :span="12">
  36. <el-form-item prop="dueCount" label="调阅人">{{
  37. formData.retrievalUserName
  38. }}</el-form-item>
  39. </el-col>
  40. <!-- 培训截止时间 -->
  41. <el-col :span="12">
  42. <el-form-item prop="trainingEndDateTime" label="调阅开始时间">{{
  43. formData.startTime
  44. }}</el-form-item>
  45. </el-col>
  46. <el-col :span="12">
  47. <el-form-item prop="trainingEndDateTime" label="调阅结束时间">{{
  48. formData.endTime
  49. }}</el-form-item>
  50. </el-col>
  51. </el-row>
  52. <el-table v-loading="loading" :data="formData.taskDataVoList" @selection-change="handleSelectionChange">
  53. <el-table-column label="序号" type="index" align="center">
  54. <template slot-scope="scope">
  55. <span>{{scope.$index + 1}}</span>
  56. </template>
  57. </el-table-column>
  58. <el-table-column label="视频主机" align="center" prop="hostName" />
  59. <el-table-column label="视频通道" align="center" prop="channelName" />
  60. <el-table-column label="项目" align="center" prop="project" >
  61. <template slot-scope="scope">
  62. <dict-tag :options="dict.type.core_registration_project" :value="scope.row.project"/>
  63. </template>
  64. </el-table-column>
  65. <el-table-column label="检查情况" align="center" prop="situation" >
  66. <template slot-scope="scope">
  67. <dict-tag :options="dict.type.core_check_type" :value="scope.row.situation"/>
  68. </template>
  69. </el-table-column>
  70. <el-table-column label="说明" align="center" prop="remark" />
  71. </el-table>
  72. </el-form>
  73. </div>
  74. <div slot="footer" class="dialog-footer">
  75. <el-button @click="onHide">关闭</el-button>
  76. </div>
  77. </el-dialog>
  78. </div>
  79. </template>
  80. <script>
  81. import { mapState, mapMutations } from "vuex";
  82. import { getEduTask } from "@/api/core/edu/eduTask";
  83. import { getTask} from "@/api/core/task";
  84. export default {
  85. components: {},
  86. dicts: ['core_registration_project', 'core_check_type','retrieval_task_status'],
  87. data() {
  88. const params = this.$route.params;
  89. return {
  90. id: params ? params.id : null,
  91. isShow: false,
  92. formData: this.reset(),
  93. };
  94. },
  95. props: {},
  96. watch: {},
  97. computed: {
  98. ...mapState(["loginUser"]),
  99. },
  100. methods: {
  101. ...mapMutations([]),
  102. reset(other = {}) {
  103. return {
  104. id: null,
  105. taskName: null,
  106. status: null,
  107. planStartTime: null,
  108. planEndTime: null,
  109. orgName: null,
  110. roleName: null,
  111. retrievalUserName: null,
  112. startTime: null,
  113. endTime:null,
  114. taskDataVoList:[],
  115. ...other,
  116. };
  117. },
  118. async refresh(id, other) {
  119. if (!id) {
  120. this.reset(other);
  121. }
  122. else {
  123. getTask(id).then(response => {
  124. this.formData = response.data;
  125. this.open = true;
  126. this.title = "调阅详情";
  127. });
  128. }
  129. },
  130. async show(id, other = {}) {
  131. this.id = id;
  132. await this.refresh(id, other);
  133. this.isShow = true;
  134. },
  135. // 事件
  136. onHide() {
  137. this.isShow = false;
  138. },
  139. // 事件
  140. //apimark//
  141. },
  142. mounted() { },
  143. };
  144. </script>
  145. <!-- <style lang="less">
  146. .edu-training-edit {
  147. }
  148. </style> -->