c69f88538f0acc873de183991354a3351003a5ca.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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.sxmc"></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. <j-dict-select-tag placeholder="请选择事项类型" v-model="queryParam.sxlx" dictCode="sxlx"/>
  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-dict-select-tag placeholder="请选择涉河类型" v-model="queryParam.shlx" dictCode="shlx"/>
  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-dict-select-tag placeholder="请选择审批情况" v-model="queryParam.spqk" dictCode="spqk"/>
  26. </a-form-item>
  27. </a-col>
  28. </template>
  29. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  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. <a @click="handleToggleSearch" style="margin-left: 8px">
  34. {{ toggleSearchStatus ? '收起' : '展开' }}
  35. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  36. </a>
  37. </span>
  38. </a-col>
  39. </a-row>
  40. </a-form>
  41. </div>
  42. <!-- 查询区域-END -->
  43. <!-- 操作按钮区域 -->
  44. <div class="table-operator">
  45. <a-button @click="handleAdd" type="primary" v-has="'cjrk:xz'" icon="plus">新增</a-button>
  46. <a-button type="primary" icon="download" v-has="'cjrk:dc'" @click="handleExportXls('采集入库')">导出</a-button>
  47. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  48. <a-button type="primary" v-has="'cjrk:dr'" icon="import">导入</a-button>
  49. </a-upload>
  50. <!-- 高级查询区域 -->
  51. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  52. <a-dropdown v-if="selectedRowKeys.length > 0">
  53. <a-menu slot="overlay">
  54. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  55. </a-menu>
  56. <a-button style="margin-left: 8px"v-has="'cjrk:pldelete'"> 批量操作 <a-icon type="down" /></a-button>
  57. </a-dropdown>
  58. </div>
  59. <!-- table区域-begin -->
  60. <div>
  61. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  62. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  63. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  64. </div>
  65. <a-table
  66. ref="table"
  67. size="middle"
  68. :scroll="{x:true}"
  69. bordered
  70. rowKey="id"
  71. :columns="columns"
  72. :dataSource="dataSource"
  73. :pagination="ipagination"
  74. :loading="loading"
  75. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  76. class="j-table-force-nowrap"
  77. @change="handleTableChange">
  78. <template slot="sxmc" slot-scope="text,record">
  79. <a @click="handleDetail(record)">{{ text }}</a>
  80. </template>
  81. <template slot="htmlSlot" slot-scope="text">
  82. <div v-html="text"></div>
  83. </template>
  84. <template slot="imgSlot" slot-scope="text">
  85. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  86. <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  87. </template>
  88. <template slot="fileSlot" slot-scope="text">
  89. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  90. <a-button
  91. v-else
  92. :ghost="true"
  93. type="primary"
  94. icon="download"
  95. size="small"
  96. @click="downloadFile(text)">
  97. 下载
  98. </a-button>
  99. </template>
  100. <span slot="action" slot-scope="text, record">
  101. <a-space>
  102. <a-button @click='handleEdit(record)' v-has="'cjrk:bj'" size='small' type='primary'>编辑</a-button>
  103. <a-button @click='handleProj(record)' size='small' type='primary' >转入现场监管记录</a-button>
  104. <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
  105. <a-button size='small' v-has="'cjrk:delete'" type='danger'>删除</a-button>
  106. </a-popconfirm>
  107. </a-space>
  108. <!-- <a-divider type="vertical" />-->
  109. <!-- <a-dropdown>-->
  110. <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>-->
  111. <!-- <a-menu slot="overlay">-->
  112. <!-- <a-menu-item>-->
  113. <!-- <a @click="handleDetail(record)">详情</a>-->
  114. <!-- </a-menu-item>-->
  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. <rm-cjrk-modal ref="modalForm" @ok="modalFormOk"></rm-cjrk-modal>
  126. <SelectProjectListModal ref="modalProjectForm" @ok="modalFormOk" ></SelectProjectListModal>
  127. </a-card>
  128. </template>
  129. <script>
  130. import '@/assets/less/TableExpand.less'
  131. import { mixinDevice } from '@/utils/mixin'
  132. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  133. import RmCjrkModal from './modules/RmCjrkModal'
  134. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  135. import SelectProjectListModal from "@views/hzz/sjcjrw/rmcjrk/modules/SelectProjectListModal";
  136. export default {
  137. name: 'RmCjrkList',
  138. mixins:[JeecgListMixin, mixinDevice],
  139. components: {
  140. RmCjrkModal,
  141. SelectProjectListModal
  142. },
  143. data () {
  144. return {
  145. description: '采集入库管理页面',
  146. // 表头
  147. columns: [
  148. {
  149. title: '序号',
  150. dataIndex: '',
  151. key:'rowIndex',
  152. width:60,
  153. align:"center",
  154. customRender:function (t,r,index) {
  155. return parseInt(index)+1;
  156. }
  157. },
  158. {
  159. title:'事项名称',
  160. align:"center",
  161. dataIndex: 'sxmc',
  162. scopedSlots: { customRender: 'sxmc' }
  163. },
  164. // {
  165. // title:'乡镇村',
  166. // align:"center",
  167. // dataIndex: 'wzms'
  168. // },
  169. {
  170. title:'事项类型',
  171. align:"center",
  172. dataIndex: 'sxlx_dictText'
  173. },
  174. {
  175. title:'河道监管责任单位',
  176. align:"center",
  177. dataIndex: 'hdjgzrdw'
  178. },
  179. {
  180. title:'涉河类型',
  181. align:"center",
  182. dataIndex: 'shlx_dictText'
  183. },
  184. {
  185. title:'坐标采集经度',
  186. align:"center",
  187. dataIndex: 'zbcjjd'
  188. },
  189. {
  190. title:'坐标采集纬度',
  191. align:"center",
  192. dataIndex: 'zbcjwd'
  193. },
  194. {
  195. title: '操作',
  196. dataIndex: 'action',
  197. align:"center",
  198. fixed:"right",
  199. width:147,
  200. scopedSlots: { customRender: 'action' }
  201. }
  202. ],
  203. url: {
  204. list: "/hzz.sjcjrw.rmcjrk/rmCjrk/list",
  205. delete: "/hzz.sjcjrw.rmcjrk/rmCjrk/delete",
  206. deleteBatch: "/hzz.sjcjrw.rmcjrk/rmCjrk/deleteBatch",
  207. exportXlsUrl: "/hzz.sjcjrw.rmcjrk/rmCjrk/exportXls",
  208. importExcelUrl: "hzz.sjcjrw.rmcjrk/rmCjrk/importExcel",
  209. },
  210. dictOptions:{},
  211. superFieldList:[],
  212. }
  213. },
  214. created() {
  215. this.getSuperFieldList();
  216. },
  217. computed: {
  218. importExcelUrl: function(){
  219. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  220. },
  221. },
  222. methods: {
  223. initDictConfig(){
  224. },
  225. getLoadData(){
  226. this.loadData();
  227. },
  228. handleProj(record){
  229. this.$refs.modalProjectForm.open(record);
  230. },
  231. getSuperFieldList(){
  232. let fieldList=[];
  233. fieldList.push({type:'string',value:'sxmc',text:'事项名称',dictCode:''})
  234. fieldList.push({type:'string',value:'wzms',text:'位置描述',dictCode:''})
  235. fieldList.push({type:'string',value:'sxlx',text:'事项类型',dictCode:'sxlx'})
  236. fieldList.push({type:'string',value:'hdzt',text:'活动状态',dictCode:'hdzt'})
  237. fieldList.push({type:'string',value:'hdzkdwhgr',text:'活动开展单位或个人',dictCode:''})
  238. fieldList.push({type:'string',value:'hdlx',text:'活动类型',dictCode:'hdlx'})
  239. fieldList.push({type:'string',value:'jszt',text:'建设状态',dictCode:'gcjsqk'})
  240. fieldList.push({type:'string',value:'jsdw',text:'建设单位',dictCode:''})
  241. fieldList.push({type:'string',value:'sjhd',text:'涉及河段',dictCode:'sjhd'})
  242. fieldList.push({type:'string',value:'hdjgzrdw',text:'河道监管责任单位',dictCode:''})
  243. fieldList.push({type:'string',value:'shlx',text:'涉河类型',dictCode:'shlx'})
  244. fieldList.push({type:'string',value:'spqk',text:'审批情况',dictCode:''})
  245. fieldList.push({type:'string',value:'zbcjjd',text:'坐标采集经度',dictCode:''})
  246. fieldList.push({type:'string',value:'zbcjwd',text:'坐标采集纬度',dictCode:''})
  247. fieldList.push({type:'string',value:'zyhdaxsjcj',text:'占用河道岸线数据采集',dictCode:''})
  248. fieldList.push({type:'string',value:'cd',text:'长度m',dictCode:''})
  249. fieldList.push({type:'string',value:'mj',text:'面积m²',dictCode:''})
  250. fieldList.push({type:'Text',value:'xcqkms',text:'现场情况描述',dictCode:''})
  251. fieldList.push({type:'Text',value:'bz',text:'备注',dictCode:''})
  252. fieldList.push({type:'string',value:'tpsc',text:'图片上传',dictCode:''})
  253. this.superFieldList = fieldList
  254. }
  255. }
  256. }
  257. </script>
  258. <style scoped>
  259. @import '~@assets/less/common.less';
  260. </style>