style: 告警网元类型下拉自动提示输入
This commit is contained in:
@@ -16,12 +16,14 @@ import {
|
|||||||
exportAll,
|
exportAll,
|
||||||
} from '@/api/faultManage/actAlarm';
|
} from '@/api/faultManage/actAlarm';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
import useDictStore from '@/store/modules/dict';
|
import useDictStore from '@/store/modules/dict';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue';
|
import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue';
|
||||||
import { writeSheet } from '@/utils/execl-utils';
|
import { writeSheet } from '@/utils/execl-utils';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import { readLoalXlsx } from '@/utils/execl-utils';
|
import { readLoalXlsx } from '@/utils/execl-utils';
|
||||||
|
const neInfoStore = useNeInfoStore();
|
||||||
const { getDict } = useDictStore();
|
const { getDict } = useDictStore();
|
||||||
const { t, currentLocale } = useI18n();
|
const { t, currentLocale } = useI18n();
|
||||||
|
|
||||||
@@ -741,6 +743,8 @@ onMounted(() => {
|
|||||||
dict.activeAlarmSeverity = resArr[3].value;
|
dict.activeAlarmSeverity = resArr[3].value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 获取网元网元列表
|
||||||
|
useNeInfoStore().fnNelist();
|
||||||
fnGetList();
|
fnGetList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -758,9 +762,14 @@ onMounted(() => {
|
|||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.faultManage.activeAlarm.neType')"
|
:label="t('views.faultManage.activeAlarm.neType')"
|
||||||
name="ne_type"
|
name="neType"
|
||||||
>
|
>
|
||||||
<a-input v-model:value="queryParams.neType" allow-clear></a-input>
|
<a-auto-complete
|
||||||
|
v-model:value="queryParams.neType"
|
||||||
|
:options="neInfoStore.getNeSelectOtions"
|
||||||
|
allow-clear
|
||||||
|
:placeholder="t('common.inputPlease')"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
@@ -1286,11 +1295,12 @@ onMounted(() => {
|
|||||||
:label="t('views.faultManage.activeAlarm.neType')"
|
:label="t('views.faultManage.activeAlarm.neType')"
|
||||||
name="neType"
|
name="neType"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-auto-complete
|
||||||
v-model:value="modalState.showSetFrom.ne_type"
|
v-model:value="modalState.showSetFrom.ne_type"
|
||||||
|
:options="neInfoStore.getNeSelectOtions"
|
||||||
allow-clear
|
allow-clear
|
||||||
>
|
:placeholder="t('common.inputPlease')"
|
||||||
</a-input>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
|
|||||||
@@ -8,13 +8,14 @@ import { ColumnsType } from 'ant-design-vue/lib/table';
|
|||||||
import { listAct, exportAll } from '@/api/faultManage/eventAlarm';
|
import { listAct, exportAll } from '@/api/faultManage/eventAlarm';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
import useDictStore from '@/store/modules/dict';
|
import useDictStore from '@/store/modules/dict';
|
||||||
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue';
|
import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue';
|
||||||
import { writeSheet } from '@/utils/execl-utils';
|
import { writeSheet } from '@/utils/execl-utils';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import { readLoalXlsx } from '@/utils/execl-utils';
|
const neInfoStore = useNeInfoStore();
|
||||||
const { getDict } = useDictStore();
|
const { getDict } = useDictStore();
|
||||||
const { t, currentLocale } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
/**字典数据 */
|
/**字典数据 */
|
||||||
let dict: {
|
let dict: {
|
||||||
@@ -431,6 +432,8 @@ onMounted(() => {
|
|||||||
dict.activeAlarmSeverity = resArr[3].value;
|
dict.activeAlarmSeverity = resArr[3].value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 获取网元网元列表
|
||||||
|
useNeInfoStore().fnNelist();
|
||||||
fnGetList();
|
fnGetList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -448,9 +451,14 @@ onMounted(() => {
|
|||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.faultManage.activeAlarm.neType')"
|
:label="t('views.faultManage.activeAlarm.neType')"
|
||||||
name="ne_type"
|
name="neType "
|
||||||
>
|
>
|
||||||
<a-input v-model:value="queryParams.neType" allow-clear></a-input>
|
<a-auto-complete
|
||||||
|
v-model:value="queryParams.neType"
|
||||||
|
:options="neInfoStore.getNeSelectOtions"
|
||||||
|
allow-clear
|
||||||
|
:placeholder="t('common.inputPlease')"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
|
|||||||
@@ -13,9 +13,11 @@ import {
|
|||||||
} from '@/api/faultManage/historyAlarm';
|
} from '@/api/faultManage/historyAlarm';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
import useDictStore from '@/store/modules/dict';
|
import useDictStore from '@/store/modules/dict';
|
||||||
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import { writeSheet } from '@/utils/execl-utils';
|
import { writeSheet } from '@/utils/execl-utils';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
|
const neInfoStore = useNeInfoStore();
|
||||||
const { getDict } = useDictStore();
|
const { getDict } = useDictStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
@@ -555,6 +557,8 @@ onMounted(() => {
|
|||||||
dict.activeAlarmSeverity = resArr[3].value;
|
dict.activeAlarmSeverity = resArr[3].value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 获取网元网元列表
|
||||||
|
useNeInfoStore().fnNelist();
|
||||||
fnGetList();
|
fnGetList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -574,10 +578,12 @@ onMounted(() => {
|
|||||||
:label="t('views.faultManage.activeAlarm.neType')"
|
:label="t('views.faultManage.activeAlarm.neType')"
|
||||||
name="ne_type"
|
name="ne_type"
|
||||||
>
|
>
|
||||||
<a-input
|
<a-auto-complete
|
||||||
v-model:value="queryParams.ne_type"
|
v-model:value="queryParams.ne_type"
|
||||||
|
:options="neInfoStore.getNeSelectOtions"
|
||||||
allow-clear
|
allow-clear
|
||||||
></a-input>
|
:placeholder="t('common.inputPlease')"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
|
|||||||
Reference in New Issue
Block a user