更新后台系统

This commit is contained in:
yaooo 2023-11-28 17:52:02 +08:00
parent d0fab518d0
commit a055e3538a
7 changed files with 25 additions and 25 deletions

View File

@ -2,8 +2,8 @@ const config = {
terminal: 1, //终端 terminal: 1, //终端
title: '后台管理系统', //网站默认标题 title: '后台管理系统', //网站默认标题
version: '1.6.0', //版本号 version: '1.6.0', //版本号
baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名 // baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名
// baseUrl: 'http://127.0.0.1:30005/', baseUrl: 'http://127.0.0.1:30005/',
urlPrefix: 'adminapi', //请求默认前缀 urlPrefix: 'adminapi', //请求默认前缀
timeout: 10 * 1000 //请求超时时长 timeout: 10 * 1000 //请求超时时长
} }

View File

@ -96,20 +96,20 @@
<el-table-column label="ID" prop="id" width="80" show-overflow-tooltip /> <el-table-column label="ID" prop="id" width="80" show-overflow-tooltip />
<el-table-column label="用户信息" width="200"> <el-table-column label="用户信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.user_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.user_id }}</el-tag>
<el-tag class="mr-2" type="success">账户: {{ row.account }}</el-tag> <el-tag class="mr-2">账户: {{ row.account }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地信息" width="200"> <el-table-column label="土地信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.land_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.land_id }}</el-tag>
<el-tag class="mr-2" type="success">名称: {{ row.land_title }}</el-tag> <el-tag class="mr-2">名称: {{ row.land_title }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="产品信息" width="200"> <el-table-column label="产品信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.product_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.product_id }}</el-tag>
<el-tag class="mr-2" type="success">名称: {{ row.product_name }}</el-tag> <el-tag class="mr-2">名称: {{ row.product_name }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="设备编码" width="120" prop="code" show-overflow-tooltip /> <el-table-column label="设备编码" width="120" prop="code" show-overflow-tooltip />

View File

@ -45,13 +45,13 @@
<el-table-column label="ID" prop="id" width="80" show-overflow-tooltip /> <el-table-column label="ID" prop="id" width="80" show-overflow-tooltip />
<el-table-column label="用户信息" width="200"> <el-table-column label="用户信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.user_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.user_id }}</el-tag>
<el-tag class="mr-2" type="success">账户: {{ row.user.account }}</el-tag> <el-tag class="mr-2">账户: {{ row.user.account }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地名称"> <el-table-column label="土地名称">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">{{ row.title }}</el-tag> <el-tag class="mr-2">{{ row.title }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地面积" prop="total_area" show-overflow-tooltip /> <el-table-column label="土地面积" prop="total_area" show-overflow-tooltip />

View File

@ -52,14 +52,14 @@
<el-table-column label="ID" prop="id" width="80" show-overflow-tooltip /> <el-table-column label="ID" prop="id" width="80" show-overflow-tooltip />
<el-table-column label="用户信息" width="200"> <el-table-column label="用户信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.user_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.user_id }}</el-tag>
<el-tag class="mr-2" type="success">账户: {{ row.account }}</el-tag> <el-tag class="mr-2">账户: {{ row.account }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地信息" width="200"> <el-table-column label="土地信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.land_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.land_id }}</el-tag>
<el-tag class="mr-2" type="success">名称: {{ row.title }}</el-tag> <el-tag class="mr-2">名称: {{ row.title }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="种植种类" prop="kind" show-overflow-tooltip /> <el-table-column label="种植种类" prop="kind" show-overflow-tooltip />

View File

@ -42,14 +42,14 @@
<el-table-column label="ID" prop="id" width="80" show-overflow-tooltip /> <el-table-column label="ID" prop="id" width="80" show-overflow-tooltip />
<el-table-column label="用户信息" width="200"> <el-table-column label="用户信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.user_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.user_id }}</el-tag>
<el-tag class="mr-2" type="success">账户: {{ row.account }}</el-tag> <el-tag class="mr-2">账户: {{ row.account }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地种植信息" width="200"> <el-table-column label="土地种植信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.plant_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.plant_id }}</el-tag>
<el-tag class="mr-2" type="success">类型: {{ row.kind }} 品牌: {{ row.breed }}</el-tag> <el-tag class="mr-2">类型: {{ row.kind }} 品牌: {{ row.breed }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="种植操作类型" align="center" prop="type"> <el-table-column label="种植操作类型" align="center" prop="type">

View File

@ -39,8 +39,8 @@
<el-table-column label="ID" prop="id" width="80" show-overflow-tooltip /> <el-table-column label="ID" prop="id" width="80" show-overflow-tooltip />
<el-table-column label="设备信息" width="200"> <el-table-column label="设备信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.device_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.device_id }}</el-tag>
<el-tag class="mr-2" type="success">名称: {{ row.device.name }}</el-tag> <el-tag class="mr-2">名称: {{ row.device.name }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="监测类型" align="center" prop="type"> <el-table-column label="监测类型" align="center" prop="type">

View File

@ -62,14 +62,14 @@
<el-table-column label="ID" prop="id" width="80" show-overflow-tooltip /> <el-table-column label="ID" prop="id" width="80" show-overflow-tooltip />
<el-table-column label="用户信息" width="200"> <el-table-column label="用户信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.user_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.user_id }}</el-tag>
<el-tag class="mr-2" type="success">账户: {{ row.account }}</el-tag> <el-tag class="mr-2">账户: {{ row.account }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地信息" width="200"> <el-table-column label="土地信息" width="200">
<template #default="{ row }"> <template #default="{ row }">
<el-tag class="mr-2" type="success">ID: {{ row.land_id }}</el-tag> <el-tag class="mr-2">ID: {{ row.land_id }}</el-tag>
<el-tag class="mr-2" type="success">名称: {{ row.title }}</el-tag> <el-tag class="mr-2">名称: {{ row.title }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="产品编号" prop="code" show-overflow-tooltip /> <el-table-column label="产品编号" prop="code" show-overflow-tooltip />