Commit a4702b49 authored by Davve's avatar Davve

修改错误

parent c280ab0d
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取消</el-button> <el-button @click="dialogFormVisible = false">取消</el-button>
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">确认</el-button> <el-button type="primary" @click="dialogStatus==='create'?createData():updateData()" :disabled="this.is_click">确认</el-button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
return { return {
postForm: Object.assign({}, defaultForm), postForm: Object.assign({}, defaultForm),
loading: false, loading: false,
is_click: false,
user: '', user: '',
star: '', star: '',
group: '', group: '',
...@@ -713,6 +713,7 @@ ...@@ -713,6 +713,7 @@
createData() { createData() {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
this.is_click = true
this.temp.topic_id = this.postForm.id this.temp.topic_id = this.postForm.id
createRemark(this.temp).then((response) => { createRemark(this.temp).then((response) => {
this.list.push(response.data.data.data) this.list.push(response.data.data.data)
...@@ -722,6 +723,7 @@ ...@@ -722,6 +723,7 @@
type: 'success', type: 'success',
duration: 2000 duration: 2000
}) })
this.is_click = false
}) })
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment