Browse Source

修改表格展示

develop
王健 4 years ago
parent
commit
eb1224dd54
  1. 105
      src/views/land/handLand/index.vue
  2. 590
      src/views/land/noneHandLand/index.vue

105
src/views/land/handLand/index.vue

@ -236,7 +236,7 @@
v-loading="loading"
>
<el-table-column fixed type="selection" width="55"></el-table-column>
<el-table-column label="公告信息">
<el-table-column label="公告信息" width="500" fixed="left">
<el-table-column
v-for="(item, index) in cols.slice(0,20)"
:key="index"
@ -250,7 +250,7 @@
</el-table-column>
<el-table-column label="规划条件">
<el-table-column
v-for="(item, index) in cols.slice(20,24)"
v-for="(item, index) in cols.slice(20,23)"
:key="index"
:prop="item.prop"
:label="item.label"
@ -262,7 +262,7 @@
</el-table-column>
<el-table-column label="建设条件">
<el-table-column
v-for="(item, index) in cols.slice(24,31)"
v-for="(item, index) in cols.slice(23,30)"
:key="index"
:label="item.label"
:prop="item.prop"
@ -274,7 +274,7 @@
</el-table-column>
<el-table-column label="竞买条件">
<el-table-column
v-for="(item, index) in cols.slice(31,37)"
v-for="(item, index) in cols.slice(30,36)"
:key="index"
:label="item.label"
:prop="item.prop"
@ -286,7 +286,7 @@
</el-table-column>
<el-table-column label="地理信息">
<el-table-column
v-for="(item, index) in cols.slice(37,45)"
v-for="(item, index) in cols.slice(36,44)"
:key="index"
:label="item.label"
:prop="item.prop"
@ -298,7 +298,7 @@
</el-table-column>
<el-table-column label="成交信息">
<el-table-column
v-for="(item, index) in cols.slice(45,57)"
v-for="(item, index) in cols.slice(44,58)"
:key="index"
:label="item.label"
:prop="item.prop"
@ -310,7 +310,7 @@
</el-table-column>
<el-table-column label="项目开发">
<el-table-column
v-for="(item, index) in cols.slice(57,65)"
v-for="(item, index) in cols.slice(58,66)"
:key="index"
:label="item.label"
:prop="item.prop"
@ -320,18 +320,6 @@
>
</el-table-column>
</el-table-column>
<!-- <el-table-column label="项目资料">-->
<!-- <el-table-column-->
<!-- v-for="(item, index) in cols.slice(65,74)"-->
<!-- :key="index"-->
<!-- :label="item.label"-->
<!-- :prop="item.prop"-->
<!-- :width="item.width"-->
<!-- :fixed="item.fixed"-->
<!-- show-overflow-tooltip-->
<!-- >-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<el-table-column fixed="right" label="操作" width="200">
<template slot-scope="scope">
<el-button title="111" type="text" size="small" @click="viewItem(scope.row)"
@ -460,7 +448,7 @@ export default {
{
label: "已挂牌序号",
prop: "landListedId",
width: 250,
width: 200,
fixed: true,
},
{
@ -479,7 +467,6 @@ export default {
label: "地块位置",
prop: "landPosition",
width: 150,
fixed: true,
},
{
label: "土地用途",
@ -541,17 +528,16 @@ export default {
prop: "bidMargin",
width: 200,
},
{
label: "备注",
prop: "bizRemark",
width: 300,
hideMore: true,
},
{
label: "公告日期",
prop: "annoDate",
width: 150,
},
{
label: "公告截止日期",
prop: "annoEndDate",
width: 150,
},
{
label: "拍卖日期",
prop: "auctionDate",
@ -573,13 +559,8 @@ export default {
width: 150,
},
{
label: "配建-计容",
prop: "allocationCapacity",
width: 150,
},
{
label: "配建-不计容",
prop: "allocationNotCapacity",
label: "商业商务占比",
prop: "bizCommerceRate",
width: 150,
},
{
@ -687,6 +668,11 @@ export default {
prop: "lonLatBd",
width: 150,
},
{
label: "是否成交",
prop: "deal",
width: 150,
},
{
label: "出让方式",
prop: "transferMode",
@ -703,10 +689,15 @@ export default {
width: 150,
},
{
label: "成交价",
label: "成交价",
prop: "dealPrice",
width: 150,
},
{
label: "成交楼面价",
prop: "dealFloorPrice",
width: 150,
},
{
label: "溢价率",
prop: "premiumRate",
@ -717,11 +708,21 @@ export default {
prop: "commercialSelfRatio",
width: 200,
},
{
label: "商业自持年份",
prop: "commercialSelfYear",
width: 200,
},
{
label: "住宅自持比例(%)",
prop: "homeSelfRatio",
width: 200,
},
{
label: "住宅自持年份",
prop: "homeSelfYear",
width: 200,
},
{
label: "无偿比例(%)",
prop: "percentUnpaid",
@ -858,12 +859,6 @@ export default {
},
computed: {},
watch: {
// page: {
// handler(newVal, oldVal) {
// this.onSubmit();
// },
// deep: true,
// },
selectedData: {
handler(newVal, oldVal) {
this.hasSelectData = newVal.length > 0 ? true : false;
@ -887,24 +882,6 @@ export default {
: (txt = "展开");
return txt;
},
// getList(page, params) {
// this.tableLoading = true;
// fetchHandLandList(
// Object.assign({
// current: page.currentPage,
// size: page.pageSize,
// })
// )
// .then((response) => {
// this.tableData = response.data.data.records;
// this.page.total = response.data.data.total;
// this.loading = false;
// })
// .catch(() => {
// this.loading = false;
// });
// },
//
editItemChange(val) {
console.log("editItemChange", val);
@ -955,14 +932,12 @@ export default {
},
this.searchForm
);
// for(let key in this.searchForm){
// if (this.searchForm[key]==''){
// param.current=1
// }
// }
fetchHandLandList(param)
.then((response) => {
this.tableData = response.data.data.records;
this.tableData = response.data.data.records.map(item => {
item.deal = item.deal == '1' ? '是' : '否'
return item
});
this.page.total = response.data.data.total;
this.loading = false;
})

590
src/views/land/noneHandLand/index.vue

@ -12,11 +12,11 @@
<span class="ti-tag">{{ setTagName(1) }}</span>
<div class="searchBox">
<el-tag
@close="closeTag(item,index)"
v-for="(item,index) in searchTag"
:key="index"
closable>
{{item}}
@close="closeTag(item,index)"
v-for="(item,index) in searchTag"
:key="index"
closable>
{{ item }}
</el-tag>
</div>
</div>
@ -24,95 +24,95 @@
<el-form style="margin-top: 40px;" :inline="true" :model="searchForm" class="demo-form-inline">
<el-form-item label="地块名称:">
<el-input
v-model="searchForm.landName"
placeholder="请输入"
v-model="searchForm.landName"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="供地状态:">
<el-input
v-model="searchForm.supplyStatus"
placeholder="请输入"
v-model="searchForm.supplyStatus"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="地块编号:">
<el-input
v-model="searchForm.landCode"
placeholder="请输入"
v-model="searchForm.landCode"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="土地用途:">
<el-input
v-model="searchForm.landUsage"
placeholder="请输入"
v-model="searchForm.landUsage"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="预计挂牌时间:" prop="estimatedListingTime">
<el-date-picker
type="date"
placeholder="选择预计挂牌时间"
v-model="editForm.estimatedListingTime"
value-format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd"
type="date"
placeholder="选择预计挂牌时间"
v-model="editForm.estimatedListingTime"
value-format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item label="地质灾害:">
<el-input
v-model="searchForm.geologicHazard"
placeholder="请输入"
v-model="searchForm.geologicHazard"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="人防还建:">
<el-input
v-model="searchForm.civilAirDefence"
placeholder="请输入"
v-model="searchForm.civilAirDefence"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="特殊规划:">
<el-input
v-model="searchForm.specialPlan"
placeholder="请输入"
v-model="searchForm.specialPlan"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="勾地形式:">
<el-input
v-model="searchForm.hookForm"
placeholder="请输入"
v-model="searchForm.hookForm"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="勾地企业:">
<el-input
v-model="searchForm.landEnterprises"
placeholder="请输入"
v-model="searchForm.landEnterprises"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="出让人:">
<el-input
v-model="searchForm.bargainor"
placeholder="请输入"
v-model="searchForm.bargainor"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="城市:">
<el-input
v-model="searchForm.city"
placeholder="请输入"
v-model="searchForm.city"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="行政区:">
<el-input
v-model="searchForm.canton"
placeholder="请输入"
v-model="searchForm.canton"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="大组团:">
<el-input
v-model="searchForm.bigGroup"
placeholder="请输入"
v-model="searchForm.bigGroup"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="小组团:">
<el-input
v-model="searchForm.smallGroup"
placeholder="请输入"
v-model="searchForm.smallGroup"
placeholder="请输入"
></el-input>
</el-form-item>
<div style="text-align: right">
@ -133,7 +133,7 @@
<div class="page_content_head_left">
<div>拟挂牌地块列表</div>
<div style="margin-left: 10px">
<img src="@public/img/land/u1343.png" />
<img src="@public/img/land/u1343.png"/>
</div>
<div style="margin-left: 10px">
<span>已选择{{ selectedData.length }}</span>
@ -145,38 +145,41 @@
<div class="page_content_head_right">
<div>
<el-button @click="exportData" v-show="hasSelectData"
><img style="margin-right: 5px;" src="@public/img/land/u1340.png" />导出</el-button
><img style="margin-right: 5px;" src="@public/img/land/u1340.png"/>导出
</el-button
>
</div>
<div>
<el-button v-show="hasSelectData" @click="multiDelete"
><img style="margin-right: 5px;" src="@public/img/land/u1340.png" />批量删除</el-button
><img style="margin-right: 5px;" src="@public/img/land/u1340.png"/>批量删除
</el-button
>
</div>
<div>
<el-upload
class="upload-demo"
action=""
:before-upload="importData"
class="upload-demo"
action=""
:before-upload="importData"
>
<el-button size="medium" type="primary">导入数据</el-button>
</el-upload>
</div>
<div>
<el-tooltip
class="item"
effect="dark"
content="点击此处下载模版"
placement="bottom"
class="item"
effect="dark"
content="点击此处下载模版"
placement="bottom"
>
<el-button @click="downloadTemplate"
><i class="el-icon-download"></i
><i class="el-icon-download"></i
></el-button>
</el-tooltip>
</div>
<div style="margin-right: 30px">
<el-button @click="newItem" type="primary"
><i class="el-icon-plus"></i>新建</el-button
><i class="el-icon-plus"></i>新建
</el-button
>
</div>
</div>
@ -184,76 +187,116 @@
</div>
<div class="page_content_table">
<el-table
:data="tableData"
border
@selection-change="handleSelectionChange"
style="width: 100%"
ref="multipleTable"
v-loading="loading"
:data="tableData"
border
@selection-change="handleSelectionChange"
style="width: 100%"
ref="multipleTable"
v-loading="loading"
>
<el-table-column fixed type="selection" width="55"> </el-table-column>
<el-table-column fixed type="selection" width="55"></el-table-column>
<el-table-column label="拟挂牌情况" width="450" fixed="left">
<el-table-column
v-for="(item, index) in cols.slice(0,3)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column label="公告信息">
<el-table-column
v-for="(item, index) in cols.slice(0,3)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
v-for="(item, index) in cols.slice(3,22)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column label="规划条件">
<el-table-column
v-for="(item, index) in cols.slice(3,40)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
v-for="(item, index) in cols.slice(22,25)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column label="建设条件">
<el-table-column
v-for="(item, index) in cols.slice(40,62)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
v-for="(item, index) in cols.slice(25,32)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column label="竞买条件">
<el-table-column
v-for="(item, index) in cols.slice(32,38)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column label="竞买条件">
<el-table-column
v-for="(item, index) in cols.slice(38,46)"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template slot-scope="scope">
<el-button type="text" size="small" @click="viewItem(scope.row)"
>详情</el-button
>详情
</el-button
>
<el-button type="text" size="small" @click="editItem(scope.row)"
>编辑</el-button
>编辑
</el-button
>
<el-button type="text" size="small" @click="send(scope.row)"
>发送</el-button
>发送
</el-button
>
<el-button type="text" size="small" @click="delItem(scope.row)"
>删除</el-button
>删除
</el-button
>
</template>
</el-table-column>
</el-table>
<div class="page_page">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[10, 20, 30, 40]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[10, 20, 30, 40]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total"
>
</el-pagination>
</div>
@ -281,9 +324,8 @@ import {
updateLonLat,
multiDeteleList,
} from "@/views/land/api/noLand";
import { uploadFile } from "@/views/api/api";
import { downUrlFile } from "@/util/file";
import fileDownload from "js-file-download";
import {uploadFile} from "@/views/api/api";
import {downUrlFile} from "@/util/file";
export default {
name: "NoHandLand",
@ -291,8 +333,8 @@ export default {
return {
onlyId: "",
searchForm: {
landName:"",//
supplyStatus:"",//
landName: "",//
supplyStatus: "",//
//
landCode: "",
//
@ -300,38 +342,38 @@ export default {
//
estimatedListingTime: "",
geologicHazard:"",//
civilAirDefence:"",//
specialPlan:"",//
geologicHazard: "",//
civilAirDefence: "",//
specialPlan: "",//
hookForm:"",//
landEnterprises:"",//
bargainor:"",//
hookForm: "",//
landEnterprises: "",//
bargainor: "",//
city:"",//
canton:"",//
bigGroup:"",//
smallGroup:"",//
city: "",//
canton: "",//
bigGroup: "",//
smallGroup: "",//
},
searchTag:[],
searchDict:[
{code:'landName',label:'地块名称'},
{code:'supplyStatus',label:'供地状态'},
{code:'landCode',label:'地块编号'},
{code:'landUsage',label:'土地用途'},
{code:'estimatedListingTime',label:'预计挂牌时间'},
searchTag: [],
searchDict: [
{code: 'landName', label: '地块名称'},
{code: 'supplyStatus', label: '供地状态'},
{code: 'landCode', label: '地块编号'},
{code: 'landUsage', label: '土地用途'},
{code: 'estimatedListingTime', label: '预计挂牌时间'},
{code:'geologicHazard',label:'地质灾害'},
{code:'civilAirDefence',label:'人防还建'},
{code:'specialPlan',label:'特殊规划'},
{code:'hookForm',label:'勾地形式'},
{code:'landEnterprises',label:'勾地企业'},
{code:'bargainor',label:'出让人'},
{code: 'geologicHazard', label: '地质灾害'},
{code: 'civilAirDefence', label: '人防还建'},
{code: 'specialPlan', label: '特殊规划'},
{code: 'hookForm', label: '勾地形式'},
{code: 'landEnterprises', label: '勾地企业'},
{code: 'bargainor', label: '出让人'},
{code:'city',label:'城市'},
{code:'canton',label:'行政区'},
{code:'bigGroup',label:'大组团'},
{code:'smallGroup',label:'小组团'},
{code: 'city', label: '城市'},
{code: 'canton', label: '行政区'},
{code: 'bigGroup', label: '大组团'},
{code: 'smallGroup', label: '小组团'},
],
tableData: [],
//
@ -341,25 +383,20 @@ export default {
{
label: "拟出让序号",
prop: "proposedseriaId",
width: 250,
fixed: true,
},
{
label: "地块名称",
prop: "landName",
width: 150,
width: 200,
fixed: true,
},
{
label: "供地状态",
prop: "supplyStatus",
width: 120,
width: 100,
fixed: true,
},
{
label: "预计挂牌时间",
prop: "estimatedListingTime",
width: 150,
fixed: true
},
{
label: "公告序号",
@ -397,13 +434,13 @@ export default {
width: 150,
},
{
label: "建筑密度",
prop: "buildingDensity",
label: "容积率",
prop: "plotRatio",
width: 150,
},
{
label: "容积率",
prop: "plotRatio",
label: "建筑密度",
prop: "buildingDensity",
width: 150,
},
{
@ -436,16 +473,16 @@ export default {
prop: "bidMargin",
width: 200,
},
{
label: "备注",
prop: "bizRemark",
width: 200,
},
{
label: "公告日期",
prop: "annoDate",
width: 150,
},
{
label: "公告截止日期",
prop: "annoEndDate",
width: 150,
},
{
label: "拍卖日期",
prop: "auctionDate",
@ -466,19 +503,9 @@ export default {
prop: "commerceSpace",
width: 150,
},
/*{
label: "商业商务占比",
prop: "",
width: 150,
},*/
{
label: "配建-计容",
prop: "allocationCapacity",
width: 150,
},
{
label: "配建-不计容",
prop: "allocationNotCapacity",
label: "商业商务占比",
prop: "bizCommerceRate",
width: 150,
},
{
@ -585,97 +612,7 @@ export default {
label: "经纬度(百度BD09)",
prop: "lonLatBd",
width: 150,
},
{
label: "出让方式",
prop: "transferMode",
width: 150,
},
{
label: "受让单位",
prop: "assignee",
width: 150,
},
{
label: "拿地企业-简称",
prop: "landEnterpriseShort",
width: 150,
},
{
label: "成交价",
prop: "dealPrice",
width: 150,
},
{
label: "溢价率",
prop: "premiumRate",
width: 150,
},
{
label: "商业自持比例(%)",
prop: "commercialSelfRatio",
width: 200,
},
{
label: "住宅自持比例(%)",
prop: "homeSelfRatio",
width: 200,
},
{
label: "无偿比例(%)",
prop: "percentUnpaid",
width: 150,
},
{
label: "人才公寓面积",
prop: "talenApartmentArea",
width: 150,
},
{
label: "参拍企业",
prop: "participatingEnterprises",
width: 150,
},
{
label: "项目状态",
prop: "projectStatus",
width: 150,
},
{
label: "楼盘名称",
prop: "buildingName",
width: 150,
},
{
label: "项目公司",
prop: "projectCompany",
width: 150,
},
{
label: "确权时间",
prop: "confirmationTime",
width: 150,
},
{
label: "操盘企业",
prop: "tradingEnterprises",
width: 150,
},
{
label: "合作方",
prop: "partner",
width: 150,
},
{
label: "经营企业",
prop: "conductEnterprise",
width: 150,
},
{
label: "项目首开时间",
prop: "firstOpenTime",
width: 150,
},
}
],
page: {
total: 0, //
@ -702,16 +639,16 @@ export default {
uploadFiles: [],
rules: {
proposedseriaId: [
{ required: true, message: "请输入拟出让序号", trigger: "blur" },
{required: true, message: "请输入拟出让序号", trigger: "blur"},
],
landName: [
{ required: true, message: "请输入地块名称", trigger: "blur" },
{required: true, message: "请输入地块名称", trigger: "blur"},
],
landCode: [
{ required: true, message: "请输入地块编号", trigger: "blur" },
{required: true, message: "请输入地块编号", trigger: "blur"},
],
landPosition: [
{ required: true, message: "请输入地块位置", trigger: "blur" },
{required: true, message: "请输入地块位置", trigger: "blur"},
],
},
isLonLatEdit: false,
@ -782,62 +719,63 @@ export default {
setTagName(val) {
let txt = "";
this.activeNames.some((item) => item == val)
? (txt = "收起")
: (txt = "展开");
? (txt = "收起")
: (txt = "展开");
return txt;
},
getList(page, params) {
this.tableLoading = true;
console.debug(params);
fetchNoHandLandList(
Object.assign({
current: page.currentPage,
size: page.pageSize,
})
Object.assign({
current: page.currentPage,
size: page.pageSize,
})
)
.then((response) => {
this.tableData = response.data.data.records;
this.page.total = response.data.data.total;
this.loading = false;
})
.catch(() => {
this.loading = false;
});
.then((response) => {
this.tableData = response.data.data.records;
this.page.total = response.data.data.total;
this.loading = false;
})
.catch(() => {
this.loading = false;
});
},
//
editItemChange() {},
editItemChange() {
},
//
closeTag(data,index){
this.searchTag.splice(index,1);
let name=data.split(':')[0];
let code='';
this.searchDict.map(e=>{
if (e.label===name){
code=e.code
closeTag(data, index) {
this.searchTag.splice(index, 1);
let name = data.split(':')[0];
let code = '';
this.searchDict.map(e => {
if (e.label === name) {
code = e.code
}
});
for (let key in this.searchForm){
if (key===code){
this.searchForm[key]=''
for (let key in this.searchForm) {
if (key === code) {
this.searchForm[key] = ''
}
}
this.onSubmit()
},
//
confirmSearch(){
this.activeNames=[];
this.searchTag=[];
let list=[]
for (let key in this.searchForm){
if (this.searchForm[key]!=''&&this.searchForm[key]){
list.push({label:key,value:this.searchForm[key]})
confirmSearch() {
this.activeNames = [];
this.searchTag = [];
let list = []
for (let key in this.searchForm) {
if (this.searchForm[key] != '' && this.searchForm[key]) {
list.push({label: key, value: this.searchForm[key]})
}
}
list.map(e=>{
this.searchDict.map(f=>{
if (e.label==f.code){
this.searchTag.push(f.label+':'+e.value)
list.map(e => {
this.searchDict.map(f => {
if (e.label == f.code) {
this.searchTag.push(f.label + ':' + e.value)
}
})
})
@ -847,19 +785,19 @@ export default {
onSubmit() {
this.loading = true;
fetchNoHandLandList(
Object.assign({
current: this.page.currentPage,
size: this.page.pageSize,
},this.searchForm)
Object.assign({
current: this.page.currentPage,
size: this.page.pageSize,
}, this.searchForm)
)
.then((response) => {
this.tableData = response.data.data.records;
this.page.total = response.data.data.total;
this.loading = false;
})
.catch(() => {
this.loading = false;
});
.then((response) => {
this.tableData = response.data.data.records;
this.page.total = response.data.data.total;
this.loading = false;
})
.catch(() => {
this.loading = false;
});
},
//
@ -885,7 +823,7 @@ export default {
exportHandLandListExcel(ids.toString()).then((res) => {
// fileDownload(res.data, "kg.xlsx");
const aLink = document.createElement("a");
let blob = new Blob([res.data], { type: "application/vnd.ms-excel" });
let blob = new Blob([res.data], {type: "application/vnd.ms-excel"});
aLink.href = URL.createObjectURL(blob);
aLink.setAttribute("download", "kg" + ".xls"); //
aLink.click();
@ -916,8 +854,8 @@ export default {
//
viewItem(row) {
this.$route.meta.keepAlive = true
let data=row.proposedseriaId
this.$router.push({path:'/land/noneHandLand/newLand',query:{readOnly:'true',isEditOr:'false',data:data}});
let data = row.proposedseriaId
this.$router.push({path: '/land/noneHandLand/newLand', query: {readOnly: 'true', isEditOr: 'false', data: data}});
// this.dialogTitle = "";
// this.readOnly = true;
// this.dialogFormVisible = true;
@ -927,8 +865,8 @@ export default {
//
editItem(row) {
this.$route.meta.keepAlive = true
let data=row.proposedseriaId
this.$router.push({path:'/land/noneHandLand/newLand',query:{readOnly:'false',isEditOr:'true',data:data}});
let data = row.proposedseriaId
this.$router.push({path: '/land/noneHandLand/newLand', query: {readOnly: 'false', isEditOr: 'true', data: data}});
// this.dialogTitle = "";
// this.readOnly = false;
// this.dialogFormVisible = true;
@ -948,23 +886,24 @@ export default {
cancelButtonClass: "btn-custom-cancel",
type: "warning",
})
.then(function () {
delNoHandLandObj(ids).then((res) => {
if (res.data.success) {
me.$message("删除成功");
me.onSubmit();
} else {
me.$message("删除失败");
}
.then(function () {
delNoHandLandObj(ids).then((res) => {
if (res.data.success) {
me.$message("删除成功");
me.onSubmit();
} else {
me.$message("删除失败");
}
});
})
.catch(function () {
});
})
.catch(function () {});
},
//
newItem() {
this.$route.meta.keepAlive = true
this.$router.push({path:'/land/noneHandLand/newLand',query:{readOnly:'false',isEditOr:'false',}});
this.$router.push({path: '/land/noneHandLand/newLand', query: {readOnly: 'false', isEditOr: 'false',}});
// cols
// let newObj = {};
// for (let col of this.cols) {
@ -1227,10 +1166,10 @@ export default {
uploadRes(row) {
let proposedseriaId = this.editForm.proposedseriaId;
saveLandResFile(
row.fileName,
row.filePath,
this.activeType,
proposedseriaId
row.fileName,
row.filePath,
this.activeType,
proposedseriaId
).then((res) => {
if (res.data.success) {
this.$message("上传成功");
@ -1265,9 +1204,11 @@ export default {
<style lang="scss" scoped>
//
@import "@/styles/public.scss";
/deep/ .el-dialog {
margin-top: 9vh !important;
}
/deep/ .el-dialog__body {
height: 82vh;
background-color: #f0f2f5;
@ -1275,9 +1216,11 @@ export default {
display: flex;
flex-direction: column;
}
/deep/ .el-input {
width: 90%;
}
/deep/ .el-collapse-item {
margin-top: 10px;
padding-left: 10px;
@ -1287,15 +1230,18 @@ export default {
/deep/ .el-collapse-item__wrap {
border-top: 1px solid #e8eaec;
}
/deep/ .upload-demo {
text-align: center;
}
/deep/ .el-upload__tip {
text-align: right;
}
.ti-box {
position: relative;
span {
font-size: 1rem;
}
@ -1311,24 +1257,30 @@ export default {
border-top: 1px solid #e8eaec;
padding: 5px;
}
/deep/ .el-collapse{
/deep/ .el-collapse {
border: none;
}
/deep/ .el-form-item__content{
/deep/ .el-form-item__content {
width: 202px;
}
.btnGp{
.btnGp {
text-align: right;
margin-top: 20px;
}
/deep/ .el-tag{
/deep/ .el-tag {
margin-right: 8px;
}
/deep/ .el-collapse-item__header{
/deep/ .el-collapse-item__header {
height: 70px;
line-height: 28px;
}
/deep/ .el-form-item__label{
/deep/ .el-form-item__label {
width: 160px;
}
</style>

Loading…
Cancel
Save