Compare commits

..

No commits in common. "ce1cfb3cc96f99e3d85afed45d09c91e037cbb0f" and "818d8c5b389ce1aae0fc5e9a0b7106565debe92d" have entirely different histories.

2 changed files with 6 additions and 10 deletions

View File

@ -15,6 +15,9 @@
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
>
<!-- <template #menu-left>
<el-button type="primary" icon="Plus" @click="handleAdd">新增网格</el-button>
</template> -->
<template #menu="scope">
<custom-table-operate :actions="crudOptions.actions" :data="scope" />
</template>
@ -147,7 +150,7 @@ const filterObject = (obj) => {
const crudData = ref([]);
const crudOptions = reactive({
...CRUD_OPTIONS,
// menu: false,
menu: false,
header: false,
height: 'calc(100vh - 340px)',
selection: true,
@ -199,13 +202,13 @@ const handleSizeChange = (val) => {
const handleView = (row) => {
isReadonly.value = true;
formData.value = { ...row };
dialogTitle.value = '产出品信息';
dialogTitle.value = '查看网格';
visible.value = true;
};
const handleEdit = (row) => {
isReadonly.value = false;
formData.value = { ...row };
dialogTitle.value = '编辑';
dialogTitle.value = '编辑网格';
visible.value = true;
};
const handleDelete = async (row) => {

View File

@ -1,6 +1,5 @@
export const mockData = [
{
id: '1',
AreaCode: '530501', // 行政区划编码
gridCode: 'G001', // 网格编码
landCode: 'L001', // 地块编码
@ -23,7 +22,6 @@ export const mockData = [
outputValue: 77952,
},
{
id: '2',
AreaCode: '530502',
gridCode: 'G002',
landCode: 'L002',
@ -45,7 +43,6 @@ export const mockData = [
outputValue: 116025,
},
{
id: '3',
AreaCode: '530503',
gridCode: 'G003',
landCode: 'L003',
@ -67,7 +64,6 @@ export const mockData = [
outputValue: 207200,
},
{
id: '4',
AreaCode: '530505',
gridCode: 'G005',
landCode: 'L005',
@ -89,7 +85,6 @@ export const mockData = [
outputValue: 112560,
},
{
id: '5',
AreaCode: '530506',
gridCode: 'G006',
landCode: 'L006',
@ -111,7 +106,6 @@ export const mockData = [
outputValue: 108000,
},
{
id: '6',
AreaCode: '530507',
gridCode: 'G007',
landCode: 'L007',
@ -133,7 +127,6 @@ export const mockData = [
outputValue: 198400,
},
{
id: '7',
AreaCode: '530508',
gridCode: 'G008',
landCode: 'L008',