时间获取和单位添加
This commit is contained in:
parent
d13dc96821
commit
937a9c9c31
@ -15,10 +15,10 @@ function CreateGantt() {
|
|||||||
gantt.setColumns([
|
gantt.setColumns([
|
||||||
{ header: "", field: "ID", width: 30, cellCls: "mini-indexcolumn", align: "center", allowDrag: true, cellStyle: "cursor:move" },
|
{ header: "", field: "ID", width: 30, cellCls: "mini-indexcolumn", align: "center", allowDrag: true, cellStyle: "cursor:move" },
|
||||||
// new StatusColumn(),
|
// 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" }
|
editor: { type: "textbox" }
|
||||||
},
|
},
|
||||||
{ header: mini.Gantt.PredecessorLink_Text, field: "PredecessorLink",
|
{ header: mini.Gantt.PredecessorLink_Text, field: "predecessorLink",
|
||||||
editor: {
|
editor: {
|
||||||
type: "textbox"
|
type: "textbox"
|
||||||
},
|
},
|
||||||
@ -28,7 +28,7 @@ function CreateGantt() {
|
|||||||
e.value = gantt.getLinkString(links);
|
e.value = gantt.getLinkString(links);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ header: mini.Gantt.Duration_Text, field: "Duration",
|
{ header: mini.Gantt.Duration_Text, field: "duration",
|
||||||
editor: {
|
editor: {
|
||||||
type: "spinner", minValue: 0, maxValue: 1000
|
type: "spinner", minValue: 0, maxValue: 1000
|
||||||
}
|
}
|
||||||
|
|||||||
@ -102,7 +102,7 @@ export default {
|
|||||||
if (key === 'constructionStage') {
|
if (key === 'constructionStage') {
|
||||||
informationForm[key].value = this.constructionStageEnum[res.result[key]]
|
informationForm[key].value = this.constructionStageEnum[res.result[key]]
|
||||||
} else if( key === 'households'){
|
} else if( key === 'households'){
|
||||||
informationForm[key].value = this.contractPrice
|
informationForm[key].value = `${this.contractPrice }万元`
|
||||||
} else if (key === 'bulidStatus') {
|
} else if (key === 'bulidStatus') {
|
||||||
informationForm[key].value = this.projectStatusEnum[res.result[key]]
|
informationForm[key].value = this.projectStatusEnum[res.result[key]]
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
@ -39,23 +39,35 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
|
import { getWeatherDataApi } from "@/assets/js/api/environmentManage";
|
||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
currentTime:"",
|
currentTime:"",
|
||||||
monthAndDay:"",
|
monthAndDay:"",
|
||||||
weekday:"",
|
weekday:"",
|
||||||
|
cityCode:"",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
this.getCurrentDate()
|
this.getCurrentDate()
|
||||||
this.getCurrentTime()
|
this.getCurrentTime()
|
||||||
this.getweekday()
|
this.getweekday()
|
||||||
|
if(this.$store.state.currentProDetail!=null){
|
||||||
|
this.cityCode = this.$store.state.currentProDetail.cityCode
|
||||||
|
this.getWeather()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleMenu(path) {
|
handleMenu(path) {
|
||||||
this.$router.push(path)
|
this.$router.push(path)
|
||||||
},
|
},
|
||||||
|
getWeather(){
|
||||||
|
getWeatherDataApi({ cityid: this.cityCode }).then((res) => {
|
||||||
|
var json = JSON.parse(res.result);
|
||||||
|
console.log('天气',json);
|
||||||
|
});
|
||||||
|
},
|
||||||
getCurrentTime() {
|
getCurrentTime() {
|
||||||
const timer = setInterval(() => {
|
const timer = setInterval(() => {
|
||||||
this.currentTime = moment().format("HH:mm:ss");
|
this.currentTime = moment().format("HH:mm:ss");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user