package positionkpi import ( "github.com/flipped-aurora/gin-vue-admin/server/commonus" "github.com/flipped-aurora/gin-vue-admin/server/model/assessmentmodel" ) type ApiGroup struct { ApiMethod } type ApiMethod struct{} //添加岗位指标 type addPostTarget struct { Title string `json:"title"` //名称 Type int `json:"type"` //1:定性考核;2:定量考核 ScoringMethod int64 `json:"scoringMethod"` //计分方式(1:自动;2:手动) RelevantDepartments string `json:"relevantDepartments"` //相关部门 DepartmentsPost []string `json:"departmentsPost"` //相关岗位 Dimension string `json:"dimension"` //维度 Report []string `json:"report"` //提报人 Unit string `json:"unit"` //单位 Cycle int `json:"cycle"` //1:班;2:天;3:周;4:月;5:季度;6:年 CycleAttr int `json:"cycleattr"` //辅助计数 VisibleRange []string `json:"visibleRange"` //可见范围 VisibleGroup []string `json:"visibleGroup"` //可见范围(集团) } //编辑岗位指标 type editPostTargetCont struct { idType addPostTarget } //编辑状态 type editState struct { idType State int `json:"state"` IsTrue int `json:"istrue"` //1:强制删除;非1:软删除 } //岗位指标列表 type postTargetList struct { commonus.PageSetLimt Title string `json:"title"` //名称 Type int `json:"type"` //1:定性考核;2:定量考核 ScoringMethod int64 `json:"scoringMethod"` //计分方式(1:自动;2:手动) RelevantDepartments string `json:"relevantDepartments"` //相关部门 DepartmentsPost string `json:"departmentsPost"` //相关岗位 Dimension string `json:"dimension"` //维度 Report string `json:"report"` //提报人 } //岗位考核输出 type outPostTargetList struct { assessmentmodel.PostTarget DimensionName string `json:"dimensionname"` //维度 DepartmentName string `json:"departmentname"` //部门 PostAry []idAndName `json:"postary"` //岗位 ReportAry []reportUser `json:"reportary"` //提报人 } //Id&name type idAndName struct { idType Name string `json:"name"` } //提交人 type reportUser struct { idAndName Icon string `json:"icon"` Number string `json:"number"` } //Id type idType struct { Id string `json:"id"` } //输出岗位指标关联的岗位及行政组织 type postTargetDepart struct { DepartmentId string `json:"departmentid"` PostList []idAndName `json:"postlist"` } //添加岗位指标细则 type addPostContTarget struct { TargetId string `json:"targetid"` //指标 DepartmentId string `json:"departmentid"` //行政组织 PostId []string `json:"postid"` //岗位 TargetSunTitle string `json:"targetsuntitle"` //子栏目 List []postContList `json:"list"` //指标细则 } //岗位指标细则 type postContList struct { Title string `json:"title"` //考核内容 ReferenceScore string `json:"referencescore"` //考核标准 Unit string `json:"unit"` //单位 Class int `json:"class"` //1:减少;2:增加;3:无属性,现场确认加或减 Inspect []string `json:"inspect"` //检查方式(1:现场检查;2:资料检查;3:事件触发) Cycle int `json:"cycle"` //1:班;2:天;3:周;4:月;5:季度;6:年 CycleAttr int `json:"cycleattr"` //频次 Evidence string `json:"evidence"` //客观证据 Explain string `json:"explain"` //备注说明 ReportAry []string `json:"reportary"` //提报人 } //查看岗位定性考核细则列表 type lookPostTargetDeta struct { commonus.PageSetLimt Title string `json:"title"` //名称 DepartmentId string `json:"departmentid"` //行政组织 PostId []string `json:"postid"` //岗位 TargetId string `json:"targetid"` //指标 Inspect []string `json:"inspect"` //检查方式(1:现场检查;2:资料检查;3:事件触发) Cycle int `json:"cycle"` //1:班;2:天;3:周;4:月;5:季度;6:年 } //获取定性考核指标关联的岗位 type getTargetPost struct { idType DepartmentId string `json:"departmentid"` //行政组织 PostId []string `json:"postid"` Departmentmap []departmentmap `json:"departmentmap"` } type departmentmap struct { Parentid string `json:"parentid"` Parentname string `json:"parentname"` } //修改指定岗位指标被考核部门数据 type editTargetPostData struct { idType PostId []string `json:"postid"` }