1003410516_edit.jsp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. html,
  5. body {
  6. overflow: hidden;
  7. }
  8. </style>
  9. </head>
  10. <body>
  11. <div id="space-content">
  12. <div class="content-wrap">
  13. <div class="space-form-infor">
  14. <van-form action='@service{name: "${startChangeProcess.serviceName}", page: "toTips", params: `{changeId:"${startChangeProcess.changeId}", objectPath: "${startChangeProcess.objectPath}" }` }@' method="post" :model="obj" ref="obj" >
  15. <space-editor v-model="obj.body" type="flow" height="300px" placeholder="请输入描述" ref="editor"></space-editor>
  16. </van-form>
  17. </div>
  18. <div class="bottom-div">
  19. <van-button round type="info" native-type="button" @click="space.forms.submit();">
  20. 提交
  21. </van-button>
  22. </div>
  23. </div>
  24. </div>
  25. </body>
  26. <script type="text/javascript">
  27. space.vue = new Vue({
  28. el: space.appContent,
  29. data() {
  30. return {
  31. obj: {
  32. cmsId: undefined
  33. },
  34. winInterval: undefined
  35. }
  36. },
  37. mounted: function() {
  38. if ('${startChangeProcess.objectIdName}') {
  39. this.obj['${startChangeProcess.objectIdName}'] = '${startChangeProcess.objectId}';
  40. }
  41. var _this = this;
  42. this.winInterval = setInterval(function() {
  43. if (!_this.$refs.editor.editor) {
  44. return;
  45. }
  46. window.clearInterval(_this.winInterval);
  47. space.plugin.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
  48. _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
  49. }, 100);
  50. }
  51. })
  52. space.forms.before = function () {
  53. space.plugin.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
  54. }
  55. </script>
  56. </html>