-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lvyuedong
committed
Jun 15, 2022
1 parent
3f503ac
commit 414a2f0
Showing
7 changed files
with
238 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,36 @@ | ||
<template> | ||
<v-content> | ||
<el-form | ||
:model="formData" | ||
:rules="rules" | ||
class="el-form" | ||
ref="form" | ||
label-position="right" | ||
label-width="80px" | ||
> | ||
<el-form :rules="rules" ref="form" :model="formData"> | ||
{{ curd_form_group }} | ||
<el-form-item> | ||
<el-button type="primary" @click="submit">保存</el-button> | ||
</el-form-item> | ||
</el-form> | ||
<template #footer> | ||
<el-button v-ripple type="danger" icon="Back" @click="toPage(-1)">返回</el-button> | ||
<el-button v-ripple type="warning" icon="Delete" :disabled="disabled" @click="deleteTemporary"> | ||
删除暂存数据 | ||
</el-button> | ||
<el-button | ||
v-ripple | ||
:loading="temporaryLoading" | ||
type="primary" | ||
icon="Brush" | ||
:disabled="disabled" | ||
@click="temporary" | ||
> | ||
暂存 | ||
</el-button> | ||
<el-button v-ripple :loading="loading" type="success" icon="Check" :disabled="disabled" @click="submit"> | ||
保存 | ||
</el-button> | ||
</template> | ||
</v-content> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from "vue" | ||
import addMixin from "/add" | ||
export default defineComponent({ | ||
mixins: [addMixin], | ||
data() { | ||
return { | ||
module: '{{controller_name}}', | ||
formData: {{curd_form_field}}, | ||
rules: {}, | ||
} | ||
}, | ||
methods: {}, | ||
<script setup> | ||
const rules = {} | ||
const {toPage, loading, temporaryLoading, disabled, form, formData, submit, temporary, deleteTemporary } = useAdd({ | ||
submitUrl: "{{ save_url}}", | ||
formData: {{curd_form_field}}, | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.el-form-item { | ||
&.input { | ||
width: 780px; | ||
} | ||
} | ||
</style> | ||
<style lang="scss" scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,37 @@ | ||
<template> | ||
<v-content> | ||
<el-form | ||
:model="formData" | ||
:rules="rules" | ||
class="el-form" | ||
ref="form" | ||
label-position="right" | ||
label-width="80px" | ||
> | ||
<el-form :rules="rules" ref="form" :model="formData"> | ||
{{ curd_form_group }} | ||
<el-form-item> | ||
<el-button type="primary" @click="submit">保存</el-button> | ||
</el-form-item> | ||
</el-form> | ||
<template #footer> | ||
<el-button v-ripple type="danger" icon="Back" @click="toPage(-1)">返回</el-button> | ||
<el-button v-ripple type="warning" icon="Delete" :disabled="disabled" @click="deleteTemporary"> | ||
删除暂存数据 | ||
</el-button> | ||
<el-button | ||
v-ripple | ||
:loading="temporaryLoading" | ||
type="primary" | ||
icon="Brush" | ||
:disabled="disabled" | ||
@click="temporary" | ||
> | ||
暂存 | ||
</el-button> | ||
<el-button v-ripple :loading="loading" type="success" icon="Check" :disabled="disabled" @click="submit"> | ||
保存 | ||
</el-button> | ||
</template> | ||
</v-content> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from "vue" | ||
import editMixin from "/edit" | ||
export default defineComponent({ | ||
mixins: [editMixin], | ||
data() { | ||
return { | ||
module: '{{controller_name}}', | ||
formData: {{curd_form_field}}, | ||
rules: {}, | ||
} | ||
}, | ||
methods: {}, | ||
<script setup> | ||
const rules = {} | ||
const { toPage,loading, temporaryLoading, disabled, form, formData, submit, temporary, deleteTemporary } = useEdit({ | ||
url: "/demo/tmpDemoGenerate/info", | ||
submitUrl: "/demo/tmpDemoGenerate/edit", | ||
formData: {{curd_form_field}}, | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.el-form-item { | ||
&.input { | ||
width: 780px; | ||
} | ||
} | ||
</style> | ||
<style lang="scss" scoped></style> |
Oops, something went wrong.