From 6f1282471e5fd213443ac1f6dabfd3ef8b08c5c3 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 06 六月 2023 09:38:21 +0800
Subject: [PATCH] 修改前端页面
---
src/main.js | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/src/main.js b/src/main.js
index ebd343b..42298d2 100644
--- a/src/main.js
+++ b/src/main.js
@@ -14,6 +14,8 @@
import StringUtil from './assets/js/StringUtil'
import TscPrintUtil from './assets/js/TscPrintUtil'
import Print from './assets/js/print'
+import moment from 'moment'
+Vue.prototype.$moment = moment;
Vue.use(Print) // 娉ㄥ唽
import ViewUI from 'view-design';
@@ -21,12 +23,44 @@
// import style
import 'view-design/dist/styles/iview.css';
+import preview from 'vue-photo-preview'
+//preview鐨勫弬鏁�
+var option = {
+ minZoom:0.3,
+ maxSpreadZoom: 20, // 鎺у埗棰勮鍥炬渶澶х殑鍊嶆暟锛岄粯璁ゆ槸2鍊嶏紝鎴戣繖閲屾敼鎴愪簡鍘熷浘
+ fullscreenEl: false, //鎺у埗鏄惁鏄剧ず鍙充笂瑙掑叏灞忔寜閽�
+ closeEl: true, //鎺у埗鏄惁鏄剧ず鍙充笂瑙掑叧闂寜閽�
+ tapToClose: true, //鐐瑰嚮婊戝姩鍖哄煙搴斿叧闂浘搴�
+ shareEl: false, //鎺у埗鏄惁鏄剧ず鍒嗕韩鎸夐挳
+ zoomEl: true, //鎺у埗鏄惁鏄剧ず鏀惧ぇ缂╁皬鎸夐挳
+ counterEl: true, //鎺у埗鏄惁鏄剧ず宸︿笂瑙掑浘鐗囨暟閲忔寜閽�
+ arrowEl: true, //鎺у埗濡傚浘鐨勫乏鍙崇澶达紙pc娴忚鍣ㄦā鎷熸墜鏈烘椂锛�
+ tapToToggleControls: true, //鐐瑰嚮搴斿垏鎹㈡帶浠剁殑鍙鎬�
+ allowPanToNext:true, //褰撳墠椤圭洰缂╂斁鏃讹紝鍏佽婊戝姩鍒颁笅涓�涓�/涓婁竴涓」鐩�
+ clickToCloseNonZoomable: false,//鐐瑰嚮鍥剧墖搴斿叧闂浘搴擄紝浠呭綋鍥惧儚灏忎簬瑙嗗彛鐨勫ぇ灏忔椂
+ closeOnVerticalDrag:false,//鍨傜洿鎷栧姩鍜屾湭缂╂斁鍥惧儚鏃讹紝璇峰叧闂浘搴�
+ pinchToClose:false,//鎹忎互鍏抽棴鐢诲粖鎵嬪娍
+ getDoubleTapZoom:()=>1 //鍑芥暟搴旇繑鍥炵缉鏀剧骇鍒紝鍦ㄥ弻鍑绘墜鍔垮悗锛岀敤鎴峰崟鍑荤缉鏀惧浘鏍囨垨榧犳爣鍗曞嚮鍥惧儚鏈韩鏃讹紝鍥惧儚灏嗙缉鏀惧埌璇ョ骇鍒�
+}
+Vue.use(preview,option)
Vue.use(ViewUI);
Vue.config.productionTip = false
Vue.use(ElementUI, {
size: 'small'
});
+
+import echarts from 'echarts'
+Vue.prototype.$echarts = echarts;
+
+import '@/utils/lib-fiexible'
+
+import {getStore,setStore,removeStore} from "./libs/store";
+
+Vue.prototype.getStore = getStore
+Vue.prototype.setStore = setStore
+Vue.prototype.removeStore = removeStore
+
Vue.prototype.$axios = axios;
axios.defaults.withCredentials = true
// 瀵规彁浜ょ殑鏁版嵁杩涜json搴忓垪鍖�,鍙兘瀛樺湪闂,鏆傛椂鏈彂鐜颁粈涔堥棶棰�
--
Gitblit v1.9.1