修复分页组件不显示bug

pull/1/head
Doflatango 2017-03-16 10:19:57 +08:00 committed by miraclesu
parent b79b248190
commit ff490592a6
5 changed files with 10 additions and 16 deletions

View File

@ -6,18 +6,12 @@ import (
"sunteng/cronsun/conf"
)
type Configuration struct {
Security *conf.Security `json:"security"`
}
func NewConfiguration() *Configuration {
cnf := &Configuration{
Security: conf.Config.Security,
}
return cnf
}
type Configuration struct{}
func (cnf *Configuration) Configuratios(w http.ResponseWriter, r *http.Request) {
outJSON(w, cnf)
outJSON(w, struct {
Security *conf.Security `json:"security"`
}{
Security: conf.Config.Security,
})
}

View File

@ -14,7 +14,7 @@ func InitRouters() (s *http.Server, err error) {
nodeHandler := &Node{}
jobLogHandler := &JobLog{}
infoHandler := &Info{}
configHandler := NewConfiguration()
configHandler := &Configuration{}
r := mux.NewRouter()
subrouter := r.PathPrefix("/v1").Subrouter()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -66,8 +66,8 @@
</tr>
</tbody>
</table>
<ExecuteJob ref="executeJobModal">
<Pager v-if="list && list.length>0" :total="total" :length="5"/>
<ExecuteJob ref="executeJobModal"/>
</div>
</template>