决策信息隐藏时间

This commit is contained in:
joylink_zhaoerwei 2023-08-24 10:06:01 +08:00
parent 007e340ae2
commit 057554d224
2 changed files with 12 additions and 6 deletions

View File

@ -162,6 +162,8 @@ watch(
const myForm = ref<QForm | null>(null);
let editId: number;
let handle = ref('');
let handleError = ref('');
async function onSubmit() {
myForm.value?.validate().then(async (res) => {
if (res) {
@ -178,20 +180,24 @@ async function onSubmit() {
data: rangeConfig.device,
};
if (handleState.value == '新建范围配置') {
handle.value = '创建成功';
handleError.value = '创建失败';
await deviceRangeSet(params);
} else {
params.id = editId;
handle.value = '更新成功';
handleError.value = '更新失败';
await deviceRangeSet(params);
}
$q.notify({
type: 'positive',
message: '创建成功',
message: handle.value,
});
} catch (err) {
$q.notify({
type: 'negative',
message: '创建失败',
message: handleError.value,
});
}
}

View File

@ -82,12 +82,12 @@
:options="optionsAlertType"
:rules="[(val) => val.length > 0 || '请选择故障类型!']"
/>
<q-select
<!-- <q-select
outlined
label="时间定义类型"
v-model="creatForm.timeType"
:options="optionsTimeType"
/>
/> -->
<q-select
outlined
label="地点定义类型"
@ -172,12 +172,12 @@ const columnDefs: QTableColumn[] = [
},
align: 'center',
},
{
/* {
name: 'timeType',
label: '时间定义类型',
field: 'timeType',
align: 'center',
},
}, */
{
name: 'areaConfigId',
label: '地点定义类型',