1001310212_edit.jsp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. html, body {
  5. overflow: hidden;
  6. }
  7. </style>
  8. </head>
  9. <body>
  10. <div id="space-content">
  11. <div class="space-form-infor" style="overflow: hidden;">
  12. <el-form action="@service{ name: '${startChangeProcess.serviceName}', page: 'toChangeFlowTips' }@" method="post" :model="obj" :rules="appRules" ref="obj" label-width="100px">
  13. <el-form-item label="描述">
  14. <space-editor v-model="obj.body" type="flow" height="220px" placeholder="请输入描述" ref="editor"></space-editor>
  15. </el-form-item>
  16. </el-form>
  17. </div>
  18. <div class="space-form-btn">
  19. <el-button type="primary" icon="el-icon-s-promotion" @click="space.forms.submit();">提交</el-button>
  20. <el-button icon="el-icon-circle-close" @click="space.allFunction.closeDialog();">取消</el-button>
  21. </div>
  22. </div>
  23. </body>
  24. <script type="text/javascript">
  25. space.vue = new Vue({
  26. el: space.appContent,
  27. data() {
  28. return {
  29. obj: {
  30. changeId: '${startChangeProcess.changeId}',
  31. cmsId: undefined,
  32. body: '',
  33. objectPath: '${startChangeProcess.objectPath}'
  34. },
  35. appRules: {
  36. },
  37. winInterval: undefined
  38. };
  39. },
  40. mounted: function () {
  41. if ('${startChangeProcess.objectIdName}') {
  42. this.obj['${startChangeProcess.objectIdName}'] = '${startChangeProcess.objectId}';
  43. }
  44. var _this = this;
  45. this.winInterval = setInterval(function() {
  46. if (!_this.$refs.editor.editor) {
  47. return;
  48. }
  49. window.clearInterval(_this.winInterval);
  50. space.plugins.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
  51. _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
  52. }, 100);
  53. }
  54. })
  55. space.forms.before = function() {
  56. space.plugins.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
  57. }
  58. $(document).ready(function() {
  59. space.forms.verify();
  60. })
  61. </script>
  62. </html>