| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <html>
- <head>
- </head>
- <body>
- <div id="space-content">
- <div class="space-form-infor">
- <el-form method="post" :model="obj" :rules="appRules" ref="obj" label-width="100px">
- <el-form-item label="名称" prop="name" >
- <el-input clearable v-model="obj.name"></el-input>
- </el-form-item>
- </el-form>
- </div>
- <div class="space-form-btn">
- <el-button type="primary" icon="el-icon-circle-check" :loading="loading" @click="submit">保存</el-button>
- <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">关闭</el-button>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- obj: {
- name: '${flowName}'
- },
- appRules: {
- name: space.rules.required({
- label: '名称'
- })
- },
- loading: false
- };
- },
- methods: {
- submit: function() {
-
- if (!this.obj.name) {
- space.forms.verify();
- return;
- }
-
- space.plugins.loading.show();
- parentWin.saveChildrenFlow(this.obj.name);
- space.plugins.loading.close();
-
- top.spaceIndex.info.success("保存成功", "成功");
- space.allFunction.closeDialog();
- parentWin.location.reload();
-
- }
- }
- })
-
- space.forms.verify();
- </script>
- </html>
|