考勤明细文件预览

This commit is contained in:
lSun 2025-02-28 18:44:07 +08:00
parent f1fd6aa485
commit a83e9cf5ed
5 changed files with 10 additions and 9 deletions

View File

@ -99,4 +99,4 @@ new Vue({
* 文件路径 * 文件路径
* @type {string} * @type {string}
*/ */
Vue.prototype.$baseUrl = 'http://192.168.0.14:1810/statics' Vue.prototype.$baseUrl = 'http://10.1.0.142:2000/statics'

View File

@ -9,7 +9,7 @@ export function lookFaceFile(){
// return 'http://218.21.27.6:1999/file/statics/' //生产服务器 // return 'http://218.21.27.6:1999/file/statics/' //生产服务器
} }
export function filePreview(){ export function filePreview(){
return 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器 return 'http://10.1.0.142:8012/onlinePreview?url=' //14服务器
// return 'http://112.29.103.165:8012/onlinePreview?url=' //1.6演示服务器 // return 'http://112.29.103.165:8012/onlinePreview?url=' //1.6演示服务器
// return 'http://218.21.27.6:18013/onlinePreview?url=' // return 'http://218.21.27.6:18013/onlinePreview?url='
} }

View File

@ -565,7 +565,8 @@ export default {
var filePath = this.getFilePath(filesVoList, type); var filePath = this.getFilePath(filesVoList, type);
var fileName = this.getFileName(filesVoList, type); var fileName = this.getFileName(filesVoList, type);
var url_=this.$baseUrl + filePath +"?token="+ getToken(); var url_=this.$baseUrl + filePath ;
// var url_=this.$baseUrl + filePath +"?token="+ getToken();
// var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken(); // var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken();
// window.open(url_) // window.open(url_)
// //

View File

@ -926,9 +926,10 @@ export default {
var filePath = this.getFilePath(filesVoList, type); var filePath = this.getFilePath(filesVoList, type);
var fileName = this.getFileName(filesVoList, type); var fileName = this.getFileName(filesVoList, type);
var url_=this.$baseUrl + filePath +"?token="+ getToken(); // var url_=this.$baseUrl + filePath +"?token="+ getToken();
// var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken(); // var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken();
// window.open(url_) // window.open(url_)
var url_=this.$baseUrl + filePath ;
// //
this.fileView= true; this.fileView= true;
this.kkFilePreview = { this.kkFilePreview = {

View File

@ -195,11 +195,12 @@ import {getDetailsRecordList, updateAttDetailsDataExamine,listDept} from "@/api/
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import BnsKkFilePreview from '@/views/bns-kkFile-preview'
export default { export default {
name: "Record", name: "Record",
dicts: ['att_status'], dicts: ['att_status'],
components: {Treeselect}, components: {Treeselect,BnsKkFilePreview},
data() { data() {
return { return {
// //
@ -433,10 +434,8 @@ export default {
var filePath = this.getFilePath(filesVoList, type); var filePath = this.getFilePath(filesVoList, type);
var fileName = this.getFileName(filesVoList, type); var fileName = this.getFileName(filesVoList, type);
var url_=this.$baseUrl + filePath +"?token="+ getToken(); // var url_=this.$baseUrl + filePath +"?token="+ getToken();
var url_=this.$baseUrl + filePath ;
console.log("http://192.168.0.14:8100/statics" + filePath +"?token="+ getToken())
console.log("http://192.168.0.14:1810/statics" + filePath +"?token="+ getToken())
// var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken(); // var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken();
// window.open(url_) // window.open(url_)
// //