|
@@ -34,7 +34,7 @@ export default {
|
|
|
*/
|
|
|
showLoading(opt) {
|
|
|
let options = opt || {};
|
|
|
- loadingStatus = ElLoading.service({
|
|
|
+ window?.loadingStatus = ElLoading.service({
|
|
|
target: options.target || 'body',
|
|
|
body: (options.body == true || options.body == false) ? options.body : false,
|
|
|
fullscreen: (options.fullscreen == true || options.fullscreen == false) ? options.fullscreen : true,
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
* 关闭loading
|
|
|
*/
|
|
|
closeLoading() {
|
|
|
- loadingStatus.close();
|
|
|
+ window?.loadingStatus?.close();
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -208,7 +208,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
- // JS 触发全屏功能
|
|
|
+ /**
|
|
|
+ * JS 触发全屏功能
|
|
|
+ */
|
|
|
requestFullscreen() {
|
|
|
//全屏
|
|
|
const docElm = document.documentElement;
|
|
@@ -289,6 +291,7 @@ export default {
|
|
|
isNumber: /^(-?\d+)(\.\d+)?$/
|
|
|
},
|
|
|
|
|
|
+ // elementUI 自定义表单效验规则
|
|
|
elCkeck: {
|
|
|
isNumber(rule, value, callback) {
|
|
|
if (value === '') {
|