决策信息隐藏时间
This commit is contained in:
parent
007e340ae2
commit
057554d224
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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: '地点定义类型',
|
||||
|
Loading…
Reference in New Issue
Block a user