e08117bbb9579cf9449d2a72214d52a0263a9a3d.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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.qilmc"></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="'ql:add'" type="primary" icon="plus">新增</a-button>
  38. <a-button type="primary" v-has="'ql: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 v-has="'ql:dr'" type="primary" icon="import">导入</a-button>
  41. </a-upload>
  42. <a-button v-has="'qlgc: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="'ql: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="qilmc" 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="'ql:bj'" size='small' type='primary'>编辑</a-button>
  99. <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
  100. <a-button size='small' v-has="'ql: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-qlqktjb-modal ref="modalForm" @ok="modalFormOk"></rm-qlqktjb-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 RmQlqktjbModal from './modules/RmQlqktjbModal'
  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: 'RmQlqktjbList',
  133. mixins:[JeecgListMixin, mixinDevice],
  134. components: {
  135. RmQlqktjbModal
  136. },
  137. data () {
  138. return {
  139. description: '桥梁情况统计表管理页面',
  140. ModalText: '',
  141. visible: false,
  142. confirmLoading: false,
  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: 'qilmc',
  159. scopedSlots: { customRender: 'qilmc'}
  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. // align:"center",
  179. // dataIndex: 'xzwz'
  180. // },
  181. {
  182. title: '操作',
  183. dataIndex: 'action',
  184. align:"center",
  185. fixed:"right",
  186. width:147,
  187. scopedSlots: { customRender: 'action' }
  188. }
  189. ],
  190. url: {
  191. list: "/hzz.shjsgc.lhgc.ql/rmQlqktjb/list",
  192. delete: "/hzz.shjsgc.lhgc.ql/rmQlqktjb/delete",
  193. deleteBatch: "/hzz.shjsgc.lhgc.ql/rmQlqktjb/deleteBatch",
  194. exportXlsUrl: "/hzz.shjsgc.lhgc.ql/rmQlqktjb/exportXls",
  195. importExcelUrl: "hzz.shjsgc.lhgc.ql/rmQlqktjb/importExcel",
  196. },
  197. dictOptions:{},
  198. pcaData:'',
  199. superFieldList:[],
  200. }
  201. },
  202. created() {
  203. this.pcaData = new Area()
  204. this.getSuperFieldList();
  205. },
  206. computed: {
  207. importExcelUrl: function(){
  208. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  209. },
  210. },
  211. methods: {
  212. //显示模态框
  213. showModal() {
  214. this.visible = true;
  215. },
  216. //点击ok
  217. handleOk(e) {
  218. this.ModalText = '确定生成图形吗?';
  219. this.confirmLoading = true;
  220. this.xmjgsb();
  221. setTimeout(() => {
  222. this.visible = false;
  223. this.confirmLoading = false;
  224. }, 5000);
  225. this.loadData()
  226. },
  227. //点击cancel
  228. handleCancel(e) {
  229. console.log('Clicked cancel button');
  230. this.visible = false;
  231. },
  232. xmjgsb(){
  233. getAction("/hzz.shjsgc.lhgc.ql/rmQlqktjb/genarateGeo").then(res=>{
  234. // console.log(this.data)
  235. console.log(res)
  236. if (res.success) {
  237. this.ModalText="生成图形成功"
  238. }else{
  239. this.ModalText="生成图形失败,请联系管理员"
  240. }
  241. })
  242. },
  243. getPcaText(code){
  244. return this.pcaData.getText(code);
  245. },
  246. initDictConfig(){
  247. },
  248. getSuperFieldList(){
  249. let fieldList=[];
  250. fieldList.push({type:'string',value:'qilmc',text:'桥梁名称',dictCode:''})
  251. fieldList.push({type:'string',value:'szhl',text:'所在河流',dictCode:''})
  252. fieldList.push({type:'string',value:'sjhz',text:'市级河长',dictCode:''})
  253. fieldList.push({type:'string',value:'xjhz',text:'县级河长',dictCode:''})
  254. fieldList.push({type:'pca',value:'xzwz',text:'行政位置(县、乡、村)'})
  255. fieldList.push({type:'string',value:'jd',text:'经度',dictCode:''})
  256. fieldList.push({type:'string',value:'wd',text:'纬度',dictCode:''})
  257. fieldList.push({type:'string',value:'sjsj',text:'始建时间',dictCode:''})
  258. fieldList.push({type:'string',value:'qldj',text:'桥梁等级',dictCode:''})
  259. fieldList.push({type:'string',value:'qlyhdjcfs',text:'桥梁与河道交叉方式',dictCode:''})
  260. fieldList.push({type:'string',value:'kksl',text:'孔跨数量(孔)',dictCode:''})
  261. fieldList.push({type:'double',value:'zxkk',text:'最小孔跨(m)',dictCode:''})
  262. fieldList.push({type:'double',value:'zdkk',text:'最大孔跨(m)',dictCode:''})
  263. fieldList.push({type:'double',value:'qlzkj',text:'桥梁总跨径(m)',dictCode:''})
  264. fieldList.push({type:'string',value:'qmkd',text:'桥面宽度(m)',dictCode:''})
  265. fieldList.push({type:'string',value:'qlzxyhdzxjj',text:'桥梁轴线与河道中心线交角(°)',dictCode:''})
  266. fieldList.push({type:'string',value:'sjhsbzcxn',text:'设计洪水标准 (重现期(年)',dictCode:''})
  267. fieldList.push({type:'string',value:'qlszaxgnq',text:'桥梁所在岸线功能区类型',dictCode:''})
  268. fieldList.push({type:'double',value:'hdk',text:'河道宽度(m)',dictCode:''})
  269. fieldList.push({type:'string',value:'szfhbz',text:'所在河段防洪标准(年)',dictCode:''})
  270. fieldList.push({type:'string',value:'qljsfascsfqd',text:'桥梁建设方案审查许可是否取得',dictCode:'yn'})
  271. fieldList.push({type:'string',value:'qljsfascspbm',text:'桥梁建设方案审查许可审批部门',dictCode:''})
  272. fieldList.push({type:'string',value:'qljsfascbmspwh',text:'桥梁建设方案审查许可审批文号',dictCode:''})
  273. fieldList.push({type:'string',value:'qljgyssxzzgbmsfcj',text:'桥梁竣工验收水行政主管部门是否参加',dictCode:'yn'})
  274. fieldList.push({type:'string',value:'qljgyssxzzgbmcjbm',text:'桥梁竣工验收水行政主管部门参加部门',dictCode:''})
  275. fieldList.push({type:'string',value:'qljgyssxzzgbmsftyys',text:'桥梁竣工验收水行政主管部门是否同意验收 ',dictCode:'yn'})
  276. fieldList.push({type:'string',value:'gldw',text:'管理单位',dictCode:''})
  277. fieldList.push({type:'string',value:'zgbm',text:'主管部门',dictCode:''})
  278. fieldList.push({type:'string',value:'sfwmsq',text:'是否为漫水桥',dictCode:'yn'})
  279. fieldList.push({type:'string',value:'fhbjrq',text:'防洪评价日期'})
  280. fieldList.push({type:'string',value:'sfbwwxzbmgb',text:'是否被文物行政部门公布为文物',dictCode:'yn'})
  281. fieldList.push({type:'string',value:'scwj',text:'上传审批文件',dictCode:''})
  282. fieldList.push({type:'string',value:'sfwpgblxm',text:'是否为评估保留项目',dictCode:'yn'})
  283. fieldList.push({type:'string',value:'bgyj',text:'评估意见',dictCode:''})
  284. fieldList.push({type:'string',value:'bz',text:'备注',dictCode:''})
  285. this.superFieldList = fieldList
  286. }
  287. }
  288. }
  289. </script>
  290. <style scoped>
  291. @import '~@assets/less/common.less';
  292. </style>