Browse Source

值班详情

liuyang 5 years ago
parent
commit
37bcd6f88d

+ 18 - 19
backend/src/dashoo.cn/modi_webapi/app/model/duty/detail/detail_entity.go

@@ -12,25 +12,24 @@ import (
 
 // Entity is the golang structure for table instrument.
 type Entity struct {
-	Id          int         `orm:"Id,primary"`           //
-	DutyId      int         `orm:"INT(10)" v:"required"` // 值周ID
-	Local       string      `orm:"INT(10)"`              // 地点
-	Time        int         `orm:"INT(10)"`              // 时间段
-	Status      string      `orm:"VARCHAR(32)"`          // 状态
-	People      string      `orm:"VARCHAR(32)"`          // 值班人员
-	Monday      int         `orm:"INT(10)"`              // 周一
-	Tuesday     int         `orm:"INT(10)"`              // 周二
-	Wednesday   int         `orm:"INT(10)"`              // 周三
-	Thursday    int         `orm:"INT(10)"`              // 周四
-	Friday      int         `orm:"INT(10)"`              // 周五
-	Saturday    int         `orm:"INT(10)"`              // 周六
-	Sunday      int         `orm:"INT(10)"`              // 周天
-	CreatedBy   string      `orm:"VARCHAR(32)"`          // 创建人
-	CreatedTime *gtime.Time `orm:"DATETIME CreatedTime"` // 创建时间
-	UpdatedBy   string      `orm:"VARCHAR(32)"`          // 更新人
-	UpdatedTime *gtime.Time `orm:"DATETIME CreatedTime"` // 更新时间
-	IsDel       int         `orm:"INT(11)"`              // 删除标志
-
+	Id          int         `orm:"Id,primary"  json:"id"`           // 主键
+	DutyId      int         `orm:"DutyId"      json:"duty_id"`      // 值班ID
+	Local       string      `orm:"Local"       json:"local"`        // 地点
+	Time        int         `orm:"Time"        json:"time"`         // 时间段
+	Status      string      `orm:"Status"      json:"status"`       // 状态
+	People      string      `orm:"People"      json:"people"`       // 值班人员
+	Monday      int         `orm:"Monday"      json:"monday"`       // 周一
+	Tuesday     int         `orm:"Tuesday"     json:"tuesday"`      // 周二
+	Wednesday   int         `orm:"Wednesday"   json:"wednesday"`    // 周三
+	Thursday    int         `orm:"Thursday"    json:"thursday"`     // 周四
+	Friday      int         `orm:"Friday"      json:"friday"`       // 周五
+	Saturday    int         `orm:"Saturday"    json:"saturday"`     // 周六
+	Sunday      int         `orm:"Sunday"      json:"sunday"`       // 周天
+	CreatedBy   string      `orm:"CreatedBy"   json:"created_by"`   // 创建人
+	CreatedTime *gtime.Time `orm:"CreatedTime" json:"created_time"` // 创建时间
+	UpdatedBy   string      `orm:"UpdatedBy"   json:"updated_by"`   // 更新人
+	UpdatedTime *gtime.Time `orm:"UpdatedTime" json:"updated_time"` // 更新时间
+	IsDel       int         `orm:"IsDel"       json:"is_del"`       // 删除标志
 }
 type ListEntity struct {
 	DataList []Entity `json:"DataList"`

+ 4 - 4
frontend_web/src/api/duty.js

@@ -35,8 +35,8 @@ export default {
       params: params
     })
   },
-   // 保存值班管理子表信息
-   Saves (data) {
+  // 保存值班管理子表信息
+  Saves (data) {
     return request({
       url: process.env.VUE_APP_API + 'duty/detail/saves',
       method: 'post',
@@ -50,5 +50,5 @@ export default {
       method: 'get',
       params: params
     })
-  },
-}
+  }
+}