diff --git a/.env.development b/.env.development index c9c6c75..8a26770 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV=development -VUE_APP_API_BASE_URL=http://localhost:8080/jeecg-boot +VUE_APP_API_BASE_URL=http://182.92.183.230:8080/jeecg-boot VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview diff --git a/src/components/CustomTable/index.vue b/src/components/CustomTable/index.vue index 79915c7..4760b66 100644 --- a/src/components/CustomTable/index.vue +++ b/src/components/CustomTable/index.vue @@ -55,13 +55,13 @@ export default { // 实现单击选中/反选功能 customRow(record) { return { - class: this.innerSelectedRowKeys.includes(record.id) ? 'ant-table-row-selected' : '', + class: this.innerSelectedRowKeys.includes(record[this.rowKey]) ? 'ant-table-row-selected' : '', on: { click: () => { - if (this.innerSelectedRowKeys.includes(record.id)) { + if (this.innerSelectedRowKeys.includes(record[this.rowKey])) { this.innerSelectedRowKeys = [] } else { - this.innerSelectedRowKeys = [record.id] + this.innerSelectedRowKeys = [record[this.rowKey]] } this.$emit('update:selectedRowKeys', this.innerSelectedRowKeys) } diff --git a/src/components/SearchForm/index.vue b/src/components/SearchForm/index.vue index 9ffbb14..e5d85a1 100644 --- a/src/components/SearchForm/index.vue +++ b/src/components/SearchForm/index.vue @@ -2,7 +2,13 @@
+ Delete
+
+ Add
+
+ Edit
+
+ Delete
+
+ Add
+
+ Edit
+
+ Delete
+