diff --git a/src/api/ranger.js b/src/api/ranger.js
index ad0c6f65edcba0fe23231fdb9260b393e80f11ae..4bcc042124c9b6d361cdfa6d203917bd896f37a8 100644
--- a/src/api/ranger.js
+++ b/src/api/ranger.js
@@ -47,3 +47,15 @@ export function editUnitApi(data) {
export function getUnitInfoApi(id) {
return getReq(`/ranger/inspection/api/v1/units/${id}`);
}
+
+export function addExemptionApi(data) {
+ return postReq('/ranger/inspection/api/v1/exemptions', data);
+}
+
+export function getExemptionApi(id) {
+ return getReq(`ranger/inspection/api/v1/exemptions/${id}`);
+}
+
+export function updateExemptionApi(data) {
+ return putReq(`/ranger/inspection/api/v1/exemptions`, data);
+}
diff --git a/src/components/MySelect/range_time_select.vue b/src/components/MySelect/range_time_select.vue
new file mode 100644
index 0000000000000000000000000000000000000000..ce8ecbc29768c4e6189a0a7a1d5144b3afef6c30
--- /dev/null
+++ b/src/components/MySelect/range_time_select.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
diff --git a/src/components/table/table.vue b/src/components/table/table.vue
index 44f1340e27fb5bda429ebc688eb2693354c6f9b0..4da35315e7940a84dedff4787fbef45a7484162b 100644
--- a/src/components/table/table.vue
+++ b/src/components/table/table.vue
@@ -98,6 +98,10 @@ export default {
noPadding: Boolean,
scroll: Object,
width: { type: Number, default: 900 },
+ defaultQuery: {
+ type: Object,
+ default: () => ({}),
+ },
},
data() {
@@ -107,7 +111,7 @@ export default {
...initQuery,
},
data: [],
- queryForm: {},
+ queryForm: { ...this.defaultQuery },
loading: false,
total: 0,
visible: false,
@@ -206,7 +210,7 @@ export default {
},
reset() {
- this.queryForm = {};
+ this.queryForm = { ...this.defaultQuery };
this.initQuery = { ...initQuery };
this.getData();
},
diff --git a/src/pages/ranger/basic/exemption/add_edit.vue b/src/pages/ranger/basic/exemption/add_edit.vue
new file mode 100644
index 0000000000000000000000000000000000000000..15224735f497ac6799fba78a2b3fc38c26d238a5
--- /dev/null
+++ b/src/pages/ranger/basic/exemption/add_edit.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+ 地点免检
+ 单元免检
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/ranger/basic/exemption/index.js b/src/pages/ranger/basic/exemption/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..65e6b7ac8be7b3cdd19dfcbd0fd73f92df8aa640
--- /dev/null
+++ b/src/pages/ranger/basic/exemption/index.js
@@ -0,0 +1,3 @@
+import Index from './index.vue';
+
+export default Index;
diff --git a/src/pages/ranger/basic/exemption/index.vue b/src/pages/ranger/basic/exemption/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2136801e84e0c8cee75e3d3bf5822251d049d70f
--- /dev/null
+++ b/src/pages/ranger/basic/exemption/index.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+ 地点免检
+ 单元免检
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.exemptionType === 'PLACE' ? '地点免检' : '单元免检' }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/config.js b/src/router/config.js
index 6b14a1ef6018aa18c9e85a5e5bcc410b5cd6bdd8..988de4c0f2d158077c38abedaa365451eb363a67 100644
--- a/src/router/config.js
+++ b/src/router/config.js
@@ -72,7 +72,7 @@ const hasAuthorityRoutes = [
},
{
path: 'place',
- name: '地区配置',
+ name: '地点配置',
component: () => import('@/pages/ranger/basic/place'),
},
{
@@ -80,6 +80,11 @@ const hasAuthorityRoutes = [
name: '单元配置',
component: () => import('@/pages/ranger/basic/unit'),
},
+ {
+ path: 'exemption',
+ name: '免检配置',
+ component: () => import('@/pages/ranger/basic/exemption'),
+ },
],
},
{