|
@@ -187,7 +187,7 @@
|
|
<span class="inputtext_1">选择时间</span>
|
|
<span class="inputtext_1">选择时间</span>
|
|
<div class="block">
|
|
<div class="block">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- v-model="pickertime"
|
|
|
|
|
|
+ v-model="tuiyanobj.pickertime"
|
|
type="datetime"
|
|
type="datetime"
|
|
placeholder="Pick a Date"
|
|
placeholder="Pick a Date"
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
@@ -266,7 +266,7 @@
|
|
<span class="inputtext_1">选择时间</span>
|
|
<span class="inputtext_1">选择时间</span>
|
|
<div class="block">
|
|
<div class="block">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- v-model="pickertime"
|
|
|
|
|
|
+ v-model="tuiyanobj.pickertime"
|
|
type="datetime"
|
|
type="datetime"
|
|
placeholder="Pick a Date"
|
|
placeholder="Pick a Date"
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
@@ -327,7 +327,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+<!-- timestampToTime -->
|
|
<script setup>
|
|
<script setup>
|
|
import { computed,ref,onMounted,reactive, toRef } from "vue";
|
|
import { computed,ref,onMounted,reactive, toRef } from "vue";
|
|
import { request, uploadFile } from "@/utils/request";
|
|
import { request, uploadFile } from "@/utils/request";
|
|
@@ -353,7 +353,7 @@ const props= defineProps({
|
|
}
|
|
}
|
|
|
|
|
|
});
|
|
});
|
|
- let pickertime=ref('');
|
|
|
|
|
|
+
|
|
let zqname=ref({});
|
|
let zqname=ref({});
|
|
let shiguobj=ref({
|
|
let shiguobj=ref({
|
|
source:'自荐',
|
|
source:'自荐',
|
|
@@ -396,7 +396,8 @@ const dialog=ref({
|
|
})
|
|
})
|
|
let tuiyanobj=ref({
|
|
let tuiyanobj=ref({
|
|
value:[''],
|
|
value:[''],
|
|
- acctime:'24-03-06 00:00:00',
|
|
|
|
|
|
+ pickertime:'24-03-06 00:00:00',
|
|
|
|
+ acctime:'2024-03-06 00:00:00',
|
|
dt:'',
|
|
dt:'',
|
|
dx:'',
|
|
dx:'',
|
|
reportstep:'',
|
|
reportstep:'',
|
|
@@ -408,7 +409,8 @@ let tuiyanobj=ref({
|
|
})
|
|
})
|
|
let tuiyanobj2=ref({
|
|
let tuiyanobj2=ref({
|
|
value:['SO2'],
|
|
value:['SO2'],
|
|
- acctime:'24-03-06 00:00:00',
|
|
|
|
|
|
+ pickertime:'',
|
|
|
|
+ acctime:'2024-03-06 00:00:00',
|
|
dt:'0.1',
|
|
dt:'0.1',
|
|
dx:'10',
|
|
dx:'10',
|
|
reportstep:'60',
|
|
reportstep:'60',
|
|
@@ -420,7 +422,8 @@ let tuiyanobj2=ref({
|
|
})
|
|
})
|
|
let tuiyanobj3=ref({
|
|
let tuiyanobj3=ref({
|
|
value:['SO2'],
|
|
value:['SO2'],
|
|
- acctime:'24-03-06 00:00:00',
|
|
|
|
|
|
+ pickertime:'',
|
|
|
|
+ acctime:'2024-03-06 00:00:00',
|
|
dt:'5',
|
|
dt:'5',
|
|
dx:'5',
|
|
dx:'5',
|
|
reportstep:'60',
|
|
reportstep:'60',
|
|
@@ -444,20 +447,7 @@ const formInline = ref({
|
|
|
|
|
|
})
|
|
})
|
|
const value = ref([])
|
|
const value = ref([])
|
|
-const options = ref([
|
|
|
|
- {
|
|
|
|
- value: 'HTML',
|
|
|
|
- label: 'HTML',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 'CSS',
|
|
|
|
- label: 'CSS',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 'JavaScript',
|
|
|
|
- label: 'JavaScript',
|
|
|
|
- },
|
|
|
|
-])
|
|
|
|
|
|
+const options = ref([])
|
|
let scoperadio=ref(1);
|
|
let scoperadio=ref(1);
|
|
// 推演结果
|
|
// 推演结果
|
|
const customColor = ref('#409eff')
|
|
const customColor = ref('#409eff')
|
|
@@ -635,19 +625,23 @@ const pollute=()=>{
|
|
//默认时间
|
|
//默认时间
|
|
const inititimeDefaultal=()=>{
|
|
const inititimeDefaultal=()=>{
|
|
var date = new Date();
|
|
var date = new Date();
|
|
- var s1 = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + (date.getDate()) + " 00:00:00";
|
|
|
|
- var s2 = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + (date.getDate()) + " 23:59:59";
|
|
|
|
- console.log(s1)
|
|
|
|
|
|
+ var timeStamp = Date.parse(date)
|
|
|
|
+ var s1=timestampToTime(timeStamp );
|
|
return s1;
|
|
return s1;
|
|
}
|
|
}
|
|
|
|
|
|
// 初始数据
|
|
// 初始数据
|
|
const initial=()=>{
|
|
const initial=()=>{
|
|
if(classradio.value=="Fire"){
|
|
if(classradio.value=="Fire"){
|
|
|
|
+ options.value.coid=["CO2"];
|
|
|
|
+ tuiyanobj2.value.pickertime=inititimeDefaultal();
|
|
tuiyanobj2.value.acctime=inititimeDefaultal();
|
|
tuiyanobj2.value.acctime=inititimeDefaultal();
|
|
- tuiyanobj.value=tuiyanobj2.value;
|
|
|
|
|
|
+ tuiyanobj.value=tuiyanobj2.value;
|
|
|
|
+ console.log(tuiyanobj.value);
|
|
}else{
|
|
}else{
|
|
- tuiyanobj2.value.acctime=inititimeDefaultal();
|
|
|
|
|
|
+
|
|
|
|
+ tuiyanobj3.value.pickertime=inititimeDefaultal();
|
|
|
|
+ tuiyanobj3.value.acctime=inititimeDefaultal();
|
|
tuiyanobj.value=tuiyanobj3.value;
|
|
tuiyanobj.value=tuiyanobj3.value;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -659,8 +653,9 @@ function zdtimechange() {
|
|
|
|
|
|
}
|
|
}
|
|
const timeclick=()=>{
|
|
const timeclick=()=>{
|
|
- console.log(pickertime.value)
|
|
|
|
- //tuiyanobj.value.acctime=pickertime.value.getFullYear() + "-" + (pickertime.value.getMonth() + 1) + "-" + (pickertime.value.getDate()) + " 00:00:00";
|
|
|
|
|
|
+
|
|
|
|
+ var timeStamp = Date.parse(tuiyanobj.value.pickertime)
|
|
|
|
+ tuiyanobj.value.acctime=timestampToTime(timeStamp );
|
|
}
|
|
}
|
|
// 下拉多选
|
|
// 下拉多选
|
|
const selectchange=(val)=>{
|
|
const selectchange=(val)=>{
|
|
@@ -670,10 +665,7 @@ const selectchange=(val)=>{
|
|
console.log(val[i])
|
|
console.log(val[i])
|
|
arr1.push(val[i].coid);
|
|
arr1.push(val[i].coid);
|
|
arr2.push(val[i].code);
|
|
arr2.push(val[i].code);
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
- console.log(arr2);
|
|
|
|
tuiyanobj.value.coids= arr1.join(',');
|
|
tuiyanobj.value.coids= arr1.join(',');
|
|
tuiyanobj.value.cocodes =arr2.join(',');
|
|
tuiyanobj.value.cocodes =arr2.join(',');
|
|
}
|
|
}
|