|
@@ -57,7 +57,21 @@
|
|
|
</el-collapse>
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
+ <!-- 物理量 -->
|
|
|
+ <div class="heigjie">
|
|
|
+ <div class="he_pading1 color1">
|
|
|
+ <el-form-item label="物理量:" v-if="props.classradio == 'Fire'">
|
|
|
+ <el-select v-model="formInline.region" @change="regionchange($event)" placeholder="请选择">
|
|
|
+ <el-option v-for="item in strResultFormatlist" :key="item.id" :label="item.name"
|
|
|
+ :value="item.value"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <div class="wotermn" v-else>
|
|
|
+ <span>物理量:</span>
|
|
|
+ <span>水位</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="result_left results re_pading">
|
|
|
<div class="resu_title reimg" @click="hazardtype('1')">
|
|
@@ -131,6 +145,7 @@ let suspendshow=ref(false);
|
|
|
let showfalse=ref(false);
|
|
|
let isdonghua=ref(true);
|
|
|
let time = ref();
|
|
|
+let danwei=ref();
|
|
|
const isstop = ref(false);
|
|
|
let aid = ref(Number);
|
|
|
let oldtime = ref();
|
|
@@ -143,7 +158,7 @@ let clickflat = ref(true);
|
|
|
let mntext1 = ref('灾情模拟1');
|
|
|
let mntext2 = ref('灾情模拟2');
|
|
|
const formInline = ref({
|
|
|
- region: "shanghai",
|
|
|
+ region: "",
|
|
|
count: 0,
|
|
|
});
|
|
|
const zdtime = ref("");
|
|
@@ -276,12 +291,14 @@ function regionchange(val) {
|
|
|
danwei.value = key + value;
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
}
|
|
|
const hazardtype = (val) => {
|
|
|
emit("titleclick", "模拟数据", val);
|
|
|
};
|
|
|
|
|
|
const initAid = (leftAid, rightAid) => {
|
|
|
+ console.log(1112344555)
|
|
|
isdonghua.value=false;
|
|
|
getMonitor(leftAid, rightAid);
|
|
|
// wdisasterref.value.getinit(leftAid);
|
|
@@ -301,7 +318,7 @@ const wdiclick=(id,selid)=>{
|
|
|
//监测点数据获取
|
|
|
async function getMonitor(leftAid, rightAid) {
|
|
|
const params = {
|
|
|
- transCode: "D10016",
|
|
|
+ transCode: "D10018",
|
|
|
aid: leftAid,
|
|
|
step: 1,
|
|
|
};
|
|
@@ -309,14 +326,16 @@ async function getMonitor(leftAid, rightAid) {
|
|
|
.then((res) => {
|
|
|
if (res.returnCode == "000000000") {
|
|
|
strResultFormatlist.value = [];
|
|
|
- for (let i = 0; i < res.cocodes.length; i++) {
|
|
|
- let cocode = res.cocodes[i];
|
|
|
+ console.log(res);
|
|
|
+ for (let i = 0; i < res.codes.length; i++) {
|
|
|
+ let cocode = res.codes[i];
|
|
|
strResultFormatlist.value.push({
|
|
|
id: i,
|
|
|
- name: cocode.cocode,
|
|
|
- value: cocode.cocode,
|
|
|
+ name: cocode.code,
|
|
|
+ value: cocode.code,
|
|
|
});
|
|
|
}
|
|
|
+ console.log( strResultFormatlist.value);
|
|
|
formInline.value.region = strResultFormatlist.value[0].value;
|
|
|
console.log(strResultFormatlist.value);
|
|
|
setleftAid.value.leftChangAid(
|
|
@@ -359,7 +378,7 @@ defineExpose({ accident6, initAid, mntext1, mntext2, clickflat, endtime, zdtime,
|
|
|
background-image: url(/src/assets/img/Group10.png) !important;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: center;
|
|
|
-
|
|
|
+ background-size: 100% 100%;
|
|
|
.he_pading1 {
|
|
|
padding: 10px 9px 0 7px;
|
|
|
}
|