PerformanceList.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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="4" :sm="4">
  8. <a-form-item label="用户">
  9. <a-input placeholder="请输入sys_user的主键id" v-model="queryParam.userId"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :md="4" :sm="4">
  13. <a-form-item label="角色">
  14. <a-input placeholder="请输入sys_role的主键id" v-model="queryParam.roleId"></a-input>
  15. </a-form-item>
  16. </a-col>
  17. <template>
  18. <a-col :md="4" :sm="4">
  19. <a-form-item label="年度">
  20. <a-input placeholder="请输入年度" v-model="queryParam.year"></a-input>
  21. </a-form-item>
  22. </a-col>
  23. <a-col :md="3" :sm="3">
  24. <a-form-item label="季度">
  25. <a-input placeholder="请输入季度" v-model="queryParam.quarter"></a-input>
  26. </a-form-item>
  27. </a-col>
  28. </template>
  29. <a-col :md="6" :sm="8" >
  30. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  31. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  32. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  33. </span>
  34. </a-col>
  35. </a-row>
  36. </a-form>
  37. </div>
  38. <!-- table区域-begin -->
  39. <div>
  40. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  41. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  42. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  43. </div>
  44. <a-table
  45. ref="table"
  46. size="middle"
  47. bordered
  48. rowKey="id"
  49. :columns="columns"
  50. :dataSource="dataSource"
  51. :pagination="ipagination"
  52. :loading="loading"
  53. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  54. @change="handleTableChange">
  55. <span slot="action" slot-scope="text, record">
  56. <a @click="handleEdit(record)">编辑</a>
  57. <a-divider type="vertical" />
  58. <a-dropdown>
  59. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  60. <a-menu slot="overlay">
  61. <a-menu-item>
  62. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  63. <a>删除</a>
  64. </a-popconfirm>
  65. </a-menu-item>
  66. </a-menu>
  67. </a-dropdown>
  68. </span>
  69. </a-table>
  70. </div>
  71. <!-- table区域-end -->
  72. <!-- 表单区域 -->
  73. <performance-modal ref="modalForm" @ok="modalFormOk"></performance-modal>
  74. </a-card>
  75. </template>
  76. <script>
  77. import PerformanceModal from './modules/PerformanceModal'
  78. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  79. export default {
  80. name: "PerformanceList",
  81. mixins:[JeecgListMixin],
  82. components: {
  83. PerformanceModal
  84. },
  85. data () {
  86. return {
  87. description: '绩效信息表管理页面',
  88. // 表头
  89. columns: [
  90. {
  91. title: '#',
  92. dataIndex: '',
  93. key:'rowIndex',
  94. width:60,
  95. align:"center",
  96. customRender:function (t,r,index) {
  97. return parseInt(index)+1;
  98. }
  99. },
  100. {
  101. title: '用户名称',
  102. align:"center",
  103. dataIndex: 'userId_dictText'
  104. },
  105. {
  106. title: '角色信息',
  107. align:"center",
  108. dataIndex: 'roleId_dictText'
  109. },
  110. {
  111. title: '年度',
  112. align:"center",
  113. dataIndex: 'year'
  114. },
  115. {
  116. title: '季度',
  117. align:"center",
  118. dataIndex: 'quarter'
  119. },
  120. {
  121. title: '总消耗(单位元)',
  122. align:"center",
  123. dataIndex: 'totalCost'
  124. },
  125. {
  126. title: '总绩效(单位元)',
  127. align:"center",
  128. dataIndex: 'totalPerformance'
  129. },
  130. {
  131. title: '提点比例',
  132. align:"center",
  133. dataIndex: 'commissionRate'
  134. },
  135. {
  136. title: '角色提成比例',
  137. align:"center",
  138. dataIndex: 'roleCommissionRate'
  139. },
  140. {
  141. title: '视频有效率',
  142. align:"center",
  143. dataIndex: 'videoEfficiency'
  144. },
  145. {
  146. title: '媒体类型',
  147. align:"center",
  148. dataIndex: 'appType_dictText'
  149. }
  150. ],
  151. url: {
  152. list: "/ctop/performance/list",
  153. delete: "/ctop/performance/delete",
  154. deleteBatch: "/ctop/performance/deleteBatch",
  155. exportXlsUrl: "ctop/performance/exportXls",
  156. importExcelUrl: "ctop/performance/importExcel",
  157. },
  158. }
  159. },
  160. computed: {
  161. importExcelUrl: function(){
  162. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  163. }
  164. },
  165. methods: {
  166. }
  167. }
  168. </script>
  169. <style scoped>
  170. @import '~@assets/less/common.less'
  171. </style>