Explorar el Código

专家意见问题

SanHQin hace 5 meses
padre
commit
9a2a00fe7d

+ 1 - 1
src/views/printView/components/studentProjectWordShow.vue

@@ -626,7 +626,7 @@
       <tr>
         <td><span class="jc">专家意见</span></td>
         <td colspan="6" class="textLeft">
-					<span v-if="downWordData.promotion!=-1" style="position: absolute;left: 15px;top: 15px;">经专家组评审,一致通过,同意该项目立项。</span>
+					<span v-if="downWordData.promotion>=0" style="position: absolute;left: 15px;top: 15px;">经专家组评审,一致通过,同意该项目立项。</span>
           <!-- <el-button type="primary" style="position: absolute; right: 130px; top: 5px" v-if="![1,2].includes($store.state.userInfo.type)" @click="$emit('saveFile')">保存</el-button> -->
           <!-- <beUpload
             v-if="![1, 2].includes($store.state.userInfo.type)"

+ 1 - 1
src/views/projectApply/components/studentProjectWord.vue

@@ -826,7 +826,7 @@
           class="textLeft"
           style="height: 200px; position: relative"
         >
-				<span v-if="wordData.promotion!=-1" style="position: absolute;left: 15px;top: 15px;">经专家组评审,一致通过,同意该项目立项。</span>
+				<span v-if="wordData.promotion>=0" style="position: absolute;left: 15px;top: 15px;">经专家组评审,一致通过,同意该项目立项。</span>
           <!-- <el-button type="primary" style="position: absolute; right: 130px; top: 5px" v-if="![1,2].includes($store.state.userInfo.type) && wordData.courseId" @click="$emit('saveFile')">保存</el-button> -->
           <beUpload
             v-if="

+ 16 - 15
src/views/projectApply/components/studentProjectWordDetail.vue

@@ -51,7 +51,7 @@
         display: flex;
         justify-content: space-between;
       "
-    >	
+    >
 			<el-button
         style="width: 140px; margin: 20px auto"
         @click="downloadWordDig = true"
@@ -236,7 +236,7 @@
     </el-dialog>
   </div>
 </template>
-      
+
     <script>
 import { getNowDate } from "@/components/tool/Date.js";
 import { getWord2 } from "@/components/tool/getWord2";
@@ -277,7 +277,7 @@ const getFile = (url) => {
           resolve({ data: 1 });
         }else {
           resolve({ data: data.Body });
-          console.log(data); 
+          console.log(data);
         }          // sxuccessful response
 
       });
@@ -595,6 +595,7 @@ export default {
       this.ajax.get(this.$store.state.api + "/studentProjectData", param).then(
         (res) => {
           let data = res.data[0][0];
+
           this.wordData.projectName = data.title;
           this.wordData.radio = data.typeName;
           this.wordData.checkList = JSON.parse(data.multiSelectProject);
@@ -885,7 +886,7 @@ export default {
             //     Key: name
             // };
             // s3.getObject(params, function (err, data) {
-  
+
             //     if (err) console.log(err, err.stack); // an error occurred
             //     else {
             //         let url = window.URL.createObjectURL(new Blob([data.Body]));
@@ -935,9 +936,9 @@ export default {
 						// 			}
           	// 		}
 						// 	})
-							
+
 						// }))
-						
+
 						// img[i].setAttribute("crossOrigin","*");
 					}
 					let font = el.getElementsByTagName('font');
@@ -957,7 +958,7 @@ export default {
 						if(!matchArr)continue;
 						pFontSize.push({style:pStyle,index:`${elIndex}:${i}`})
 						let originalSize = pStyle.match(/font-size: (\d+)px/)[1];
-						
+
 						let newSize = parseInt(originalSize)*1.3;
 						let newStyle = pStyle.replace(/font-size: (\d+)px/,`font-size: ${newSize}pt`)
 						p[i].setAttribute("style",newStyle)
@@ -985,7 +986,7 @@ export default {
 								if(!oldStyle)continue;
 								p[i].setAttribute("style",oldStyle.style)
 								// let pStyle = p[i].getAttribute("style")
-							
+
 								// if(!pStyle)continue
 								// let matchArr = pStyle.match(/font-size: (\d+)px/);
 								// console.log(matchArr)
@@ -998,13 +999,13 @@ export default {
 						this.loading = false;
 					})
 				})
-				
+
 			})
-			
-			
+
+
 			// getWord2({...this.downWordData,elementList:this.$refs.myChild.$refs.pdfShow.querySelectorAll('.downImage')})
 			// getWord2({...this.downWordData,signData:this.signData});
-			
+
 		},
     downloadPDFFile() {
 			// let elementList = this.$refs.myChild.$refs.pdfShow.querySelectorAll('.downImage')
@@ -1053,7 +1054,7 @@ export default {
 			}else if(opt=='3'){
 				this.updateFile = {...file,index:index}
 				this.dialogVisibleUpdateFile = true;
-				
+
 			}else if(opt=='4'){
 				this.$confirm("确定删除该文件?","提示",{
 					type:"error",
@@ -1078,7 +1079,7 @@ export default {
 			}else if(opt=='3'){
 				this.updateFile = {...file,index:index}
 				this.dialogVisibleUpdateFile2 = true;
-				
+
 			}else if(opt=='4'){
 				this.$confirm("确定删除该文件?","提示",{
 					type:"error",
@@ -1263,7 +1264,7 @@ export default {
   },
 };
 </script>
-      
+
     <style lang="less" scoped>
 #studentProjectWordDetail {
   width: 100%;

+ 1 - 1
src/views/projectApply/components/studentProjectWordShow.vue

@@ -567,7 +567,7 @@
       <tr>
         <td><span class="jc">专家意见</span></td>
         <td colspan="6" class="textLeft">
-					<span v-if="downWordData.promotion!=-1" style="position: absolute;left: 15px;top: 15px;">经专家组评审,一致通过,同意该项目立项。</span>
+					<span v-if="downWordData.promotion>=0" style="position: absolute;left: 15px;top: 15px;">经专家组评审,一致通过,同意该项目立项。</span>
           <!-- <el-button type="primary" style="position: absolute; right: 130px; top: 5px" v-if="![1,2].includes($store.state.userInfo.type)" @click="$emit('saveFile')">保存</el-button> -->
           <beUpload
             v-if="![1, 2].includes($store.state.userInfo.type)"