ConferenceMinutesList.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8. <a-form-item label="会议纪要编号">
  9. <a-input placeholder="请输入会议纪要编号" v-model="queryParam.minutesId"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="会议议题">
  14. <a-input placeholder="请输入会议议题" v-model="queryParam.conferenceTitle"></a-input>
  15. </a-form-item>
  16. </a-col>
  17. <template v-if="toggleSearchStatus">
  18. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  19. <a-form-item label="上传人">
  20. <a-input placeholder="请输入上传人" v-model="queryParam.uploadPerson"></a-input>
  21. </a-form-item>
  22. </a-col>
  23. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  24. <a-form-item label="上传部门">
  25. <a-input placeholder="请输入上传部门" v-model="queryParam.uploadDept"></a-input>
  26. </a-form-item>
  27. </a-col>
  28. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  29. <a-form-item label="上传时间">
  30. <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择上传时间" v-model="queryParam.uploadDate" style="width: 100%;"></j-date>
  31. </a-form-item>
  32. </a-col>
  33. </template>
  34. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  35. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  36. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  37. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  38. <a @click="handleToggleSearch" style="margin-left: 8px">
  39. {{ toggleSearchStatus ? '收起' : '展开' }}
  40. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  41. </a>
  42. </span>
  43. </a-col>
  44. </a-row>
  45. </a-form>
  46. </div>
  47. <!-- 查询区域-END -->
  48. <!-- 操作按钮区域 -->
  49. <div class="table-operator">
  50. <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  51. <!-- <a-button type="primary" icon="download" @click="handleExportXls('会议纪要管理')">导出</a-button>-->
  52. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
  53. <!-- <a-button type="primary" icon="import">导入</a-button>-->
  54. <!-- </a-upload>-->
  55. <a-dropdown v-if="selectedRowKeys.length > 0">
  56. <a-menu slot="overlay">
  57. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  58. </a-menu>
  59. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  60. </a-dropdown>
  61. </div>
  62. <!-- table区域-begin -->
  63. <div>
  64. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  65. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  66. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  67. </div>
  68. <a-table
  69. ref="table"
  70. size="middle"
  71. bordered
  72. rowKey="id"
  73. :columns="columns"
  74. :dataSource="dataSource"
  75. :pagination="ipagination"
  76. :loading="loading"
  77. :rowSelection="{fixed:true,selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  78. @change="handleTableChange">
  79. <template slot="htmlSlot" slot-scope="text">
  80. <div v-html="text"></div>
  81. </template>
  82. <template slot="imgSlot" slot-scope="text">
  83. <span v-if="!text" style="font-size: 12px;font-style: italic;">无此图片</span>
  84. <img v-else :src="getImgView(text)" height="25px" alt="图片不存在" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  85. </template>
  86. <template slot="fileSlot" slot-scope="text">
  87. <span v-if="!text" style="font-size: 12px;font-style: italic;">无此文件</span>
  88. <a-button
  89. v-else
  90. :ghost="true"
  91. type="primary"
  92. icon="download"
  93. size="small"
  94. @click="uploadFile(text)">
  95. 下载
  96. </a-button>
  97. </template>
  98. <span slot="action" slot-scope="text, record">
  99. <a @click="handleEdit(record)">编辑</a>
  100. <a-divider type="vertical" />
  101. <a-dropdown>
  102. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  103. <a-menu slot="overlay">
  104. <a-menu-item>
  105. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  106. <a>删除</a>
  107. </a-popconfirm>
  108. </a-menu-item>
  109. </a-menu>
  110. </a-dropdown>
  111. </span>
  112. </a-table>
  113. </div>
  114. <conferenceMinutes-modal ref="modalForm" @ok="modalFormOk"></conferenceMinutes-modal>
  115. </a-card>
  116. </template>
  117. <script>
  118. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  119. import ConferenceMinutesModal from './modules/ConferenceMinutesModal'
  120. import JDate from '@/components/jeecg/JDate'
  121. export default {
  122. name: "ConferenceMinutesList",
  123. mixins:[JeecgListMixin],
  124. components: {
  125. ConferenceMinutesModal,
  126. JDate
  127. },
  128. data () {
  129. return {
  130. description: '会议纪要管理管理页面',
  131. // 表头
  132. columns: [
  133. {
  134. title: '#',
  135. dataIndex: '',
  136. key:'rowIndex',
  137. width:60,
  138. align:"center",
  139. customRender:function (t,r,index) {
  140. return parseInt(index)+1;
  141. }
  142. },
  143. {
  144. title:'会议纪要编号',
  145. align:"center",
  146. dataIndex: 'minutesId'
  147. },
  148. {
  149. title:'会议议题',
  150. align:"center",
  151. dataIndex: 'conferenceTitle'
  152. },
  153. {
  154. title:'上传人',
  155. align:"center",
  156. dataIndex: 'uploadPerson'
  157. },
  158. {
  159. title:'上传部门',
  160. align:"center",
  161. dataIndex: 'uploadDept'
  162. },
  163. {
  164. title:'上传时间',
  165. align:"center",
  166. dataIndex: 'uploadDate'
  167. },
  168. {
  169. title: '操作',
  170. dataIndex: 'action',
  171. align:"center",
  172. scopedSlots: { customRender: 'action' }
  173. }
  174. ],
  175. url: {
  176. list: "/conferenceMinutes/conferenceMinutes/list",
  177. delete: "/conferenceMinutes/conferenceMinutes/delete",
  178. deleteBatch: "/conferenceMinutes/conferenceMinutes/deleteBatch",
  179. exportXlsUrl: "/conferenceMinutes/conferenceMinutes/exportXls",
  180. importExcelUrl: "conferenceMinutes/conferenceMinutes/importExcel",
  181. },
  182. dictOptions:{},
  183. }
  184. },
  185. computed: {
  186. importExcelUrl: function(){
  187. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  188. }
  189. },
  190. methods: {
  191. initDictConfig(){
  192. }
  193. }
  194. }
  195. </script>
  196. <style scoped lang="less">
  197. @import '~@assets/less/common.less';
  198. /deep/ .table-page-search-wrapper .ant-form-inline .ant-form-item>.ant-form-item-label{
  199. width: 28% ;
  200. }
  201. </style>