ConferenceApplyList.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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. <j-input placeholder="请输入会议议题" v-model="queryParam.conferenceTitle"></j-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. <j-input placeholder="请输入会议信息发布人" v-model="queryParam.postedPerson"></j-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. <j-input placeholder="请输入发布部门" v-model="queryParam.postedDept"></j-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. <j-date placeholder="请选择发布日期" v-model="queryParam.postedDate" style="width: 100%;"></j-date>
  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 placeholder="请选择会议日期" v-model="queryParam.conferenceDate" style="width: 100%;"></j-date>
  31. </a-form-item>
  32. </a-col>
  33. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  34. <a-form-item label="会议地点">
  35. <j-input placeholder="请输入会议地点" v-model="queryParam.conferenceAddress"></j-input>
  36. </a-form-item>
  37. </a-col>
  38. </template>
  39. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  40. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  41. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  42. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  43. <a @click="handleToggleSearch" style="margin-left: 8px">
  44. {{ toggleSearchStatus ? '收起' : '展开' }}
  45. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  46. </a>
  47. </span>
  48. </a-col>
  49. </a-row>
  50. </a-form>
  51. </div>
  52. <!-- 查询区域-END -->
  53. <!-- 操作按钮区域 -->
  54. <div class="table-operator">
  55. <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  56. <!-- <a-button type="primary" icon="download" @click="handleExportXls('会务安排申请')">导出</a-button>-->
  57. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
  58. <!-- <a-button type="primary" icon="import">导入</a-button>-->
  59. <!-- </a-upload>-->
  60. <a-dropdown v-if="selectedRowKeys.length > 0">
  61. <a-menu slot="overlay">
  62. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  63. </a-menu>
  64. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  65. </a-dropdown>
  66. </div>
  67. <!-- table区域-begin -->
  68. <div>
  69. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  70. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  71. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  72. </div>
  73. <a-table
  74. ref="table"
  75. size="middle"
  76. bordered
  77. rowKey="id"
  78. :columns="columns"
  79. :dataSource="dataSource"
  80. :pagination="ipagination"
  81. :loading="loading"
  82. :rowSelection="{fixed:true,selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  83. :scroll="{ x: 1000}"
  84. @change="handleTableChange">
  85. <template slot="htmlSlot" slot-scope="text">
  86. <div v-html="text"></div>
  87. </template>
  88. <template slot="imgSlot" slot-scope="text">
  89. <span v-if="!text" style="font-size: 12px;font-style: italic;">无此图片</span>
  90. <img v-else :src="getImgView(text)" height="25px" alt="图片不存在" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  91. </template>
  92. <template slot="fileSlot" slot-scope="text">
  93. <span v-if="!text" style="font-size: 12px;font-style: italic;">无此文件</span>
  94. <a-button
  95. v-else
  96. :ghost="true"
  97. type="primary"
  98. icon="download"
  99. size="small"
  100. @click="uploadFile(text)">
  101. 下载
  102. </a-button>
  103. </template>
  104. <span slot="action" slot-scope="text, record">
  105. <a @click="handleEdit(record)">编辑</a>
  106. <a-divider type="vertical" />
  107. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  108. <a>删除</a>
  109. </a-popconfirm>
  110. <a-divider type="vertical" />
  111. <a @click="print(record)" :href="printMouldUrl" target="_blank">打印</a>
  112. <!-- <a-dropdown>
  113. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  114. <a-menu slot="overlay">
  115. <a-menu-item>
  116. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  117. <a>删除</a>
  118. </a-popconfirm>
  119. </a-menu-item>
  120. </a-menu>
  121. </a-dropdown> -->
  122. </span>
  123. </a-table>
  124. </div>
  125. <conferenceApply-modal ref="modalForm" @ok="modalFormOk"></conferenceApply-modal>
  126. </a-card>
  127. </template>
  128. <script>
  129. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  130. import ConferenceApplyModal from './modules/ConferenceApplyModal'
  131. import JDate from '@/components/jeecg/JDate.vue'
  132. import JInput from '@/components/jeecg/JInput.vue'
  133. export default {
  134. name: "ConferenceApplyList",
  135. mixins:[JeecgListMixin],
  136. components: {
  137. JDate,
  138. JInput,
  139. ConferenceApplyModal
  140. },
  141. data () {
  142. return {
  143. description: '会务安排申请管理页面',
  144. printMouldUrl:"",
  145. // 表头
  146. columns: [
  147. {
  148. title: '#',
  149. dataIndex: '',
  150. key:'rowIndex',
  151. width:60,
  152. align:"center",
  153. customRender:function (t,r,index) {
  154. return parseInt(index)+1;
  155. }
  156. },
  157. {
  158. title:'会议议题',
  159. align:"center",
  160. dataIndex: 'conferenceTitle',
  161. width:180,
  162. },
  163. {
  164. title:'会议信息发布人',
  165. align:"center",
  166. dataIndex: 'postedPerson',
  167. width:140,
  168. },
  169. {
  170. title:'发布部门',
  171. align:"center",
  172. dataIndex: 'postedDept',
  173. width:120,
  174. },
  175. {
  176. title:'发布日期',
  177. align:"center",
  178. dataIndex: 'postedDate',
  179. width:120,
  180. customRender:function (text) {
  181. return !text?"":(text.length>10?text.substr(0,10):text)
  182. }
  183. },
  184. {
  185. title:'会议日期',
  186. align:"center",
  187. dataIndex: 'conferenceDate',
  188. width:100,
  189. customRender:function (text) {
  190. return !text?"":(text.length>10?text.substr(0,10):text)
  191. }
  192. },
  193. {
  194. title:'开始时间',
  195. align:"center",
  196. width:120,
  197. dataIndex: 'startTime'
  198. },
  199. {
  200. title:'结束时间',
  201. align:"center",
  202. width:120,
  203. dataIndex: 'endTime'
  204. },
  205. {
  206. title:'会议地点',
  207. align:"center",
  208. width:120,
  209. dataIndex: 'conferenceAddress'
  210. },
  211. {
  212. title:'出席人员',
  213. align:"center",
  214. width:100,
  215. dataIndex: 'attendPerson'
  216. },
  217. {
  218. title:'出席部门',
  219. align:"center",
  220. width:100,
  221. dataIndex: 'attendDept'
  222. },
  223. {
  224. title:'其他参会人',
  225. align:"center",
  226. width:160,
  227. dataIndex: 'otherPerson'
  228. },
  229. {
  230. title: '操作',
  231. dataIndex: 'action',
  232. align:"center",
  233. width: 140,
  234. scopedSlots: { customRender: 'action' }
  235. }
  236. ],
  237. url: {
  238. list: "/conferenceApply/conferenceApply/list",
  239. delete: "/conferenceApply/conferenceApply/delete",
  240. deleteBatch: "/conferenceApply/conferenceApply/deleteBatch",
  241. exportXlsUrl: "/conferenceApply/conferenceApply/exportXls",
  242. importExcelUrl: "conferenceApply/conferenceApply/importExcel",
  243. },
  244. dictOptions:{},
  245. }
  246. },
  247. computed: {
  248. importExcelUrl: function(){
  249. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  250. }
  251. },
  252. methods: {
  253. initDictConfig(){
  254. },
  255. handleAdd: function () {
  256. this.$refs.modalForm.add();
  257. this.$refs.modalForm.title = "会务安排申请";
  258. this.$refs.modalForm.disableSubmit = false;
  259. },
  260. print(record){
  261. this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/834590233121345536'+'?id='+record.id
  262. }
  263. }
  264. }
  265. </script>
  266. <style scoped lang="less">
  267. @import '~@assets/less/common.less';
  268. /deep/ .table-page-search-wrapper .ant-form-inline .ant-form-item>.ant-form-item-label{
  269. width: 28% ;
  270. }
  271. </style>