15e89cb84138cde35593acabb3241eb6f3cf4399.svn-base 11 KB

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