|
@@ -159,7 +159,8 @@ const Initdata = () => {
|
|
|
FrequencyDataCon.value = res.data.Container_Status_Update
|
|
FrequencyDataCon.value = res.data.Container_Status_Update
|
|
|
MethodsDataCon.value = res.data.Container_Status_Update
|
|
MethodsDataCon.value = res.data.Container_Status_Update
|
|
|
ShipmentRangeCon.value = res.data.Container_Status_Update
|
|
ShipmentRangeCon.value = res.data.Container_Status_Update
|
|
|
- createObj.Transportstr = res.data.Container_Status_Update.shipment_details.split(';\r\n')[0]
|
|
|
|
|
|
|
+ createObj.Transportstr =
|
|
|
|
|
+ res.data.Container_Status_Update.shipment_details.split(';\r\n')[0]
|
|
|
createObj.Timestr = res.data.Container_Status_Update.shipment_details.split(';\r\n')[1]
|
|
createObj.Timestr = res.data.Container_Status_Update.shipment_details.split(';\r\n')[1]
|
|
|
createListContainer.value.push(createObj.Transportstr)
|
|
createListContainer.value.push(createObj.Transportstr)
|
|
|
createListContainer.value.push(createObj.Timestr)
|
|
createListContainer.value.push(createObj.Timestr)
|
|
@@ -179,8 +180,10 @@ const Initdata = () => {
|
|
|
FrequencyDataDep.value = res.data['Departure/Arrival_Delay']
|
|
FrequencyDataDep.value = res.data['Departure/Arrival_Delay']
|
|
|
MethodsDataDep.value = res.data['Departure/Arrival_Delay']
|
|
MethodsDataDep.value = res.data['Departure/Arrival_Delay']
|
|
|
ShipmentRangeDep.value = res.data['Departure/Arrival_Delay']
|
|
ShipmentRangeDep.value = res.data['Departure/Arrival_Delay']
|
|
|
- createObj.Transportstr = res.data['Departure/Arrival_Delay'].shipment_details.split(';\r\n')[0]
|
|
|
|
|
- createObj.Timestr = res.data['Departure/Arrival_Delay'].shipment_details.split(';\r\n')[1]
|
|
|
|
|
|
|
+ createObj.Transportstr =
|
|
|
|
|
+ res.data['Departure/Arrival_Delay'].shipment_details.split(';\r\n')[0]
|
|
|
|
|
+ createObj.Timestr =
|
|
|
|
|
+ res.data['Departure/Arrival_Delay'].shipment_details.split(';\r\n')[1]
|
|
|
createListDeparture.value.push(createObj.Transportstr)
|
|
createListDeparture.value.push(createObj.Transportstr)
|
|
|
createListDeparture.value.push(createObj.Timestr)
|
|
createListDeparture.value.push(createObj.Timestr)
|
|
|
} else if (editTablerules_type == 'ETD/ETA_Change') {
|
|
} else if (editTablerules_type == 'ETD/ETA_Change') {
|
|
@@ -281,7 +284,7 @@ const changecheckCreateRulesMilestone = (val: any, value: any) => {
|
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
|
savesubscribeobj.shipment_details = createListMilestone.value.join(';\n')
|
|
savesubscribeobj.shipment_details = createListMilestone.value.join(';\n')
|
|
|
}
|
|
}
|
|
|
-const ChangeCheckTimeRulesMilestone = (val: any, time: any, timeend :any) => {
|
|
|
|
|
|
|
+const ChangeCheckTimeRulesMilestone = (val: any, time: any, timeend: any) => {
|
|
|
createListMilestone.value = []
|
|
createListMilestone.value = []
|
|
|
createObj.Timestr = val
|
|
createObj.Timestr = val
|
|
|
if (val.includes('ETD')) {
|
|
if (val.includes('ETD')) {
|
|
@@ -316,7 +319,7 @@ const changecheckCreateRulesContainer = (val: any, value: any) => {
|
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
|
savesubscribeobj.shipment_details = createListContainer.value.join(';\n')
|
|
savesubscribeobj.shipment_details = createListContainer.value.join(';\n')
|
|
|
}
|
|
}
|
|
|
-const ChangeCheckTimeRulesContainer = (val: any, time: any, timeend :any) => {
|
|
|
|
|
|
|
+const ChangeCheckTimeRulesContainer = (val: any, time: any, timeend: any) => {
|
|
|
createListContainer.value = []
|
|
createListContainer.value = []
|
|
|
createObj.Timestr = val
|
|
createObj.Timestr = val
|
|
|
if (val.includes('ETD')) {
|
|
if (val.includes('ETD')) {
|
|
@@ -351,7 +354,7 @@ const changecheckCreateRulesDeparture = (val: any, value: any) => {
|
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
|
savesubscribeobj.shipment_details = createListDeparture.value.join(';\n')
|
|
savesubscribeobj.shipment_details = createListDeparture.value.join(';\n')
|
|
|
}
|
|
}
|
|
|
-const ChangeCheckTimeRulesDeparture = (val: any, time: any, timeend :any) => {
|
|
|
|
|
|
|
+const ChangeCheckTimeRulesDeparture = (val: any, time: any, timeend: any) => {
|
|
|
createListDeparture.value = []
|
|
createListDeparture.value = []
|
|
|
createObj.Timestr = val
|
|
createObj.Timestr = val
|
|
|
if (val.includes('ETD')) {
|
|
if (val.includes('ETD')) {
|
|
@@ -386,7 +389,7 @@ const changecheckCreateRulesETDChange = (val: any, value: any) => {
|
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
savesubscribeobj.shipment_transport_mode = value
|
|
|
savesubscribeobj.shipment_details = createListETDChange.value.join(';\n')
|
|
savesubscribeobj.shipment_details = createListETDChange.value.join(';\n')
|
|
|
}
|
|
}
|
|
|
-const ChangeCheckTimeRulesETDChange = (val: any, time: any, timeend :any) => {
|
|
|
|
|
|
|
+const ChangeCheckTimeRulesETDChange = (val: any, time: any, timeend: any) => {
|
|
|
createListETDChange.value = []
|
|
createListETDChange.value = []
|
|
|
createObj.Timestr = val
|
|
createObj.Timestr = val
|
|
|
if (val.includes('ETD')) {
|
|
if (val.includes('ETD')) {
|
|
@@ -578,20 +581,19 @@ const SaveSuceessful = () => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
- if(res.data.msg == 'Update Successful') {
|
|
|
|
|
|
|
+ if (res.data.msg == 'Update Successful') {
|
|
|
SaveedVisible.value = true
|
|
SaveedVisible.value = true
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
SaveedVisible.value = false
|
|
SaveedVisible.value = false
|
|
|
- sessionStorage.setItem('activeTab', 'Monitoring Settings')
|
|
|
|
|
|
|
+ sessionStorage.setItem('activeTab', 'System Settings')
|
|
|
router.push({
|
|
router.push({
|
|
|
- path: '/SystemSettings',
|
|
|
|
|
|
|
+ path: '/system-settings',
|
|
|
query: {}
|
|
query: {}
|
|
|
})
|
|
})
|
|
|
}, 3000)
|
|
}, 3000)
|
|
|
- } else if(res.data.msg == 'Similar Rule Detected') {
|
|
|
|
|
|
|
+ } else if (res.data.msg == 'Similar Rule Detected') {
|
|
|
SaveVisibleDetected.value = true
|
|
SaveVisibleDetected.value = true
|
|
|
- } else if(res.data.msg == 'Unable to Save')
|
|
|
|
|
- SaveVisibleError.value = true
|
|
|
|
|
|
|
+ } else if (res.data.msg == 'Unable to Save') SaveVisibleError.value = true
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -606,15 +608,15 @@ const HandelSaveVisibleDetected = () => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
- SaveedVisible.value = true
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- SaveedVisible.value = false
|
|
|
|
|
- sessionStorage.setItem('activeTab', 'Monitoring Settings')
|
|
|
|
|
- router.push({
|
|
|
|
|
- path: '/SystemSettings',
|
|
|
|
|
- query: {}
|
|
|
|
|
- })
|
|
|
|
|
- }, 3000)
|
|
|
|
|
|
|
+ SaveedVisible.value = true
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ SaveedVisible.value = false
|
|
|
|
|
+ sessionStorage.setItem('activeTab', 'System Settings')
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/system-settings',
|
|
|
|
|
+ query: {}
|
|
|
|
|
+ })
|
|
|
|
|
+ }, 3000)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -624,8 +626,7 @@ const Savesubscribe = () => {
|
|
|
if (props.TitleType == 'Milestone') {
|
|
if (props.TitleType == 'Milestone') {
|
|
|
savesubscribeobj.rules_type = 'Milestone_Update'
|
|
savesubscribeobj.rules_type = 'Milestone_Update'
|
|
|
if (
|
|
if (
|
|
|
- OceanCheckList.value.length == 0 &&
|
|
|
|
|
- AirCheckList.value.length == 0 ||
|
|
|
|
|
|
|
+ (OceanCheckList.value.length == 0 && AirCheckList.value.length == 0) ||
|
|
|
MilFrequencyList.value.length == 0 ||
|
|
MilFrequencyList.value.length == 0 ||
|
|
|
MilMethodsList.value.length == 0 ||
|
|
MilMethodsList.value.length == 0 ||
|
|
|
createObj.Transportstr == '' ||
|
|
createObj.Transportstr == '' ||
|
|
@@ -637,7 +638,7 @@ const Savesubscribe = () => {
|
|
|
if (createObj.Timestr == '') {
|
|
if (createObj.Timestr == '') {
|
|
|
missingmessage.value += 'Time, '
|
|
missingmessage.value += 'Time, '
|
|
|
}
|
|
}
|
|
|
- if (OceanCheckList.value.length == 0 && AirCheckList.value.length == 0 ) {
|
|
|
|
|
|
|
+ if (OceanCheckList.value.length == 0 && AirCheckList.value.length == 0) {
|
|
|
missingmessage.value += 'Select Milestone, '
|
|
missingmessage.value += 'Select Milestone, '
|
|
|
}
|
|
}
|
|
|
if (MilFrequencyList.value.length == 0) {
|
|
if (MilFrequencyList.value.length == 0) {
|
|
@@ -651,21 +652,17 @@ const Savesubscribe = () => {
|
|
|
} else {
|
|
} else {
|
|
|
savesubscribeobj.ocean_milestone = OceanCheckListCode.value
|
|
savesubscribeobj.ocean_milestone = OceanCheckListCode.value
|
|
|
savesubscribeobj.air_milestone = AirCheckListCode.value
|
|
savesubscribeobj.air_milestone = AirCheckListCode.value
|
|
|
- if(OceanCheckList.value.length == 0) {
|
|
|
|
|
- str =
|
|
|
|
|
- 'Air Milestones: ' +
|
|
|
|
|
- AirCheckList.value.join(',')
|
|
|
|
|
- } else if(AirCheckList.value.length == 0) {
|
|
|
|
|
- str =
|
|
|
|
|
- 'Ocean Milestones: ' +
|
|
|
|
|
- OceanCheckList.value.join(',')
|
|
|
|
|
|
|
+ if (OceanCheckList.value.length == 0) {
|
|
|
|
|
+ str = 'Air Milestones: ' + AirCheckList.value.join(',')
|
|
|
|
|
+ } else if (AirCheckList.value.length == 0) {
|
|
|
|
|
+ str = 'Ocean Milestones: ' + OceanCheckList.value.join(',')
|
|
|
} else {
|
|
} else {
|
|
|
str =
|
|
str =
|
|
|
- 'Ocean Milestones: ' +
|
|
|
|
|
- OceanCheckList.value.join(',') +
|
|
|
|
|
- ';\nAir Milestones: ' +
|
|
|
|
|
- AirCheckList.value.join(',') +
|
|
|
|
|
- ';'
|
|
|
|
|
|
|
+ 'Ocean Milestones: ' +
|
|
|
|
|
+ OceanCheckList.value.join(',') +
|
|
|
|
|
+ ';\nAir Milestones: ' +
|
|
|
|
|
+ AirCheckList.value.join(',') +
|
|
|
|
|
+ ';'
|
|
|
}
|
|
}
|
|
|
savesubscribeobj.event_details = str
|
|
savesubscribeobj.event_details = str
|
|
|
SaveSuceessful()
|
|
SaveSuceessful()
|
|
@@ -704,9 +701,8 @@ const Savesubscribe = () => {
|
|
|
}
|
|
}
|
|
|
} else if (props.TitleType == 'Departure') {
|
|
} else if (props.TitleType == 'Departure') {
|
|
|
savesubscribeobj.rules_type = 'Departure/Arrival_Delay'
|
|
savesubscribeobj.rules_type = 'Departure/Arrival_Delay'
|
|
|
- if (
|
|
|
|
|
- DelayedDeparturedList.value.length == 0 &&
|
|
|
|
|
- DelayedAirdList.value.length == 0 ||
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ (DelayedDeparturedList.value.length == 0 && DelayedAirdList.value.length == 0) ||
|
|
|
DepFrequencyList.value.length == 0 ||
|
|
DepFrequencyList.value.length == 0 ||
|
|
|
DepMethodsList.value == undefined ||
|
|
DepMethodsList.value == undefined ||
|
|
|
DepMethodsList.value.length == 0 ||
|
|
DepMethodsList.value.length == 0 ||
|
|
@@ -731,21 +727,17 @@ const Savesubscribe = () => {
|
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
|
UnableSaveVisible.value = true
|
|
UnableSaveVisible.value = true
|
|
|
} else {
|
|
} else {
|
|
|
- if(DelayedDeparturedList.value.length == 0) {
|
|
|
|
|
- str =
|
|
|
|
|
- 'Air: ' +
|
|
|
|
|
- DelayedAirdList.value.join(',')
|
|
|
|
|
- } else if(DelayedAirdList.value.length == 0) {
|
|
|
|
|
- str =
|
|
|
|
|
- 'Ocean: ' +
|
|
|
|
|
- DelayedDeparturedList.value.join(',')
|
|
|
|
|
|
|
+ if (DelayedDeparturedList.value.length == 0) {
|
|
|
|
|
+ str = 'Air: ' + DelayedAirdList.value.join(',')
|
|
|
|
|
+ } else if (DelayedAirdList.value.length == 0) {
|
|
|
|
|
+ str = 'Ocean: ' + DelayedDeparturedList.value.join(',')
|
|
|
} else {
|
|
} else {
|
|
|
str =
|
|
str =
|
|
|
- 'Ocean: ' +
|
|
|
|
|
- DelayedDeparturedList.value.join(',') +
|
|
|
|
|
- ';\nAir: ' +
|
|
|
|
|
- DelayedAirdList.value.join(',') +
|
|
|
|
|
- ';'
|
|
|
|
|
|
|
+ 'Ocean: ' +
|
|
|
|
|
+ DelayedDeparturedList.value.join(',') +
|
|
|
|
|
+ ';\nAir: ' +
|
|
|
|
|
+ DelayedAirdList.value.join(',') +
|
|
|
|
|
+ ';'
|
|
|
}
|
|
}
|
|
|
savesubscribeobj.event_details = str
|
|
savesubscribeobj.event_details = str
|
|
|
SaveSuceessful()
|
|
SaveSuceessful()
|
|
@@ -753,8 +745,7 @@ const Savesubscribe = () => {
|
|
|
} else {
|
|
} else {
|
|
|
savesubscribeobj.rules_type = 'ETD/ETA_Change'
|
|
savesubscribeobj.rules_type = 'ETD/ETA_Change'
|
|
|
if (
|
|
if (
|
|
|
- ETDOceanList.value.length == 0 &&
|
|
|
|
|
- ETDAirList.value.length == 0 ||
|
|
|
|
|
|
|
+ (ETDOceanList.value.length == 0 && ETDAirList.value.length == 0) ||
|
|
|
ETDFrequencyList.value.length == 0 ||
|
|
ETDFrequencyList.value.length == 0 ||
|
|
|
ETDMethodsList.value == undefined ||
|
|
ETDMethodsList.value == undefined ||
|
|
|
ETDMethodsList.value.length == 0 ||
|
|
ETDMethodsList.value.length == 0 ||
|
|
@@ -779,21 +770,13 @@ const Savesubscribe = () => {
|
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
|
UnableSaveVisible.value = true
|
|
UnableSaveVisible.value = true
|
|
|
} else {
|
|
} else {
|
|
|
- if(ETDOceanList.value.length == 0) {
|
|
|
|
|
- str =
|
|
|
|
|
- '[Air]' +
|
|
|
|
|
- ETDAirList.value.join(',')
|
|
|
|
|
- } else if(ETDAirList.value.length == 0) {
|
|
|
|
|
- str =
|
|
|
|
|
- '[Ocean]' +
|
|
|
|
|
- ETDOceanList.value.join(',')
|
|
|
|
|
|
|
+ if (ETDOceanList.value.length == 0) {
|
|
|
|
|
+ str = '[Air]' + ETDAirList.value.join(',')
|
|
|
|
|
+ } else if (ETDAirList.value.length == 0) {
|
|
|
|
|
+ str = '[Ocean]' + ETDOceanList.value.join(',')
|
|
|
} else {
|
|
} else {
|
|
|
str =
|
|
str =
|
|
|
- '[Ocean]' +
|
|
|
|
|
- ETDOceanList.value.join(',') +
|
|
|
|
|
- ';\n[Air]' +
|
|
|
|
|
- ETDAirList.value.join(',') +
|
|
|
|
|
- ';'
|
|
|
|
|
|
|
+ '[Ocean]' + ETDOceanList.value.join(',') + ';\n[Air]' + ETDAirList.value.join(',') + ';'
|
|
|
}
|
|
}
|
|
|
savesubscribeobj.event_details = str
|
|
savesubscribeobj.event_details = str
|
|
|
SaveSuceessful()
|
|
SaveSuceessful()
|
|
@@ -836,14 +819,14 @@ const clearData = (val: any) => {
|
|
|
const MilOceanref = ref()
|
|
const MilOceanref = ref()
|
|
|
const MilAirref = ref()
|
|
const MilAirref = ref()
|
|
|
const ContainerOcean = ref()
|
|
const ContainerOcean = ref()
|
|
|
-const handleCloseMilestoneOcean = (val:any) => {
|
|
|
|
|
|
|
+const handleCloseMilestoneOcean = (val: any) => {
|
|
|
MilOceanref.value.hadleclose(val)
|
|
MilOceanref.value.hadleclose(val)
|
|
|
}
|
|
}
|
|
|
-const handleCloseMilestoneAir = (val:any) => {
|
|
|
|
|
|
|
+const handleCloseMilestoneAir = (val: any) => {
|
|
|
MilAirref.value.hadleclose(val)
|
|
MilAirref.value.hadleclose(val)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const handleCloseContainer = (val:any) => {
|
|
|
|
|
|
|
+const handleCloseContainer = (val: any) => {
|
|
|
ContainerOcean.value.hadleclose(val)
|
|
ContainerOcean.value.hadleclose(val)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1269,68 +1252,64 @@ defineExpose({
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<!-- 保存成功 -->
|
|
<!-- 保存成功 -->
|
|
|
<el-dialog v-model="SaveedVisible" width="320" style="height: 212px">
|
|
<el-dialog v-model="SaveedVisible" width="320" style="height: 212px">
|
|
|
- <div style="text-align: center"><el-image :src="submitsucessful" style="width: 64px;" /></div>
|
|
|
|
|
|
|
+ <div style="text-align: center"><el-image :src="submitsucessful" style="width: 64px" /></div>
|
|
|
<div style="text-align: center; margin-top: 20px">Saved successfully</div>
|
|
<div style="text-align: center; margin-top: 20px">Saved successfully</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<!-- 保存失败 -->
|
|
<!-- 保存失败 -->
|
|
|
<el-dialog v-model="SaveVisibleError" width="480">
|
|
<el-dialog v-model="SaveVisibleError" width="480">
|
|
|
- <div>Duplicate Rule Error.</div>
|
|
|
|
|
- <div>This rule exactly matches an existing rule.</div>
|
|
|
|
|
- <template #footer>
|
|
|
|
|
- <div class="dialog-footer">
|
|
|
|
|
- <el-button
|
|
|
|
|
- class="el-button--danger"
|
|
|
|
|
- @click="SaveVisibleError = false"
|
|
|
|
|
- style="width: 100px"
|
|
|
|
|
- >
|
|
|
|
|
- OK
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #header>
|
|
|
|
|
- <div class="cancel_header">
|
|
|
|
|
- <span class="iconfont_icon iconfont_warning">
|
|
|
|
|
- <svg class="iconfont icon_danger" aria-hidden="true">
|
|
|
|
|
- <use xlink:href="#icon-icon_fail_fill_b"></use>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </span>
|
|
|
|
|
- Unable to Save
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
- <!-- 三项重合提示 -->
|
|
|
|
|
|
|
+ <div>Duplicate Rule Error.</div>
|
|
|
|
|
+ <div>This rule exactly matches an existing rule.</div>
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <div class="dialog-footer">
|
|
|
|
|
+ <el-button class="el-button--danger" @click="SaveVisibleError = false" style="width: 100px">
|
|
|
|
|
+ OK
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #header>
|
|
|
|
|
+ <div class="cancel_header">
|
|
|
|
|
+ <span class="iconfont_icon iconfont_warning">
|
|
|
|
|
+ <svg class="iconfont icon_danger" aria-hidden="true">
|
|
|
|
|
+ <use xlink:href="#icon-icon_fail_fill_b"></use>
|
|
|
|
|
+ </svg>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ Unable to Save
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <!-- 三项重合提示 -->
|
|
|
<el-dialog v-model="SaveVisibleDetected" width="480">
|
|
<el-dialog v-model="SaveVisibleDetected" width="480">
|
|
|
- <div>A similar configuration rule already exists.</div>
|
|
|
|
|
- <div>Would you like to proceed with creating this rule?</div>
|
|
|
|
|
- <template #footer>
|
|
|
|
|
- <div class="dialog-footer">
|
|
|
|
|
- <el-button
|
|
|
|
|
- class="el-button--default"
|
|
|
|
|
- @click="SaveVisibleDetected = false"
|
|
|
|
|
- style="width: 100px"
|
|
|
|
|
- >
|
|
|
|
|
- Cancel
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- class="el-button--warning"
|
|
|
|
|
- @click="HandelSaveVisibleDetected"
|
|
|
|
|
- style="width: 100px"
|
|
|
|
|
- >
|
|
|
|
|
- Save
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #header>
|
|
|
|
|
- <div class="cancel_header">
|
|
|
|
|
- <span class="iconfont_icon iconfont_warning">
|
|
|
|
|
- <svg class="iconfont icon_warning" aria-hidden="true">
|
|
|
|
|
- <use xlink:href="#icon-icon_tipsfilled_b"></use>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </span>
|
|
|
|
|
- Similar Rule Detected
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
+ <div>A similar configuration rule already exists.</div>
|
|
|
|
|
+ <div>Would you like to proceed with creating this rule?</div>
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <div class="dialog-footer">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="el-button--default"
|
|
|
|
|
+ @click="SaveVisibleDetected = false"
|
|
|
|
|
+ style="width: 100px"
|
|
|
|
|
+ >
|
|
|
|
|
+ Cancel
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="el-button--warning"
|
|
|
|
|
+ @click="HandelSaveVisibleDetected"
|
|
|
|
|
+ style="width: 100px"
|
|
|
|
|
+ >
|
|
|
|
|
+ Save
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #header>
|
|
|
|
|
+ <div class="cancel_header">
|
|
|
|
|
+ <span class="iconfont_icon iconfont_warning">
|
|
|
|
|
+ <svg class="iconfont icon_warning" aria-hidden="true">
|
|
|
|
|
+ <use xlink:href="#icon-icon_tipsfilled_b"></use>
|
|
|
|
|
+ </svg>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ Similar Rule Detected
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -1462,4 +1441,4 @@ defineExpose({
|
|
|
:deep(.el-collapse) {
|
|
:deep(.el-collapse) {
|
|
|
margin-right: 8px;
|
|
margin-right: 8px;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|