no message
This commit is contained in:
parent
9d91239021
commit
012c2f264d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -20,12 +20,12 @@
|
||||
"src": "node_modules/remixicon/fonts/remixicon.woff2"
|
||||
},
|
||||
"resources/css/app.css": {
|
||||
"file": "assets/app-B6SQk9qn.css",
|
||||
"file": "assets/app-gdOSk-Nv.css",
|
||||
"src": "resources/css/app.css",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/js/app.js": {
|
||||
"file": "assets/app-gxq-Qu2U.js",
|
||||
"file": "assets/app-BcB1rdwa.js",
|
||||
"name": "app",
|
||||
"src": "resources/js/app.js",
|
||||
"isEntry": true
|
||||
|
||||
@ -46,6 +46,45 @@ $(document).on('click', '.js-tom-modal-open-article', function(oEvent) {
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '.js-tom-modal-open-text', function(oEvent) {
|
||||
let _this = $('.tom-modal[tom-modal-name="text"]');
|
||||
let iId = $(this).attr('tom-modal-save-id');
|
||||
let sField = $(this).attr('tom-modal-field');
|
||||
|
||||
_this.attr('tom-modal-data-id', iId);
|
||||
_this.find('.js-tom-modal-save').attr('tom-modal-save-id', iId);
|
||||
_this.find('textarea').attr('field', sField);
|
||||
_this.find('input').attr('field', sField);
|
||||
|
||||
let sApiPath = $("#api_path").val();
|
||||
|
||||
let sApiUrl = "/nasa/list/hit/"+iId+"/"+sField;
|
||||
|
||||
$.ajax({
|
||||
url: sApiUrl,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
'sHitType': 'text',
|
||||
'api_path': sApiPath,
|
||||
'site_www': $("#site_www").val()
|
||||
},
|
||||
success: function(j) {
|
||||
_this.find('textarea').val(j.aData.sHit);
|
||||
tomModalShow("text");
|
||||
},
|
||||
error: function(oXHR, sTextStatus, sErrorThrown) {
|
||||
if (sTextStatus === 'timeout') {
|
||||
alert('📡 网络极度拥堵,请求超时,请稍后再试!');
|
||||
} else {
|
||||
alert('💀 系统核心暴裂,错误代码: ' + oXHR.status);
|
||||
}
|
||||
},
|
||||
complete: function() {}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).on('click', '.js-tom-modal-open-json', function(oEvent) {
|
||||
let _this = $('.tom-modal[tom-modal-name="json"]');
|
||||
let iId = $(this).attr('tom-modal-save-id');
|
||||
|
||||
@ -119,7 +119,9 @@
|
||||
} else if ($sValueType == 'json') {
|
||||
$sShowValue = "<a class='text-info js-tom-modal-open-json' tom-modal-field='".$k."' tom-modal-save-id='".$aRow['id']."'>json <span class='text-muted'>(".strlen($v).")</span></a>";
|
||||
} else if ($sValueType == 'byte') {
|
||||
$sShowValue = "<span class=' js-tom-modal-open-json'>".(int)($v / 1024 / 1024 / 1204)."g <span class='text-muted'>(".$v.")</span></span>";
|
||||
$sShowValue = "<span class=''>".(int)($v / 1024 / 1024 / 1204)."g <span class='text-muted'>(".$v.")</span></span>";
|
||||
} else if ($sValueType == 'text') {
|
||||
$sShowValue = "<a class='text-info js-tom-modal-open-text' tom-modal-field='".$k."' tom-modal-save-id='".$aRow['id']."'>文本 <span class='text-muted'>(".strlen($v).")</span></a>";
|
||||
}
|
||||
@endphp
|
||||
<td>{!! $sShowValue !!}</td>
|
||||
@ -236,6 +238,26 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tom-modal" tom-modal-name="text" tabindex="-1" tom-modal-lock="true" hidden>
|
||||
<div class="tom-modal-inner">
|
||||
<div class="tom-modal-header">
|
||||
<span class="text-muted">text</span>
|
||||
<a class="text-muted js-tom-modal-close">✕</a>
|
||||
</div>
|
||||
<div class="tom-modal-body-flex">
|
||||
<textarea class="js-tom-modal-save-input" style="min-width:500px; min-height:600px;"></textarea>
|
||||
<input type="checkbox" class="js-tom-modal-save-checked" value="1" lock checked hidden>
|
||||
</div>
|
||||
<div class="tom-modal-footer">
|
||||
<button class="mac-btn-primary width-full js-tom-modal-save"
|
||||
tom-modal-save-id=""
|
||||
tom-modal-save-url="/nasa/list/detail/"
|
||||
tom-modal-save-close="true"
|
||||
>确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tom-modal" tom-modal-name="order" tabindex="-1" tom-modal-mark="mask" tom-modal-lock="false" hidden>
|
||||
<div class="tom-modal-inner">
|
||||
<div class="tom-modal-header">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user