修改
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
field: 'alertLevel',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: '',
|
||||
dictType: 'alert_level',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
@@ -97,7 +97,7 @@
|
||||
field: 'alertStatus',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
dictType: '',
|
||||
dictType: 'alert_status',
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
@@ -112,6 +112,7 @@
|
||||
sorter: true,
|
||||
width: 180,
|
||||
align: 'left',
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
title: t('预警编码'),
|
||||
|
||||
@@ -52,8 +52,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
<Modal @register="register" @modalClose="fetchAppList('0')" />
|
||||
<Modal @register="register" @modalClose="fetchAppList(currentStatus)" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
@@ -118,6 +118,7 @@ export default defineComponent({
|
||||
const handleOpinion = ref('');
|
||||
const currentStatus = ref('');
|
||||
const alertContent = ref('');
|
||||
const paramId = ref()
|
||||
const { createMessage } = useMessage();
|
||||
|
||||
const [register, { closeModal }] = useModalInner(async (data: any) => {
|
||||
@@ -125,6 +126,7 @@ export default defineComponent({
|
||||
currentStatus.value = data.alertStatus
|
||||
alertContent.value = data.alertContent
|
||||
handleOpinion.value = data.handleNote
|
||||
paramId.value = data.id
|
||||
});
|
||||
|
||||
watch(currentStatus, (val) => {
|
||||
@@ -151,7 +153,9 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
async function handleSubmit() {
|
||||
if (!handleOpinion.value.trim()) {
|
||||
const opinionDesc = handleOpinion.value ?? '';
|
||||
|
||||
if (!opinionDesc.trim()) {
|
||||
createMessage.warning('请输入处理意见');
|
||||
return;
|
||||
}
|
||||
@@ -162,7 +166,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
const params = {
|
||||
id: warningData.value.id
|
||||
id: paramId.value
|
||||
};
|
||||
|
||||
const res = await bizWarningAlertSave(params, data);
|
||||
|
||||
Reference in New Issue
Block a user