Browse Source

修改流程引擎开始停止状态

yanglzh 3 years ago
parent
commit
71d04c6634
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/views/rule-engine/index.vue
  2. 1 1
      src/views/rule-engine/send.vue

+ 1 - 1
src/views/rule-engine/index.vue

@@ -85,7 +85,7 @@ const setStatus = async (row: any, status: number) => {
 	}
 	}
 
 
 	// 改变指定规则状态
 	// 改变指定规则状态
-	flow.disabled = status ? true : false;
+	flow.disabled = status ? false : true;
 
 
 	// 设置规则状态
 	// 设置规则状态
 	await axios.post(flowsUrl, flows, { headers });
 	await axios.post(flowsUrl, flows, { headers });

+ 1 - 1
src/views/rule-engine/send.vue

@@ -85,7 +85,7 @@ const setStatus = async (row: any, status: number) => {
 	}
 	}
 
 
 	// 改变指定规则状态
 	// 改变指定规则状态
-	flow.disabled = status ? true : false;
+	flow.disabled = status ? false : true;
 
 
 	// 设置规则状态
 	// 设置规则状态
 	await axios.post(flowsUrl, flows, { headers });
 	await axios.post(flowsUrl, flows, { headers });