Мастер, шаг 3 DEPO — по экранам: описание → подключение (проверка сразу) → таблицы (bj или скрипт) → обработка (job) → готово; справочник участников M2M встроен снимком для чистой установки
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
@@ -80,6 +80,10 @@ func registerSetup(mux *http.ServeMux, a *admin, rc *RuntimeConfig, svc *Service
|
||||
mux.HandleFunc("/admin/setup/update/apply", h.applyUpdate)
|
||||
mux.HandleFunc("/admin/setup/update/upload", h.uploadUpdate)
|
||||
mux.HandleFunc("/admin/setup/update/progress", h.updateProgress)
|
||||
mux.HandleFunc("/admin/setup/wizard-depo/conn", h.wizardDepoConn)
|
||||
mux.HandleFunc("/admin/setup/wizard-depo/tables", h.wizardDepoTables)
|
||||
mux.HandleFunc("/admin/setup/wizard-depo/job", h.wizardDepoJob)
|
||||
mux.HandleFunc("/admin/setup/wizard-depo/recheck", h.wizardDepoRecheck)
|
||||
mux.HandleFunc("/admin/setup/license", h.saveLicense)
|
||||
mux.HandleFunc("/admin/setup/license/activate", h.licenseActivate)
|
||||
mux.HandleFunc("/admin/setup/license/renew", h.licenseRenewNow)
|
||||
@@ -176,6 +180,7 @@ type WizardData struct {
|
||||
DepoAgent bool // у SQL Server есть SQL Agent (не Express, не PostgreSQL)
|
||||
DepoJobDef string // способ обработки по умолчанию для мастера
|
||||
Fancy *SetupData // шаг 3: общий блок «Обмен Fancy» (тот же, что в настройках)
|
||||
Sub string // экран шага 3 (учёт DEPO): intro|conn|tables|job|done
|
||||
ValidataVer string // версия установленной «Валидаты Клиент L» (пусто — не установлена)
|
||||
CryptoSvc string // состояние службы bj-crypto (systemctl is-active)
|
||||
PGSummary string // куда подключена база bj, без пароля
|
||||
@@ -285,6 +290,12 @@ func (h *setupHandlers) renderWizard(w http.ResponseWriter, r *http.Request) {
|
||||
fd := h.setupData(w, r, "")
|
||||
d.Fancy = &fd
|
||||
}
|
||||
if step == 3 {
|
||||
d.Sub = depoWizardSub(r.URL.Query().Get("sub"))
|
||||
if r.URL.Query().Get("sub") == "" && d.Done.Depo {
|
||||
d.Sub = "done"
|
||||
}
|
||||
}
|
||||
d.Done.Org = orgCode(s) != "" && orgINN(s) != ""
|
||||
d.Done.Quik = !d.DepoLicensed || s.Quik.Verified
|
||||
if step == 3 && d.DepoLicensed && strings.TrimSpace(s.Fancy.Server) != "" {
|
||||
|
||||
Reference in New Issue
Block a user