Commit 0513cdd0 authored by 张伯涛's avatar 张伯涛

批量校验

parent 840c8e80
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
</div> </div>
<div style="margin-left: 10px"> <div style="margin-left: 10px">
<el-button type="success" @click="dialogFormVisible = true">新增</el-button> <el-button type="success" @click="dialogFormVisible = true">新增</el-button>
<el-button type="primary" @click="BatChcheck">批量校验</el-button>
<el-button type="success" @click="BatchExecution">批量执行</el-button> <el-button type="success" @click="BatchExecution">批量执行</el-button>
</div> </div>
</div> </div>
...@@ -424,6 +425,30 @@ obj=this.typeform*/ ...@@ -424,6 +425,30 @@ obj=this.typeform*/
}) })
}) })
}, },
BatChcheck() {
this.$confirm('是否执行批量校验操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$axios({
method: 'post',
url: 'http://10.19.103.15:8090/contract/contract/checkBatch'
})
.then((res) => {
if (res.data.code === '200') {
this.$message({
type: 'success',
message: '合同已在后台开始校验,请稍后查看结果'
})
}
})
.catch((err) => {
return err
})
this.handleQuery()
})
},
BatchExecution() { BatchExecution() {
this.$confirm('是否执行批量操作?', '提示', { this.$confirm('是否执行批量操作?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
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