|
@@ -36,52 +36,52 @@ export default {
|
|
|
gantt.clearAll()
|
|
|
gantt.locale={
|
|
|
date: {
|
|
|
- month_full: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
|
|
- month_short: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
|
|
- day_full: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
|
|
|
- day_short: ["日", "一", "二", "三", "四", "五", "六"]
|
|
|
+ month_full: [this.$t('yiYue'), this.$t('erYue'), this.$t('sanYue'), this.$t('siYue'), this.$t('thisTWuyue'), this.$t('liuYue'), this.$t('qiYue'), this.$t('baYue'), this.$t('jiuYue'), this.$t('shiYue'), this.$t('shiYiYue'), this.$t('shiErYue')],
|
|
|
+ month_short: [this.$t('1Yue'), this.$t('2Yue'), this.$t('3Yue'), this.$t('4Yue'), this.$t('5Yue'), this.$t('6Yue'), this.$t('7Yue'), this.$t('8Yue'), this.$t('9Yue'), this.$t('10Yue'), this.$t('11Yue'), this.$t('12Yue')],
|
|
|
+ day_full: [this.$t('xingQiRi'), this.$t('xingQiYi'), this.$t('xingQiEr'), this.$t('xingQiSan'), this.$t('xingQiSi'), this.$t('xingQiWu'), this.$t('xingQiLiu')],
|
|
|
+ day_short: [this.$t('ri'), "一", "二", "三", "四", "五", "六"]
|
|
|
},
|
|
|
labels: {
|
|
|
- dhx_cal_today_button: "今天",
|
|
|
- day_tab: "日",
|
|
|
- week_tab: "周",
|
|
|
- month_tab: "月",
|
|
|
- new_event: "新建日程",
|
|
|
- icon_save: "保存",
|
|
|
- icon_cancel: "关闭",
|
|
|
- icon_details: "详细",
|
|
|
- icon_edit: "编辑",
|
|
|
- icon_delete: "删除",
|
|
|
- confirm_closing: "请确认是否撤销修改!", //Your changes will be lost, are your sure?
|
|
|
- confirm_deleting: "是否删除日程?",
|
|
|
- section_description: "描述",
|
|
|
- section_time: "时间范围",
|
|
|
- section_type: "类型",
|
|
|
+ dhx_cal_today_button: this.$t('jinTian'),
|
|
|
+ day_tab: this.$t('weekDay.day'),
|
|
|
+ week_tab: this.$t('zhou'),
|
|
|
+ month_tab: this.$t('weekDay.month'),
|
|
|
+ new_event: this.$t('xinJianRiCheng'),
|
|
|
+ icon_save: this.$t('save'),
|
|
|
+ icon_cancel: this.$t('Shutdown'),
|
|
|
+ icon_details: this.$t('xiangXi'),
|
|
|
+ icon_edit: this.$t('bian-ji'),
|
|
|
+ icon_delete: this.$t('btn.delete'),
|
|
|
+ confirm_closing: this.$t('qingQueRenShiFouCheXiaoXiuGai'), //Your changes will be lost, are your sure?
|
|
|
+ confirm_deleting: this.$t('shiFouShanChuRiCheng'),
|
|
|
+ section_description: this.$t('other.describe'),
|
|
|
+ section_time: this.$t('shiJianFanWei'),
|
|
|
+ section_type: this.$t('types'),
|
|
|
|
|
|
/* grid columns */
|
|
|
|
|
|
- column_text: "任务名",
|
|
|
- column_start_date: "开始时间",
|
|
|
- column_duration: "持续时间",
|
|
|
+ column_text: this.$t('renWuMing'),
|
|
|
+ column_start_date: this.$t('starttimes'),
|
|
|
+ column_duration: this.$t('chiXuShiJian'),
|
|
|
column_add: "",
|
|
|
|
|
|
/* link confirmation */
|
|
|
|
|
|
- link: "关联",
|
|
|
- confirm_link_deleting: "将被删除",
|
|
|
- link_start: " (开始)",
|
|
|
- link_end: " (结束)",
|
|
|
+ link: this.$t('guanLian'),
|
|
|
+ confirm_link_deleting: this.$t('jiangBeiShanChu'),
|
|
|
+ link_start: this.$t('kaiShi'),
|
|
|
+ link_end: this.$t('jieShu'),
|
|
|
|
|
|
- type_task: "任务",
|
|
|
- type_project: "项目",
|
|
|
- type_milestone: "里程碑",
|
|
|
+ type_task: this.$t('other.task'),
|
|
|
+ type_project: this.$t('other.project'),
|
|
|
+ type_milestone: this.$t('other.milestone'),
|
|
|
|
|
|
- minutes: "分钟",
|
|
|
- hours: "小时",
|
|
|
- days: "天",
|
|
|
- weeks: "周",
|
|
|
- months: "月",
|
|
|
- years: "年"
|
|
|
+ minutes: this.$t('fenZhong'),
|
|
|
+ hours: this.$t('time.hour'),
|
|
|
+ days: this.$t('time.day'),
|
|
|
+ weeks: this.$t('zhou'),
|
|
|
+ months: this.$t('weekDay.month'),
|
|
|
+ years: this.$t('nian')
|
|
|
}
|
|
|
};
|
|
|
// gantt.config.autosize = true;
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
gantt.config.drag_move = false;
|
|
|
gantt.config.xml_date = "%Y-%m-%d";
|
|
|
gantt.config.columns=[
|
|
|
- {name:"text",label:(this.stafforpro == "按人员查看" ? "姓名" : "项目名称"), align: "left", tree:true},
|
|
|
+ {name:"text",label:(this.stafforpro == this.$t('anRenYuanChaKan') ? this.$t('lable.name') : this.$t('headerTop.projectName')), align: "left", tree:true},
|
|
|
// {name:"time",label:"计划工时(h)", align: "center" }
|
|
|
// {name:"start_date", label:"开始时间", width:'*' , align: "center" },
|
|
|
// {name:"duration", label:"工时(天)", width:'*' , align: "center" }
|