|
@@ -17,6 +17,10 @@ const isVisibleBtn = ref(true);
|
|
|
const isVisibleUpdateInfo = ref(false);
|
|
|
const zuTaiStatus = ref({});
|
|
|
const minAndMaxValue = ref({});
|
|
|
+const setting = ref({
|
|
|
+ isVisibleBtnOne: true,
|
|
|
+ isVisibleBtnTwo: true
|
|
|
+})
|
|
|
let msgReactive = '';
|
|
|
let timer1 = '';
|
|
|
let timer2 = '';
|
|
@@ -134,9 +138,9 @@ const transformData = (list) => {
|
|
|
}
|
|
|
|
|
|
// 编辑系数 - confirm
|
|
|
-const onEditConfirm = () => {
|
|
|
- isVisibleBtn.value = true;
|
|
|
-
|
|
|
+const onEditConfirm = (source) => {
|
|
|
+ setting.value['isVisibleBtn' + source] = true;
|
|
|
+
|
|
|
transformData(southColumnData.value);
|
|
|
transformData(northColumnData.value);
|
|
|
|
|
@@ -144,8 +148,9 @@ const onEditConfirm = () => {
|
|
|
}
|
|
|
|
|
|
// 编辑系数 - cancel
|
|
|
-const onEditCancel = () => {
|
|
|
- isVisibleBtn.value = true;
|
|
|
+const onEditCancel = (source) => {
|
|
|
+ setting.value['isVisibleBtn' + source] = true;
|
|
|
+
|
|
|
Object.keys(dataSourceParams.value).forEach((key) => {
|
|
|
southColumnData.value.map((item) => {
|
|
|
if (item.key === key) {
|
|
@@ -163,6 +168,8 @@ const onEditCancel = () => {
|
|
|
// 切换tabs
|
|
|
const onUpdateTab = (index) => {
|
|
|
dataSourceParams.value.autoType = index;
|
|
|
+ onEditCancel('One');
|
|
|
+ onEditCancel('Two');
|
|
|
// setTimeout(() => handleMedicateAmount())
|
|
|
}
|
|
|
|
|
@@ -670,7 +677,7 @@ onUnmounted(() => {
|
|
|
<template #titleRight>
|
|
|
<div>
|
|
|
<div class="flex items-center space-x-[4px] cursor-pointer text-[#2454FF] text-[13px]"
|
|
|
- v-show="isVisibleBtn" @click="isVisibleBtn = false">
|
|
|
+ v-show="setting.isVisibleBtnOne" @click="setting.isVisibleBtnOne = false">
|
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
<path d="M2.33337 14H14.3334" stroke="#2454FF" stroke-linecap="round"
|
|
@@ -681,20 +688,20 @@ onUnmounted(() => {
|
|
|
<span>编辑</span>
|
|
|
</div>
|
|
|
<ul class="flex items-center text-[13px] space-x-[8px] cursor-pointer"
|
|
|
- v-show="!isVisibleBtn">
|
|
|
- <li class="cursor-pointer" @click="onEditConfirm" style="color: #2454FF">确定</li>
|
|
|
- <li class="cursor-pointer text-[#B0B7C0]" @click="onEditCancel">取消</li>
|
|
|
+ v-show="!setting.isVisibleBtnOne">
|
|
|
+ <li class="cursor-pointer" @click="onEditConfirm('One')" style="color: #2454FF">确定</li>
|
|
|
+ <li class="cursor-pointer text-[#B0B7C0]" @click="onEditCancel('One')">取消</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</template>
|
|
|
<ul class="data-source-list space-y-[12px]">
|
|
|
<li class="data-soruce-item" v-for="item, index in southColumnData">
|
|
|
<span>{{ item.label }}:</span>
|
|
|
- <span class="unit" v-show="isVisibleBtn">
|
|
|
+ <span class="unit" v-show="setting.isVisibleBtnOne">
|
|
|
{{ dataSourceParams[item.key] }}
|
|
|
{{ index === 0 ? 'mg/L' : '' }}
|
|
|
</span>
|
|
|
- <div style="width: 140px;" v-show="!isVisibleBtn">
|
|
|
+ <div style="width: 140px;" v-show="!setting.isVisibleBtnOne">
|
|
|
<BaseInput
|
|
|
:unit="index === 0 ? 'mg/L' : ''"
|
|
|
size='small'
|
|
@@ -778,7 +785,7 @@ onUnmounted(() => {
|
|
|
:btn-group="[
|
|
|
{ label: '手动', value1: '', value2: '' },
|
|
|
{ label: '化验', value1: waterConfigParams.hyXsyHYTwo },
|
|
|
- { label: '预测', value1: waterConfigParams.hyXsyYCOne }
|
|
|
+ { label: '预测', value1: waterConfigParams.hyXsyYCTwo }
|
|
|
]"></BaseChooseItem>
|
|
|
<BaseChooseItem
|
|
|
tab-key="south"
|
|
@@ -790,7 +797,7 @@ onUnmounted(() => {
|
|
|
:btn-group="[
|
|
|
{ label: '手动', value1: '', value2: '' },
|
|
|
{ label: '化验', value1: waterConfigParams.qyXsyHYTwo},
|
|
|
- { label: '预测', value1: waterConfigParams.qyXsyYCOne }
|
|
|
+ { label: '预测', value1: waterConfigParams.qyXsyYCTwo }
|
|
|
]"></BaseChooseItem>
|
|
|
<BaseChooseItem
|
|
|
tab-key="south"
|
|
@@ -802,7 +809,7 @@ onUnmounted(() => {
|
|
|
:btn-group="[
|
|
|
{ label: '手动', value1: '', value2: '' },
|
|
|
{ label: '化验', value1: waterConfigParams.qyAdHYTwo},
|
|
|
- { label: '预测', value1: waterConfigParams.qyAdYCOne }
|
|
|
+ { label: '预测', value1: waterConfigParams.qyAdYCTwo}
|
|
|
]"></BaseChooseItem>
|
|
|
<BaseChooseItem
|
|
|
tab-key="south"
|
|
@@ -820,7 +827,7 @@ onUnmounted(() => {
|
|
|
<template #titleRight>
|
|
|
<div>
|
|
|
<div class="flex items-center space-x-[4px] cursor-pointer text-[#2454FF] text-[13px]"
|
|
|
- v-show="isVisibleBtn" @click="isVisibleBtn = false">
|
|
|
+ v-show="setting.isVisibleBtnTwo" @click="setting.isVisibleBtnTwo = false">
|
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
<path d="M2.33337 14H14.3334" stroke="#2454FF" stroke-linecap="round"
|
|
@@ -831,20 +838,20 @@ onUnmounted(() => {
|
|
|
<span>编辑</span>
|
|
|
</div>
|
|
|
<ul class="flex items-center text-[13px] space-x-[8px] cursor-pointer"
|
|
|
- v-show="!isVisibleBtn">
|
|
|
- <li class="cursor-pointer" @click="onEditConfirm" style="color: #2454FF">确定</li>
|
|
|
- <li class="cursor-pointer text-[#B0B7C0]" @click="onEditCancel">取消</li>
|
|
|
+ v-show="!setting.isVisibleBtnTwo">
|
|
|
+ <li class="cursor-pointer" @click="onEditConfirm('Two')" style="color: #2454FF">确定</li>
|
|
|
+ <li class="cursor-pointer text-[#B0B7C0]" @click="onEditCancel('Two')">取消</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</template>
|
|
|
<ul class="data-source-list space-y-[12px]">
|
|
|
<li class="data-soruce-item" v-for="item, index in northColumnData">
|
|
|
<span>{{ item.label }}:</span>
|
|
|
- <span class="unit" v-show="isVisibleBtn">
|
|
|
+ <span class="unit" v-show="setting.isVisibleBtnTwo">
|
|
|
{{ dataSourceParams[item.key] }}
|
|
|
{{ index === 0 ? 'mg/L' : '' }}
|
|
|
</span>
|
|
|
- <div style="width: 140px;" v-show="!isVisibleBtn">
|
|
|
+ <div style="width: 140px;" v-show="!setting.isVisibleBtnTwo">
|
|
|
<BaseInput
|
|
|
isCenter
|
|
|
placeholder=""
|
|
@@ -853,8 +860,6 @@ onUnmounted(() => {
|
|
|
:unit="index === 0 ? 'mg/L' : ''"
|
|
|
:isNeedFlotBtn="false"
|
|
|
:readonly="index === northColumnData.length - 1"
|
|
|
- :min="minAndMaxValue.minAddAmount"
|
|
|
- :max="minAndMaxValue.maxAddAmount"
|
|
|
>
|
|
|
</BaseInput>
|
|
|
</div>
|
|
@@ -878,9 +883,9 @@ onUnmounted(() => {
|
|
|
</div>
|
|
|
<div class="right-section">
|
|
|
<BaseTitle title="智能投加计算结果" type="second">
|
|
|
- <template #right>
|
|
|
+ <!-- <template #right>
|
|
|
<div class="warning-btn" @click="onSystemWarning" v-show="warningList.length">查看系统警报</div>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
</BaseTitle>
|
|
|
<div class="right-section-content">
|
|
|
<TheResultPanel
|