1000810281_edit.jsp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="space-content">
  6. <div class="space-form-infor">
  7. <el-form method="post" :model="obj" :rules="appRules" ref="obj" label-width="100px">
  8. <el-form-item label="名称" prop="name" >
  9. <el-input clearable v-model="obj.name"></el-input>
  10. </el-form-item>
  11. </el-form>
  12. </div>
  13. <div class="space-form-btn">
  14. <el-button type="primary" icon="el-icon-circle-check" :loading="loading" @click="submit">保存</el-button>
  15. <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">关闭</el-button>
  16. </div>
  17. </div>
  18. </body>
  19. <script type="text/javascript">
  20. space.vue = new Vue({
  21. el: space.appContent,
  22. data() {
  23. return {
  24. obj: {
  25. name: '${flowName}'
  26. },
  27. appRules: {
  28. name: space.rules.required({
  29. label: '名称'
  30. })
  31. },
  32. loading: false
  33. };
  34. },
  35. methods: {
  36. submit: function() {
  37. if (!this.obj.name) {
  38. space.forms.verify();
  39. return;
  40. }
  41. space.plugins.loading.show();
  42. parentWin.saveChildrenFlow(this.obj.name);
  43. space.plugins.loading.close();
  44. top.spaceIndex.info.success("保存成功", "成功");
  45. space.allFunction.closeDialog();
  46. parentWin.location.reload();
  47. }
  48. }
  49. })
  50. space.forms.verify();
  51. </script>
  52. </html>