no message
This commit is contained in:
parent
012c2f264d
commit
eddaede368
26
app/Http/Controllers/Web/Nasa/V1/FuNodeActionController.php
Normal file
26
app/Http/Controllers/Web/Nasa/V1/FuNodeActionController.php
Normal 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();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -14,7 +14,7 @@ class FuNodeBaseController extends ListController
|
|||||||
protected string $sApiPath = 'node/base';
|
protected string $sApiPath = 'node/base';
|
||||||
protected string $sView = 'nasa._commons.list';
|
protected string $sView = 'nasa._commons.list';
|
||||||
protected string $sSiteWww;
|
protected string $sSiteWww;
|
||||||
protected string $sHeaderActionView = 'nasa.v1._actions.list';
|
protected string $sHeaderActionView = 'nasa.v1._actions.node';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -25,7 +25,7 @@
|
|||||||
"isEntry": true
|
"isEntry": true
|
||||||
},
|
},
|
||||||
"resources/js/app.js": {
|
"resources/js/app.js": {
|
||||||
"file": "assets/app-BcB1rdwa.js",
|
"file": "assets/app-zmCj5tAh.js",
|
||||||
"name": "app",
|
"name": "app",
|
||||||
"src": "resources/js/app.js",
|
"src": "resources/js/app.js",
|
||||||
"isEntry": true
|
"isEntry": true
|
||||||
|
|||||||
@ -14,37 +14,11 @@ $.ajaxSetup({
|
|||||||
}
|
}
|
||||||
});// ajax携带都携带某个参数
|
});// ajax携带都携带某个参数
|
||||||
|
|
||||||
//import './bootstrap';
|
|
||||||
import { Editor } from '@tiptap/core';
|
import { Editor } from '@tiptap/core';
|
||||||
import StarterKit from '@tiptap/starter-kit';
|
import StarterKit from '@tiptap/starter-kit';
|
||||||
import { Markdown } from '@tiptap/markdown';
|
import { Markdown } from '@tiptap/markdown';
|
||||||
import axios from 'axios';
|
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;
|
window.oModalEditor = null;
|
||||||
|
|
||||||
@ -87,3 +61,5 @@ window.initModalEditor = function(sInitialContent = '') {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
window.$ = window.jQuery = $; // 可是这里这样写了,blade不就应该可以调吗
|
||||||
|
|||||||
37
resources/views/nasa/v1/_actions/node.blade.php
Normal file
37
resources/views/nasa/v1/_actions/node.blade.php
Normal 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>
|
||||||
@ -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\AuthController;
|
||||||
use App\Http\Controllers\Web\Nasa\V1\MasterPanelNavController as NasaMasterPanelNavController;
|
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\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\FuEnvConfigController as NasaFuEnvConfigController;
|
||||||
use App\Http\Controllers\Web\Nasa\V1\FuMailMustlogController as NasaFuMailMustlogController;
|
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::prefix('stats')->group(function() {
|
||||||
Route::get('dashboard/total', [NasaStatsDashboardTotalController::class, 'index'])->name('nasa.stats.dashboard.total');
|
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('/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/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/env/config', [NasaFuEnvConfigController::class, 'index'])->name('nasa.fu.env.config');
|
||||||
Route::get('/fu/mail/mustlog', [NasaFuMailMustlogController::class, 'index'])->name('nasa.fu.mail.mustlog');
|
Route::get('/fu/mail/mustlog', [NasaFuMailMustlogController::class, 'index'])->name('nasa.fu.mail.mustlog');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user