diff --git a/src/api/index.js b/src/api/index.js
index f46d32449e349fd420a8daa91661b526dd9c7d84..b151e1ce5f1e0e250b9f69101064233161a0b542 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -3,7 +3,7 @@ import Lang from '@/utils/langUtils';
export * from './menu';
export * from './system';
export * from './task';
-export * from './xunjian';
+export * from './ranger';
export function getUserDetailInfoApi() {
return request('/api/v1/detail', METHOD.GET);
diff --git a/src/api/xunjian.js b/src/api/ranger.js
similarity index 60%
rename from src/api/xunjian.js
rename to src/api/ranger.js
index 5bd1e19d3aceb42c3939b93b581b261aa42919ea..26a2ca258c7d6e968ab99af40391d0e30aa60e87 100644
--- a/src/api/xunjian.js
+++ b/src/api/ranger.js
@@ -19,3 +19,19 @@ export function addRegionApi(data) {
export function editRegionApi(data) {
return putReq(`ranger/inspection/api/v1/region`, data);
}
+
+export function getPlaceInfoApi(id) {
+ return getReq(`/ranger/inspection/api/v1/place/${id}`);
+}
+
+export function addPlaceApi(data) {
+ return postReq('/ranger/inspection/api/v1/place', data);
+}
+
+export function editPlaceApi(data) {
+ return putReq('/ranger/inspection/api/v1/place', data);
+}
+
+export function getExemptionsListApi(data) {
+ return getReq(`/ranger/inspection/api/v1/exemptions/valid`, data);
+}
diff --git a/src/components/table/table.vue b/src/components/table/table.vue
index 10b222b030bee797269d55c0fbb8873dfdc832bf..44f1340e27fb5bda429ebc688eb2693354c6f9b0 100644
--- a/src/components/table/table.vue
+++ b/src/components/table/table.vue
@@ -90,7 +90,7 @@ export default {
noPage: Boolean,
formatData: Function,
rowKey: [String, Function],
- selected: Array,
+ selected: Object,
drawerWidth: {
type: Number,
default: 600,
@@ -154,7 +154,7 @@ export default {
rowSelection() {
return {
onChange: (selectedRowKeys, selectedRows) => {
- this.$emit('update:selected', [selectedRowKeys, selectedRows]);
+ this.$emit('update:selected', { keys: selectedRowKeys, rows: selectedRows });
},
};
},
diff --git a/src/pages/ranger/basic/place/add_edit.vue b/src/pages/ranger/basic/place/add_edit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d26ff53051a11ed2c16ae0b91569b679645b8d2c
--- /dev/null
+++ b/src/pages/ranger/basic/place/add_edit.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/ranger/basic/place/exempt.vue b/src/pages/ranger/basic/place/exempt.vue
new file mode 100644
index 0000000000000000000000000000000000000000..84db6d32f40273100704a1221d335268795cc1e8
--- /dev/null
+++ b/src/pages/ranger/basic/place/exempt.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+ 有效
+ 无效
+ {{ `${item.startTime} 至 ${item.endTime}` }}
+
+ {{ item.exemptionReason }}
+
+
+
+
+
+
+
diff --git a/src/pages/ranger/basic/place/index.vue b/src/pages/ranger/basic/place/index.vue
index 2b7d3c4545758e9664cf9ac8dda08104e4d1fe24..ee890145e10cdcd134efa82a098213058f0caf40 100644
--- a/src/pages/ranger/basic/place/index.vue
+++ b/src/pages/ranger/basic/place/index.vue
@@ -1,7 +1,91 @@
- place
+
+
+
+
+
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/ranger/task_managment/center/index.vue b/src/pages/ranger/task_managment/center/index.vue
index 2f3dee8252269cc175a6540699efb9455ac11b32..cc768886c6fb87c6bbc07873d02d2cae614211b6 100644
--- a/src/pages/ranger/task_managment/center/index.vue
+++ b/src/pages/ranger/task_managment/center/index.vue
@@ -187,13 +187,13 @@ export default {
after: this.refresh,
},
],
- selected: [],
+ selected: {},
};
},
methods: {
async download() {
- if (!this.selected.length) return this.$message.error('请选择需要导出的数据');
- const url = await getXunJianDownloadUrlApi(this.selected[0]);
+ if (!this.selected?.keys?.length) return this.$message.error('请选择需要导出的数据');
+ const url = await getXunJianDownloadUrlApi(this.selected.keys);
downloadFileByUrl(`${this.$fileUrl}${url}`);
},
refresh() {