xjc %!s(int64=3) %!d(string=hai) anos
pai
achega
fd1542b4fd
Modificáronse 2 ficheiros con 13 adicións e 1 borrados
  1. 5 1
      src/components/template.vue
  2. 8 0
      src/views/common/detail.vue

+ 5 - 1
src/components/template.vue

@@ -254,6 +254,7 @@
                         <template v-if='role==1'>
                             <el-button v-if='info.post_status==0' type="primary" @click="submitForm(0)" plain>暂存</el-button>
                             <el-button v-if='info.post_status==0' type="primary" @click="submitForm(1)">提交</el-button>
+                            <el-button v-if='info.post_status==5' type="primary" @click="submitForm(5)">重新填报</el-button>
                         </template>
                         <!-- 专家帐号 -->
                         <template v-if='role==2'>
@@ -514,7 +515,6 @@ export default {
             this.open=true
         },
         submitForm(type){
-            console.log(this.form,222222222222)
             if(type==0){
                 // return false;
                     var form={
@@ -529,6 +529,10 @@ export default {
                         this.$emit('post',form)
                     },100)
             }else{
+                if(type==5){
+                    this.$router.push({path:"/list/detail",query:{id:this.info.new_workflow_id}})
+                    return false;
+                }
                 this.$refs["form"].validate(valid => {
                 if (valid) {
                     // return false;

+ 8 - 0
src/views/common/detail.vue

@@ -380,5 +380,13 @@ export default {
   created() {
     this.role = localStorage.getItem("role");
   },
+  watch:{
+    '$route'(to,from){
+      if (this.$route.query.id) {
+        this.query.id = this.$route.query.id;
+        this.getData();
+      }
+    }
+  }
 };
 </script>