Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
d91b2b74
Commit
d91b2b74
authored
1 year ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8adff23a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
31 deletions
+19
-31
Announcement.vue
src/components/administrative/Announcement.vue
+1
-3
index.js
src/plug/index.js
+18
-28
No files found.
src/components/administrative/Announcement.vue
View file @
d91b2b74
...
...
@@ -277,9 +277,7 @@
let
_loadUrl
=
this
.
domainManager
().
UploadUrl
;
link
.
href
=
obj
.
Url
;
document
.
body
.
appendChild
(
link
);
window
.
open
(
obj
.
Url
)
// let reg = /^http(s)?:\/\/(.*?)\//
// this.downloadFileRename(obj.Url.replace(reg,''),obj.Name);
window
.
open
(
obj
.
Url
)
},
downloadOne
(
obj
){
this
.
downloadFileRename
(
obj
.
url
,
obj
.
name
);
...
...
This diff is collapsed.
Click to expand it.
src/plug/index.js
View file @
d91b2b74
...
...
@@ -1028,7 +1028,7 @@ export default {
if
(
successCall
)
{
successCall
(
res
)
}
},
faildCall
)
},
faildCall
)
},
//Blob文件上传
Vue
.
prototype
.
uploadSelfBlob
=
function
(
path
,
files
,
successCall
)
{
...
...
@@ -1113,7 +1113,6 @@ export default {
that
.
$message
.
error
(
'上传失败!'
);
that
.
MsgBus
.
$emit
(
'UploadSelfFileErr'
)
});
}
}).
catch
(
function
(
err
)
{
that
.
$refs
[
'my-upload'
].
clearFiles
();
...
...
@@ -1141,26 +1140,25 @@ export default {
var
newpath
=
path
.
replace
(
'http://192.168.10.214:8130'
,
''
).
replace
(
'https://imgfile.oytour.com'
,
''
).
replace
(
'https://imgfile.oytour.com'
,
''
).
split
(
'?'
)[
0
];
return
url
+
'/image/index?filePath='
+
newpath
+
'&process=resize,'
+
poise
+
',w_'
+
w
+
',h_'
+
h
;
}
//验证只能输入2位小数【负数:isMinus传true】
Vue
.
prototype
.
checkPrice
=
function
(
item
,
filed
,
isMinus
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
t
=
value
.
charAt
(
0
);
value
=
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除“数字”和“.”以外的字符
value
=
value
.
replace
(
/
\.{2,}
/g
,
"."
);
//只保留第一个. 清除多余的
value
=
value
.
replace
(
"."
,
"$#$"
)
.
replace
(
/
\.
/g
,
""
)
.
replace
(
"$#$"
,
"."
);
value
=
value
.
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
);
//只能输入两个小数
//如果第一位是负号,则允许添加 如果不允许添加负号 可以把这块注释掉
//是否允许负数
if
(
isMinus
&&
t
==
'-'
)
{
value
=
'-'
+
value
;
}
item
[
filed
]
=
value
;
//验证只能输入2位小数【负数:isMinus传true】
Vue
.
prototype
.
checkPrice
=
function
(
item
,
filed
,
isMinus
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
t
=
value
.
charAt
(
0
);
value
=
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除“数字”和“.”以外的字符
value
=
value
.
replace
(
/
\.{2,}
/g
,
"."
);
//只保留第一个. 清除多余的
value
=
value
.
replace
(
"."
,
"$#$"
)
.
replace
(
/
\.
/g
,
""
)
.
replace
(
"$#$"
,
"."
);
value
=
value
.
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
);
//只能输入两个小数
//如果第一位是负号,则允许添加 如果不允许添加负号 可以把这块注释掉
//是否允许负数
if
(
isMinus
&&
t
==
'-'
)
{
value
=
'-'
+
value
;
}
item
[
filed
]
=
value
;
}
//验证输入6位小数汇率
Vue
.
prototype
.
checkRate
=
function
(
item
,
filed
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
...
...
@@ -1301,7 +1299,6 @@ export default {
Vue
.
prototype
.
loadFileICON
=
function
(
suffix
)
{
let
icons
=
[{
"name"
:
"
\
u7f51
\
u76d8BT
\
u79bb
\
u7ebf
\
u4e0b
\
u8f7d"
,
"filesType"
:
"*.bt,*.torrent"
,
"filesIcon"
:
{
"bt"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
],
...
...
@@ -1324,7 +1321,6 @@ export default {
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u4ee3
\
u7801
\
u9605
\
u8bfb
\
u5668"
,
"notSupport"
:
"ie"
,
"filesType"
:
"*.txt,*.as,*.sh,*.c,*.cpp,*.h,*.cs,*.asp,*.css,*.pas,*.diff,*.patch,*.erl,*.groovy,*.java,*.jsp,*.js,*.json,*.pl,*.php,*.py,*.rb,*.sass,*.scss,*.scala,*.sql,*.vb,*.xml,*.xhtml,*.html,*.htm,*.md,*.less,*.lua,*.go,*.bat,*.wml"
,
"filesIcon"
:
{
...
...
@@ -1369,7 +1365,6 @@ export default {
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u89e3
\
u538b
\
u7f29"
,
"filesType"
:
"*.rar,*.zip"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
...
...
@@ -1381,7 +1376,6 @@ export default {
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u6587
\
u6863
\
u9605
\
u8bfb
\
u5668"
,
"filesType"
:
"*.txt,*.pdf,*.doc,*.docx,*.ppt,*.pptx,*.xls,*.xlsx,*.rtf"
,
"filesIcon"
:
{
"txt"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
...
...
@@ -1400,7 +1394,6 @@ export default {
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u56fe
\
u7247
\
u9884
\
u89c8"
,
"filesType"
:
"*.jpg,*.jpeg,*.livp,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico,*.heic,*.heif,*.avci,*.webp"
,
"filesIcon"
:
{
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
...
...
@@ -1436,7 +1429,6 @@ export default {
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u97f3
\
u9891
\
u64ad
\
u653e
\
u5668"
,
"notSupport"
:
"ie6"
,
"filesType"
:
"*.wma,*.wav,*.mp3,*.aac,*.ra,*.ram,*.mp2,*.ogg,*.aif,*.mpega,*.amr,*.mid,*.midi,*.m4a"
,
"filesIcon"
:
{
...
...
@@ -1494,7 +1486,6 @@ export default {
},
{
"name"
:
"sysIcon"
,
"filesType"
:
"*.exe,*.msi,*.dmg,*.pkg,*.psd,*.apk,*.key,*.ai,*.ipa"
,
"filesIcon"
:
{
"exe"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
...
...
@@ -1698,6 +1689,5 @@ export default {
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment