diff --git a/src/views/assets/component/addFiles.vue b/src/views/assets/component/addFiles.vue
index e89ce16..c952f7e 100644
--- a/src/views/assets/component/addFiles.vue
+++ b/src/views/assets/component/addFiles.vue
@@ -607,4 +607,8 @@ export default {
diff --git a/src/views/assets/component/addHouse.vue b/src/views/assets/component/addHouse.vue
index e1ba31a..c5f6e76 100644
--- a/src/views/assets/component/addHouse.vue
+++ b/src/views/assets/component/addHouse.vue
@@ -32,7 +32,7 @@ export default {
h("br"),
h("Tag",{
style: {
- display: _this.selectLand?.name ? "inline-block" : "none"
+ display: _this.selectLand?.id ? "inline-block" : "none"
},
props: {
color: "primary",
@@ -41,10 +41,10 @@ export default {
on: {
["on-close"]: _ => {
_this.selectLand = {};
- _this.$refs['houseLinkTable'].setCurrentRow();
+ _this.$refs['landLinkTable'].setCurrentRow();
}
}
- },_this.selectLand?.name)
+ },_this.selectLand?.name || _this.selectLand?.tudizhenghao)
]),
},
],{
@@ -64,10 +64,25 @@ export default {
['update:visible']: (val) => this.landDialog = val,
}}>
@@ -264,6 +288,10 @@ export default {
file: {},
landDialog: false,
+ landSelect: {
+ table_name: "lands",
+ keyword: ""
+ },
};
},
methods: {
@@ -511,7 +539,7 @@ export default {
this.id = "";
this.type = "";
this.init();
- this.$refs['houseLinkTable']?.setCurrentRow();
+ this.$refs['landLinkTable']?.setCurrentRow();
this.$refs["elForm"].clearValidate();
delete this.form.id;
for (let key in this.file) {
@@ -560,8 +588,4 @@ export default {
grid-column-gap: 40px;
grid-template-columns: repeat(var(--column-num), 1fr);
}
-::v-deep .el-table__body tr.current-row > td.el-table__cell {
- background: $primaryColor;
- color: #fff;
-}
diff --git a/src/views/assets/component/addLand.vue b/src/views/assets/component/addLand.vue
index a25b65f..dbcafe0 100644
--- a/src/views/assets/component/addLand.vue
+++ b/src/views/assets/component/addLand.vue
@@ -34,19 +34,19 @@ export default {
render: h("xy-table", {
ref: "houseTable",
props: {
- action: index,
+ list: this.originalForm?.id_houses_land_id_relation,
auths: [],
reqOpt: {
table_name: "houses",
},
tableItem: [
- {
- type: "selection",
- reserveSelection: true,
- fixed: "left",
- width: 50,
- selectable: (row) => (!row.land_id || row.land_id === this.id),
- },
+ // {
+ // type: "selection",
+ // reserveSelection: true,
+ // fixed: "left",
+ // width: 50,
+ // selectable: (row) => (!row.land_id || row.land_id === this.id),
+ // },
{
label: "名称",
prop: "name",
@@ -341,25 +341,25 @@ export default {
delete copyForm[info._relations?.link_with_name];
}
});
- if (this.$refs["houseTable"].getSelection() && this.$refs["houseTable"]?.getSelection()?.length > 0) {
- promiseAll.push(
- ...this.$refs["houseTable"].getSelection().map(i => {
- for (let key in i) {
- if (/_relation/g.test(key)) {
- delete i[key]
- }
- }
- return save(Object.assign(i, { table_name: 'houses',land_id: this.id, quanzhenghao: copyForm.tudizhenghao, zichanweizhi: copyForm.zichanweizhi }))
- })
- );
- }
- this.originalForm.id_houses_land_id_relation.forEach(item => {
- if (this.$refs["houseTable"].getSelection().findIndex(selected => selected.id === item.id) === -1) {
- promiseAll.push(
- save(Object.assign(item, { table_name: 'houses',land_id: "" }))
- );
- }
- })
+ // if (this.$refs["houseTable"].getSelection() && this.$refs["houseTable"]?.getSelection()?.length > 0) {
+ // promiseAll.push(
+ // ...this.$refs["houseTable"].getSelection().map(i => {
+ // for (let key in i) {
+ // if (/_relation/g.test(key)) {
+ // delete i[key]
+ // }
+ // }
+ // return save(Object.assign(i, { table_name: 'houses',land_id: this.id, quanzhenghao: copyForm.tudizhenghao, zichanweizhi: copyForm.zichanweizhi }))
+ // })
+ // );
+ // }
+ // this.originalForm.id_houses_land_id_relation.forEach(item => {
+ // if (this.$refs["houseTable"].getSelection().findIndex(selected => selected.id === item.id) === -1) {
+ // promiseAll.push(
+ // save(Object.assign(item, { table_name: 'houses',land_id: "" }))
+ // );
+ // }
+ // })
promiseAll.push(
save(Object.assign(copyForm, { table_name: this.tableName }))
);
diff --git a/src/views/assets/detail.vue b/src/views/assets/detail.vue
index a241d9d..284c767 100644
--- a/src/views/assets/detail.vue
+++ b/src/views/assets/detail.vue
@@ -178,6 +178,11 @@
{
this.index = (++this.index) % (this.info?.length || 0);
},3000)
+ } else {
+ this.index = 0;
}
})
}
diff --git a/src/views/lease/component/addLet.vue b/src/views/lease/component/addLet.vue
new file mode 100644
index 0000000..7e23e59
--- /dev/null
+++ b/src/views/lease/component/addLet.vue
@@ -0,0 +1,853 @@
+
+
+
+
diff --git a/src/views/lease/let.vue b/src/views/lease/let.vue
index 3878c95..5b89a46 100644
--- a/src/views/lease/let.vue
+++ b/src/views/lease/let.vue
@@ -213,7 +213,7 @@
@@ -256,9 +256,7 @@
"
@editor="
(row) => {
- $refs['dialog'].setId(row.id);
- $refs['dialog'].setType('editor');
- $refs['dialog'].show();
+ $router.push('/addlet'+'?type=editor&letId='+row.id)
}
"
@loaded="adjustAlignment"
@@ -268,13 +266,6 @@
-
-
this.getDetail());
}
})
+ if (this.$route.params.letId) {
+ show({ id: this.$route.params.letId,table_name: 'lets' }).then(res => {
+ console.log(res)
+ })
+ }
},
mounted() {