master
xy 1 year ago
parent 32a70ae605
commit de508cde69

@ -55,15 +55,15 @@ export const constantRoutes = [
}], }],
hidden: true hidden: true
}, },
{ // {
path: "/dataShow", // path: "/dataShow",
name: '数据展示', // name: '数据展示',
component: () => import('@/views/dataShow/index'), // component: () => import('@/views/dataShow/index'),
meta: { // meta: {
title: "大屏展示", // title: "大屏展示",
icon: "el-icon-data-board" // icon: "el-icon-data-board"
} // }
}, // },
{ {
path: '/', path: '/',
component: Layout, component: Layout,

@ -204,7 +204,8 @@ export default {
{ {
"prop": "id", "prop": "id",
"width": 60, "width": 60,
"label": "序号" "label": "序号",
formatter: (row, column, cellValue, index) => (this.$refs['landLinkTable'].selectOpt.page - 1) * this.$refs['landLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
"prop": "tudiquanshuren", "prop": "tudiquanshuren",
@ -432,7 +433,8 @@ export default {
{ {
"prop": "id", "prop": "id",
"width": 60, "width": 60,
"label": "序号" "label": "序号",
formatter: (row, column, cellValue, index) => (this.$refs['houseLinkTable'].selectOpt.page - 1) * this.$refs['houseLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
"prop": "quanshuren", "prop": "quanshuren",
@ -604,10 +606,12 @@ export default {
landDialog: false, landDialog: false,
leasePlans: [], leasePlans: [],
landSelect: { landSelect: {
is_auth: 1,
table_name: "lands", table_name: "lands",
keyword: "" keyword: ""
}, },
houseSelect: { houseSelect: {
is_auth: 1,
table_name: "houses", table_name: "houses",
keyword: "" keyword: ""
}, },

@ -862,31 +862,14 @@ export default {
}, },
anchorSelect (href) { anchorSelect (href) {
const cubic = value => Math.pow(value, 3);
const easeInOutCubic = value => value < 0.5
? cubic(value * 2) / 2
: 1 - cubic((1 - value) * 2) / 2;
const { y } = document.querySelector(href)?.getBoundingClientRect() const { y } = document.querySelector(href)?.getBoundingClientRect()
let scrollTop = y - 70 const el = document.querySelector(".app-main-scroll")
const el = document.querySelector(".app-main-scroll"); let scrollTop = y - 70 + el.scrollTop
el.scrollTo({ el.scrollTo({
left: 0, left: 0,
top: scrollTop, top: scrollTop,
behavior: "smooth" behavior: "smooth"
}) })
// const beginTime = Date.now();
// const beginValue = el.scrollTop;
// const rAF = window.requestAnimationFrame || (func => setTimeout(func, 16));
// const frameFunc = () => {
// const progress = (Date.now() - beginTime) / 500;
// if (progress < 1) {
// el.scrollTop = beginValue * (1 - easeInOutCubic(progress));
// rAF(frameFunc);
// } else {
// el.scrollTop = 0;
// }
// };
// rAF(frameFunc);
}, },
copyLocation () { copyLocation () {
@ -1087,6 +1070,7 @@ export default {
}, },
async getLeases () { async getLeases () {
if(this.detail.leases.length <= 0) return
const res = await index({ const res = await index({
table_name: 'leases', table_name: 'leases',
page: 1, page: 1,

@ -178,6 +178,7 @@ export default {
} }
], ],
select: { select: {
is_auth: 1,
keyword: "" keyword: ""
} }
}; };

@ -654,6 +654,22 @@ export default {
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1 formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1
}) })
this.table.push({
prop: 'admin.name',
width: 120,
label: '提交人'
})
this.table.push({
prop: 'department.name',
width: 120,
label: '提交部门'
})
this.table.push({
prop: 'created_at',
width: 160,
label: '提交日期',
formatter: (row, column, cellValue, index) => this.$moment(cellValue).format('YYYY-MM-DD')
})
}, },
adjustAlignment () { adjustAlignment () {

@ -210,6 +210,8 @@ export default {
</el-card> </el-card>
<el-drawer <el-drawer
append-to-body
modal-append-to-body
title="土地列表" title="土地列表"
visible={this.landDialog} visible={this.landDialog}
size="64%" size="64%"
@ -252,6 +254,7 @@ export default {
prop: "id", prop: "id",
width: 60, width: 60,
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['landLinkTable'].selectOpt.page - 1) * this.$refs['landLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
prop: "tudiquanshuren", prop: "tudiquanshuren",
@ -445,6 +448,8 @@ export default {
</el-drawer> </el-drawer>
<el-drawer <el-drawer
append-to-body
modal-append-to-body
title="房产列表" title="房产列表"
visible={this.houseDialog} visible={this.houseDialog}
size="64%" size="64%"
@ -487,6 +492,7 @@ export default {
prop: "id", prop: "id",
width: 60, width: 60,
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['houseLinkTable'].selectOpt.page - 1) * this.$refs['houseLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
prop: "quanshuren", prop: "quanshuren",

@ -629,6 +629,22 @@ export default {
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1 formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1
}) })
this.table.push({
prop: 'admin.name',
width: 120,
label: '提交人'
})
this.table.push({
prop: 'department.name',
width: 120,
label: '提交部门'
})
this.table.push({
prop: 'created_at',
width: 160,
label: '提交日期',
formatter: (row, column, cellValue, index) => this.$moment(cellValue).format('YYYY-MM-DD')
})
}, },
adjustAlignment () { adjustAlignment () {

@ -789,6 +789,22 @@ export default {
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1 formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1
}) })
this.table.push({
prop: 'admin.name',
width: 120,
label: '提交人'
})
this.table.push({
prop: 'department.name',
width: 120,
label: '提交部门'
})
this.table.push({
prop: 'created_at',
width: 160,
label: '提交日期',
formatter: (row, column, cellValue, index) => this.$moment(cellValue).format('YYYY-MM-DD')
})
}, },
adjustAlignment () { adjustAlignment () {
if (this.firstAdjustTable) { if (this.firstAdjustTable) {

@ -786,7 +786,22 @@ export default {
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1 formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1
}) })
this.table.push({
prop: 'admin.name',
width: 120,
label: '提交人'
})
this.table.push({
prop: 'department.name',
width: 120,
label: '提交部门'
})
this.table.push({
prop: 'created_at',
width: 160,
label: '提交日期',
formatter: (row, column, cellValue, index) => this.$moment(cellValue).format('YYYY-MM-DD')
})
}, },
adjustAlignment () { adjustAlignment () {
if (this.firstAdjustTable) { if (this.firstAdjustTable) {

@ -186,7 +186,8 @@ export default {
{ {
"prop": "id", "prop": "id",
"width": 60, "width": 60,
"label": "序号" "label": "序号",
formatter: (row, column, cellValue, index) => (this.$refs['landLinkTable'].selectOpt.page - 1) * this.$refs['landLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
"prop": "tudiquanshuren", "prop": "tudiquanshuren",
@ -413,7 +414,8 @@ export default {
{ {
"prop": "id", "prop": "id",
"width": 60, "width": 60,
"label": "序号" "label": "序号",
formatter: (row, column, cellValue, index) => (this.$refs['houseLinkTable'].selectOpt.page - 1) * this.$refs['houseLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
"prop": "quanshuren", "prop": "quanshuren",
@ -580,10 +582,12 @@ export default {
landDialog: false, landDialog: false,
leasePlans: [], leasePlans: [],
landSelect: { landSelect: {
is_auth: 1,
table_name: "lands", table_name: "lands",
keyword: "" keyword: ""
}, },
houseSelect: { houseSelect: {
is_auth: 1,
table_name: "houses", table_name: "houses",
keyword: "" keyword: ""
}, },

@ -25,6 +25,7 @@ export default {
form: {}, form: {},
expands: [], expands: [],
select: { select: {
is_auth: 1,
table_name: "lease_plans", table_name: "lease_plans",
filter: [ filter: [
{ {

@ -334,6 +334,7 @@ export default {
firstAdjustTable: true, firstAdjustTable: true,
op, op,
select: { select: {
is_auth: 1,
table_name: "", table_name: "",
filter: [ filter: [
{ {
@ -630,6 +631,22 @@ export default {
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1 formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1
}) })
this.table.push({
prop: 'admin.name',
width: 120,
label: '提交人'
})
this.table.push({
prop: 'department.name',
width: 120,
label: '提交部门'
})
this.table.push({
prop: 'created_at',
width: 160,
label: '提交日期',
formatter: (row, column, cellValue, index) => this.$moment(cellValue).format('YYYY-MM-DD')
})
}, },
adjustAlignment () { adjustAlignment () {

@ -293,6 +293,7 @@ export default {
firstAdjustTable: true, firstAdjustTable: true,
op, op,
select: { select: {
is_auth: 1,
table_name: "", table_name: "",
filter: [ filter: [
{ {

@ -312,6 +312,7 @@ export default {
firstAdjustTable: true, firstAdjustTable: true,
op, op,
select: { select: {
is_auth: 1,
table_name: "", table_name: "",
filter: [ filter: [
{ {
@ -571,6 +572,22 @@ export default {
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1 formatter: (row, column, cellValue, index) => (this.$refs['xyTable'].selectOpt.page - 1) * this.$refs['xyTable'].selectOpt.page_size + index + 1
}) })
this.table.push({
prop: 'admin.name',
width: 120,
label: '提交人'
})
this.table.push({
prop: 'department.name',
width: 120,
label: '提交部门'
})
this.table.push({
prop: 'created_at',
width: 160,
label: '提交日期',
formatter: (row, column, cellValue, index) => this.$moment(cellValue).format('YYYY-MM-DD')
})
}, },
adjustAlignment () { adjustAlignment () {

@ -332,6 +332,7 @@ export default {
firstAdjustTable: true, firstAdjustTable: true,
op, op,
select: { select: {
is_auth: 1,
sort_name: 'zujindiyicidaoweishijian', sort_name: 'zujindiyicidaoweishijian',
table_name: "", table_name: "",
filter: [ filter: [

@ -722,6 +722,7 @@ export default {
prop: "id", prop: "id",
width: 60, width: 60,
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['landLinkTable'].selectOpt.page - 1) * this.$refs['landLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
prop: "tudiquanshuren", prop: "tudiquanshuren",
@ -973,6 +974,7 @@ export default {
prop: "id", prop: "id",
width: 60, width: 60,
label: "序号", label: "序号",
formatter: (row, column, cellValue, index) => (this.$refs['houseLinkTable'].selectOpt.page - 1) * this.$refs['houseLinkTable'].selectOpt.page_size + index + 1
}, },
{ {
prop: "quanshuren", prop: "quanshuren",
@ -1155,10 +1157,12 @@ export default {
leasePlans: [], leasePlans: [],
oldLeasePlans: [], oldLeasePlans: [],
landSelect: { landSelect: {
is_auth: 1,
table_name: "lands", table_name: "lands",
keyword: "", keyword: "",
}, },
houseSelect: { houseSelect: {
is_auth: 1,
table_name: "houses", table_name: "houses",
keyword: "", keyword: "",
}, },

Loading…
Cancel
Save