+
+
+ 土地信息
+
+
-
+
@@ -119,14 +125,19 @@ import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
+const { query } = useRoute()
const editRef = shallowRef>()
// 是否显示编辑框
const showEdit = ref(false)
+let user_id = query.user_id
+if (typeof(user_id) == 'undefined') {
+ user_id = ''
+}
// 查询条件
const queryParams = reactive({
- user_id: '',
+ user_id: user_id,
title: '',
master_name: '',
master_phone: '',
diff --git a/app/adminapi/logic/land/ProductLogic.php b/app/adminapi/logic/land/ProductLogic.php
index 7f28866e..8e7df0c7 100644
--- a/app/adminapi/logic/land/ProductLogic.php
+++ b/app/adminapi/logic/land/ProductLogic.php
@@ -105,6 +105,7 @@ class ProductLogic extends BaseLogic
*/
public static function delete(array $params): bool
{
+ Db::name('land_product')->where('product_id', $params['id'])->delete();
return Product::destroy($params['id']);
}