yrik 4 vuotta sitten
vanhempi
commit
e249c6cf57

+ 14 - 2
ruoyi-ui/src/views/management/info/index.vue

@@ -59,7 +59,7 @@
       <el-table-column label="填报日期" width="180" align="center" prop="createTime" />
       <el-table-column label="操作" width="280" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
-          <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']">查看/审核</el-button>
+          <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;"  v-hasPermi="['projectInfo:info:edit']" @click="chei(scope.row)" >查看/审核</el-button>
           <el-button size="mini" type="text" style="background: #3FBCEF;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
             @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交审核':'驳回'}}</el-button>
           <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']">修改</el-button>
@@ -485,7 +485,19 @@
         }).then(response => {
           this.download(response.msg);
         })
-      }
+      },
+      //查看
+      chei(row){
+        console.log(row)
+        this.$router.push({
+          path:'/management/row',
+          query:{
+            setid:row.id,
+            setrd:row.projectStatus
+            },
+          })
+      }
+
     }
   };
 </script>

+ 7 - 13
ruoyi-ui/src/views/management/nstruction/index.vue

@@ -156,19 +156,13 @@
             <el-table-column label="照片" align="center"  prop="photo">
               <!-- class-name="small-padding fixed-width" -->
               <template slot-scope="scope"   >
-                <el-upload
-                  class="upload-demo"
-                  action="http://192.168.101.11:8080/common/upload"
-                  :on-preview="handlePreviewtwo"
-                  :on-remove="handleRemovetwo"
-                  :before-remove="beforeRemovetwo"
-                  multiple
-                  :limit="3"
-                  :on-exceed="handleExceedtwo"
-                  :file-list="scope.row.photo">
-                  <el-button size="small" type="primary">点击上传</el-button>
-                  <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
-                </el-upload>
+                <div class="demo-image__preview">
+                  <el-image
+                    style="width: 100px; height: 100px"
+                    :src="scope.row.photo"
+                    :preview-src-list="srcList">
+                  </el-image>
+                </div>
               </template>
             </el-table-column>
             <el-table-column label="操作" align="center" >