| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <html>
- <head>
- <style type="text/css">
- html, body {
- overflow: hidden;
- }
- .ck-editor__editable_inline {
- height: 220px !important;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="space-form-infor" style="overflow: hidden;">
- <el-form action="@service{ name: '${startEnableProces.serviceName}', page: 'toChangeFlowTips' }@" method="post" :model="obj" label-width="100px">
- <el-form-item label="标题" prop="title">
- <el-input clearable v-model="obj.title"></el-input>
- </el-form-item>
- <el-form-item label="描述">
- <textarea id="editor" style="height:225px;"></textarea>
- </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" onclick="space.allFunction.closeDialog();">取消</el-button>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- var ckEditor = undefined;
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- obj: {
- id: '${startEnableProces.id}',
- title: '${startEnableProces.title}',
- cmsId: undefined
- }
- };
- },
- mounted: function () {
- this.initCMS();
- },
- methods: {
- /**
- * 初始化 CMS
- */
- initCMS: function() {
- var _this = this;
- ckEditor = space.plugins.ckEditor.init.getFlowCkEditor({
- el: '#editor',
- placeholder: '请输入描述',
- success: function(ck) {
- space.plugins.ckEditor.CMS.init.applyCMS(ck);
- _this.obj.cmsId = ck.CMS.id;
- ckEditor = ck;
- }
- });
- }
- }
- })
- space.forms.before = function() {
- space.plugins.ckEditor.CMS.submit(ckEditor);
- }
- </script>
- </html>
|