ProjectTransferRecordInitiatedList.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline">
  6. <a-row :gutter="24">
  7. <a-col :md="6" :sm="8">
  8. <a-form-item label="账户">
  9. <!--<a-input placeholder="请输入账户id" v-model="queryParam.accountId"></a-input>-->
  10. <j-dict-select-tag v-model="queryParam.accountId" placeholder="请选择用户名称" dictCode="ctop_user_allocation,auth_name,account_id,account_status = '0'"/>
  11. </a-form-item>
  12. </a-col>
  13. <a-col :md="6" :sm="8">
  14. <a-form-item label="状态">
  15. <a-select default-value="0" v-model="queryParam.status">
  16. <a-select-option value="0">
  17. 全部
  18. </a-select-option>
  19. <a-select-option value="1">
  20. 审核中
  21. </a-select-option>
  22. <a-select-option value="2">
  23. 已通过
  24. </a-select-option>
  25. <a-select-option value="3">
  26. 已驳回
  27. </a-select-option>
  28. </a-select>
  29. </a-form-item>
  30. </a-col>
  31. <a-col :md="6" :sm="8" >
  32. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  33. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  34. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  35. </span>
  36. </a-col>
  37. </a-row>
  38. </a-form>
  39. </div>
  40. <!-- 操作按钮区域 -->
  41. <div class="table-operator">
  42. <!--<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
  43. </div>
  44. <!-- table区域-begin -->
  45. <a-table
  46. ref="table"
  47. size="middle"
  48. bordered
  49. rowKey="id"
  50. :columns="columns"
  51. :dataSource="dataSource"
  52. :pagination="ipagination"
  53. :loading="loading"
  54. @change="handleTableChange">
  55. <span slot="action" slot-scope="text, record">
  56. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  57. <a>删除</a>
  58. </a-popconfirm>
  59. </span>
  60. </a-table>
  61. <!-- table区域-end -->
  62. <!-- 表单区域 -->
  63. <projectTransferRecord-modal ref="modalForm" @ok="modalFormOk"></projectTransferRecord-modal>
  64. </a-card>
  65. </template>
  66. <script>
  67. import ProjectTransferRecordModal from './modules/ProjectTransferRecordModal'
  68. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  69. import {postAction} from "../../../api/manage";
  70. export default {
  71. name: "ProjectTransferRecordList",
  72. mixins:[JeecgListMixin],
  73. components: {
  74. ProjectTransferRecordModal
  75. },
  76. data () {
  77. return {
  78. description: '账户转项目记录管理页面',
  79. // 表头
  80. columns: [
  81. {
  82. title: '账户id',
  83. align:"center",
  84. dataIndex: 'accountId'
  85. },
  86. {
  87. title: '账户名称',
  88. align:"center",
  89. dataIndex: 'accountId_dictText'
  90. },
  91. {
  92. title: '原项目',
  93. align:"center",
  94. dataIndex: 'soucreProject_dictText'
  95. },
  96. {
  97. title: '目标项目',
  98. align:"center",
  99. dataIndex: 'targetProject_dictText'
  100. },
  101. {
  102. title: '申请人',
  103. align:"center",
  104. dataIndex: 'userId_dictText'
  105. },
  106. {
  107. title: '审核人',
  108. align:"center",
  109. dataIndex: 'reviewerId_dictText'
  110. },
  111. {
  112. title: '审核状态',
  113. align:"center",
  114. dataIndex: 'status_dictText'
  115. },
  116. {
  117. title: '操作',
  118. dataIndex: 'action',
  119. align:"center",
  120. scopedSlots: { customRender: 'action' },
  121. }
  122. ],
  123. url: {
  124. list: "/ctop/projectTransferRecord/initiatedList",
  125. delete: "/ctop/projectTransferRecord/delete",
  126. deleteBatch: "/ctop/projectTransferRecord/deleteBatch"
  127. },
  128. }
  129. },
  130. computed: {
  131. importExcelUrl: function(){
  132. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  133. }
  134. },
  135. methods: {
  136. handleDele(record){
  137. if(confirm("确认要删除此数据?")){
  138. postAction()
  139. }
  140. }
  141. }
  142. }
  143. </script>
  144. <style scoped>
  145. @import '~@assets/less/common.less'
  146. </style>