diff --git a/sub-government-affairs-service/components.d.ts b/sub-government-affairs-service/components.d.ts
index 478bab3..d581204 100644
--- a/sub-government-affairs-service/components.d.ts
+++ b/sub-government-affairs-service/components.d.ts
@@ -7,7 +7,7 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
- CustCard: typeof import('./src/components/CustCard.vue')['default']
+ CustomCard: typeof import('./src/components/CustomCard.vue')['default']
GridSelect: typeof import('./src/components/GridSelect.vue')['default']
LandType: typeof import('./src/components/LandType.vue')['default']
Pagina: typeof import('./src/components/Pagina.vue')['default']
diff --git a/sub-government-affairs-service/src/components/CustCard.vue b/sub-government-affairs-service/src/components/CustomCard.vue
similarity index 100%
rename from sub-government-affairs-service/src/components/CustCard.vue
rename to sub-government-affairs-service/src/components/CustomCard.vue
diff --git a/sub-government-affairs-service/src/components/LandClassificationType.vue b/sub-government-affairs-service/src/components/LandClassificationType.vue
index d919b65..b9e669c 100644
--- a/sub-government-affairs-service/src/components/LandClassificationType.vue
+++ b/sub-government-affairs-service/src/components/LandClassificationType.vue
@@ -12,7 +12,7 @@ import { ref, watch } from 'vue';
const props = defineProps({
// 父组件传过来的值
value: {
- type: String || null,
+ type: String || Number || null,
default: null,
},
placeholder: {
@@ -28,7 +28,7 @@ const val = ref(null);
watch(
() => props.value,
() => {
- val.value = props.value;
+ val.value = props.value || props.value == 0 ? String(props.value) : null;
},
{
deep: true,
diff --git a/sub-government-affairs-service/src/components/LandIsTranfer.vue b/sub-government-affairs-service/src/components/LandIsTransfer.vue
similarity index 89%
rename from sub-government-affairs-service/src/components/LandIsTranfer.vue
rename to sub-government-affairs-service/src/components/LandIsTransfer.vue
index dcc58bd..cb7febe 100644
--- a/sub-government-affairs-service/src/components/LandIsTranfer.vue
+++ b/sub-government-affairs-service/src/components/LandIsTransfer.vue
@@ -12,7 +12,7 @@ import { ref, watch } from 'vue';
const props = defineProps({
// 父组件传过来的值
value: {
- type: String || null,
+ type: String || Number || null,
default: null,
},
placeholder: {
@@ -28,7 +28,7 @@ const val = ref(null);
watch(
() => props.value,
() => {
- val.value = props.value;
+ val.value = props.value || props.value == 0 ? String(props.value) : null;
},
{
deep: true,
diff --git a/sub-government-affairs-service/src/components/LandType.vue b/sub-government-affairs-service/src/components/LandType.vue
index 495dd93..26bae46 100644
--- a/sub-government-affairs-service/src/components/LandType.vue
+++ b/sub-government-affairs-service/src/components/LandType.vue
@@ -12,7 +12,7 @@ import { ref, watch } from 'vue';
const props = defineProps({
// 父组件传过来的值
value: {
- type: String || null,
+ type: String || Number || null,
default: null,
},
placeholder: {
@@ -28,7 +28,7 @@ const val = ref(null);
watch(
() => props.value,
() => {
- val.value = props.value;
+ val.value = props.value || props.value == 0 ? String(props.value) : null;
},
{
deep: true,
diff --git a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue
index 216ee62..c85edb3 100644
--- a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue
+++ b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -117,13 +117,13 @@
-
+
+
+
diff --git a/sub-government-affairs-service/src/views/landManage/component/illegalHandle/index.vue b/sub-government-affairs-service/src/views/landManage/component/illegalHandle/index.vue
index 690a9aa..cdf3ec2 100644
--- a/sub-government-affairs-service/src/views/landManage/component/illegalHandle/index.vue
+++ b/sub-government-affairs-service/src/views/landManage/component/illegalHandle/index.vue
@@ -1,18 +1,206 @@
-
+
+
+
+ 登记处理
+
+
+
+
-
diff --git a/sub-government-affairs-service/src/views/landManage/component/landsManage/common/CreateLand.vue b/sub-government-affairs-service/src/views/landManage/component/landsManage/common/CreateLand.vue
index 9b7c608..65a4dfd 100644
--- a/sub-government-affairs-service/src/views/landManage/component/landsManage/common/CreateLand.vue
+++ b/sub-government-affairs-service/src/views/landManage/component/landsManage/common/CreateLand.vue
@@ -2,7 +2,7 @@
基础信息
-
+
@@ -26,7 +26,7 @@
-
+
@@ -42,7 +42,7 @@
土地产权信息
-
+
@@ -64,8 +64,8 @@
- 保存并提交审核
- 保存草稿
+ 保存并提交审核
+
取消
@@ -75,7 +75,7 @@
import { reactive, ref, watch } from 'vue';
import LandClassificationType from '@/components/LandClassificationType.vue';
import CustomSelect from '@/components/CustomSelect.vue';
-import LandIsTranfer from '@/components/LandIsTranfer.vue';
+import LandIsTransfer from '@/components/LandIsTransfer.vue';
import { saveLand } from '@/apis/land';
import { ElMessage } from 'element-plus';
import { CommonUpload } from '@/apis';
@@ -89,18 +89,23 @@ const props = defineProps({
type: String,
default: '0',
},
+ rowData: {
+ type: Object,
+ default: () => {},
+ },
});
const emit = defineEmits(['close']);
/* --------------- data --------------- */
// #region
const _visible = ref(false);
+const editId = ref(null);
const baseInfo = reactive({
landName: '',
gridId: '',
landClassificationType: '',
villageCode: '',
- isTransfer: '',
+ isTransfer: '1',
area: '',
owner: '',
soilType: '',
@@ -115,6 +120,26 @@ watch(
() => props.visible,
() => {
_visible.value = props.visible;
+ if (!props.rowData.id) {
+ editId.value = props.rowData.id;
+ } else {
+ for (let key in baseInfo) {
+ baseInfo[key] = props.rowData[key];
+ }
+ baseInfo.isTransfer = props.rowData.landTransfer || '0';
+ for (let key in propertyInfo) {
+ propertyInfo[key] = props.rowData[key];
+ }
+ if (propertyInfo.propertyCertificateUrl) {
+ propertyInfo.propertyCertificateUrl = props.rowData.propertyCertificateUrl.map((item, i) => {
+ return {
+ url: item.url,
+ id: `id_${i}_${Date.now()}`,
+ name: item.name || `name_${i}_${Date.now()}`,
+ };
+ });
+ }
+ }
}
);
watch(
@@ -161,9 +186,10 @@ async function handleSubmit() {
isDraftsSave: 0,
landType: props.landType,
};
- let ids = '';
- propertyInfo.propertyCertificateUrl.map((item) => (ids += item.id));
- data.propertyCertificateUrl = ids;
+ let ids = [];
+ propertyInfo.propertyCertificateUrl.map((item) => ids.push(item.url));
+ data.propertyCertificateUrl = ids.join();
+ editId.value && (data.id = editId.value);
const res = await saveLand(data);
if (res.code == 200) {
ElMessage.success('保存成功');
@@ -178,6 +204,13 @@ function handleClose() {
function resFrom() {
baseForm.value.resetFields();
propertyForm.value.resetFields();
+ for (let key in baseInfo) {
+ baseInfo[key] = '';
+ }
+ for (let key in propertyInfo) {
+ propertyInfo[key] = '';
+ }
+ propertyInfo.propertyCertificateUrl = [];
}
// #endregion
diff --git a/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue b/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue
index 4c538dd..c247468 100644
--- a/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue
+++ b/sub-government-affairs-service/src/views/landManage/component/landsManage/index.vue
@@ -1,5 +1,5 @@
-
+
{{ item.label }}
@@ -56,21 +56,21 @@
编辑
- 详情
+ 详情
删除
handlePaginaChange(v, true)" @size-hange="(v) => handlePaginaChange(v)" />
-
+
diff --git a/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue b/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue
index c4a094c..c4a2a8c 100644
--- a/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue
+++ b/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -139,13 +139,13 @@
-
+