1003410513_edit.jsp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: "${startProcess.serviceName}", page: "toTips", params: `{id:"${startProcess.id}", objectPath: "${startProcess.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. body: ''
  34. },
  35. winInterval: undefined
  36. }
  37. },
  38. mounted: function () {
  39. if ('${startProcess.objectIdName}') {
  40. this.obj['${startProcess.objectIdName}'] = '${startProcess.objectId}';
  41. }
  42. var _this = this;
  43. this.winInterval = setInterval(function() {
  44. if (!_this.$refs.editor.editor) {
  45. return;
  46. }
  47. window.clearInterval(_this.winInterval);
  48. space.plugin.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
  49. _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
  50. }, 100);
  51. }
  52. })
  53. space.forms.before = function () {
  54. space.plugin.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
  55. }
  56. </script>
  57. </html>