04c8839af57c04f8969e2a3a6afb69eae1161d3e.svn-base 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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-row>
  8. </a-form>
  9. </div>
  10. <!-- 查询区域-END -->
  11. <!-- 操作按钮区域 -->
  12. <div class="table-operator">
  13. <a-button @click="handleAdd" v-has="'yspxm:add'" type="primary" icon="plus">新增</a-button>
  14. <a-button v-has="'yspxm:dc'" type="primary" icon="download" @click="handleExportXls('已审批项目')">导出</a-button>
  15. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  16. <a-button v-has="'yspxm:dr'" type="primary" icon="import">导入</a-button>
  17. </a-upload>
  18. <!-- 高级查询区域 -->
  19. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  20. <a-dropdown v-if="selectedRowKeys.length > 0">
  21. <a-menu slot="overlay">
  22. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  23. </a-menu>
  24. <a-button style="margin-left: 8px" v-has="'yspxm:pldelete'"> 批量操作 <a-icon type="down" /></a-button>
  25. </a-dropdown>
  26. </div>
  27. <!-- table区域-begin -->
  28. <div>
  29. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  30. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  31. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  32. </div>
  33. <a-table
  34. ref="table"
  35. size="middle"
  36. :scroll="{x:true}"
  37. bordered
  38. rowKey="id"
  39. :columns="columns"
  40. :dataSource="dataSource"
  41. :pagination="ipagination"
  42. :loading="loading"
  43. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  44. class="j-table-force-nowrap"
  45. @change="handleTableChange">
  46. <template slot="jsxmmc" slot-scope="text,record">
  47. <a @click="handleDetail(record)">{{ text }}</a>
  48. </template>
  49. <template slot="htmlSlot" slot-scope="text">
  50. <div v-html="text"></div>
  51. </template>
  52. <template slot="imgSlot" slot-scope="text">
  53. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  54. <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  55. </template>
  56. <template slot="pcaSlot" slot-scope="text">
  57. <div>{{ getPcaText(text) }}</div>
  58. </template>
  59. <template slot="fileSlot" slot-scope="text">
  60. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  61. <a-button
  62. v-else
  63. :ghost="true"
  64. type="primary"
  65. icon="download"
  66. size="small"
  67. @click="downloadFile(text)">
  68. 下载
  69. </a-button>
  70. </template>
  71. <span slot="action" slot-scope="text, record">
  72. <a-space>
  73. <a-button @click='handleEdit(record)' v-has="'yspxm:bj'" size='small' type='primary'>编辑</a-button>
  74. <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
  75. <a-button size='small' v-has="'yspxm:delete'" type='danger'>删除</a-button>
  76. </a-popconfirm>
  77. </a-space>
  78. <!-- <a-divider type="vertical" />-->
  79. <!-- <a-dropdown>-->
  80. <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>-->
  81. <!-- <a-menu slot="overlay">-->
  82. <!-- <a-menu-item>-->
  83. <!-- <a @click="handleDetail(record)">详情</a>-->
  84. <!-- </a-menu-item>-->
  85. <!-- <a-menu-item>-->
  86. <!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">-->
  87. <!-- <a>删除</a>-->
  88. <!-- </a-popconfirm>-->
  89. <!-- </a-menu-item>-->
  90. <!-- </a-menu>-->
  91. <!-- </a-dropdown>-->
  92. </span>
  93. </a-table>
  94. </div>
  95. <rm-yspxm-modal ref="modalForm" @ok="modalFormOk"></rm-yspxm-modal>
  96. </a-card>
  97. </template>
  98. <script>
  99. import '@/assets/less/TableExpand.less'
  100. import { mixinDevice } from '@/utils/mixin'
  101. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  102. import RmYspxmModal from './modules/RmYspxmModal'
  103. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  104. import Area from '@/components/_util/Area'
  105. export default {
  106. name: 'RmYspxmList',
  107. mixins:[JeecgListMixin, mixinDevice],
  108. components: {
  109. RmYspxmModal
  110. },
  111. data () {
  112. return {
  113. description: '已审批项目管理页面',
  114. // 表头
  115. columns: [
  116. {
  117. title: '序号',
  118. dataIndex: '',
  119. key:'rowIndex',
  120. width:60,
  121. align:"center",
  122. customRender:function (t,r,index) {
  123. return parseInt(index)+1;
  124. }
  125. },
  126. {
  127. title:'建设项目名称',
  128. align:"center",
  129. dataIndex: 'jsxmmc',
  130. scopedSlots: { customRender: 'jsxmmc' }
  131. },
  132. {
  133. title:'建设项目所在河道',
  134. align:"center",
  135. dataIndex: 'jsxmszhd'
  136. },
  137. {
  138. title:'是否评审',
  139. align:"center",
  140. dataIndex: 'sfps_dictText'
  141. },
  142. {
  143. title:'审批机关',
  144. align:"center",
  145. dataIndex: 'spjg'
  146. },
  147. {
  148. title:'施工单位',
  149. align:"center",
  150. dataIndex: 'sgdw'
  151. },
  152. {
  153. title:'监管单位',
  154. align:"center",
  155. dataIndex: 'jgdw'
  156. },
  157. {
  158. title:'是否验收',
  159. align:"center",
  160. dataIndex: 'sfys_dictText'
  161. },
  162. {
  163. title: '操作',
  164. dataIndex: 'action',
  165. align:"center",
  166. fixed:"right",
  167. width:147,
  168. scopedSlots: { customRender: 'action' }
  169. }
  170. ],
  171. url: {
  172. list: "/hzz.shjsgc.yspxm/rmYspxm/list",
  173. delete: "/hzz.shjsgc.yspxm/rmYspxm/delete",
  174. deleteBatch: "/hzz.shjsgc.yspxm/rmYspxm/deleteBatch",
  175. exportXlsUrl: "/hzz.shjsgc.yspxm/rmYspxm/exportXls",
  176. importExcelUrl: "hzz.shjsgc.yspxm/rmYspxm/importExcel",
  177. },
  178. dictOptions:{},
  179. pcaData:'',
  180. superFieldList:[],
  181. }
  182. },
  183. created() {
  184. this.pcaData = new Area()
  185. this.getSuperFieldList();
  186. },
  187. computed: {
  188. importExcelUrl: function(){
  189. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  190. },
  191. },
  192. methods: {
  193. getPcaText(code){
  194. return this.pcaData.getText(code);
  195. },
  196. initDictConfig(){
  197. },
  198. getSuperFieldList(){
  199. let fieldList=[];
  200. fieldList.push({type:'string',value:'jsxmmc',text:'建设项目名称',dictCode:''})
  201. fieldList.push({type:'string',value:'yzdwmc',text:'业主单位名称',dictCode:''})
  202. fieldList.push({type:'pca',value:'jsxmszd',text:'建设项目所在地'})
  203. fieldList.push({type:'string',value:'jsxmszhd',text:'建设项目所在河道',dictCode:''})
  204. fieldList.push({type:'date',value:'kgrq',text:'开工日期'})
  205. fieldList.push({type:'date',value:'jgrq',text:'竣工日期'})
  206. fieldList.push({type:'string',value:'jsqk',text:'建设情况',dictCode:'gcjsqk'})
  207. fieldList.push({type:'string',value:'sfxybz',text:'是否需要编制',dictCode:'yn'})
  208. fieldList.push({type:'string',value:'sfbz',text:'是否编制',dictCode:'yn'})
  209. fieldList.push({type:'string',value:'sfps',text:'是否评审',dictCode:'yn'})
  210. fieldList.push({type:'string',value:'spjg',text:'审批机关',dictCode:''})
  211. fieldList.push({type:'string',value:'spwh',text:'审批文号',dictCode:''})
  212. fieldList.push({type:'string',value:'sfsh',text:'是否审核',dictCode:'yn'})
  213. fieldList.push({type:'string',value:'sgshjgwjsj',text:'施工审核机关、文件、时间',dictCode:''})
  214. fieldList.push({type:'string',value:'sgdw',text:'施工单位',dictCode:''})
  215. fieldList.push({type:'string',value:'jgdw',text:'监管单位',dictCode:''})
  216. fieldList.push({type:'string',value:'sgxcsffhyq',text:'施工现场是否符合要求',dictCode:'yn'})
  217. fieldList.push({type:'string',value:'sgjssfhfhdyz',text:'施工结束是否恢复河道原状',dictCode:'yn'})
  218. fieldList.push({type:'string',value:'sfkxsg',text:'是否跨汛施工',dictCode:'yn'})
  219. fieldList.push({type:'string',value:'dxfasfbz',text:'度汛方案是否编制',dictCode:'yn'})
  220. fieldList.push({type:'string',value:'zrzsfls',text:'责任制是否落实',dictCode:'yn'})
  221. fieldList.push({type:'string',value:'rywzsfls',text:'人员、物资是否落实',dictCode:'yn'})
  222. fieldList.push({type:'string',value:'sfyq',text:'是否要求',dictCode:'yn'})
  223. fieldList.push({type:'string',value:'ayqwcqk',text:'按要求完成情况',dictCode:'ayqwcqk'})
  224. fieldList.push({type:'string',value:'sfys',text:'是否验收',dictCode:'yn'})
  225. fieldList.push({type:'string',value:'jsxmsfyjgys',text:'建设项目是否已竣工验收',dictCode:'yn'})
  226. fieldList.push({type:'string',value:'sfcjjsxmjgys',text:'是否参加建设项目竣工验收',dictCode:'yn'})
  227. fieldList.push({type:'string',value:'ygzysfbb',text:'有关资源是否报备',dictCode:'yn'})
  228. fieldList.push({type:'string',value:'czwtjclqk',text:'存在问题及处理情况',dictCode:''})
  229. this.superFieldList = fieldList
  230. }
  231. }
  232. }
  233. </script>
  234. <style scoped>
  235. @import '~@assets/less/common.less';
  236. </style>