更新后台细节

This commit is contained in:
yaooo 2023-11-27 18:04:18 +08:00
parent 049fa67731
commit 2cdbe426bf
7 changed files with 13 additions and 30 deletions

View File

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

View File

@ -9,9 +9,6 @@
@close="handleClose"
>
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
<!-- <el-form-item label="用户ID" prop="user_id">
<el-input v-model="formData.user_id" clearable placeholder="请输入用户ID" />
</el-form-item> -->
<el-form-item label="用户ID" prop="user_id">
<el-select
v-model="formData.user_id"

View File

@ -28,9 +28,6 @@
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="土地ID" prop="land_id">
<el-input v-model="formData.land_id" clearable placeholder="请输入土地ID" />
</el-form-item> -->
<el-form-item label="土地ID" prop="land_id">
<el-select
v-model="formData.land_id"
@ -75,7 +72,7 @@
</el-select>
</el-form-item>
<el-form-item label="种植图片" prop="pic">
<material-picker v-model="formData.pic" />
<material-picker v-model="formData.pic" :limit="4" />
</el-form-item>
<el-form-item label="播种时间" prop="plant_date">
<el-date-picker

View File

@ -70,11 +70,6 @@
<template #default="{ row }">
<dict-value :options="dictData.plant_status" :value="row.status" />
</template>
</el-table-column>
<el-table-column label="种植图片" width="150" prop="pic">
<template #default="{ row }">
<el-image style="width:50px;height:50px;" :src="row.pic" />
</template>
</el-table-column>
<el-table-column label="溯源二维码" width="150" prop="qr_code">
<template #default="{ row }">
@ -88,6 +83,14 @@
</el-table-column>
<el-table-column label="操作" width="200" align="center" fixed="right">
<template #default="{ row }">
<el-button
v-perms="['land.land_plant/edit']"
type="primary"
link
@click="handleEdit(row)"
>
编辑
</el-button>
<el-button v-perms="['land.land_plant_action/lists']" type="primary" link >
<router-link
:to="{
@ -99,14 +102,6 @@
>
种植操作
</router-link>
</el-button>
<el-button
v-perms="['land.land_plant/edit']"
type="primary"
link
@click="handleEdit(row)"
>
编辑
</el-button>
<el-button
v-perms="['land.land_plant/delete']"

View File

@ -28,9 +28,6 @@
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="种植ID" prop="plant_id">
<el-input v-model="formData.plant_id" clearable placeholder="请输入种植ID" />
</el-form-item> -->
<el-form-item label="种植ID" prop="land_id">
<el-select
v-model="formData.plant_id"

View File

@ -9,9 +9,6 @@
@close="handleClose"
>
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
<!-- <el-form-item label="用户id" prop="user_id">
<el-input v-model="formData.user_id" clearable placeholder="请输入用户id" />
</el-form-item> -->
<el-form-item label="用户ID" prop="user_id">
<el-select
v-model="formData.user_id"

View File

@ -49,7 +49,7 @@ class LandPlantLogic extends BaseLogic
'user' => $params['user'],
'remark' => $params['remark'],
'status' => $params['status'],
'pic' => $params['pic'],
'pic' => json_encode($params['pic']),
'qr_code' => $params['qr_code'],
'plant_date' => strtotime($params['plant_date']),
]);
@ -84,7 +84,7 @@ class LandPlantLogic extends BaseLogic
'user' => $params['user'],
'remark' => $params['remark'],
'status' => $params['status'],
'pic' => $params['pic'],
'pic' => json_encode($params['pic']),
'qr_code' => $params['qr_code'],
'plant_date' => strtotime($params['plant_date']),
]);