This repository was archived by the owner on Mar 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ const testSuite = ref({
7272 projectId: route .params .projectId ,
7373 devices: [],
7474 testCases: [],
75+ alertRobotIds: null ,
7576});
7677const deviceData = ref ([]);
7778const deviceDataBack = ref ([]);
@@ -139,7 +140,6 @@ const removeFromPublic = (e) => {
139140const getSource = () => {
140141 getDevice ();
141142 getTestCaseList ();
142- getAlertRobots ();
143143};
144144const emit = defineEmits ([' flush' ]);
145145const summit = () => {
@@ -186,6 +186,7 @@ onMounted(() => {
186186 if (props .suiteId !== 0 ) {
187187 getSuiteInfo (props .suiteId );
188188 }
189+ getAlertRobots ();
189190});
190191 </script >
191192
Original file line number Diff line number Diff line change @@ -140,13 +140,13 @@ const openHub = () => {
140140};
141141watch (dialogAgent, (newValue , oldValue ) => {
142142 if (! newValue) {
143- agent .value = {
144- id: 0 ,
145- name: ' ' ,
146- highTemp: 45 ,
147- highTempTime: 15 ,
148- robotSecret: ' ' ,
149- robotToken: ' ' ,
143+ agent .value = {
144+ id: 0 ,
145+ name: ' ' ,
146+ highTemp: 45 ,
147+ highTempTime: 15 ,
148+ robotSecret: ' ' ,
149+ robotToken: ' ' ,
150150 robotType: 1 ,
151151 };
152152 }
@@ -1012,12 +1012,15 @@ onUnmounted(() => {
10121012 <span style =" margin-left : 10px " >min</span >
10131013 </el-form-item >
10141014 <el-form-item prop =" alertRobotIds" :label =" $t('agent.ui.alertRobotIds')" >
1015- <span >{{ $t('agent.ui.defaultAlertRobotIds') }}</ span >
1016- < el-switch
1017- v-model =" agent.alertRobotIds"
1015+ <el-checkbox
1016+ :label = " $t('agent.ui.defaultAlertRobotIds') "
1017+ :checked =" agent.alertRobotIds == null "
10181018 class =" mb-2"
1019- :inactive-value =" []"
1020- :active-value =" null"
1019+ @change ="
1020+ (auto) => {
1021+ agent.alertRobotIds = auto ? null : [];
1022+ }
1023+ "
10211024 />
10221025 <template v-if =" agent .alertRobotIds != null " >
10231026 <el-select
You can’t perform that action at this time.
0 commit comments