diff --git a/src/api/warn/rule.js b/src/api/warn/rule.js
index 146db11..e6c7178 100644
--- a/src/api/warn/rule.js
+++ b/src/api/warn/rule.js
@@ -42,3 +42,18 @@ export function delRule(id) {
method: 'delete'
})
}
+//双表联查
+export function selectByStrategyId(id) {
+ return request({
+ url: '/warn/rule/selectByStrategyId?strategyId=' + id,
+ method: 'get'
+ })
+}
+
+//根据模板查询报文
+export function selectByTemplateId(templateId) {
+ return request({
+ url: '/warn/carMessage/selectByTemplateId?templateId='+templateId,
+ method: 'get'
+ })
+}
diff --git a/src/api/warn/strategy.js b/src/api/warn/strategy.js
index 6cec6de..58f5a38 100644
--- a/src/api/warn/strategy.js
+++ b/src/api/warn/strategy.js
@@ -42,3 +42,28 @@ export function delStrategy(id) {
method: 'delete'
})
}
+
+//双表联查
+export function strategyRuleList(data) {
+ return request({
+ url: '/warn/strategy/strategyRuleList',
+ method: 'post',
+ data: data
+ })
+}
+//查询所有类型
+export function carTypeList() {
+ return request({
+ url: '/warn/carType/carTypeList',
+ method: 'get'
+ })
+}
+
+//根据类型查询模板
+export function catTypeId(catTypeId) {
+ return request({
+ url: '/warn/carType/catTypeId?catTypeId='+catTypeId,
+ method: 'post'
+ })
+}
+
diff --git a/src/views/fence/test/1/index.vue b/src/views/fence/test/1/index.vue
deleted file mode 100644
index bf7b223..0000000
--- a/src/views/fence/test/1/index.vue
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-
-