diff --git a/src/api/ranger.js b/src/api/ranger.js
index 4f9c506cfe98ed964f36b860282cdce3091bea56..da31e6ed918c3bed87be4c0cdb10196491a71c54 100644
--- a/src/api/ranger.js
+++ b/src/api/ranger.js
@@ -48,6 +48,7 @@ export function getUnitInfoApi(id) {
return getReq(`/ranger/inspection/api/v1/units/${id}`);
}
+<<<<<<< src/api/ranger.js
export function getItemsInfoApi(id) {
return getReq(`/ranger/inspection/api/v1/items/${id}`);
}
@@ -59,3 +60,14 @@ export function addItemsApi(data) {
export function editItemsApi(data) {
return putReq('/ranger/inspection/api/v1/items', data);
}
+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 1928df36a53b945636c1851e6eb4695cac174a2b..69781ee894924616004ffd4f10649b7a263165ef 100644
--- a/src/components/table/table.vue
+++ b/src/components/table/table.vue
@@ -100,6 +100,10 @@ export default {
noPadding: Boolean,
scroll: Object,
width: { type: Number, default: 900 },
+ defaultQuery: {
+ type: Object,
+ default: () => ({}),
+ },
},
data() {
@@ -109,7 +113,7 @@ export default {
...initQuery,
},
data: [],
- queryForm: {},
+ queryForm: { ...this.defaultQuery },
loading: false,
total: 0,
visible: false,
@@ -208,7 +212,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 1a37d02eede914b58d6e0a05713d7af48286cd32..f5dae7107f6af4d48d53c3edee4cc2e2ba613bfb 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'),
},
{
@@ -81,9 +81,15 @@ const hasAuthorityRoutes = [
component: () => import('@/pages/ranger/basic/unit'),
},
{
+
path: 'item',
name: '项目配置',
component: () => import('@/pages/ranger/basic/item'),
+ },{
+ path: 'exemption',
+ name: '免检配置',
+ component: () => import('@/pages/ranger/basic/exemption'),
+
},
],
},