| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <html>
- <head>
- <style type="text/css">
- html,
- body {
- overflow: hidden;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="content-wrap">
-
- <div class="space-form-infor">
- <van-form action='@service{name: "${startProcess.serviceName}", page: "toTips", params: `{id:"${startProcess.id}", objectPath: "${startProcess.objectPath}"}` }@' method="post" :model="obj" ref="obj" >
-
- <space-editor v-model="obj.body" type="flow" height="300px" placeholder="请输入描述" ref="editor"></space-editor>
-
- </van-form>
- </div>
- <div class="bottom-div">
- <van-button round type="info" native-type="button" @click="space.forms.submit();">
- 提交
- </van-button>
- </div>
-
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- obj: {
- cmsId: undefined,
- body: ''
- },
- winInterval: undefined
- }
- },
- mounted: function () {
- if ('${startProcess.objectIdName}') {
- this.obj['${startProcess.objectIdName}'] = '${startProcess.objectId}';
- }
- var _this = this;
- this.winInterval = setInterval(function() {
- if (!_this.$refs.editor.editor) {
- return;
- }
-
- window.clearInterval(_this.winInterval);
- space.plugin.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
- _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
- }, 100);
- }
- })
- space.forms.before = function () {
- space.plugin.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
- }
- </script>
- </html>
|