考勤明细文件预览
This commit is contained in:
parent
f1fd6aa485
commit
a83e9cf5ed
|
|
@ -99,4 +99,4 @@ new Vue({
|
|||
* 文件路径
|
||||
* @type {string}
|
||||
*/
|
||||
Vue.prototype.$baseUrl = 'http://192.168.0.14:1810/statics'
|
||||
Vue.prototype.$baseUrl = 'http://10.1.0.142:2000/statics'
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export function lookFaceFile(){
|
|||
// return 'http://218.21.27.6:1999/file/statics/' //生产服务器
|
||||
}
|
||||
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://218.21.27.6:18013/onlinePreview?url='
|
||||
}
|
||||
|
|
|
|||
|
|
@ -565,7 +565,8 @@ export default {
|
|||
var filePath = this.getFilePath(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();
|
||||
// window.open(url_)
|
||||
// 根据文件路径打开预览窗口
|
||||
|
|
|
|||
|
|
@ -926,9 +926,10 @@ export default {
|
|||
var filePath = this.getFilePath(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();
|
||||
// window.open(url_)
|
||||
var url_=this.$baseUrl + filePath ;
|
||||
// 根据文件路径打开预览窗口
|
||||
this.fileView= true;
|
||||
this.kkFilePreview = {
|
||||
|
|
|
|||
|
|
@ -195,11 +195,12 @@ import {getDetailsRecordList, updateAttDetailsDataExamine,listDept} from "@/api/
|
|||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
import { getToken } from '@/utils/auth'
|
||||
import BnsKkFilePreview from '@/views/bns-kkFile-preview'
|
||||
|
||||
export default {
|
||||
name: "Record",
|
||||
dicts: ['att_status'],
|
||||
components: {Treeselect},
|
||||
components: {Treeselect,BnsKkFilePreview},
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
|
|
@ -433,10 +434,8 @@ export default {
|
|||
var filePath = this.getFilePath(filesVoList, type);
|
||||
var fileName = this.getFileName(filesVoList, type);
|
||||
|
||||
var url_=this.$baseUrl + filePath +"?token="+ getToken();
|
||||
|
||||
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_=this.$baseUrl + filePath +"?token="+ getToken();
|
||||
var url_=this.$baseUrl + filePath ;
|
||||
// var url_ = "http://127.0.0.1:1810/statics" + filePath +"?token="+ getToken();
|
||||
// window.open(url_)
|
||||
// 根据文件路径打开预览窗口
|
||||
|
|
|
|||
Loading…
Reference in New Issue