diff --git a/src/api/DecisionInfo.ts b/src/api/DecisionInfo.ts
index ad4ff66..0eff91e 100644
--- a/src/api/DecisionInfo.ts
+++ b/src/api/DecisionInfo.ts
@@ -6,6 +6,8 @@ const AlertTipUriBase = '/api/alertTip';
interface AlarmInfoCreateParams {
id: number;
+ lineId: number;
+ lineType: string;
alertType: string;
tipTimeIds: string[];
areaConfigId: number;
diff --git a/src/pages/DecisionInfoManage.vue b/src/pages/DecisionInfoManage.vue
index 309ba7c..7e7e331 100644
--- a/src/pages/DecisionInfoManage.vue
+++ b/src/pages/DecisionInfoManage.vue
@@ -73,6 +73,23 @@
{{ creatForm.id ? '编辑决策信息' : '新建决策信息' }}
+
+
{
};
onMounted(() => {
+ queryLineInfo();
setTimeout(() => {
tableRef.value.requestServerInteraction();
});
@@ -306,6 +339,8 @@ const createFormShow = ref(false);
const myForm = ref(null);
const creatForm = reactive({
id: '',
+ lineId: '',
+ lineType: 'NCC',
alertType: '',
tipTimeIds: [],
areaConfigId: '',
@@ -313,6 +348,25 @@ const creatForm = reactive({
submissionInfo: '',
});
+const optionsLineId = ref<{ label: string; value: number }[]>([]);
+async function queryLineInfo() {
+ try {
+ let response = await pageQuery({
+ current: 1,
+ size: 50,
+ });
+ response.records.forEach((info) => {
+ optionsLineId.value.push({ label: info.name, value: info.lineId });
+ });
+ } catch (err) {
+ const error = err as ApiError;
+ $q.notify({
+ type: 'negative',
+ message: error.title,
+ });
+ }
+}
+const optionsLineType = ['NCC', 'OCC'];
const optionsAlertType = [
'蓝显',
'全线蓝显',
@@ -372,6 +426,8 @@ function onCreate() {
});
const params = {
id: +creatForm.id,
+ lineId: +creatForm.lineId,
+ lineType: creatForm.lineType,
alertType: (saveAlertTypeData as never)[creatForm.alertType],
tipTimeIds: tipTimeIds,
areaConfigId: areaConfigId as number,
@@ -440,6 +496,8 @@ async function deleteData(row: AlarmInfoListItem) {
function onReset() {
creatForm.id = '';
+ creatForm.lineId = '';
+ creatForm.lineType = 'NCC';
creatForm.alertType = '';
creatForm.tipTimeIds = [];
creatForm.areaConfigId = '';