1001310331_edit.jsp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. html, body {
  5. overflow: hidden;
  6. }
  7. .ck-editor__editable_inline {
  8. height: 220px !important;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <div id="space-content">
  14. <div class="space-form-infor" style="overflow: hidden;">
  15. <el-form action="@service{ name: '${startEnableProces.serviceName}', page: 'toChangeFlowTips' }@" method="post" :model="obj" label-width="100px">
  16. <el-form-item label="标题" prop="title">
  17. <el-input clearable v-model="obj.title"></el-input>
  18. </el-form-item>
  19. <el-form-item label="描述">
  20. <textarea id="editor" style="height:225px;"></textarea>
  21. </el-form-item>
  22. </el-form>
  23. </div>
  24. <div class="space-form-btn">
  25. <el-button type="primary" icon="el-icon-s-promotion" @click="space.forms.submit();">提交</el-button>
  26. <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">取消</el-button>
  27. </div>
  28. </div>
  29. </body>
  30. <script type="text/javascript">
  31. var ckEditor = undefined;
  32. space.vue = new Vue({
  33. el: space.appContent,
  34. data() {
  35. return {
  36. obj: {
  37. id: '${startEnableProces.id}',
  38. title: '${startEnableProces.title}',
  39. cmsId: undefined
  40. }
  41. };
  42. },
  43. mounted: function () {
  44. this.initCMS();
  45. },
  46. methods: {
  47. /**
  48. * 初始化 CMS
  49. */
  50. initCMS: function() {
  51. var _this = this;
  52. ckEditor = space.plugins.ckEditor.init.getFlowCkEditor({
  53. el: '#editor',
  54. placeholder: '请输入描述',
  55. success: function(ck) {
  56. space.plugins.ckEditor.CMS.init.applyCMS(ck);
  57. _this.obj.cmsId = ck.CMS.id;
  58. ckEditor = ck;
  59. }
  60. });
  61. }
  62. }
  63. })
  64. space.forms.before = function() {
  65. space.plugins.ckEditor.CMS.submit(ckEditor);
  66. }
  67. </script>
  68. </html>