QcSsgqzysytdqkList3.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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.createBy"/>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="地块">
  14. <a-input placeholder="请输入地块" v-model="queryParam.dk"></a-input>
  15. </a-form-item>
  16. </a-col>
  17. <a-col v-has="'Query:xzqh'" :xl="6" :lg="7" :md="8" :sm="24">
  18. <a-form-item label="行政区划">
  19. <j-area-linkage type="cascader" v-model="queryParam.xzqh" placeholder="请输入省市区"/>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  23. <a-form-item label="证书/合同/文件编号">
  24. <a-input placeholder="请输入证书/合同/文件编号" v-model="queryParam.wjbh"></a-input>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  28. <a-form-item label="实际用途">
  29. <j-category-select v-model="queryParam.sjyt" pcode="A04" placeholder="请选择实际用途"/>
  30. </a-form-item>
  31. </a-col>
  32. <template v-if="toggleSearchStatus">
  33. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  34. <a-form-item label="土地使用权人">
  35. <a-input placeholder="请输入土地使用权人" v-model="queryParam.tdsyqr"></a-input>
  36. </a-form-item>
  37. </a-col>
  38. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  39. <a-form-item label="是否上报">
  40. <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt"/>
  41. </a-form-item>
  42. </a-col>
  43. </template>
  44. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  45. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  46. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  47. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  48. <a @click="handleToggleSearch" style="margin-left: 8px">
  49. {{ toggleSearchStatus ? '收起' : '展开' }}
  50. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  51. </a>
  52. </span>
  53. </a-col>
  54. </a-row>
  55. </a-form>
  56. </div>
  57. <!-- 查询区域-END -->
  58. <!-- 操作按钮区域 -->
  59. <div class="table-operator">
  60. <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
  61. <a-button type="primary" icon="download" @click="handleExportXls('省属国企占有使用土地情况调查')">导出</a-button>
  62. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  63. <a-button type="primary" icon="import">导入</a-button>
  64. </a-upload>
  65. &lt;!&ndash; 高级查询区域 &ndash;&gt;
  66. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  67. <a-dropdown v-if="selectedRowKeys.length > 0">
  68. <a-menu slot="overlay">
  69. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  70. </a-menu>
  71. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  72. </a-dropdown>-->
  73. </div>
  74. <!-- table区域-begin -->
  75. <div>
  76. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  77. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  78. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  79. </div>
  80. <a-table
  81. ref="table"
  82. size="middle"
  83. :scroll="{x:true}"
  84. bordered
  85. rowKey="id"
  86. :columns="columns"
  87. :dataSource="dataSource"
  88. :pagination="ipagination"
  89. :loading="loading"
  90. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  91. class="j-table-force-nowrap"
  92. @change="handleTableChange">
  93. <template slot="htmlSlot" slot-scope="text">
  94. <div v-html="text"></div>
  95. </template>
  96. <template slot="imgSlot" slot-scope="text,record">
  97. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  98. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  99. </template>
  100. <template slot="fileSlot" slot-scope="text">
  101. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  102. <a-button
  103. v-else
  104. :ghost="true"
  105. type="primary"
  106. icon="download"
  107. size="small"
  108. @click="downloadFile(text)">
  109. 下载
  110. </a-button>
  111. </template>
  112. <span slot="action" slot-scope="text, record">
  113. <a-space>
  114. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  115. </a-space>
  116. </span>
  117. </a-table>
  118. </div>
  119. <qc-ssgqzysytdqk-modal ref="modalForm" @ok="modalFormOk"></qc-ssgqzysytdqk-modal>
  120. </a-card>
  121. </template>
  122. <script>
  123. import '@/assets/less/TableExpand.less'
  124. import { mixinDevice } from '@/utils/mixin'
  125. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  126. import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal'
  127. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  128. import { loadCategoryData } from '@/api/api'
  129. export default {
  130. name: 'QcSsgqzysytdqkList',
  131. mixins:[JeecgListMixin, mixinDevice],
  132. components: {
  133. QcSsgqzysytdqkModal
  134. },
  135. data () {
  136. return {
  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: 'sysOrgCode_dictText'
  154. },
  155. {
  156. title:'地块',
  157. align:"center",
  158. dataIndex: 'dk'
  159. },
  160. {
  161. title:'文件类型',
  162. align:"center",
  163. dataIndex: 'wjlx_dictText'
  164. },
  165. {
  166. title:'证书/合同/文件编号',
  167. align:"center",
  168. dataIndex: 'wjbh'
  169. },
  170. {
  171. title:'土地使用权人',
  172. align:"center",
  173. dataIndex: 'tdsyqr'
  174. },
  175. {
  176. title:'使用权使用方式',
  177. align:"center",
  178. dataIndex: 'syqsyfs_dictText'
  179. },
  180. {
  181. title:'实际用途',
  182. align:"center",
  183. dataIndex: 'sjyt',
  184. customRender:
  185. (text) => (text ? filterMultiDictText(this.dictOptions['sjyt'], text) : '')
  186. },
  187. {
  188. title:'是否上报',
  189. align:"center",
  190. dataIndex: 'sfsb_dictText'
  191. },
  192. {
  193. title: '操作',
  194. dataIndex: 'action',
  195. align:"center",
  196. fixed:"right",
  197. width:147,
  198. scopedSlots: { customRender: 'action' }
  199. }
  200. ],
  201. url: {
  202. list: "/qcsb/qcSsgqzysytdqk/list3",
  203. delete: "/qcsb/qcSsgqzysytdqk/delete",
  204. deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
  205. exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls",
  206. importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel",
  207. },
  208. dictOptions:{},
  209. superFieldList:[],
  210. }
  211. },
  212. created() {
  213. this.getSuperFieldList();
  214. },
  215. computed: {
  216. importExcelUrl: function(){
  217. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  218. },
  219. },
  220. methods: {
  221. initDictConfig(){
  222. loadCategoryData({code:'A04'}).then((res) => {
  223. if (res.success) {
  224. console.log(res.result)
  225. this.$set(this.dictOptions, 'sjyt', res.result)
  226. }
  227. })
  228. },
  229. getSuperFieldList(){
  230. let fieldList=[];
  231. fieldList.push({type:'sel_depart',value:'sysOrgCode',text:'所属部门'})
  232. fieldList.push({type:'string',value:'dk',text:'地块',dictCode:''})
  233. fieldList.push({type:'string',value:'wjlx',text:'文件类型',dictCode:'wjlx'})
  234. fieldList.push({type:'string',value:'wjbh',text:'证书/合同/文件编号',dictCode:''})
  235. fieldList.push({type:'string',value:'tdsyqr',text:'土地使用权人',dictCode:''})
  236. fieldList.push({type:'double',value:'sjzytdmj',text:'实际占用土地面积',dictCode:''})
  237. fieldList.push({type:'double',value:'qzpzsymj',text:'其中批准使用面积',dictCode:''})
  238. fieldList.push({type:'double',value:'sjsyjzmj',text:'实际使用建筑面积',dictCode:''})
  239. fieldList.push({type:'double',value:'qzpzsymj2',text:'其中批准使用面积',dictCode:''})
  240. fieldList.push({type:'double',value:'sjrjl',text:'容积率',dictCode:''})
  241. fieldList.push({type:'string',value:'syqsyfs',text:'使用权使用方式',dictCode:'syqsyfs'})
  242. fieldList.push({type:'string',value:'zlwz',text:'坐落位置',dictCode:''})
  243. fieldList.push({type:'string',value:'sjyt',text:'实际用途',dictCode:'tdyt'})
  244. fieldList.push({type:'date',value:'qsqssj',text:'权属起始时间'})
  245. fieldList.push({type:'date',value:'qsdqsj',text:'权属到期时间'})
  246. fieldList.push({type:'string',value:'tdsyxz',text:'土地使用现状',dictCode:'tdsyxz'})
  247. fieldList.push({type:'list_multi',value:'dbdycfqk',text:'担保、抵押、查封情况',dictTable:"", dictText:'', dictCode:'dbdycfqk'})
  248. fieldList.push({type:'string',value:'bz',text:'备注',dictCode:''})
  249. fieldList.push({type:'string',value:'xgwj',text:'附件材料',dictCode:''})
  250. fieldList.push({type:'int',value:'sfsb',text:'是否上报',dictCode:'xxsbzt'})
  251. this.superFieldList = fieldList
  252. }
  253. }
  254. }
  255. </script>
  256. <style scoped>
  257. @import '~@assets/less/common.less';
  258. </style>