1001310047_edit.jsp 1.8 KB

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