| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <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: "${startChangeProcess.serviceName}", page: "toTips", params: `{changeId:"${startChangeProcess.changeId}", objectPath: "${startChangeProcess.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
- },
- winInterval: undefined
- }
- },
- mounted: function() {
- if ('${startChangeProcess.objectIdName}') {
- this.obj['${startChangeProcess.objectIdName}'] = '${startChangeProcess.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>
|