| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <html>
- <head>
- <style type="text/css">
- html, body {
- overflow: hidden;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="space-form-infor" style="overflow: hidden;">
- <el-form action="@service{ name: '${startChangeProcess.serviceName}', page: 'toChangeFlowTips' }@" method="post" :model="obj" :rules="appRules" ref="obj" label-width="100px">
- <el-form-item label="描述">
- <space-editor v-model="obj.body" type="flow" height="220px" placeholder="请输入描述" ref="editor"></space-editor>
- </el-form-item>
- </el-form>
- </div>
- <div class="space-form-btn">
- <el-button type="primary" icon="el-icon-s-promotion" @click="space.forms.submit();">提交</el-button>
- <el-button icon="el-icon-circle-close" @click="space.allFunction.closeDialog();">取消</el-button>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- obj: {
- changeId: '${startChangeProcess.changeId}',
- cmsId: undefined,
- body: '',
- objectPath: '${startChangeProcess.objectPath}'
- },
- appRules: {
- },
- 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.plugins.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
- _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
- }, 100);
- }
- })
- space.forms.before = function() {
- space.plugins.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
- }
-
- $(document).ready(function() {
- space.forms.verify();
- })
- </script>
- </html>
|