新增etc日期保存按钮
This commit is contained in:
parent
b52669eb8a
commit
482cadb7b1
|
@ -18,6 +18,21 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<view class="buttonLocation4">
|
||||||
|
<el-popconfirm
|
||||||
|
confirm-button-text="是"
|
||||||
|
cancel-button-text="否"
|
||||||
|
icon-color="#fa9402"
|
||||||
|
title="是否设置日期格式"
|
||||||
|
@confirm="SettingData1()"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-button type="default" :icon="Setting"
|
||||||
|
>设置日期格式</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="inputByForm">
|
<view class="inputByForm">
|
||||||
<view class="buttonLocation1">
|
<view class="buttonLocation1">
|
||||||
|
@ -364,6 +379,21 @@ const SettingData = async (formName: any) => {
|
||||||
ElMessage(re.message);
|
ElMessage(re.message);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const SettingData1 = async () => {
|
||||||
|
const re = await SettingDevice({
|
||||||
|
code: "ETC.TIME_FORMAT",
|
||||||
|
|
||||||
|
deviceId: props.deviceId,
|
||||||
|
});
|
||||||
|
if (re.code == 200) {
|
||||||
|
ElMessage({
|
||||||
|
message: "保存成功",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ElMessage(re.message);
|
||||||
|
}
|
||||||
|
};
|
||||||
// 开井
|
// 开井
|
||||||
const OpenWell = async () => {
|
const OpenWell = async () => {
|
||||||
const data = {
|
const data = {
|
||||||
|
@ -502,4 +532,12 @@ const runModeOptions = reactive([
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 790px;
|
left: 790px;
|
||||||
}
|
}
|
||||||
|
.buttonLocation4 {
|
||||||
|
width: 130px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
position: absolute;
|
||||||
|
left: 776px;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue