1c9705c0e001a3f27575bf08885513ce7fbb63cc.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-modal
  6. title="请谨慎操作!"
  7. :visible="visible"
  8. :confirm-loading="confirmLoading"
  9. @ok="handleOk"
  10. @cancel="handleCancel"
  11. >
  12. <p>{{ ModalText }}</p>
  13. </a-modal>
  14. <a-form layout="inline" @keyup.enter.native="searchQuery">
  15. <a-row :gutter="24">
  16. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  17. <a-form-item label="橡胶坝名称">
  18. <a-input placeholder="请输入橡胶坝名称" v-model="queryParam.xjbmc"></a-input>
  19. </a-form-item>
  20. </a-col>
  21. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  22. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  23. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  24. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  25. <!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
  26. <!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
  27. <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
  28. <!-- </a>-->
  29. </span>
  30. </a-col>
  31. </a-row>
  32. </a-form>
  33. </div>
  34. <!-- 查询区域-END -->
  35. <!-- 操作按钮区域 -->
  36. <div class="table-operator">
  37. <a-button @click="handleAdd" v-has="'xjb:add'" type="primary" icon="plus">新增</a-button>
  38. <a-button type="primary" v-has="'xjb:dc'" icon="download" @click="handleExportXls('橡胶坝情况统计表')">导出</a-button>
  39. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  40. <a-button type="primary" v-has="'xjb:dr'" icon="import">导入</a-button>
  41. </a-upload>
  42. <a-button v-has="'xjbgc:sctx'" type="primary" icon="download" @click="showModal">生成图形</a-button>
  43. <!-- 高级查询区域 -->
  44. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  45. <a-dropdown v-if="selectedRowKeys.length > 0">
  46. <a-menu slot="overlay">
  47. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  48. </a-menu>
  49. <a-button style="margin-left: 8px" v-has="'xjb:pldelete'"> 批量操作 <a-icon type="down" /></a-button>
  50. </a-dropdown>
  51. </div>
  52. <!-- table区域-begin -->
  53. <div>
  54. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  55. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  56. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  57. </div>
  58. <a-table
  59. ref="table"
  60. size="middle"
  61. :scroll="{x:true}"
  62. bordered
  63. rowKey="id"
  64. :columns="columns"
  65. :dataSource="dataSource"
  66. :pagination="ipagination"
  67. :loading="loading"
  68. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  69. class="j-table-force-nowrap"
  70. @change="handleTableChange">
  71. <template slot="xjbmc" slot-scope="text,record">
  72. <a @click="handleDetail(record)">{{ text }}</a>
  73. </template>
  74. <template slot="htmlSlot" slot-scope="text">
  75. <div v-html="text"></div>
  76. </template>
  77. <template slot="imgSlot" slot-scope="text">
  78. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  79. <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  80. </template>
  81. <template slot="pcaSlot" slot-scope="text">
  82. <div>{{ getPcaText(text) }}</div>
  83. </template>
  84. <template slot="fileSlot" slot-scope="text">
  85. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  86. <a-button
  87. v-else
  88. :ghost="true"
  89. type="primary"
  90. icon="download"
  91. size="small"
  92. @click="downloadFile(text)">
  93. 下载
  94. </a-button>
  95. </template>
  96. <span slot="action" slot-scope="text, record">
  97. <a-space>
  98. <a-button @click='handleEdit(record)' v-has="'xjb:bj'" size='small' type='primary'>编辑</a-button>
  99. <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
  100. <a-button size='small' v-has="'xjb:delete'" type='danger'>删除</a-button>
  101. </a-popconfirm>
  102. </a-space>
  103. <!-- <a-divider type="vertical" />-->
  104. <!-- <a-dropdown>-->
  105. <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>-->
  106. <!-- <a-menu slot="overlay">-->
  107. <!-- <a-menu-item>-->
  108. <!-- <a @click="handleDetail(record)">详情</a>-->
  109. <!-- </a-menu-item>-->
  110. <!-- <a-menu-item>-->
  111. <!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">-->
  112. <!-- <a>删除</a>-->
  113. <!-- </a-popconfirm>-->
  114. <!-- </a-menu-item>-->
  115. <!-- </a-menu>-->
  116. <!-- </a-dropdown>-->
  117. </span>
  118. </a-table>
  119. </div>
  120. <rm-xjbqktjb-modal ref="modalForm" @ok="modalFormOk"></rm-xjbqktjb-modal>
  121. </a-card>
  122. </template>
  123. <script>
  124. import '@/assets/less/TableExpand.less'
  125. import { mixinDevice } from '@/utils/mixin'
  126. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  127. import RmXjbqktjbModal from './modules/RmXjbqktjbModal'
  128. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  129. import Area from '@/components/_util/Area'
  130. import {getAction} from "../../../../../api/manage";
  131. export default {
  132. name: 'RmXjbqktjbList',
  133. mixins:[JeecgListMixin, mixinDevice],
  134. components: {
  135. RmXjbqktjbModal
  136. },
  137. data () {
  138. return {
  139. ModalText: '',
  140. visible: false,
  141. confirmLoading: false,
  142. description: '橡胶坝情况统计表管理页面',
  143. // 表头
  144. columns: [
  145. {
  146. title: '序号',
  147. dataIndex: '',
  148. key:'rowIndex',
  149. width:60,
  150. align:"center",
  151. customRender:function (t,r,index) {
  152. return parseInt(index)+1;
  153. }
  154. },
  155. {
  156. title:'橡胶坝名称',
  157. align:"center",
  158. dataIndex: 'xjbmc',
  159. scopedSlots: { customRender: 'xjbmc'}
  160. },
  161. {
  162. title:'所在河流',
  163. align:"center",
  164. dataIndex: 'szhl'
  165. },
  166. {
  167. title:'管理单位',
  168. align:"center",
  169. dataIndex: 'gldw'
  170. },
  171. {
  172. title:'主管部门',
  173. align:"center",
  174. dataIndex: 'zgbm'
  175. },
  176. {
  177. title: '操作',
  178. dataIndex: 'action',
  179. align:"center",
  180. fixed:"right",
  181. width:147,
  182. scopedSlots: { customRender: 'action' }
  183. }
  184. ],
  185. url: {
  186. list: "/hzz.shjsgc.lhgc.xjb/rmXjbqktjb/list",
  187. delete: "/hzz.shjsgc.lhgc.xjb/rmXjbqktjb/delete",
  188. deleteBatch: "/hzz.shjsgc.lhgc.xjb/rmXjbqktjb/deleteBatch",
  189. exportXlsUrl: "/hzz.shjsgc.lhgc.xjb/rmXjbqktjb/exportXls",
  190. importExcelUrl: "hzz.shjsgc.lhgc.xjb/rmXjbqktjb/importExcel",
  191. },
  192. dictOptions:{},
  193. pcaData:'',
  194. superFieldList:[],
  195. }
  196. },
  197. created() {
  198. this.pcaData = new Area()
  199. this.getSuperFieldList();
  200. },
  201. computed: {
  202. importExcelUrl: function(){
  203. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  204. },
  205. },
  206. methods: {
  207. //显示模态框
  208. showModal() {
  209. this.visible = true;
  210. },
  211. //点击ok
  212. handleOk(e) {
  213. this.ModalText = '确定生成图形吗?';
  214. this.confirmLoading = true;
  215. this.xmjgsb();
  216. setTimeout(() => {
  217. this.visible = false;
  218. this.confirmLoading = false;
  219. }, 5000);
  220. this.loadData()
  221. },
  222. //点击cancel
  223. handleCancel(e) {
  224. console.log('Clicked cancel button');
  225. this.visible = false;
  226. },
  227. xmjgsb(){
  228. getAction("/hzz.shjsgc.lhgc.xjb/rmXjbqktjb/genarateGeo").then(res=>{
  229. if (res.success) {
  230. this.ModalText="生成图形成功"
  231. }else{
  232. this.ModalText="生成图形失败,请联系管理员"
  233. }
  234. })
  235. },
  236. getPcaText(code){
  237. return this.pcaData.getText(code);
  238. },
  239. initDictConfig(){
  240. },
  241. getSuperFieldList(){
  242. let fieldList=[];
  243. fieldList.push({type:'string',value:'xjbmc',text:'橡胶坝名称',dictCode:''})
  244. fieldList.push({type:'string',value:'szhl',text:'所在河流',dictCode:''})
  245. fieldList.push({type:'string',value:'sjhz',text:'市级河长',dictCode:''})
  246. fieldList.push({type:'string',value:'xjhz',text:'县级河长',dictCode:''})
  247. fieldList.push({type:'pca',value:'xzwz',text:'行政位置(县、乡、村)'})
  248. fieldList.push({type:'string',value:'jd',text:'经度',dictCode:''})
  249. fieldList.push({type:'string',value:'wd',text:'纬度',dictCode:''})
  250. fieldList.push({type:'string',value:'gcwzsfzbjhlssqdsbj',text:'工程位置是否在边界河流上设区的市边界(5公里内)',dictCode:'yn'})
  251. fieldList.push({type:'string',value:'gcwzsfzbjhlsxbj',text:'工程位置是否在边界河流上县(市、区)边界(3公里内)',dictCode:'yn'})
  252. fieldList.push({type:'string',value:'gcwzsfzkxzqhlsksqds',text:'工程位置是否在跨行政区河流上跨设区的市',dictCode:'yn'})
  253. fieldList.push({type:'string',value:'gcwzsfzkxzqhlskx',text:'工程位置是否在跨行政区河流上跨县(市、区)',dictCode:'yn'})
  254. fieldList.push({type:'date',value:'sjsj',text:'始建时间'})
  255. fieldList.push({type:'string',value:'gcgn',text:'工程功能',dictCode:''})
  256. fieldList.push({type:'string',value:'gcmk',text:'工程规模',dictCode:''})
  257. fieldList.push({type:'double',value:'bg',text:'坝高(m)',dictCode:''})
  258. fieldList.push({type:'double',value:'bc',text:'坝长(m)',dictCode:''})
  259. fieldList.push({type:'double',value:'syzcxsw',text:'上游正常蓄水位(m)',dictCode:''})
  260. fieldList.push({type:'double',value:'sjlxrl',text:'设计拦蓄容积(万m3)',dictCode:''})
  261. fieldList.push({type:'string',value:'cpfs',text:'充排方式',dictCode:''})
  262. fieldList.push({type:'string',value:'tjz',text:'调节闸',dictCode:''})
  263. fieldList.push({type:'string',value:'bzchdszhdfhbz',text:'坝址处河道所在河段防洪标准',dictCode:''})
  264. fieldList.push({type:'double',value:'bzchdzk',text:'坝址处河道总宽',dictCode:''})
  265. fieldList.push({type:'double',value:'bzchdzhckd',text:'坝址处河道主河槽宽度(m)',dictCode:''})
  266. fieldList.push({type:'string',value:'sgcjsghtyssfqd',text:'水工程建设规划同意书是否取得',dictCode:'yn'})
  267. fieldList.push({type:'string',value:'sgcjsghtysspbm',text:'水工程建设规划同意书审批部门',dictCode:''})
  268. fieldList.push({type:'string',value:'sgcjsghtysspwh',text:'水工程建设规划同意书审批文号',dictCode:''})
  269. fieldList.push({type:'string',value:'shjsxmspsfqd',text:'涉河建设项目审批是否取得 ',dictCode:'yn'})
  270. fieldList.push({type:'string',value:'shjsxmspbm',text:'涉河建设项目审批部门',dictCode:''})
  271. fieldList.push({type:'string',value:'shjsxmspwh',text:'涉河建设项目审批文号',dictCode:''})
  272. fieldList.push({type:'string',value:'btxzqbjsfqd',text:'不同行政区域边界修建排水、阻水、引水、蓄水工程审批是否取得',dictCode:'yn'})
  273. fieldList.push({type:'string',value:'btxzqbjspbm',text:'不同行政区域边界修建排水、阻水、引水、蓄水工程审批部门 ',dictCode:''})
  274. fieldList.push({type:'string',value:'btxzqbjspwh',text:'不同行政区域边界修建排水、阻水、引水、蓄水工程审批文号',dictCode:''})
  275. fieldList.push({type:'string',value:'gfsfdcxy',text:'各方是否达成协议',dictCode:'yn'})
  276. fieldList.push({type:'string',value:'xybh',text:'协议编号',dictCode:''})
  277. fieldList.push({type:'string',value:'sfjxszylz',text:'是否进行水资源论证',dictCode:'yn'})
  278. fieldList.push({type:'string',value:'sffplxsl',text:'是否分配拦蓄水量',dictCode:'yn'})
  279. fieldList.push({type:'string',value:'gldw',text:'管理单位',dictCode:''})
  280. fieldList.push({type:'string',value:'zgbm',text:'主管部门',dictCode:''})
  281. fieldList.push({type:'date',value:'aqjdrq',text:'安全鉴定日期'})
  282. fieldList.push({type:'string',value:'aqjdjg',text:'安全鉴定结果',dictCode:''})
  283. fieldList.push({type:'date',value:'cxjgrq',text:'除险加固日期'})
  284. fieldList.push({type:'string',value:'sfwpgblxm',text:'是否为评估保留项目',dictCode:'yn'})
  285. fieldList.push({type:'Text',value:'pgyj',text:'评估意见',dictCode:''})
  286. fieldList.push({type:'Text',value:'bz',text:'备注',dictCode:''})
  287. fieldList.push({type:'String',value:'scwj',text:'上传审批文件',dictCode:''})
  288. this.superFieldList = fieldList
  289. }
  290. }
  291. }
  292. </script>
  293. <style scoped>
  294. @import '~@assets/less/common.less';
  295. </style>