xjc %!s(int64=5) %!d(string=hai) anos
pai
achega
4fdd95cc0b
Modificáronse 4 ficheiros con 43 adicións e 21 borrados
  1. 17 6
      src/views/apply/Change.vue
  2. 3 3
      src/views/apply/Detail.vue
  3. 10 5
      src/views/apply/New.vue
  4. 13 7
      src/views/apply/Update.vue

+ 17 - 6
src/views/apply/Change.vue

@@ -128,6 +128,12 @@
                 width="40">
                 </el-table-column>
                 <template v-for="(item,index) in itemList" >
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="学时证明"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <a v-if="scope.row.classhour_cert_url" target="_blank" :href="scope.row.classhour_cert_url">已生成</a>       
+                        </template>
+                    </el-table-column>
                     <el-table-column :key='index' v-if='item.checked&&item.name=="状态"' :width='item.width'
                     :prop="item.value"  :label="item.name" :class-name="item.value">
                     <template  slot-scope="scope">
@@ -140,7 +146,7 @@
                         <el-button size="mini" v-if='scope.row.order_status==4' type="success">{{scope.row.order_status_1}}</el-button>         
                     </template>
                     </el-table-column>
-                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"' :width='item.width'
+                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"' :width='item.width'
                     :prop="item.value"  :label="item.name">
                     </el-table-column>
                 </template>             
@@ -327,11 +333,16 @@ export default {
                     type: 'warning'
                 }).then(() => {
                    this.$api.updateSignStu({id:id,order_status:type}).then((res)=>{
-                        this.$message({
-                            message: '修改成功',
-                            type: 'success'
-                        })
-                        this.getData()
+                       if(!res.data.code){
+                            this.$message({
+                                message: '修改成功',
+                                type: 'success'
+                            })
+                            this.getData()
+                       }else{
+                           this.$message.error(res.data.message);
+                       }
+                        
                 })
             })
         }else{

+ 3 - 3
src/views/apply/Detail.vue

@@ -205,9 +205,9 @@ export default {
       rotate(url,key){
           this.$api.rotateImg({url:url,id:this.form.id}).then(res=>{
               if(res.data.code==0){
-                    let form=this.form;
-                    this.$set(form,key,res.data.data.url);
-                    this.form=form;
+                    // let form=this.form;
+                    this.$set(this.form,key,res.data.data.url);
+                    // this.form=form;
                     this.$message({message: '旋转成功!',type: 'success'});
               }else{
                   this.$message.error(res.data.message);

+ 10 - 5
src/views/apply/New.vue

@@ -336,11 +336,16 @@ export default {
                     type: 'warning'
                 }).then(() => {
                    this.$api.updateSignStu({id:id,order_status:type}).then((res)=>{
-                        this.$message({
-                            message: '修改成功',
-                            type: 'success'
-                        })
-                        this.getData()
+                       if(!res.data.code){
+                            this.$message({
+                                message: '修改成功',
+                                type: 'success'
+                            })
+                            this.getData()
+                       }else{
+                           this.$message.error(res.data.message);
+                       }
+                        
                 })
             })
         }else{

+ 13 - 7
src/views/apply/Update.vue

@@ -143,10 +143,11 @@
                         <el-button size="mini" v-if='scope.row.order_status==1' type="danger">{{scope.row.order_status_1}}</el-button> 
                         <el-button size="mini" v-if='scope.row.order_status==2' type="primary">{{scope.row.order_status_1}}</el-button> 
                         <el-button size="mini" v-if='scope.row.order_status==3' type="warning">{{scope.row.order_status_1}}</el-button>
-                        <el-button size="mini" v-if='scope.row.order_status==4' type="success">{{scope.row.order_status_1}}</el-button>         
+                        <el-button size="mini" v-if='scope.row.order_status==4' type="success">{{scope.row.order_status_1}}</el-button>
+                        <el-button size="mini" v-if='scope.row.order_status==7' type="warning">{{scope.row.order_status_1}}</el-button>            
                     </template>
                     </el-table-column>
-                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"' :width='item.width'
+                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"' :width='item.width'
                     :prop="item.value"  :label="item.name">
                     </el-table-column>
                 </template>             
@@ -333,11 +334,16 @@ export default {
                     type: 'warning'
                 }).then(() => {
                    this.$api.updateSignStu({id:id,order_status:type}).then((res)=>{
-                        this.$message({
-                            message: '修改成功',
-                            type: 'success'
-                        })
-                        this.getData()
+                       if(!res.data.code){
+                            this.$message({
+                                message: '修改成功',
+                                type: 'success'
+                            })
+                            this.getData()
+                       }else{
+                           this.$message.error(res.data.message);
+                       }
+                        
                 })
             })
         }else{