Browse Source

查看小程序首页

master
yanyan 3 years ago
parent
commit
cbe9be5616
  1. 9
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/index.html
  2. 5
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/view.html
  3. 1
      lib/EmergencyService/zdxtEmergencyKnowledgeService/src/main/java/com/zdxt/knowledge/controller/CustomImageController.java

9
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/index.html

@ -73,7 +73,7 @@
<div class="btn-export" onclick="Swal.fire({ title: 'Export', <div class="btn-export" onclick="Swal.fire({ title: 'Export',
html: '<pre><code>'+JSON.stringify(editor.export(), null,4)+'</code></pre>' html: '<pre><code>'+JSON.stringify(editor.export(), null,4)+'</code></pre>'
})">Export</div> })" hidden>Export</div>
<!--<div class="btn-clear" onclick="editor.clearModuleSelected()">Clear</div> <!--<div class="btn-clear" onclick="editor.clearModuleSelected()">Clear</div>
<div class="btn-lock"> <div class="btn-lock">
<i id="lock" class="fas fa-lock" onclick="editor.editor_mode='fixed'; changeMode('lock');"></i> <i id="lock" class="fas fa-lock" onclick="editor.editor_mode='fixed'; changeMode('lock');"></i>
@ -291,7 +291,7 @@
case 'facebook': case 'facebook':
var facebook = ` var facebook = `
<div> <div>
<div class="title-box"><i class="fab fa-facebook"></i> Facebook Message</div> <div class="title-box"><i class="fab fa-facebook"></i> 文本</div>
</div> </div>
`; `;
editor.addNode('facebook', 0, 1, pos_x, pos_y, 'facebook', {}, facebook ); editor.addNode('facebook', 0, 1, pos_x, pos_y, 'facebook', {}, facebook );
@ -319,10 +319,9 @@
case 'telegram': case 'telegram':
var telegrambot = ` var telegrambot = `
<div> <div>
<div class="title-box"><i class="fab fa-telegram-plane"></i> Telegram bot</div> <div class="title-box"><i class="fab fa-telegram-plane"></i> 下一题</div>
<div class="box"> <div class="box">
<p>Send to telegram</p> <p>请选择你要绑定的下一个问题</p>
<p>select channel</p>
<select df-channel> <select df-channel>
<option value="channel_1">Channel 1</option> <option value="channel_1">Channel 1</option>
<option value="channel_2">Channel 2</option> <option value="channel_2">Channel 2</option>

5
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/view.html

@ -103,7 +103,7 @@
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.guid + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.guid + '\')"><i class="fa fa-remove"></i>删除</a>');
actions.push('<a class="btn btn-primary btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.guid + '\',800,450)"><i class="fa fa-eye"></i>查看</a> '); actions.push('<a class="btn btn-primary btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.guid + '\',800,450)"><i class="fa fa-eye"></i>查看</a> ');
// actions.push('<a class="btn btn-danger btn-xs ' + bindFlag + '" href="javascript:void(0)" onclick="bind(\'' + row.guid + '\',800,450)"><i class="fa fa-eject"></i>绑定</a>'); // actions.push('<a class="btn btn-danger btn-xs ' + bindFlag + '" href="javascript:void(0)" onclick="bind(\'' + row.guid + '\',800,450)"><i class="fa fa-eject"></i>绑定</a>');
actions.push('<a class="btn btn-danger btn-xs ' + bindFlag + '" href="javascript:void(0)" onclick="bindNew(\'' + row.guid + '\',800,450)"><i class="fa fa-eject"></i>绑定</a>'); actions.push('<a class="btn btn-danger btn-xs ' + bindFlag + '" href="javascript:void(0)" onclick="bindNew(\'' + row.guid + '\',900,500)"><i class="fa fa-eject"></i>绑定</a>');
return actions.join(''); return actions.join('');
} }
}] }]
@ -125,6 +125,9 @@
function bindNew(id, width, height) { function bindNew(id, width, height) {
$.modal.open("", ctx + "project/question/bindNew/" + id, width, height); $.modal.open("", ctx + "project/question/bindNew/" + id, width, height);
// $.get(ctx + "project/question/bindNew/" + id,
// function(){}
// );
} }
function reset() { function reset() {

1
lib/EmergencyService/zdxtEmergencyKnowledgeService/src/main/java/com/zdxt/knowledge/controller/CustomImageController.java

@ -50,7 +50,6 @@ public class CustomImageController extends BaseController {
/** /**
* 查询自定义图片列表 * 查询自定义图片列表
*/ */
@RequiresPermissions("custom:image:view")
@PostMapping("/listAll") @PostMapping("/listAll")
@ResponseBody @ResponseBody
public ZDResponse listAll(CustomImage customImage) { public ZDResponse listAll(CustomImage customImage) {

Loading…
Cancel
Save