35d2a6853d1cd745fabca2bb7e07da876cfb4fe7.svn-base 14 KB

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