no message

This commit is contained in:
hellcat 2026-06-19 14:02:31 +08:00
parent 012c2f264d
commit eddaede368
7 changed files with 70 additions and 46 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\Controllers\Web\Nasa\V1;
use Illuminate\Http\Request;
use App\Http\Requests\Nasa\NasaQueryRequest;
use Illuminate\View\View;
use Illuminate\Support\Facades\Http;
use App\Http\Controllers\Web\Nasa\V1\Base\ListController;
class FuNodeActionController
{
public function fly(NasaQueryRequest $oRequest)
{
$iId = intval(request('id'));
$sSiteWww = $oRequest->input('site_www');
$oResponse = Http::nasa($sSiteWww)->get('/node/action/fly');
return $oResponse->json();
}
}

View File

@ -14,7 +14,7 @@ class FuNodeBaseController extends ListController
protected string $sApiPath = 'node/base';
protected string $sView = 'nasa._commons.list';
protected string $sSiteWww;
protected string $sHeaderActionView = 'nasa.v1._actions.list';
protected string $sHeaderActionView = 'nasa.v1._actions.node';
public function __construct()
{

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,7 @@
"isEntry": true
},
"resources/js/app.js": {
"file": "assets/app-BcB1rdwa.js",
"file": "assets/app-zmCj5tAh.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true

View File

@ -14,37 +14,11 @@ $.ajaxSetup({
}
});// ajax携带都携带某个参数
//import './bootstrap';
import { Editor } from '@tiptap/core';
import StarterKit from '@tiptap/starter-kit';
import { Markdown } from '@tiptap/markdown';
import axios from 'axios';
//$(document).ajaxSend(function (oEvent, oXhr, oSettings) {
//
// let aGlobalParams = {
// web_path: $('#web-path').val(),
// api_path: 'xcvxcvcv'
// };
//
// let sParamString = $.param(aGlobalParams);
//
//// if (oSettings.type === "POST" || oSettings.type === "PUT" || oSettings.type === "DELETE") {
//
//// if (oSettings.data) {
//// if (typeof oSettings.data === "string") {
//// oSettings.data += "&" + sParamString;
//// }
//// } else {
// oSettings.data = sParamString;
//// }
//
//// } else if (oSettings.type === "GET") {
//// oSettings.url += (oSettings.url.indexOf('?') === -1 ? '?' : '&') + sParamString;
//// }
//
//});
window.oModalEditor = null;
@ -87,3 +61,5 @@ window.initModalEditor = function(sInitialContent = '') {
}
});
};
window.$ = window.jQuery = $; // 可是这里这样写了blade不就应该可以调吗

View File

@ -0,0 +1,37 @@
<div class="mac-card-small flex-align-center text-muted">
<button class="mac-btn-secondary text-secondary mac-input-medium js-list-add-trigger">添加</button>
<button class="mac-btn-secondary text-secondary mac-input-medium js-list-node-fly">fly</button>
</div>
<script type="module">
$(function() {
$(".js-list-node-fly").click(function(){
var sPathWww = $("#site_www").val();
TomAlert.show({
sMsg: "fly?",
sType: 'warning',
sConfirm: 'true',
fConfirmed: function(oEvent, oData) {
$.ajax({
url: '/nasa/fu/node/action/fly',
type: 'GET',
dataType: 'json',
data: {
'site_www':sPathWww
},
success: function(j) {
TomAlert.show({
sMsg: j.sMsg,
sType: 'success',
});
}
});
}
});
});
});
</script>

View File

@ -29,6 +29,7 @@ use App\Http\Controllers\Web\Nasa\V1\Base\ListController as NasaListController;
use App\Http\Controllers\Web\Nasa\V1\AuthController;
use App\Http\Controllers\Web\Nasa\V1\MasterPanelNavController as NasaMasterPanelNavController;
use App\Http\Controllers\Web\Nasa\V1\FuNodeBaseController as NasaFuNodeBaseController;
use App\Http\Controllers\Web\Nasa\V1\FuNodeActionController as NasaFuNodeActionController;
use App\Http\Controllers\Web\Nasa\V1\FuEnvConfigController as NasaFuEnvConfigController;
use App\Http\Controllers\Web\Nasa\V1\FuMailMustlogController as NasaFuMailMustlogController;
@ -60,26 +61,10 @@ Route::prefix('nasa')->middleware(['auth'])->group(function () {
Route::prefix('stats')->group(function() {
Route::get('dashboard/total', [NasaStatsDashboardTotalController::class, 'index'])->name('nasa.stats.dashboard.total');
});
// Route::get('setting')->name('nasa.setting');
// Route::get('setting/master')->name('nasa.setting.master');
// Route::prefix('setting/master')->group(function() {
// Route::get('nav', [NasaSettingMasterNavController::class, 'index'])->name('nasa.setting.master.nav');
// });
// Route::get('sites')->name('nasa.sites');
// Route::get('sites/master')->name('nasa.sites.master);
// Route::prefix('/master')->group(function() {
// Route::get('/master/panel/nav', [NasaMasterPanelNavController::class, 'index'])->name('nasa.master.panel.nav');
// });
// Route::get('node')->name('nasa.node');
// Route::get('node/fu')->name('nasa.node.fu');
// Route::prefix('node/fu')->group(function() {
// Route::get('node', [NasaNodeFuNodeController::class, 'index'])->name('nasa.node.fu.node');
// });
Route::get('/master/panel/nav', [NasaMasterPanelNavController::class, 'index'])->name('nasa.master.panel.nav');
Route::get('/fu/node/base', [NasaFuNodeBaseController::class, 'index'])->name('nasa.fu.node.base');
Route::get('/fu/node/action/fly', [NasaFuNodeActionController::class, 'fly']);
Route::get('/fu/env/config', [NasaFuEnvConfigController::class, 'index'])->name('nasa.fu.env.config');
Route::get('/fu/mail/mustlog', [NasaFuMailMustlogController::class, 'index'])->name('nasa.fu.mail.mustlog');