|
|
@@ -288,25 +288,30 @@ export default {
|
|
|
},
|
|
|
//保存任务
|
|
|
submitTask(){
|
|
|
- console.log(this.queryParams.reportId)
|
|
|
- var a = {
|
|
|
- taskType:this.taskType,
|
|
|
- taskName:this.form.name,
|
|
|
- reportId:this.queryParams.reportId,
|
|
|
- endTime:this.form.date,
|
|
|
- remark:this.form.remark,
|
|
|
- assigns:this.checkList,
|
|
|
- }
|
|
|
- if(this.params){
|
|
|
- a.patentVO = this.params
|
|
|
- }
|
|
|
- this.$api.addAssTask(a).then(response=>{
|
|
|
- if(response.code == 200){
|
|
|
- this.taskInformation = false
|
|
|
- this.dialogVisible = true
|
|
|
- // this.$emit('addTask',true)
|
|
|
+ this.$refs.form.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ var a = {
|
|
|
+ taskType:this.taskType,
|
|
|
+ taskName:this.form.name,
|
|
|
+ reportId:this.queryParams.reportId,
|
|
|
+ endTime:this.form.date,
|
|
|
+ remark:this.form.remark,
|
|
|
+ assigns:this.checkList,
|
|
|
+ }
|
|
|
+ if(this.params){
|
|
|
+ a.patentVO = this.params
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$api.addAssTask(a).then(response=>{
|
|
|
+ if(response.code == 200){
|
|
|
+ this.taskInformation = false
|
|
|
+ this.dialogVisible = true
|
|
|
+ // this.$emit('addTask',true)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
out(){
|
|
|
this.timer = setInterval(() => {
|