时间获取和单位添加

This commit is contained in:
骆乐 2022-11-08 17:05:30 +08:00
parent d13dc96821
commit 937a9c9c31
3 changed files with 16 additions and 4 deletions

View File

@ -15,10 +15,10 @@ function CreateGantt() {
gantt.setColumns([
{ header: "", field: "ID", width: 30, cellCls: "mini-indexcolumn", align: "center", allowDrag: true, cellStyle: "cursor:move" },
// new StatusColumn(),
{ header: mini.Gantt.Name_Text, field: "Name", width: 200, name: "taskname",
{ header: mini.Gantt.Name_Text, field: "taskName", width: 200, name: "name",
editor: { type: "textbox" }
},
{ header: mini.Gantt.PredecessorLink_Text, field: "PredecessorLink",
{ header: mini.Gantt.PredecessorLink_Text, field: "predecessorLink",
editor: {
type: "textbox"
},
@ -28,7 +28,7 @@ function CreateGantt() {
e.value = gantt.getLinkString(links);
}
},
{ header: mini.Gantt.Duration_Text, field: "Duration",
{ header: mini.Gantt.Duration_Text, field: "duration",
editor: {
type: "spinner", minValue: 0, maxValue: 1000
}

View File

@ -102,7 +102,7 @@ export default {
if (key === 'constructionStage') {
informationForm[key].value = this.constructionStageEnum[res.result[key]]
} else if( key === 'households'){
informationForm[key].value = this.contractPrice
informationForm[key].value = `${this.contractPrice }万元`
} else if (key === 'bulidStatus') {
informationForm[key].value = this.projectStatusEnum[res.result[key]]
}else {

View File

@ -39,23 +39,35 @@
<script>
import moment from "moment";
import { getWeatherDataApi } from "@/assets/js/api/environmentManage";
export default {
data(){
return{
currentTime:"",
monthAndDay:"",
weekday:"",
cityCode:"",
}
},
created(){
this.getCurrentDate()
this.getCurrentTime()
this.getweekday()
if(this.$store.state.currentProDetail!=null){
this.cityCode = this.$store.state.currentProDetail.cityCode
this.getWeather()
}
},
methods: {
handleMenu(path) {
this.$router.push(path)
},
getWeather(){
getWeatherDataApi({ cityid: this.cityCode }).then((res) => {
var json = JSON.parse(res.result);
console.log('天气',json);
});
},
getCurrentTime() {
const timer = setInterval(() => {
this.currentTime = moment().format("HH:mm:ss");