123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <template>
- <a-card :bordered="false">
- <!-- 查询区域 -->
- <div class="table-page-search-wrapper">
- <a-form layout="inline" @keyup.enter.native="searchQuery">
- <a-row :gutter="24">
- </a-row>
- </a-form>
- </div>
- <!-- 查询区域-END -->
- <!-- 操作按钮区域 -->
- <div class="table-operator">
- <a-button @click="handleAdd" v-has="'axzyxm:add'" type="primary" icon="plus">新增</a-button>
- <a-button v-has="'axzyxm:dc'" type="primary" icon="download" @click="handleExportXls('岸线占用项目管理')">导出</a-button>
- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
- <a-button v-has="'axzyxm:dr'" type="primary" icon="import">导入</a-button>
- </a-upload>
- <!-- 高级查询区域 -->
- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
- </div>
- <!-- table区域-begin -->
- <div>
- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
- <a style="margin-left: 24px" @click="onClearSelected">清空</a>
- </div>
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- class="j-table-force-nowrap"
- :scroll="{x:true}"
- :columns="columns"
- :dataSource="dataSource"
- :pagination="ipagination"
- :loading="loading"
- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}"
- :customRow="clickThenSelect"
- @change="handleTableChange">
- <template slot="sqdwmc" slot-scope="text,record">
- <a @click="handleDetail(record)">{{ text }}</a>
- </template>
- <template slot="htmlSlot" slot-scope="text">
- <div v-html="text"></div>
- </template>
- <template slot="imgSlot" slot-scope="text">
- <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
- <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
- </template>
- <template slot="fileSlot" slot-scope="text">
- <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
- <a-button
- v-else
- :ghost="true"
- type="primary"
- icon="download"
- size="small"
- @click="downloadFile(text)">
- 下载
- </a-button>
- </template>
- <span slot="action" slot-scope="text, record">
- <a-space>
- <a-button @click='handleEdit(record)' v-has="'axzyxm:bj'" size='small' type='primary'>编辑</a-button>
- <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
- <a-button size='small' v-has="'axzyxm:delete'" type='danger'>删除</a-button>
- </a-popconfirm>
- </a-space>
- <!-- <a-divider type="vertical" />-->
- <!-- <a-dropdown>-->
- <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>-->
- <!-- <a-menu slot="overlay">-->
- <!-- <a-menu-item>-->
- <!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">-->
- <!-- <a>删除</a>-->
- <!-- </a-popconfirm>-->
- <!-- </a-menu-item>-->
- <!-- </a-menu>-->
- <!-- </a-dropdown>-->
- </span>
- </a-table>
- </div>
- <a-tabs defaultActiveKey="1">
- <a-tab-pane tab="项目信息" key="1" >
- <RmAxxmxxList :mainId="selectedMainId" />
- </a-tab-pane>
- <a-tab-pane tab="河段主要指标" key="2" forceRender>
- <RmAxhdzyzbList :mainId="selectedMainId" />
- </a-tab-pane>
- <a-tab-pane tab="涉河部分工程信息" key="3" forceRender>
- <RmAxshbfgcxxbList :mainId="selectedMainId" />
- </a-tab-pane>
- <a-tab-pane tab="分析计算主要成果" key="4" forceRender>
- <RmAxfxjszycgbList :mainId="selectedMainId" />
- </a-tab-pane>
- <a-tab-pane tab="涉河工程主要指标表" key="5" forceRender>
- <RmAxshgczyzbbList :mainId="selectedMainId" />
- </a-tab-pane>
- </a-tabs>
- <rmAxzyxmb-modal ref="modalForm" @ok="modalFormOk"></rmAxzyxmb-modal>
- </a-card>
- </template>
- <script>
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- import RmAxzyxmbModal from './modules/RmAxzyxmbModal'
- import { getAction } from '@/api/manage'
- import RmAxxmxxList from './RmAxxmxxList'
- import RmAxhdzyzbList from './RmAxhdzyzbList'
- import RmAxshbfgcxxbList from './RmAxshbfgcxxbList'
- import RmAxfxjszycgbList from './RmAxfxjszycgbList'
- import RmAxshgczyzbbList from './RmAxshgczyzbbList'
- import '@/assets/less/TableExpand.less'
- export default {
- name: "RmAxzyxmbList",
- mixins:[JeecgListMixin],
- components: {
- RmAxxmxxList,
- RmAxhdzyzbList,
- RmAxshbfgcxxbList,
- RmAxfxjszycgbList,
- RmAxshgczyzbbList,
- RmAxzyxmbModal
- },
- data () {
- return {
- description: '岸线占用项目管理管理页面',
- // 表头
- columns: [
- {
- title:'申请单位名称',
- align:"center",
- dataIndex: 'sqdwmc',
- scopedSlots: { customRender: 'sqdwmc' }
- },
- {
- title:'法人代表(或委托代理人)',
- align:"center",
- dataIndex: 'frdb'
- },
- {
- title:'统一社会信用代码',
- align:"center",
- dataIndex: 'tyshxydm'
- },
- {
- title:'申请单位通讯地址',
- align:"center",
- dataIndex: 'sqdwtxdz'
- },
- {
- title:'联系人',
- align:"center",
- dataIndex: 'lxr'
- },
- {
- title:'邮政编码',
- align:"center",
- dataIndex: 'yzbm'
- },
- {
- title:'办公电话',
- align:"center",
- dataIndex: 'bgdh'
- },
- {
- title:'手机号',
- align:"center",
- dataIndex: 'sjh'
- },
- {
- title:'传真',
- align:"center",
- dataIndex: 'cz'
- },
- {
- title:'电子邮箱',
- align:"center",
- dataIndex: 'dzyx'
- },
- {
- title:'主管部门',
- align:"center",
- dataIndex: 'zgbm'
- },
- {
- title:'通讯地址',
- align:"center",
- dataIndex: 'txdz'
- },
- {
- title: '操作',
- dataIndex: 'action',
- align:"center",
- fixed:"right",
- width:147,
- scopedSlots: { customRender: 'action' },
- }
- ],
- url: {
- list: "/hzz.axgh.axzyxm/rmAxzyxmb/list",
- delete: "/hzz.axgh.axzyxm/rmAxzyxmb/delete",
- deleteBatch: "/hzz.axgh.axzyxm/rmAxzyxmb/deleteBatch",
- exportXlsUrl: "/hzz.axgh.axzyxm/rmAxzyxmb/exportXls",
- importExcelUrl: "hzz.axgh.axzyxm/rmAxzyxmb/importExcel",
- },
- dictOptions:{
- },
- /* 分页参数 */
- ipagination:{
- current: 1,
- pageSize: 5,
- pageSizeOptions: ['5', '10', '50'],
- showTotal: (total, range) => {
- return range[0] + "-" + range[1] + " 共" + total + "条"
- },
- showQuickJumper: true,
- showSizeChanger: true,
- total: 0
- },
- selectedMainId:'',
- superFieldList:[],
- }
- },
- created() {
- this.getSuperFieldList();
- },
- computed: {
- importExcelUrl: function(){
- return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
- }
- },
- methods: {
- initDictConfig(){
- },
- clickThenSelect(record) {
- return {
- on: {
- click: () => {
- this.onSelectChange(record.id.split(","), [record]);
- }
- }
- }
- },
- onClearSelected() {
- this.selectedRowKeys = [];
- this.selectionRows = [];
- this.selectedMainId=''
- },
- onSelectChange(selectedRowKeys, selectionRows) {
- this.selectedMainId=selectedRowKeys[0]
- this.selectedRowKeys = selectedRowKeys;
- this.selectionRows = selectionRows;
- },
- loadData(arg) {
- if(!this.url.list){
- this.$message.error("请设置url.list属性!")
- return
- }
- //加载数据 若传入参数1则加载第一页的内容
- if (arg === 1) {
- this.ipagination.current = 1;
- }
- this.onClearSelected()
- var params = this.getQueryParams();//查询条件
- this.loading = true;
- getAction(this.url.list, params).then((res) => {
- if (res.success) {
- this.dataSource = res.result.records;
- this.ipagination.total = Number(res.result.total);
- }
- if(res.code===510){
- this.$message.warning(res.message)
- }
- this.loading = false;
- })
- },
- getSuperFieldList(){
- let fieldList=[];
- fieldList.push({type:'string',value:'sqdwmc',text:'申请单位名称',dictCode:''})
- fieldList.push({type:'string',value:'frdb',text:'法人代表(或委托代理人)',dictCode:''})
- fieldList.push({type:'string',value:'tyshxydm',text:'统一社会信用代码',dictCode:''})
- fieldList.push({type:'string',value:'sqdwtxdz',text:'申请单位通讯地址',dictCode:''})
- fieldList.push({type:'string',value:'lxr',text:'联系人',dictCode:''})
- fieldList.push({type:'string',value:'yzbm',text:'邮政编码',dictCode:''})
- fieldList.push({type:'string',value:'bgdh',text:'办公电话',dictCode:''})
- fieldList.push({type:'string',value:'sjh',text:'手机号',dictCode:''})
- fieldList.push({type:'string',value:'cz',text:'传真',dictCode:''})
- fieldList.push({type:'string',value:'dzyx',text:'电子邮箱',dictCode:''})
- fieldList.push({type:'string',value:'zgbm',text:'主管部门',dictCode:''})
- fieldList.push({type:'string',value:'txdz',text:'通讯地址',dictCode:''})
- this.superFieldList = fieldList
- }
- }
- }
- </script>
- <style scoped>
- @import '~@assets/less/common.less'
- </style>
|