Browse Source

生成策略前提交

pull/1/head
ljlong_2630 1 year ago
parent
commit
6f87d3b56d
  1. 7
      src/views/model/alert/addalertconfig.vue
  2. 8
      src/views/model/alert/noalertparams.vue

7
src/views/model/alert/addalertconfig.vue

@ -137,17 +137,14 @@ function reset() {
function nextStep(){
this.$nextTick(() => {
proxy.$nextTick(() => {
if(currentStep.value==1){
const selectDevice = proxy.$refs["devicealert"].$refs.addAlertTable.getSelectionRows();
debugger
if(!valideToAddDevice(selectDevice)){
return;
}else{
debugger
proxy.$refs["paramalert"].deviceUuid = selectDevice.uuid;
proxy.$refs["paramalert"].getParamsNoAlertData();
proxy.$refs["paramalert"].getParamsNoAlertList();
}
currentStep.value = currentStep.value + 1;
proxy.$refs.carousel.next();

8
src/views/model/alert/noalertparams.vue

@ -165,6 +165,7 @@ const data = reactive({
rules: {
},
});
const { queryParams, form, rules } = toRefs(data);
@ -274,7 +275,7 @@ function getParamModelName(id){
})
}
const getParamsNoAlertData = function getParamsNoAlertList() {
function getParamsNoAlertList() {
loading.value = true;
if(deviceUuid != null && deviceUuid != undefined && deviceUuid != ""){
queryParams.value.deviceUuid = deviceUuid;
@ -292,6 +293,11 @@ const getParamsNoAlertData = function getParamsNoAlertList() {
}
}
defineExpose({
getParamsNoAlertList:getParamsNoAlertList,
deviceUuid:deviceUuid
});
getParamModel();
</script>

Loading…
Cancel
Save