|
|
@ -86,12 +86,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button @click="addItem">{{"添加案例"}}</el-button> |
|
|
<el-button :disabled="isAble" @click="addItem">{{"添加案例"}}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-button type="primary" @click="dataFormSubmitHandle()">{{"发布案例"}}</el-button> |
|
|
<el-button type="primary" :disabled="isAble" @click="dataFormSubmitHandle()">{{"发布案例"}}</el-button> |
|
|
<el-button size="small" style="width: 95px" @click="back">返回</el-button> |
|
|
<el-button size="small" :disabled="isAble" style="width: 95px" @click="back">返回</el-button> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-row> |
|
|
<el-row> |
|
|
@ -142,6 +142,7 @@ export default { |
|
|
connectListVisible: false, |
|
|
connectListVisible: false, |
|
|
content: '', |
|
|
content: '', |
|
|
loading: false, |
|
|
loading: false, |
|
|
|
|
|
isAble: false, |
|
|
editorOption: { |
|
|
editorOption: { |
|
|
placeholder: 'Please enter it here...', |
|
|
placeholder: 'Please enter it here...', |
|
|
modules:{ |
|
|
modules:{ |
|
|
@ -349,8 +350,10 @@ export default { |
|
|
this.dataForm.caseNumber = this.dataForm.caseNumber + 1 |
|
|
this.dataForm.caseNumber = this.dataForm.caseNumber + 1 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
this.isAble = true; |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/cloudAnalysis/typicalcase', this.dataForm).then(({ data: res }) => { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']('/cloudAnalysis/typicalcase', this.dataForm).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
|
|
|
this.isAble = false; |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
@ -358,6 +361,7 @@ export default { |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
duration: 500, |
|
|
duration: 500, |
|
|
onClose: () => { |
|
|
onClose: () => { |
|
|
|
|
|
this.isAble = false; |
|
|
this.back() |
|
|
this.back() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|