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