修改bug
This commit is contained in:
parent
df9410b2d2
commit
7cb9d721da
@ -37,6 +37,11 @@ const props = defineProps({
|
||||
required: false,
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
keffThreshold: {
|
||||
required: false,
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
})
|
||||
const sliderIndex = ref<any>(0) // 选中时间
|
||||
@ -127,7 +132,7 @@ function addAttrText(item:any,index:any){
|
||||
textAnchor: 'left',
|
||||
refX: 0,
|
||||
text: 'keff:' + item.scenarioResults[index].keffValue,
|
||||
fill: item.scenarioResults[index].keffValue > 0.98 ? '#ff4d4f' : '#363636',
|
||||
fill: item.scenarioResults[index].keffValue > Number(props.keffThreshold) ? '#ff4d4f' : '#363636',
|
||||
fontSize: 14,
|
||||
}
|
||||
},
|
||||
|
||||
@ -34,6 +34,7 @@ const info: any = ref({
|
||||
const rules = ref({ //
|
||||
name: [{ required: true, message: "请输入事故情景名称", trigger: "blur" }],
|
||||
algorithmType: [{ required: true, message: "请选择算法类型", trigger: "change" }],
|
||||
keffThreshold: [{ required: true, message: "请输入keff阈值", trigger: "blur" }],
|
||||
});
|
||||
function handleScenarioClose(){
|
||||
emit("closeCreatescenario",false)
|
||||
@ -182,7 +183,7 @@ onMounted(() => {
|
||||
</el-steps>
|
||||
</div>
|
||||
<div class="scenario-setting-bottombox">
|
||||
<el-form ref="infoForm" :model="info" :rules="rules" label-width="160px" style="width:600px"
|
||||
<el-form ref="infoForm" :model="info" :rules="rules" label-width="160px" style="width:600px;height: calc(100vh - 300px);overflow: auto;padding-top: 10px;"
|
||||
v-if="stepsActive == 0">
|
||||
<el-form-item label="事故情景名称:" prop="name">
|
||||
<el-input v-model="info.name" style="width: 100%" placeholder="输入事故情景名称" ></el-input>
|
||||
|
||||
@ -105,6 +105,7 @@ function handleClose() {
|
||||
const rules = ref({
|
||||
name: [{ required: true, message: "请输入事故情景名称", trigger: "blur" }],
|
||||
algorithmType: [{ required: true, message: "请选择算法类型", trigger: "change" }],
|
||||
keffThreshold: [{ required: true, message: "请输入keff阈值", trigger: "blur" }],
|
||||
});
|
||||
//修改事故情景
|
||||
function editClick(row: any,type: string) {
|
||||
@ -484,7 +485,7 @@ function initDeviceData(){
|
||||
<el-dialog v-model="dialogEditVisible" :close-on-click-modal="false"
|
||||
:modal="false" draggable :before-close="handleClose" :title="title"
|
||||
append-to-body width="590px">
|
||||
<el-form ref="infoForm" :model="info" :rules="rules" label-width="140px" style="width:500px">
|
||||
<el-form ref="infoForm" :model="info" :rules="rules" label-width="140px" style="width:500px;height: calc(100vh - 300px);overflow: auto;padding-top: 10px;">
|
||||
<el-form-item label="事故情景名称:" prop="name">
|
||||
<el-input v-model="info.name" style="width: 100%" placeholder="输入事故情景名称" :disabled="title == '查看事故情景'"></el-input>
|
||||
</el-form-item>
|
||||
@ -493,10 +494,6 @@ function initDeviceData(){
|
||||
<el-option v-for="item in algorithmTypeData" :key="item.algorithmType" :label="item.name" :value="item.algorithmType" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="Keff预警阈值:" prop="keffThreshold">
|
||||
<el-input v-model="info.keffThreshold" style="width: 100%" placeholder="输入Keff预警阈值" :disabled="title == '查看事故情景'"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="设备算法配置映射:">
|
||||
<div style="width: 100%;padding-top: 40px;">
|
||||
<div v-for="item in deviceData" :key="item.deviceType" style="display: flex;align-items: center;margin-bottom: 10px;">
|
||||
@ -507,6 +504,9 @@ function initDeviceData(){
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="Keff预警阈值:" prop="keffThreshold">
|
||||
<el-input v-model="info.keffThreshold" style="width: 100%" placeholder="输入Keff预警阈值" :disabled="title == '查看事故情景'"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="事故情景描述:" :disabled="title == '查看事故情景'">
|
||||
<el-input type="textarea" v-model="info.description" :rows="6" style="width: 100%" placeholder="请输入事故情景描述" :disabled="title == '查看事故情景'"></el-input>
|
||||
</el-form-item>
|
||||
@ -539,7 +539,10 @@ function initDeviceData(){
|
||||
<div @click="changeShowResult(2)" class="adddevice_navigation_right" :class="{'adddevice_navigation_activeright':isEchartsModel == 2}">图形</div>
|
||||
</div>
|
||||
|
||||
<Viewx6 v-if="isShowResult && isEchartsModel == 0 " :projectId="projectInfo.projectId" :scenarioId="scenarioId"/>
|
||||
<Viewx6 v-if="isShowResult && isEchartsModel == 0 " :projectId="projectInfo.projectId"
|
||||
:scenarioId="scenarioId"
|
||||
:keffThreshold="info.keffThreshold"
|
||||
/>
|
||||
<div style="display: flex;" v-if="isEchartsModel == 1 || isEchartsModel == 2">
|
||||
<div class="choiceMateria-left">
|
||||
<div class="choiceMateria-left-title">设备列表</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user