mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
fix: 修复手机短信管理业务场景字段的模板处理问题
This commit is contained in:
parent
daedce4b9b
commit
9d0f3e852b
@ -9,17 +9,11 @@
|
|||||||
{block name="content"}
|
{block name="content"}
|
||||||
<div class="think-box-shadow">
|
<div class="think-box-shadow">
|
||||||
{include file='message/index_search'}
|
{include file='message/index_search'}
|
||||||
<label class="layui-hide"><textarea id="SecensData">{$secens|default=''|json_encode}</textarea></label>
|
<label class="layui-hide"><textarea id="ScenesData">{$scenes|default=''|json_encode}</textarea></label>
|
||||||
<table id="MessageData" data-url="{:sysuri()}"></table>
|
<table id="MessageData" data-url="{:sysuri()}"></table>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let secens = JSON.parse(document.getElementById('SecensData').value || '{}');
|
|
||||||
|
|
||||||
function showScene(scene) {
|
|
||||||
return secens[scene] || scene;
|
|
||||||
}
|
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
let scenes = JSON.parse(document.getElementById('ScenesData').value || '{}');
|
||||||
$('#MessageData').layTable({
|
$('#MessageData').layTable({
|
||||||
even: true, height: 'full', loading: true,
|
even: true, height: 'full', loading: true,
|
||||||
sort: {field: 'id', type: 'desc'},
|
sort: {field: 'id', type: 'desc'},
|
||||||
@ -28,7 +22,11 @@
|
|||||||
{field: 'smsid', title: '消息编号', sort: true, minWidth: 100, width: '12%', align: 'center'},
|
{field: 'smsid', title: '消息编号', sort: true, minWidth: 100, width: '12%', align: 'center'},
|
||||||
{field: 'type', title: '短信类型', sort: true, minWidth: 90, width: '8%', align: 'center'},
|
{field: 'type', title: '短信类型', sort: true, minWidth: 90, width: '8%', align: 'center'},
|
||||||
{field: 'phone', title: '发送手机', sort: true, minWidth: 100, width: '10%', align: 'center'},
|
{field: 'phone', title: '发送手机', sort: true, minWidth: 100, width: '10%', align: 'center'},
|
||||||
{field: 'scene', title: '业务场景', align: 'center', minWidth: 100, width: '8%', templet: '<div>{{-showScene(d.scene_name)}}</div>'},
|
{
|
||||||
|
field: 'scene', title: '业务场景', align: 'center', minWidth: 100, width: '8%', templet: function(d) {
|
||||||
|
return scenes[d.scene] || d.scene_name;
|
||||||
|
}
|
||||||
|
},
|
||||||
{field: 'params', title: '短信内容', align: 'center'},
|
{field: 'params', title: '短信内容', align: 'center'},
|
||||||
{field: 'result', title: '返回结果', align: 'center'},
|
{field: 'result', title: '返回结果', align: 'center'},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user