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
1af78c56
Commit
1af78c56
authored
Feb 20, 2019
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
少价信息
parents
e479d4ac
52a16e5f
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1141 additions
and
942 deletions
+1141
-942
index.html
index.html
+1
-0
feture2.css
src/assets/css/feture2.css
+52
-0
BusExport.vue
src/components/BusExport.vue
+2
-2
FinancialDocuments.vue
src/components/FinancialModule/FinancialDocuments.vue
+22
-1
RecPayQuery.vue
src/components/FinancialModule/RecPayQuery.vue
+1
-1
RecPayQueryTeam.vue
src/components/FinancialModule/RecPayQueryTeam.vue
+2
-2
addFinancialDocuments.vue
src/components/FinancialModule/addFinancialDocuments.vue
+1
-1
addReceivablesDocuments.vue
src/components/FinancialModule/addReceivablesDocuments.vue
+1
-1
enrollTotalTwo.vue
src/components/SalesModule/enrollTotalTwo.vue
+1
-1
groupTourOrder.vue
src/components/SalesModule/groupTourOrder.vue
+13
-1
confirmationOrderDownLoad.vue
src/components/confirmationOrderDownLoad.vue
+81
-31
CostType.vue
src/components/systemManagement/CostType.vue
+18
-7
LessPriceManagement.vue
src/components/systemManagement/LessPriceManagement.vue
+152
-112
index.js
src/plug/index.js
+794
-782
No files found.
index.html
View file @
1af78c56
...
...
@@ -11,6 +11,7 @@
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?v=2.0&ak=ZzGBZF6L0sgFDLlDohyvYhCnWy4dwksX"
></script>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/library/CurveLine/1.5/src/CurveLine.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"
></script>
<script
src=
"http://code.jquery.com/jquery-2.1.1.min.js"
></script>
<title>
四川和平国际旅行社
</title>
</head>
<body>
...
...
src/assets/css/feture2.css
View file @
1af78c56
...
...
@@ -69,6 +69,8 @@ div{
font-family
:
SimSun
;
font-size
:
60px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.hotel_1_header
>
.hotel_1_header_title
>
div
:nth-child
(
2
)
{
margin
:
auto
;
...
...
@@ -92,6 +94,8 @@ div{
text-align
:
center
;
font-family
:
SimSun
;
font-size
:
34px
;
position
:
relative
;
z-index
:
5
;
}
.hotel_1_header
>
.hotel_1_header_title
>
div
:nth-child
(
2
)>
img
:nth-child
(
3
)
{
position
:
absolute
;
...
...
@@ -231,6 +235,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.hotel_1_info_1_info
>
.hotel_1_info_1_info_right
>
div
:nth-child
(
2
)
{
margin
:
12px
0
;
...
...
@@ -249,6 +255,8 @@ div{
font-size
:
16px
;
line-height
:
25px
;
color
:
#535353
;
position
:
relative
;
z-index
:
5
;
}
.hotel_1_info_2
{
...
...
@@ -375,6 +383,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.hotel_1_info_2_bottom
>
.hotel_1_info_2_bottom_right
>
div
:nth-child
(
2
)
{
margin
:
12px
0
;
...
...
@@ -434,6 +444,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.hotel_2_info_1
>
.hotel_2_info_1_content
>
div
:nth-child
(
2
)
{
margin
:
12px
0
;
...
...
@@ -452,6 +464,8 @@ div{
font-size
:
16px
;
line-height
:
25px
;
color
:
#535353
;
position
:
relative
;
z-index
:
5
;
}
.hotel_2_info_1
>
.hotel_2_info_1_img
{
...
...
@@ -617,6 +631,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.hotel_2_info_2_top
>
.hotel_2_info_2_top_right
>
div
:nth-child
(
2
)
{
margin
:
12px
0
;
...
...
@@ -635,6 +651,8 @@ div{
font-size
:
16px
;
line-height
:
25px
;
color
:
#535353
;
position
:
relative
;
z-index
:
5
;
}
.hotel_2_info_2
>
.hotel_2_info_2_bottom
{
...
...
@@ -721,6 +739,8 @@ div{
font-family
:
SimSun
;
font-size
:
52px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_1_header
>
.viewSpot_1_header_title
>
div
:nth-child
(
1
)>
div
:nth-child
(
2
)
{
display
:
inline-block
;
...
...
@@ -733,6 +753,8 @@ div{
font-family
:
SimSun
;
font-size
:
70px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_1_header
>
.viewSpot_1_header_title
>
div
:nth-child
(
1
)>
div
:nth-child
(
3
)
{
display
:
inline-block
;
...
...
@@ -741,6 +763,8 @@ div{
font-family
:
SimSun
;
font-size
:
52px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_1_header
>
.viewSpot_1_header_title
>
div
:nth-child
(
2
)
{
margin
:
auto
;
...
...
@@ -763,6 +787,8 @@ div{
text-align
:
center
;
font-family
:
SimSun
;
font-size
:
14px
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_1_header
>
.viewSpot_1_header_title
>
div
:nth-child
(
2
)>
img
:nth-child
(
3
)
{
position
:
absolute
;
...
...
@@ -855,6 +881,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_1_info_1_info
>
.viewSpot_1_info_1_info_right
>
div
:nth-child
(
2
)
{
margin
:
10px
0
0
0
;
...
...
@@ -1020,6 +1048,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_1_info_2_bottom
>
.viewSpot_1_info_2_bottom_right
>
div
:nth-child
(
2
)
{
margin
:
12px
0
;
...
...
@@ -1038,6 +1068,8 @@ div{
font-size
:
16px
;
line-height
:
25px
;
color
:
#535353
;
position
:
relative
;
z-index
:
5
;
}
/* 景点2 */
...
...
@@ -1101,6 +1133,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_2_info_1_info
>
.viewSpot_2_info_1_info_right
>
div
:nth-child
(
2
)
{
width
:
100%
;
...
...
@@ -1261,6 +1295,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_2_info_2
>
.viewSpot_2_info_2_info_1
>
div
:nth-child
(
2
)
{
width
:
100%
;
...
...
@@ -1298,6 +1334,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_2_info_2
>
.viewSpot_2_info_2_info_2
>
div
:nth-child
(
2
)
{
display
:
inline-block
;
...
...
@@ -1338,6 +1376,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.viewSpot_2_info_2
>
.viewSpot_2_info_2_info_3
>
div
:nth-child
(
2
)
{
width
:
100%
;
...
...
@@ -1550,6 +1590,8 @@ div{
font-family
:
SimSun
;
font-size
:
52px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.restaurant_1_header
>
.restaurant_1_header_title
>
div
:nth-child
(
1
)>
div
:nth-child
(
2
)
{
display
:
inline-block
;
...
...
@@ -1562,6 +1604,8 @@ div{
font-family
:
SimSun
;
font-size
:
70px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.restaurant_1_header
>
.restaurant_1_header_title
>
div
:nth-child
(
1
)>
div
:nth-child
(
3
)
{
display
:
inline-block
;
...
...
@@ -1570,6 +1614,8 @@ div{
font-family
:
SimSun
;
font-size
:
52px
;
color
:
#000000
;
position
:
relative
;
z-index
:
5
;
}
.restaurant_1_header
>
.restaurant_1_header_title
>
div
:nth-child
(
2
)
{
margin
:
auto
;
...
...
@@ -1592,6 +1638,8 @@ div{
text-align
:
center
;
font-family
:
SimSun
;
font-size
:
14px
;
position
:
relative
;
z-index
:
5
;
}
.restaurant_1_header
>
.restaurant_1_header_title
>
div
:nth-child
(
2
)>
img
:nth-child
(
3
)
{
position
:
absolute
;
...
...
@@ -1684,6 +1732,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.restaurant_1_info_1_info
>
.restaurant_1_info_1_info_right
>
div
:nth-child
(
2
)
{
margin
:
10px
0
0
0
;
...
...
@@ -1841,6 +1891,8 @@ div{
font-size
:
30px
;
line-height
:
30px
;
color
:
#222222
;
position
:
relative
;
z-index
:
5
;
}
.restaurant_1_info_2_right_bottom
>
.restaurant_1_info_2_right_bottom_right
>
div
:nth-child
(
2
)
{
margin
:
12px
0
;
...
...
src/components/BusExport.vue
View file @
1af78c56
...
...
@@ -46,9 +46,9 @@
.totalTabal
td
{
height
:
33px
;
}
body
{
/*
body{
min-width: 100%!important;
}
}
*/
</
style
>
<
template
>
...
...
src/components/FinancialModule/FinancialDocuments.vue
View file @
1af78c56
...
...
@@ -114,7 +114,7 @@
<li>
<span>
<em>
单号
</em>
<el-input
placeholder=
""
class=
"w150"
type=
"number"
v-model=
"msg.FrID
"
></el-input>
<el-input
placeholder=
""
class=
"w150"
v-model=
"msg.FrID"
@
keyup
.
native=
"checkInteger(msg,'FrID')
"
></el-input>
</span>
</li>
<li
v-if=
"msg.Conditon==1"
>
...
...
@@ -356,6 +356,7 @@
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex(),getPageList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"goUrlAdd('ChoiceAddFinancialDocuments')"
>
新增
</button>
<button
class=
"normalBtn"
v-if=
"checkboxShow"
@
click=
"Financial_post_SetBatch"
>
批量提交
</button>
<button
class=
"normalBtn"
@
click=
"method5()"
>
导出
</button>
<button
class=
"hollowFixedBtn"
@
click=
"goUrl('WorkEntrustmentMy')"
>
工作委托
</button>
</li>
</ul>
...
...
@@ -1002,6 +1003,26 @@ export default {
}
},
err
=>
{})
},
//导出
method5
:
function
()
{
if
(
!
this
.
msg
.
ClientID
)
this
.
msg
.
ClientID
=
0
;
if
(
!
this
.
msg
.
ClientType
)
this
.
msg
.
ClientType
=
0
;
if
(
!
this
.
msg
.
CurrencyId
)
this
.
msg
.
CurrencyId
=
0
;
if
(
!
this
.
msg
.
CostTypeID
)
this
.
msg
.
CostTypeID
=
0
;
if
(
!
this
.
msg
.
TemplateId
)
this
.
msg
.
TemplateId
=
0
;
if
(
!
this
.
msg
.
RB_Branch_Id
)
this
.
msg
.
RB_Branch_Id
=-
1
;
if
(
!
this
.
msg
.
RB_Depart_Id
)
this
.
msg
.
RB_Depart_Id
=
0
;
if
(
!
this
.
msg
.
UpdateBy
)
this
.
msg
.
UpdateBy
=
0
;
if
(
!
this
.
msg
.
TCID
)
this
.
msg
.
TCID
=
0
;
if
(
!
this
.
msg
.
OrderID
)
this
.
msg
.
OrderID
=
0
;
if
(
!
this
.
msg
.
Status
)
this
.
msg
.
Status
=
0
;
if
(
!
this
.
msg
.
FrID
)
this
.
msg
.
FrID
=
0
;
if
(
!
this
.
msg
.
Conditon
)
this
.
msg
.
Conditon
=
1
;
if
(
!
this
.
msg
.
TradeWay
)
this
.
msg
.
TradeWay
=
0
;
if
(
!
this
.
msg
.
AccountType
)
this
.
msg
.
AccountType
=
0
;
this
.
msg
.
EmployeeId
=
this
.
userId
;
this
.
GetLocalFile
(
"Financial_get_OutToFinanceList"
,
this
.
msg
,
"财务报表.xls"
);
}
,
getDepartment
(){
//部门
this
.
apipost
(
'admin_get_DepartmentGetList'
,
this
.
getDepartmentMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
src/components/FinancialModule/RecPayQuery.vue
View file @
1af78c56
...
...
@@ -101,7 +101,7 @@
<el-row
style=
"padding:15px 20px 0 0;"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"单号:"
>
<el-input
placeholder=
""
class=
""
v-model=
"msg.FrID"
></el-input>
<el-input
placeholder=
""
class=
""
v-model=
"msg.FrID"
@
keyup
.
native=
"checkInteger(msg,'FrID')"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
...
...
src/components/FinancialModule/RecPayQueryTeam.vue
View file @
1af78c56
...
...
@@ -171,8 +171,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"单号:"
>
<el-input
placeholder=
""
class=
""
v-model=
"msg.OrderId"
></el-input>
<el-form-item
label=
"
订
单号:"
>
<el-input
placeholder=
""
class=
""
v-model=
"msg.OrderId"
@
keyup
.
native=
"checkInteger(msg,'OrderId')"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
...
...
src/components/FinancialModule/addFinancialDocuments.vue
View file @
1af78c56
...
...
@@ -868,7 +868,7 @@ export default {
this
.
loading
=
true
;
this
.
apipost
(
'Financial_post_Set'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
$confirm
(
'是否继续制单?'
,
'提示'
,
{
this
.
$confirm
(
'
操作成功,
是否继续制单?'
,
'提示'
,
{
confirmButtonText
:
'继续制单'
,
cancelButtonText
:
'不了,谢谢'
,
type
:
'warning'
...
...
src/components/FinancialModule/addReceivablesDocuments.vue
View file @
1af78c56
...
...
@@ -1044,7 +1044,7 @@ export default {
console
.
log
(
this
.
msg
);
this
.
apipost
(
'Financial_post_Set'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
$confirm
(
'是否继续制单?'
,
'提示'
,
{
this
.
$confirm
(
'
操作成功,
是否继续制单?'
,
'提示'
,
{
confirmButtonText
:
'继续制单'
,
cancelButtonText
:
'不了,谢谢'
,
type
:
'warning'
...
...
src/components/SalesModule/enrollTotalTwo.vue
View file @
1af78c56
...
...
@@ -45,7 +45,7 @@
</li>
<li>
<span><em>
订单号
</em></span>
<el-input
class=
'w200'
v-model=
'msg.tempOrderId'
></el-input>
<el-input
class=
'w200'
v-model=
'msg.tempOrderId'
@
keyup
.
native=
"checkInteger(msg,'tempOrderId')"
></el-input>
</li>
<li>
<span><em>
订单状态
</em></span>
...
...
src/components/SalesModule/groupTourOrder.vue
View file @
1af78c56
...
...
@@ -1595,7 +1595,7 @@
<td
colspan=
"4"
class=
"groupTourOrder_remarks"
style=
"height: 40px;"
>
<div>
<div><span>
备注:
</span>
<p><span
<p><span
v-if=
"item.tsId>0"
>
投诉单号:
<a
href=
"javascript:void(0);"
@
click=
"goUrlTS('ComplaintsDetail',item.tsId,item.orderId,'投诉详情')"
>
{{
item
.
tsId
}}
</a>
;
</span><span
v-if=
'item.clientSource==1&&item.brandName!=""'
>
{{
item
.
brandName
}}
订单
{{
item
.
platformOrder
}}
;
</span>
{{
item
.
remarks
}}
</p></div>
<div>
...
...
@@ -1962,6 +1962,18 @@
}
},
methods
:
{
//跳转
goUrlTS
(
path
,
id
,
orderId
,
title
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
'id'
:
id
,
'orderId'
:
orderId
,
blank
:
'y'
,
tab
:
title
}
})
},
getItem
(
obj
)
{
this
.
checkedObj
=
obj
},
...
...
src/components/confirmationOrderDownLoad.vue
View file @
1af78c56
...
...
@@ -8,7 +8,8 @@
<div
class=
"travelControlTrip detail-box"
>
<div
class=
"trip_cover"
v-show=
"pdfLoading"
v-loading=
"pdfLoading"
></div>
<input
type=
"button"
class=
"travelControlTripBtn"
value=
"下载PDF"
@
click=
"toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')"
/>
<input
type=
"button"
class=
"travelControlTripBtn"
value=
"下载WORD"
@
click=
"gernalFeature()"
/>
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<input
type=
"button"
style=
"width: auto !important;display:none"
class=
"travelControlTripBtn"
value=
"下载手机版WORD"
@
click=
"gernalFeature()"
/>
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input
type=
"button"
v-if=
"orderId>0"
class=
"travelControlTripBtn"
value=
"修改信息"
@
click=
"editMsgShow=true"
/>
<div
id=
"pdfNode"
>
...
...
@@ -218,7 +219,7 @@
<div
class=
"short-line"
></div>
<div
class=
"english-title"
>
Trip characteristics
</div>
</div>
<div
v-html=
"feature.featureHtml"
></div>
<div
v-html=
"feature.featureHtml"
id=
"gernalCanvas"
></div>
</div>
<div
id=
"teamacitvy"
>
</div>
</div>
...
...
@@ -642,37 +643,83 @@
},
methods
:
{
gernalFeature
(){
console
.
log
(
document
.
querySelector
(
"#gernalCanvas"
).
querySelectorAll
(
'img'
))
document
.
querySelector
(
"#gernalCanvas"
).
querySelectorAll
(
'img'
).
forEach
(
x
=>
{
if
(
x
.
src
.
indexOf
(
'http'
)
!=-
1
){
x
.
setAttribute
(
'crossOrigin'
,
'anonymous'
)
this
.
pdfLoading
=
true
;
let
tcid
=
this
.
$route
.
query
.
tcid
;
let
UploadUrl
=
this
.
domainManager
().
UploadUrl
$
.
ajax
({
url
:
UploadUrl
+
'/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Feature/'
+
tcid
,
type
:
"POST"
,
datatype
:
"jsonP"
,
success
:
function
(
data
)
{
// console.log("上传成功",data);
},
error
:
function
()
{
// console.log("上传失败");
}
});
let
cName
=
''
if
(
showType
==
4
){
cName
=
'.feature-box'
}
else
if
(
showType
==
5
){
cName
=
'.travle_page'
}
if
(
cName
!=
''
){
document
.
querySelectorAll
(
cName
).
forEach
(
x
=>
{
html2Canvas
(
x
,{
useCORS
:
true
,
scale
:
0.7
,
backgroundColor
:
'#FFFFFF'
}).
then
((
canvas
)
=>
{
if
(
canvas
){
var
context
=
canvas
.
getContext
(
'2d'
)
context
.
mozImageSmoothingEnabled
=
false
context
.
webkitImageSmoothingEnabled
=
false
context
.
msImageSmoothingEnabled
=
false
context
.
imageSmoothingEnabled
=
false
var
image
=
new
Image
();
image
.
src
=
canvas
.
toDataURL
(
"image/png"
);
document
.
body
.
appendChild
(
image
)
}
});
if
(
this
.
showType
===
4
||
this
.
showType
===
5
)
{
document
.
querySelector
(
"#gernalCanvas"
).
querySelectorAll
(
'img'
).
forEach
(
x
=>
{
let
src
=
x
.
src
src
=
src
.
replace
(
'https:'
,
'http:'
)
if
(
src
.
indexOf
(
'http'
)
!=-
1
){
x
.
setAttribute
(
'crossOrigin'
,
'anonymous'
)
}
x
.
src
=
src
});
let
cName
=
''
if
(
this
.
showType
==
4
){
cName
=
'.feature-box'
}
else
if
(
this
.
showType
==
5
){
cName
=
'.travle_page'
}
if
(
cName
!=
''
){
let
allNum
=
1
document
.
querySelectorAll
(
cName
).
forEach
((
x
,
index
)
=>
{
html2Canvas
(
x
,{
useCORS
:
true
,
scale
:
0.7
,
backgroundColor
:
'#FFFFFF'
,
}).
then
((
canvas
)
=>
{
if
(
canvas
){
var
context
=
canvas
.
getContext
(
'2d'
)
context
.
mozImageSmoothingEnabled
=
false
context
.
webkitImageSmoothingEnabled
=
false
context
.
msImageSmoothingEnabled
=
false
context
.
imageSmoothingEnabled
=
false
var
image
=
new
Image
();
image
.
src
=
canvas
.
toDataURL
(
"image/png"
);
// document.body.appendChild(image) upload.oytour.com
$
.
ajax
({
url
:
UploadUrl
+
'/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Feature/'
+
tcid
,
type
:
"POST"
,
data
:
{
myfile
:
image
.
src
,
fileIndex
:
index
},
datatype
:
"jsonP"
,
success
:
function
(
data
)
{
// console.log("上传成功",data);
},
error
:
function
()
{
// console.log("上传失败");
}
});
// this.uploadImg(tcid,{'myfile': image.src}, res=>{
// console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
if
(
allNum
!==
document
.
querySelectorAll
(
cName
).
length
)
{
allNum
+=
1
}
else
{
this
.
ToWord
(
this
.
orderMsg
.
startDate
+
this
.
orderMsg
.
lineteamName
+
this
.
orderMsg
.
dayNum
+
'日游'
)
}
}
});
});
}
}
else
{
this
.
ToWord
(
this
.
orderMsg
.
startDate
+
this
.
orderMsg
.
lineteamName
+
this
.
orderMsg
.
dayNum
+
'日游'
)
}
},
//保存基础数据
...
...
@@ -885,7 +932,10 @@
//是否显示团号
isShowTCNUM
:
this
.
vshowTCNUM
?
1
:
0
};
this
.
GetLocalFile
(
"DownLoadTripWord"
,
msg
,
title
+
".doc"
);
this
.
GetLocalFile
(
"DownLoadTripWord"
,
msg
,
title
+
".doc"
,
res
=>
{
this
.
pdfLoading
=
false
});
},
DateDiff
(
sDate1
,
sDate2
)
{
//sDate1和sDate2是2002-12-18格式
var
aDate
,
oDate1
,
oDate2
,
iDays
...
...
src/components/systemManagement/CostType.vue
View file @
1af78c56
...
...
@@ -144,13 +144,14 @@
<ul>
<li>
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex(),initTableInfo()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"outerVisible=true"
>
导入
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"downMuban()"
>
下载导入模板
</button>
<
!--
<
button
type=
"button"
class=
"normalBtn"
@
click=
"outerVisible=true"
>
导入
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"downMuban()"
>
下载导入模板
</button>
-->
<button
class=
"normalBtn"
@
click=
"addShow=true,text='新增',addFun()"
>
新增
</button>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"切换排版"
placement=
"top-end"
>
<i
v-if=
"transitionShow"
class=
"iconfont icon-biaoge"
@
click=
"switchMethod(1)"
></i>
<i
v-if=
"transitionShow2"
class=
"iconfont icon-icon-ssan"
@
click=
"switchMethod(2)"
></i>
</el-tooltip>
<!--
<button
type=
"button"
class=
"normalBtn"
@
click=
"method5()"
>
导出
</button>
-->
</li>
</ul>
</div>
...
...
@@ -168,8 +169,8 @@
<p>
摊账:
{{
item
.
IsShareAccount
===
0
?
'非摊账'
:
'摊账'
}}
</p>
<p>
营收报表:
{{
item
.
Is_Report
===
0
?
'不进入'
:
'进入'
}}
</p>
<p
class=
"_b_edit"
>
<
button
type=
"button"
class=
"el-button el-tooltip item el-button--danger is-circle"
aria-describedby=
"el-tooltip-694"
tabindex=
"0"
@
click=
"financeinfoRemove(item.ID,item.Name)"
><i
class=
"el-icon-delete"
></i></button
>
<button
type=
"button"
class=
"el-button el-tooltip item el-button--primary is-circle"
aria-describedby=
"el-tooltip-5781"
tabindex=
"0"
@
click=
"editCurency(item.ID),text='修改'"
><i
class=
"el-icon-edit"
></i></button>
<
!--
<button
type=
"button"
class=
"el-button el-tooltip item el-button--danger is-circle"
aria-describedby=
"el-tooltip-694"
tabindex=
"0"
@
click=
"financeinfoRemove(item.ID,item.Name)"
><i
class=
"el-icon-delete"
></i></button>
--
>
<button
v-if=
"msg.EmployeeID==910"
type=
"button"
class=
"el-button el-tooltip item el-button--primary is-circle"
aria-describedby=
"el-tooltip-5781"
tabindex=
"0"
@
click=
"editCurency(item.ID),text='修改'"
><i
class=
"el-icon-edit"
></i></button>
</p>
</div>
</div>
...
...
@@ -192,21 +193,25 @@
<tbody
class=
"po_content_item"
>
<tr
v-for=
"(item,index) in CostTypeTreeList"
:key=
"index"
v-loading=
"loading"
>
<td
width=
"200px"
>
<span
class=
"cursorpointer"
@
click=
"editCurency(item.ID),text='修改'"
>
{{
item
.
Name
}}
</span>
<span
class=
"cursorpointer"
v-if=
"msg.EmployeeID==910"
@
click=
"editCurency(item.ID),text='修改'"
>
{{
item
.
Name
}}
</span>
<span
class=
"cursorpointer"
v-else
>
{{
item
.
Name
}}
</span>
</td>
<template
v-if=
"item.ChildList.length>0"
>
<td
colspan=
"8"
style=
"padding:0"
>
<table
class=
"po_content_item po_content_item_two"
style=
"width: 100%;"
cellspacing=
"0"
cellpadding=
"0"
>
<tbody>
<tr
v-for=
"(son,sIndex) in item.ChildList"
>
<td
style=
""
width=
"150px"
><span
class=
"cursorpointer"
@
click=
"editCurency(son.ID),text='修改'"
>
{{
son
.
Name
}}
</span></td>
<td
style=
""
width=
"150px"
>
<span
class=
"cursorpointer"
v-if=
'msg.EmployeeID==910'
@
click=
"editCurency(son.ID),text='修改'"
>
{{
son
.
Name
}}
</span>
<span
class=
"cursorpointer"
v-else
>
{{
son
.
Name
}}
</span></td>
<template
v-if=
"son.ChildList.length>0"
>
<td
colspan=
"7"
style=
"padding:0"
>
<table
class=
"po_content_item po_content_item_str"
style=
"width: 100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tbody>
<tr
v-for=
"(grSon,gsIndex) in son.ChildList"
>
<td
class=
"cursorpointer_last"
width=
"150px"
>
<span
class=
"cursorpointer"
@
click=
"editCurency(grSon.ID),text='修改'"
>
{{
grSon
.
Name
}}
<i
@
click
.
stop=
"financeinfoRemove(grSon.ID,grSon.Name)"
class=
"el-icon-delete"
></i></span></td>
<span
class=
"cursorpointer"
v-if=
'msg.EmployeeID==910'
@
click=
"editCurency(grSon.ID),text='修改'"
>
{{
grSon
.
Name
}}
<i
@
click
.
stop=
"financeinfoRemove(grSon.ID,grSon.Name)"
class=
"el-icon-delete"
></i></span>
<span
class=
"cursorpointer"
v-else
>
{{
grSon
.
Name
}}
</span></td>
<td
width=
"150px"
>
{{
grSon
.
BName
}}
</td>
<td
width=
"150px"
>
{{
grSon
.
DeName
}}
</td>
<td
width=
"150px"
>
{{
grSon
.
PName
}}
</td>
...
...
@@ -464,6 +469,7 @@
Name
:
''
,
Tier
:
0
,
ParentId
:
''
,
EmployeeID
:
-
1
,
},
addMsg
:{
ID
:
0
,
...
...
@@ -778,6 +784,10 @@
});
});
},
//导出费用类型明细报表
method5
:
function
()
{
this
.
GetLocalFile
(
"financeinfo_post_OutToCostTypeExcel"
,
this
.
msg
,
"费用类型明细报表.xls"
);
}
,
editCurency
(
id
){
// 修改信息
this
.
apipost
(
'financeinfo_post_GetCostType'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -995,6 +1005,7 @@
this
.
initTableInfo
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
departmentMsg
.
RB_Group_Id
=
this
.
companyMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团
this
.
msg
.
EmployeeID
=
userInfo
.
EmployeeId
;
this
.
getDepartment
();
this
.
getCompany
();
this
.
getCostTypeTreeList
();
...
...
src/components/systemManagement/LessPriceManagement.vue
View file @
1af78c56
...
...
@@ -10,8 +10,8 @@
border-left
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
font-size
:
14px
;
/* width:100%; */
min-width
:
5752
px
;
width
:
100%
;
min-width
:
1500
px
;
padding-bottom
:
5px
;
}
...
...
@@ -24,29 +24,12 @@
border-right
:
1px
solid
#d1d1d1
;
position
:
relative
;
background-color
:
#E6E6E6
;
width
:
250px
;
}
th
[
class
=
first
]
:before
{
content
:
""
;
position
:
absolute
;
width
:
1px
;
height
:
252px
;
/*这里需要自己调整,根据td的宽度和高度*/
top
:
0
;
left
:
0
;
background-color
:
#d1d1d1
;
display
:
block
;
transform
:
rotate
(
-81deg
);
/*这里需要自己调整,根据线的位置*/
transform-origin
:
top
;
}
.LP_table
td
{
border-bottom
:
1px
solid
#d1d1d1
;
border-right
:
1px
solid
#d1d1d1
;
text-align
:
center
;
padding
:
5px
;
min-width
:
250px
;
padding
:
5px
0
;
}
.LP_table
.el-button--primary
{
...
...
@@ -64,51 +47,88 @@
right
:
30px
;
top
:
5px
;
}
.comLessDiv
{
width
:
100%
;
height
:
40px
;
margin-top
:
5px
;
padding-bottom
:
5px
;
border-bottom
:
1px
solid
#d1d1d1
;
}
.comLessDiv
:last-child
{
border
:
0
;
padding-bottom
:
0
;
}
.addLessPrice
{
margin-left
:
10px
;
color
:
seagreen
;
cursor
:
pointer
;
}
.lessBtn
{
margin-top
:
5px
;
}
</
style
>
<
template
>
<div>
<div
class=
"query-box"
>
<ul>
<li>
<input
type=
'button'
class=
"normalBtn"
@
click=
"AddItem()"
value=
"新增"
></input>
</li>
</ul>
</div>
<div
class=
"LM_mainDiv"
>
<!--保存-->
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
v-loading=
"this.loading"
>
<tr>
<th
class=
"first"
>
<span
class=
"Lp_role"
>
岗位
</span>
<span
class=
"Lp_company"
>
公司
</span>
</th>
<template
v-for=
"item in BranchList"
>
<th>
{{
item
.
BName
}}
</th>
</
template
>
<th>
操作
</th>
<th
width=
"200"
>
公司
</th>
<th
width=
"350"
>
线路/系列
</th>
<th>
所有人
</th>
<th>
部门主管
</th>
<th>
分公司总经理
</th>
<th>
当团op
</th>
<th
width=
"200"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in PageData"
>
<tr
v-for=
"(item,index) in dataList"
>
<td>
{{
item
.
BName
}}
<i
class=
"iconfont icon-bumenguanli-tianjia addLessPrice"
@
click=
"addLessPrice(item)"
></i>
</td>
<td>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
v-model=
"item.RoleId"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in RoleList"
:label=
"item.PostName"
:value=
"item.PostId"
:key=
"item.PostId"
></el-option>
</el-select>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<el-select
class=
'w150'
v-model=
"subItem.LineId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getLineTeamList(subItem),resetLineTeamId(subItem)"
>
<el-option
label=
"不限"
:value=
'commonSelect'
></el-option>
<el-option
v-for=
"item in LineList"
:label=
'item.LineName'
:value=
'item.LineID'
:key=
'item.LineID'
>
</el-option>
</el-select>
<el-select
class=
'w150'
v-model=
"subItem.LineTeamId"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
"不限"
:value=
'commonSelect'
></el-option>
<el-option
v-for=
"sitem in subItem.LineTeamList"
:label=
'sitem.LtName'
:value=
'sitem.LtID'
:key=
'sitem.LtID'
>
</el-option>
</el-select>
</div>
</td>
<
template
v-for=
"subItem in item.DetailExtList"
>
<td>
<el-input
class=
"w80"
placeholder=
"少价金額"
v-model=
"subItem.LessMoney"
></el-input>
<el-input
class=
"w80"
placeholder=
"减少提成百分比"
v-model=
"subItem.LessPercent"
></el-input>
</td>
</
template
>
<td>
<input
type=
'button'
class=
"normalBtn"
@
click=
"SaveLessPrice(item)"
value=
"保存"
></input>
<input
type=
'button'
class=
"normalBtn"
@
click=
"RemoveItem(item,index)"
value=
"删除"
></input>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<el-input
class=
"w80"
placeholder=
"少价金額"
v-model=
"subItem.LessMoney"
@
keyup
.
native=
"checkPrice(subItem,'LessMoney')"
></el-input>
<el-input
class=
"w80"
placeholder=
"减少提成百分比"
v-model=
"subItem.LessPercent"
@
keyup
.
native=
"checkPrice(subItem,'LessPercent')"
></el-input>
</div>
</td>
<td>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<el-input
class=
"w80"
placeholder=
"少价金額"
v-model=
"subItem.DeptLessMoney"
@
keyup
.
native=
"checkPrice(subItem,'DeptLessMoney')"
></el-input>
<el-input
class=
"w80"
placeholder=
"减少提成百分比"
v-model=
"subItem.DeptLessPercent"
@
keyup
.
native=
"checkPrice(subItem,'DeptLessPercent')"
></el-input>
</div>
</td>
<td>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<el-input
class=
"w80"
placeholder=
"少价金額"
v-model=
"subItem.FilialeLessMoney"
@
keyup
.
native=
"checkPrice(subItem,'FilialeLessMoney')"
></el-input>
<el-input
class=
"w80"
placeholder=
"减少提成百分比"
v-model=
"subItem.FilialeLessPercent"
@
keyup
.
native=
"checkPrice(subItem,'FilialeLessPercent')"
></el-input>
</div>
</td>
<td>
<div
v-for=
"subItem in item.LessPriceList"
class=
"comLessDiv"
>
<el-input
class=
"w80"
placeholder=
"少价金額"
v-model=
"subItem.OPLessMoney"
@
keyup
.
native=
"checkPrice(subItem,'OPLessMoney')"
></el-input>
<el-input
class=
"w80"
placeholder=
"减少提成百分比"
v-model=
"subItem.OPLessPercent"
@
keyup
.
native=
"checkPrice(subItem,'OPLessPercent')"
></el-input>
</div>
</td>
<td>
<div
v-for=
"(subItem,subIndex) in item.LessPriceList"
class=
"comLessDiv"
>
<input
type=
'button'
class=
"normalBtn lessBtn"
@
click=
"SaveLessPrice(subItem,index)"
value=
"保存"
></input>
<input
type=
'button'
class=
"normalBtn lessBtn"
@
click=
"RemoveItem(item,subItem,subIndex)"
value=
"删除"
></input>
</div>
</td>
</tr>
</table>
...
...
@@ -120,47 +140,25 @@
data
()
{
return
{
//分公司列表
BranchList
:
[],
qMsg
:
{
PageIndex
:
1
,
PageSize
:
100
},
PageData
:
[],
dataList
:
[],
//角色列表
RoleList
:
[],
loading
:
false
loading
:
false
,
LineList
:
[],
commonSelect
:
0
,
};
},
methods
:
{
AddItem
()
{
var
obj
=
{
Id
:
0
,
RoleId
:
0
,
DetailExtList
:
[],
};
this
.
BranchList
.
forEach
(
item
=>
{
obj
.
DetailExtList
.
push
({
Id
:
0
,
ManagerId
:
0
,
RB_Branch_Id
:
item
.
Id
,
LessMoney
:
0
,
LessPercent
:
0
});
});
if
(
this
.
PageData
==
null
)
{
this
.
PageData
=
[];
}
this
.
PageData
.
push
(
obj
);
},
//保存少价管理
SaveLessPrice
(
item
)
{
SaveLessPrice
(
subItem
)
{
subItem
.
LineTeamList
=
[];
this
.
apipost
(
"lessprice_post_Set"
,
i
tem
,
"lessprice_post_Set"
,
subI
tem
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
"操作成功!"
);
this
.
G
etList
();
}
else
{
this
.
Success
(
res
.
data
.
message
);
this
.
g
etList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
...
...
@@ -168,61 +166,103 @@
);
},
//获取列表
G
etList
()
{
g
etList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"lessprice_get_GetPageList"
,
this
.
qMsg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BranchList
=
res
.
data
.
data
.
branchList
;
this
.
PageData
=
res
.
data
.
data
.
DataList
.
pageData
;
}
},
err
=>
{}
);
},
//获取列表
GetRoleList
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
apipost
(
"admin_get_PostGetList"
,
{
"RB_Group_Id"
:
userInfo
.
RB_Group_id
},
var
that
=
this
;
that
.
apipost
(
"lessprice_get_GetPageList"
,
{},
res
=>
{
that
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
RoleList
=
res
.
data
.
data
;
var
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
x
.
LessPriceList
.
forEach
(
y
=>
{
that
.
getLineTeamList
(
y
);
})
})
that
.
dataList
=
data
;
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
//获取列表
RemoveItem
(
item
,
index
)
{
RemoveItem
(
item
,
subItem
,
index
)
{
if
(
subItem
.
Id
==
0
){
item
.
LessPriceList
.
splice
(
index
,
1
);
return
;
}
var
that
=
this
;
this
.
Confirm
(
"是否删除此少价信息?"
,
function
()
{
if
(
i
tem
.
Id
>
0
)
{
if
(
subI
tem
.
Id
>
0
)
{
that
.
apipost
(
"lessprice_post_Remove"
,
{
ID
:
i
tem
.
Id
ID
:
subI
tem
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"操作成功!"
);
that
.
G
etList
();
that
.
g
etList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
}
else
{
that
.
PageData
.
splice
(
index
,
1
);
}
});
},
//获取线路列表
getLineList
()
{
this
.
apipost
(
"line_post_GetAllList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineList
=
res
.
data
.
data
;
}
});
},
//获取系列列表
getLineTeamList
(
subItem
)
{
this
.
apipost
(
"team_post_GetList"
,
{
lineID
:
subItem
.
LineId
,
isTOOP
:
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
subItem
.
LineTeamList
=
res
.
data
.
data
;
}
});
},
//系列重置默认不限
resetLineTeamId
(
subItem
){
subItem
.
LineTeamId
=
0
;
},
//点击添加
addLessPrice
(
item
){
var
obj
=
{
DeptLessMoney
:
0
,
DeptLessPercent
:
0
,
DetailExtList
:
''
,
FilialeLessMoney
:
0
,
FilialeLessPercent
:
0
,
Id
:
0
,
LessMoney
:
0
,
LessPercent
:
0
,
LineId
:
0
,
LineTeamId
:
0
,
OPLessMoney
:
0
,
OPLessPercent
:
0
,
RB_Branch_Id
:
item
.
Id
,
RB_Group_Id
:
0
,
LineTeamList
:[],
}
item
.
LessPriceList
.
push
(
obj
);
}
},
mounted
()
{
this
.
GetRol
eList
();
this
.
G
etList
();
this
.
getLin
eList
();
this
.
g
etList
();
},
};
...
...
src/plug/index.js
View file @
1af78c56
...
...
@@ -4,821 +4,833 @@ import co from 'co'
import
OSS
from
'ali-oss'
import
MsgBus
from
'../assets/utils/msgBus'
export
default
{
data
:
{
loginUser
:
{},
apiurl
:
''
},
install
(
Vue
,
options
)
{
Vue
.
prototype
.
MsgBus
=
MsgBus
;
Vue
.
prototype
.
md5
=
md5
;
Vue
.
prototype
.
orderBy
=
function
(
source
,
orders
,
type
)
{
if
(
source
instanceof
Array
&&
orders
instanceof
Array
&&
orders
.
length
>
0
)
{
var
ordersc
=
orders
.
concat
([]);
var
sorttype
=
type
||
"asc"
;
var
results
=
[];
var
totalSum
=
{};
function
grouporder
(
source
,
orders
,
totalSum
)
{
source
.
sort
(
function
(
a
,
b
)
{
var
convertA
=
a
[
orders
[
0
]];
var
convertB
=
b
[
orders
[
0
]];
if
(
typeof
convertA
==
"string"
&&
typeof
convertB
==
"string"
)
{
if
(
sorttype
.
toUpperCase
()
==
"ASC"
)
{
return
convertA
.
localeCompare
(
convertB
);
}
else
{
return
convertB
.
localeCompare
(
convertA
);
}
}
else
{
if
(
sorttype
.
toUpperCase
()
==
"ASC"
)
{
return
convertA
-
convertB
;
}
else
{
return
convertB
-
convertA
;
}
}
});
var
groupmap
=
new
Map
();
source
.
forEach
(
item
=>
{
if
(
groupmap
.
has
(
item
[
orders
[
0
]]))
{
groupmap
.
get
(
item
[
orders
[
0
]]).
push
(
item
);
}
else
{
groupmap
.
set
(
item
[
orders
[
0
]],
[]);
groupmap
.
get
(
item
[
orders
[
0
]]).
push
(
item
);
}
});
data
:
{
loginUser
:
{},
apiurl
:
''
},
install
(
Vue
,
options
)
{
Vue
.
prototype
.
MsgBus
=
MsgBus
;
Vue
.
prototype
.
md5
=
md5
;
Vue
.
prototype
.
orderBy
=
function
(
source
,
orders
,
type
)
{
if
(
source
instanceof
Array
&&
orders
instanceof
Array
&&
orders
.
length
>
0
)
{
var
ordersc
=
orders
.
concat
([]);
var
sorttype
=
type
||
"asc"
;
var
results
=
[];
var
totalSum
=
{};
orders
.
shift
();
function
grouporder
(
source
,
orders
,
totalSum
)
{
source
.
sort
(
function
(
a
,
b
)
{
var
convertA
=
a
[
orders
[
0
]];
var
convertB
=
b
[
orders
[
0
]];
if
(
typeof
convertA
==
"string"
&&
typeof
convertB
==
"string"
)
{
if
(
sorttype
.
toUpperCase
()
==
"ASC"
)
{
return
convertA
.
localeCompare
(
convertB
);
}
else
{
return
convertB
.
localeCompare
(
convertA
);
}
}
else
{
if
(
sorttype
.
toUpperCase
()
==
"ASC"
)
{
return
convertA
-
convertB
;
}
else
{
return
convertB
-
convertA
;
}
}
});
for
(
let
[
key
,
val
]
of
groupmap
)
{
totalSum
[
key
]
=
{};
totalSum
[
key
].
name
=
key
;
totalSum
[
key
].
value
=
val
.
length
;
if
(
orders
.
length
==
0
)
{
results
=
results
.
concat
(
val
);
}
else
{
totalSum
[
key
].
children
=
{};
var
orderscopy
=
orders
.
concat
([]);
grouporder
(
val
,
orderscopy
,
totalSum
[
key
].
children
);
}
}
}
var
groupmap
=
new
Map
();
source
.
forEach
(
item
=>
{
if
(
groupmap
.
has
(
item
[
orders
[
0
]]))
{
groupmap
.
get
(
item
[
orders
[
0
]]).
push
(
item
);
}
else
{
groupmap
.
set
(
item
[
orders
[
0
]],
[]);
groupmap
.
get
(
item
[
orders
[
0
]]).
push
(
item
);
}
});
grouporder
(
source
,
ordersc
,
totalSum
);
orders
.
shift
(
);
return
{
results
:
results
,
totalSum
:
totalSum
};
}
else
{
return
source
;
}
},
Vue
.
prototype
.
calcPageSize
=
function
(
itemHeight
)
{
let
yuHeight
=
itemHeight
try
{
let
obj
=
null
document
.
querySelectorAll
(
'.frame-box'
).
forEach
(
x
=>
{
if
(
x
.
style
.
display
!=
'none'
)
{
obj
=
x
}
})
let
dom
=
obj
.
offsetHeight
yuHeight
=
dom
-
(
obj
.
querySelector
(
'.v-table-header'
)
?
obj
.
querySelector
(
'.v-table-header'
).
offsetHeight
:
39
)
-
50
//减去面包屑,减去表格头部,减去分页,减去偏量
//减去其它同级元素
obj
.
childNodes
[
0
].
childNodes
.
forEach
(
x
=>
{
if
(
x
.
className
&&
x
.
className
.
indexOf
(
'v-table-views'
)
==
-
1
)
{
yuHeight
-=
x
.
offsetHeight
?
x
.
offsetHeight
:
0
}
})
}
catch
(
error
)
{
console
.
log
(
error
)
}
return
Math
.
floor
(
yuHeight
/
itemHeight
)
for
(
let
[
key
,
val
]
of
groupmap
)
{
totalSum
[
key
]
=
{};
totalSum
[
key
].
name
=
key
;
totalSum
[
key
].
value
=
val
.
length
;
if
(
orders
.
length
==
0
)
{
results
=
results
.
concat
(
val
);
}
else
{
totalSum
[
key
].
children
=
{};
var
orderscopy
=
orders
.
concat
([]);
grouporder
(
val
,
orderscopy
,
totalSum
[
key
].
children
);
}
Vue
.
prototype
.
random_string
=
function
(
len
)
{
len
=
len
||
32
;
var
chars
=
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
;
var
maxPos
=
chars
.
length
;
var
pwd
=
''
;
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
pwd
+=
chars
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
maxPos
));
}
return
pwd
;
},
//是否是线上环境【发布时修改为true】
Vue
.
prototype
.
isOnline
=
function
()
{
return
process
.
env
.
NODE_ENV
!==
'development'
;
},
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
locationName
=
window
.
location
.
hostname
;
// domainUrl = "http://192.168.2.214:8082"; //214主域名
// domainUrl = "http://192.168.2.88"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
// domainUrl = "http://192.168.2.16:8083"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
domainUrl
=
"http://192.168.2.65:8025"
;
//吴春主域名
// domainUrl = "http://192.168.2.106:8082"; //罗超主域名
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"https://reborn.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'viitto'
)
!==
-
1
)
{
domainUrl
=
"https://test.viitto.com"
;
}
var
obj
=
{
//主地址
DomainUrl
:
domainUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
//上传文件URL
UploadFileUrl
:
domainUrl
+
'/api/File/post'
,
//本站模板文件下载地址
LocalTemplateFileDownLoadUrl
:
domainUrl
,
//阿里服务器地址
AliUrl
:
"https://reborndev.oss-cn-hangzhou.aliyuncs.com"
,
//本站文件流下载地址
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
//PDF文件预览地址
PDFViewUrl
:
domainUrl
+
"/plug/pdf/web/viewer.html?file="
,
//SocketUrl
WebSocketUrl
:
"ws://192.168.1.110:8080?account="
,
//google地图Url
GoogleMapUrl
:
"http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN"
,
//google地图图片地址
GoogleMapImageUrl
:
"http://super.oytour.com"
};
return
obj
;
},
Vue
.
prototype
.
yinyanFn
=
function
(
url
,
successCall
,
faildCall
)
{
this
.
$http
.
jsonp
(
url
,
)
.
then
(
res
=>
{
successCall
(
res
)
},
faildCall
)
},
//消息成功提示
Vue
.
prototype
.
Success
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"success"
});
},
//错误提示
Vue
.
prototype
.
Error
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"error"
});
},
}
}
//一般提示
Vue
.
prototype
.
Info
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"info"
});
},
//警告提示
Vue
.
prototype
.
Warning
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"warning"
});
},
//Confirm
Vue
.
prototype
.
Confirm
=
function
(
msg
,
callback
)
{
this
.
$confirm
(
msg
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
if
(
typeof
callback
===
'function'
)
{
callback
();
}
})
.
catch
(()
=>
{
this
.
Info
(
"已取消操作"
);
});
},
grouporder
(
source
,
ordersc
,
totalSum
);
//打开新窗口连接
Vue
.
prototype
.
OpenNewUrl
=
function
(
URL
)
{
if
(
URL
!=
''
)
{
window
.
open
(
'http://'
+
URL
,
'_blank'
);
}
}
//HTTP提交数据
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
PostUrl
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signature"
)
{
this
.
$router
.
push
({
path
:
'/signature'
})
}
else
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
this
.
$router
.
push
({
path
:
'/login'
})
}
}
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
this
.
$router
.
push
({
path
:
'/login'
});
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
);
}
else
{
successCall
(
res
);
}
},
faildCall
)
},
return
{
results
:
results
,
totalSum
:
totalSum
};
}
else
{
return
source
;
}
},
Vue
.
prototype
.
calcPageSize
=
function
(
itemHeight
){
let
yuHeight
=
itemHeight
try
{
let
obj
=
null
document
.
querySelectorAll
(
'.frame-box'
).
forEach
(
x
=>
{
if
(
x
.
style
.
display
!=
'none'
){
obj
=
x
}
})
let
dom
=
obj
.
offsetHeight
yuHeight
=
dom
-
(
obj
.
querySelector
(
'.v-table-header'
)?
obj
.
querySelector
(
'.v-table-header'
).
offsetHeight
:
39
)
-
50
//减去面包屑,减去表格头部,减去分页,减去偏量
//减去其它同级元素
obj
.
childNodes
[
0
].
childNodes
.
forEach
(
x
=>
{
if
(
x
.
className
&&
x
.
className
.
indexOf
(
'v-table-views'
)
==-
1
){
yuHeight
-=
x
.
offsetHeight
?
x
.
offsetHeight
:
0
}
})
}
catch
(
error
)
{
console
.
log
(
error
)}
return
Math
.
floor
(
yuHeight
/
itemHeight
)
}
Vue
.
prototype
.
random_string
=
function
(
len
)
{
len
=
len
||
32
;
var
chars
=
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
;
var
maxPos
=
chars
.
length
;
var
pwd
=
''
;
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
pwd
+=
chars
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
maxPos
));
}
return
pwd
;
},
//是否是线上环境【发布时修改为true】
Vue
.
prototype
.
isOnline
=
function
()
{
return
process
.
env
.
NODE_ENV
!==
'development'
;
},
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://127.0.0.1"
;
//214主域名
// 127.0.0.12
// domainUrl = "http://192.168.2.88"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
// domainUrl = "http://192.168.2.16:8083"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
// domainUrl = "http://192.168.2.65:8025"; //吴春主域名
// domainUrl = "http://192.168.2.106:8082"; //罗超主域名
if
(
locationName
.
indexOf
(
'oytour'
)
!==-
1
)
{
domainUrl
=
"https://reborn.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'viitto'
)
!==-
1
)
{
domainUrl
=
"https://test.viitto.com"
;
}
var
obj
=
{
//主地址
DomainUrl
:
domainUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
//上传文件URL
UploadFileUrl
:
domainUrl
+
'/api/File/post'
,
//本站模板文件下载地址
LocalTemplateFileDownLoadUrl
:
domainUrl
,
//阿里服务器地址
AliUrl
:
"https://reborndev.oss-cn-hangzhou.aliyuncs.com"
,
//本站文件流下载地址
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
//PDF文件预览地址
PDFViewUrl
:
domainUrl
+
"/plug/pdf/web/viewer.html?file="
,
//SocketUrl
WebSocketUrl
:
"ws://192.168.1.110:8080?account="
,
//google地图Url
GoogleMapUrl
:
"http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN"
,
//google地图图片地址
GoogleMapImageUrl
:
"http://super.oytour.com"
,
UploadUrl
:
"http://upload.oytour.com"
};
return
obj
;
},
Vue
.
prototype
.
yinyanFn
=
function
(
url
,
successCall
,
faildCall
)
{
this
.
$http
.
jsonp
(
url
,
)
.
then
(
res
=>
{
successCall
(
res
)
},
faildCall
)
},
//消息成功提示
Vue
.
prototype
.
Success
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"success"
});
},
//错误提示
Vue
.
prototype
.
Error
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"error"
});
},
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
)
{
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
timestamp
=
(
new
Date
()).
valueOf
();
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
this
.
$router
.
push
({
path
:
'/login'
})
}
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
responseType
:
'arraybuffer'
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
})
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
}).
catch
(
function
(
res
)
{});
},
Vue
.
prototype
.
getCookieItem
=
function
()
{
return
JSON
.
parse
(
this
.
getCookie
(
"userInfo"
))
},
Vue
.
prototype
.
getLocalStorage
=
function
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!==
undefined
&&
localStorageData
!=
'undefined'
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
},
Vue
.
prototype
.
getCookie
=
function
(
cookieName
)
{
var
strCookie
=
document
.
cookie
;
var
arrCookie
=
strCookie
.
split
(
"; "
);
for
(
var
i
=
0
;
i
<
arrCookie
.
length
;
i
++
)
{
var
arr
=
arrCookie
[
i
].
split
(
"="
);
if
(
cookieName
==
arr
[
0
])
{
return
arr
[
1
];
}
}
return
""
;
},
Vue
.
prototype
.
getLoginUser
=
function
()
{
return
this
.
loginUser
},
Vue
.
prototype
.
setLoginUser
=
function
(
user
)
{
this
.
loginUser
=
user
//一般提示
Vue
.
prototype
.
Info
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"info"
});
},
//警告提示
Vue
.
prototype
.
Warning
=
function
(
msg
)
{
this
.
$message
({
message
:
msg
,
duration
:
2000
,
type
:
"warning"
});
},
//Confirm
Vue
.
prototype
.
Confirm
=
function
(
msg
,
callback
)
{
this
.
$confirm
(
msg
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
if
(
typeof
callback
===
'function'
)
{
callback
();
}
})
.
catch
(()
=>
{
this
.
Info
(
"已取消操作"
);
});
},
//PDF预览
Vue
.
prototype
.
previewPDF
=
function
(
url
)
{
window
.
open
(
this
.
domainManager
().
PDFViewUrl
+
url
);
},
//打开新窗口连接
Vue
.
prototype
.
OpenNewUrl
=
function
(
URL
)
{
if
(
URL
!=
''
)
{
window
.
open
(
'http://'
+
URL
,
'_blank'
);
}
}
Vue
.
prototype
.
uploadImg
=
function
(
tcID
,
msg
,
successCall
,
faildCall
)
{
var
apiurl
=
this
.
domainManager
().
Upload
+
'/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID'
+
tcID
;
this
.
$http
.
post
(
apiurl
,
msg
,
{
datatype
:
"jsonP"
,
}).
then
(
res
=>
{
successCall
(
res
);
},
faildCall
)
}
//HTTP提交数据
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
var
apiurl
=
this
.
domainManager
().
PostUrl
;
var
timestamp
=
(
new
Date
()).
valueOf
();
this
.
apiurl
=
apiurl
;
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signature"
)
{
this
.
$router
.
push
({
path
:
'/signature'
})
}
else
{
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
this
.
$router
.
push
({
path
:
'/login'
})
}
}
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
this
.
$router
.
push
({
path
:
'/login'
});
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
);
}
else
{
successCall
(
res
);
}
},
faildCall
)
},
Vue
.
prototype
.
downloadFile
=
function
(
objectKey
)
{
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
url
=
oss
.
signatureUrl
(
objectKey
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
document
.
body
.
appendChild
(
link
);
link
.
click
();
//下载文件
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
,
successCall
)
{
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
timestamp
=
(
new
Date
()).
valueOf
();
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
this
.
$router
.
push
({
path
:
'/login'
})
}
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
responseType
:
'arraybuffer'
}).
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
})
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
successCall
(
res
);
}).
catch
(
function
(
res
)
{});
},
Vue
.
prototype
.
getCookieItem
=
function
()
{
return
JSON
.
parse
(
this
.
getCookie
(
"userInfo"
))
},
Vue
.
prototype
.
getLocalStorage
=
function
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!==
undefined
&&
localStorageData
!=
'undefined'
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
},
Vue
.
prototype
.
getCookie
=
function
(
cookieName
)
{
var
strCookie
=
document
.
cookie
;
var
arrCookie
=
strCookie
.
split
(
"; "
);
for
(
var
i
=
0
;
i
<
arrCookie
.
length
;
i
++
)
{
var
arr
=
arrCookie
[
i
].
split
(
"="
);
if
(
cookieName
==
arr
[
0
])
{
return
arr
[
1
];
}
}
return
""
;
},
Vue
.
prototype
.
getLoginUser
=
function
()
{
return
this
.
loginUser
},
Vue
.
prototype
.
setLoginUser
=
function
(
user
)
{
this
.
loginUser
=
user
}
},
Vue
.
prototype
.
downloadFileRename
=
function
(
objectKey
,
filename
,
fileurl
)
{
//PDF预览
Vue
.
prototype
.
previewPDF
=
function
(
url
)
{
window
.
open
(
this
.
domainManager
().
PDFViewUrl
+
url
);
},
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
Vue
.
prototype
.
downloadFile
=
function
(
objectKey
)
{
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
url
=
oss
.
signatureUrl
(
objectKey
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
document
.
body
.
appendChild
(
link
);
link
.
click
();
let
url
=
''
;
if
(
fileurl
)
url
=
fileurl
else
url
=
oss
.
signatureUrl
(
objectKey
);
let
getBlob
=
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
resolve
(
xhr
.
response
);
}
};
xhr
.
send
();
});
getBlob
.
then
(
blob
=>
{
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
navigator
.
msSaveBlob
(
blob
,
filename
);
}
else
{
const
link
=
document
.
createElement
(
'a'
);
const
body
=
document
.
querySelector
(
'body'
);
link
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
link
.
download
=
filename
;
link
.
style
.
display
=
'none'
;
body
.
appendChild
(
link
);
link
.
click
();
body
.
removeChild
(
link
);
window
.
URL
.
revokeObjectURL
(
link
.
href
);
}
});
},
Vue
.
prototype
.
downloadFileRename
=
function
(
objectKey
,
filename
,
fileurl
)
{
},
Vue
.
prototype
.
getFileBlob
=
function
(
objectKey
,
filename
)
{
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
url
=
oss
.
signatureUrl
(
objectKey
);
let
getBlob
=
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
resolve
(
xhr
.
response
);
}
};
xhr
.
send
();
});
return
getBlob
},
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
//path 请按照"/模块名称/用户ID/自定义文件夹/" /谁搞错一次5块红包
//files 文件数组
//p 进度回调函数
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
let
nameList
=
new
Array
()
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
nameList
.
push
(
this
.
random_string
());
}
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
that
=
this
co
(
function
*
()
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
let
fileName
=
nameList
[
index
]
fileName
=
path
+
fileName
+
"."
+
files
[
index
].
name
.
split
(
'.'
).
pop
()
var
result
=
yield
oss
.
multipartUpload
(
fileName
,
files
[
index
],
{
progress
:
function
*
(
p
)
{},
mime
:
'application/octet-stream'
})
let
url
=
''
;
if
(
fileurl
)
url
=
fileurl
else
url
=
oss
.
signatureUrl
(
objectKey
);
let
getBlob
=
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
resolve
(
xhr
.
response
);
}
};
xhr
.
send
();
});
getBlob
.
then
(
blob
=>
{
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
navigator
.
msSaveBlob
(
blob
,
filename
);
}
else
{
const
link
=
document
.
createElement
(
'a'
);
const
body
=
document
.
querySelector
(
'body'
);
link
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
link
.
download
=
filename
;
link
.
style
.
display
=
'none'
;
body
.
appendChild
(
link
);
link
.
click
();
body
.
removeChild
(
link
);
window
.
URL
.
revokeObjectURL
(
link
.
href
);
}
});
successCall
(
result
);
}
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
},
Vue
.
prototype
.
getFileBlob
=
function
(
objectKey
,
filename
)
{
var
co
=
require
(
'co'
);
var
OSS
=
require
(
'ali-oss'
);
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
url
=
oss
.
signatureUrl
(
objectKey
);
let
getBlob
=
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
xhr
.
responseType
=
'blob'
;
xhr
.
onload
=
()
=>
{
if
(
xhr
.
status
===
200
)
{
resolve
(
xhr
.
response
);
}
};
xhr
.
send
();
});
return
getBlob
},
Vue
.
prototype
.
uploadBlob
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
that
=
this
co
(
function
*
()
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
var
result
=
yield
oss
.
multipartUpload
(
path
,
files
[
index
],
{
progress
:
function
*
(
p
)
{},
mime
:
'application/octet-stream'
})
successCall
(
result
);
}
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
//path 请按照"/模块名称/用户ID/自定义文件夹/" /谁搞错一次5块红包
//files 文件数组
//p 进度回调函数
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
let
nameList
=
new
Array
()
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
nameList
.
push
(
this
.
random_string
());
}
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
that
=
this
co
(
function
*
()
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
let
fileName
=
nameList
[
index
]
fileName
=
path
+
fileName
+
"."
+
files
[
index
].
name
.
split
(
'.'
).
pop
()
var
result
=
yield
oss
.
multipartUpload
(
fileName
,
files
[
index
],
{
progress
:
function
*
(
p
)
{},
mime
:
'application/octet-stream'
})
//验证只能输入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
;
successCall
(
result
);
}
//验证输入6位小数汇率
Vue
.
prototype
.
checkRate
=
function
(
item
,
filed
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
p1
=
/
[^\d\.]
/g
;
// 过滤非数字及小数点 /g :所有范围中过滤
var
p2
=
/
(\.\d{6})\d
*$/g
;
var
p4
=
/
(\.)(\d
*
)\1
/g
;
value
=
value
.
replace
(
p1
,
""
).
replace
(
p2
,
"$1"
).
replace
(
p4
,
"$1$2"
);
value
=
value
.
replace
(
/
[^
0-9.
]
/g
,
''
);
var
p5
=
/
\.
+/g
;
//多个点的话只取1个点,屏蔽1....234的情况
value
=
value
.
replace
(
p5
,
"."
)
var
p6
=
/
(\.
+
)(\d
+
)(\.
+
)
/g
;
//屏蔽1....234.的情况
value
=
value
.
replace
(
p6
,
"$1$2"
)
// 屏蔽最后一位的.
item
[
filed
]
=
value
;
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
//验证只能输入整数【负数:isMinus传true】
Vue
.
prototype
.
checkInteger
=
function
(
item
,
filed
,
isMinus
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
t
=
value
.
charAt
(
0
);
value
=
value
.
replace
(
this
.
$commonUtils
.
Regex
.
isInteger
,
""
);
//是否允许负数
if
(
isMinus
&&
t
==
'-'
)
{
value
=
'-'
+
value
;
Vue
.
prototype
.
uploadBlob
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
var
oss
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'reborndev'
})
let
that
=
this
co
(
function
*
()
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
var
result
=
yield
oss
.
multipartUpload
(
path
,
files
[
index
],
{
progress
:
function
*
(
p
)
{},
mime
:
'application/octet-stream'
})
successCall
(
result
);
}
item
[
filed
]
=
value
;
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
//价钱格式化,三位数逗号分隔,保留两位小数 duanjun
Vue
.
prototype
.
moneyFormat
=
function
(
value
)
{
let
nStr
=
Number
(
value
).
toFixed
(
2
)
nStr
+=
''
;
let
x
=
nStr
.
split
(
'.'
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
'.'
+
x
[
1
]
:
''
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
'$1'
+
','
+
'$2'
);
}
return
x1
+
x2
;
},
//验证只能输入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
];
//转字符串
var
p1
=
/
[^\d\.]
/g
;
// 过滤非数字及小数点 /g :所有范围中过滤
var
p2
=
/
(\.\d{6})\d
*$/g
;
var
p4
=
/
(\.)(\d
*
)\1
/g
;
value
=
value
.
replace
(
p1
,
""
).
replace
(
p2
,
"$1"
).
replace
(
p4
,
"$1$2"
);
value
=
value
.
replace
(
/
[^
0-9.
]
/g
,
''
);
var
p5
=
/
\.
+/g
;
//多个点的话只取1个点,屏蔽1....234的情况
value
=
value
.
replace
(
p5
,
"."
)
var
p6
=
/
(\.
+
)(\d
+
)(\.
+
)
/g
;
//屏蔽1....234.的情况
value
=
value
.
replace
(
p6
,
"$1$2"
)
// 屏蔽最后一位的.
item
[
filed
]
=
value
;
}
Vue
.
prototype
.
loadFileICON
=
function
(
suffix
)
{
let
icons
=
[{
"name"
:
"
\
u7f51
\
u76d8BT
\
u79bb
\
u7ebf
\
u4e0b
\
u8f7d"
,
//验证只能输入整数【负数:isMinus传true】
Vue
.
prototype
.
checkInteger
=
function
(
item
,
filed
,
isMinus
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
t
=
value
.
charAt
(
0
);
value
=
value
.
replace
(
this
.
$commonUtils
.
Regex
.
isInteger
,
""
);
//是否允许负数
if
(
isMinus
&&
t
==
'-'
)
{
value
=
'-'
+
value
;
}
item
[
filed
]
=
value
;
}
//价钱格式化,三位数逗号分隔,保留两位小数 duanjun
Vue
.
prototype
.
moneyFormat
=
function
(
value
)
{
let
nStr
=
Number
(
value
).
toFixed
(
2
)
nStr
+=
''
;
let
x
=
nStr
.
split
(
'.'
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
'.'
+
x
[
1
]
:
''
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
'$1'
+
','
+
'$2'
);
}
return
x1
+
x2
;
},
"filesType"
:
"*.bt,*.torrent"
,
"filesIcon"
:
{
"bt"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
],
"torrent"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
]
},
"entranceFile"
:
"file-widget-1:bt
\
/start.js"
},
{
"name"
:
"
\
u6d69
\
u8fb0CAD"
,
"group"
:
"com.gstarcad.web"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"dws"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"dwt"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"dxf"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"dwg"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"cad"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
]
},
"entranceFile"
:
"file-widget-1:cad
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u4ee3
\
u7801
\
u9605
\
u8bfb
\
u5668"
,
Vue
.
prototype
.
loadFileICON
=
function
(
suffix
)
{
let
icons
=
[{
"name"
:
"
\
u7f51
\
u76d8BT
\
u79bb
\
u7ebf
\
u4e0b
\
u8f7d"
,
"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"
:
{
"as"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"sh"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"c"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"cpp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"h"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"cs"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"asp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"css"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"pas"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"diff"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"patch"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"erl"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"groovy"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"java"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"jsp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"js"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"json"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"pl"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"php"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"py"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"rb"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"sass"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"scss"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"scala"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"sql"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"vb"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"xml"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"xhtml"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"html"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"htm"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"md"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"less"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"lua"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"go"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"bat"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"wml"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
]
},
"entranceFile"
:
"file-widget-1:codeReader
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u89e3
\
u538b
\
u7f29"
,
"filesType"
:
"*.bt,*.torrent"
,
"filesIcon"
:
{
"bt"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
],
"torrent"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
]
},
"entranceFile"
:
"file-widget-1:bt
\
/start.js"
},
{
"name"
:
"
\
u6d69
\
u8fb0CAD"
,
"group"
:
"com.gstarcad.web"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"dws"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"dwt"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"dxf"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"dwg"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"cad"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
]
},
"entranceFile"
:
"file-widget-1:cad
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u4ee3
\
u7801
\
u9605
\
u8bfb
\
u5668"
,
"filesType"
:
"*.rar,*.zip"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"rar"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
],
"zip"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
]
},
"depsFiles"
:
[
"file-widget-1:zip
\
/util
\
/css
\
/fileUnzip.css"
,
"file-widget-1:zip
\
/util
\
/css
\
/list-view.css"
],
"entranceFile"
:
"file-widget-1:zip
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u6587
\
u6863
\
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"
:
{
"as"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"sh"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"c"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"cpp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"h"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"cs"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"asp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"css"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"pas"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"diff"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"patch"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"erl"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"groovy"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"java"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"jsp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"js"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"json"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"pl"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"php"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"py"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"rb"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"sass"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"scss"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"scala"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"sql"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"vb"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"xml"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"xhtml"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"html"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"htm"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"md"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"less"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"lua"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"go"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"bat"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"wml"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
]
},
"entranceFile"
:
"file-widget-1:codeReader
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u89e3
\
u538b
\
u7f29"
,
"filesType"
:
"*.txt,*.pdf,*.doc,*.docx,*.ppt,*.pptx,*.xls,*.xlsx,*.rtf"
,
"filesIcon"
:
{
"txt"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"rtf"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"pdf"
:
[
"fileicon-small-pdf"
,
"fileicon-large-pdf"
,
"fileicon-middle-pdf"
],
"doc"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"docx"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"ppt"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"pptx"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"xls"
:
[
"fileicon-small-xls"
,
"fileicon-large-xls"
,
"fileicon-middle-xls"
],
"xlsx"
:
[
"fileicon-small-xls"
,
"fileicon-large-xls"
,
"fileicon-middle-xls"
],
"vsd"
:
[
"fileicon-small-vsd"
,
"fileicon-large-vsd"
,
"fileicon-middle-vsd"
]
},
"depsFiles"
:
[
"file-widget-1:doc
\
/util
\
/docReader.css"
,
"file-widget-1:doc
\
/pdfJsReader
\
/pdfJsReader.less"
,
"base:thirdParty
\
/pdfjs
\
/_nomd5_nomod
\
/web
\
/trans-viewer.less"
,
"base:thirdParty
\
/pdfjs
\
/_nomd5_nomod
\
/web
\
/viewer.less"
],
"entranceFile"
:
"file-widget-1:doc
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u56fe
\
u7247
\
u9884
\
u89c8"
,
"filesType"
:
"*.rar,*.zip"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"rar"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
],
"zip"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
]
},
"depsFiles"
:
[
"file-widget-1:zip
\
/util
\
/css
\
/fileUnzip.css"
,
"file-widget-1:zip
\
/util
\
/css
\
/list-view.css"
],
"entranceFile"
:
"file-widget-1:zip
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u6587
\
u6863
\
u9605
\
u8bfb
\
u5668"
,
"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"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"livp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"heic"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"heif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"avci"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
},
"depsFiles"
:
[
"file-widget-1:image
\
/util
\
/picCategory-dialog
\
/css
\
/picCategory-dialog.css"
,
"file-widget-1:image
\
/util
\
/picPreview
\
/css
\
/picPreview.css"
,
"file-widget-1:image
\
/util
\
/picPreviewAside
\
/css
\
/picPreviewAside.css"
,
"file-widget-1:image
\
/util
\
/showPic
\
/css
\
/showPic.css"
,
"file-widget-1:image
\
/util
\
/thumbnailPic
\
/css
\
/thumbnailPic.css"
,
"base:thirdParty
\
/videojs
\
/_nomd5_nomod
\
/video-js.css"
],
"entranceFile"
:
"file-widget-1:image
\
/start.js"
},
{
"name"
:
"
\
u767e
\
u5ea6
\
u8111
\
u56fe"
,
"group"
:
"com.baidu.naotu"
,
"filesType"
:
"*.mmap,*.xmind,*.mm"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"mmap"
:
[
"fileicon-small-mmap"
,
"fileicon-large-mmap"
,
"fileicon-middle-mmap"
],
"xmind"
:
[
"fileicon-small-xmind"
,
"fileicon-large-xmind"
,
"fileicon-middle-xmind"
],
"mm"
:
[
"fileicon-small-mm"
,
"fileicon-large-mm"
,
"fileicon-middle-mm"
]
},
"entranceFile"
:
"file-widget-1:mindmap
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u97f3
\
u9891
\
u64ad
\
u653e
\
u5668"
,
"filesType"
:
"*.txt,*.pdf,*.doc,*.docx,*.ppt,*.pptx,*.xls,*.xlsx,*.rtf"
,
"filesIcon"
:
{
"txt"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"rtf"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"pdf"
:
[
"fileicon-small-pdf"
,
"fileicon-large-pdf"
,
"fileicon-middle-pdf"
],
"doc"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"docx"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"ppt"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"pptx"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"xls"
:
[
"fileicon-small-xls"
,
"fileicon-large-xls"
,
"fileicon-middle-xls"
],
"xlsx"
:
[
"fileicon-small-xls"
,
"fileicon-large-xls"
,
"fileicon-middle-xls"
],
"vsd"
:
[
"fileicon-small-vsd"
,
"fileicon-large-vsd"
,
"fileicon-middle-vsd"
]
},
"depsFiles"
:
[
"file-widget-1:doc
\
/util
\
/docReader.css"
,
"file-widget-1:doc
\
/pdfJsReader
\
/pdfJsReader.less"
,
"base:thirdParty
\
/pdfjs
\
/_nomd5_nomod
\
/web
\
/trans-viewer.less"
,
"base:thirdParty
\
/pdfjs
\
/_nomd5_nomod
\
/web
\
/viewer.less"
],
"entranceFile"
:
"file-widget-1:doc
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u56fe
\
u7247
\
u9884
\
u89c8"
,
"notSupport"
:
"ie6"
,
"filesType"
:
"*.wma,*.wav,*.mp3,*.aac,*.ra,*.ram,*.mp2,*.ogg,*.aif,*.mpega,*.amr,*.mid,*.midi,*.m4a"
,
"filesIcon"
:
{
"wma"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"wav"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mp3"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"aac"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ra"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ram"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mp2"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ogg"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"aif"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mpega"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"amr"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mid"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"midi"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"m4a"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
]
},
"buttons"
:
[{
"title"
:
"
\
u97f3
\
u4e50
\
u64ad
\
u653e"
,
"name"
:
"play-music"
,
"position"
:
"listTools"
,
"index"
:
2
,
"disabled"
:
"none"
,
"icon"
:
"icon-play"
,
"buttonStyle"
:
"normal"
,
"conditions"
:
{
"pageModule"
:
"list,share,search,category,searchGlobal"
,
"filesType"
:
"wma,wav,mp3,aac,ra,ram,mp2,ogg,aif,mpega,amr,mid,midi,m4a"
,
"filesTypeStrongMatch"
:
true
}
}],
"depsFiles"
:
[
"file-widget-1:musicPlay
\
/util
\
/mbox
\
/musicbox.css"
],
"entranceFile"
:
"file-widget-1:musicPlay
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u5927
\
u56fe
\
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"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"livp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"heic"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"heif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"avci"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
},
"depsFiles"
:
[
"file-widget-1:image
\
/util
\
/picCategory-dialog
\
/css
\
/picCategory-dialog.css"
,
"file-widget-1:image
\
/util
\
/picPreview
\
/css
\
/picPreview.css"
,
"file-widget-1:image
\
/util
\
/picPreviewAside
\
/css
\
/picPreviewAside.css"
,
"file-widget-1:image
\
/util
\
/showPic
\
/css
\
/showPic.css"
,
"file-widget-1:image
\
/util
\
/thumbnailPic
\
/css
\
/thumbnailPic.css"
,
"base:thirdParty
\
/videojs
\
/_nomd5_nomod
\
/video-js.css"
],
"entranceFile"
:
"file-widget-1:image
\
/start.js"
},
{
"name"
:
"
\
u767e
\
u5ea6
\
u8111
\
u56fe"
,
"group"
:
"com.baidu.naotu"
,
"filesType"
:
"*.mmap,*.xmind,*.mm"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"mmap"
:
[
"fileicon-small-mmap"
,
"fileicon-large-mmap"
,
"fileicon-middle-mmap"
],
"xmind"
:
[
"fileicon-small-xmind"
,
"fileicon-large-xmind"
,
"fileicon-middle-xmind"
],
"mm"
:
[
"fileicon-small-mm"
,
"fileicon-large-mm"
,
"fileicon-middle-mm"
]
},
"entranceFile"
:
"file-widget-1:mindmap
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u97f3
\
u9891
\
u64ad
\
u653e
\
u5668"
,
"filesType"
:
"*.jpg,*.jpeg,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico"
,
"filesIcon"
:
{
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
},
"depsFiles"
:
[
"file-widget-1:preview
\
/picPreview.css"
],
"entranceFile"
:
"file-widget-1:preview
\
/start.js"
},
{
"name"
:
"sysIcon"
,
"notSupport"
:
"ie6"
,
"filesType"
:
"*.wma,*.wav,*.mp3,*.aac,*.ra,*.ram,*.mp2,*.ogg,*.aif,*.mpega,*.amr,*.mid,*.midi,*.m4a"
,
"filesIcon"
:
{
"wma"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"wav"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mp3"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"aac"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ra"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ram"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mp2"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ogg"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"aif"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mpega"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"amr"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"mid"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"midi"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"m4a"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
]
},
"buttons"
:
[{
"title"
:
"
\
u97f3
\
u4e50
\
u64ad
\
u653e"
,
"name"
:
"play-music"
,
"position"
:
"listTools"
,
"index"
:
2
,
"disabled"
:
"none"
,
"icon"
:
"icon-play"
,
"buttonStyle"
:
"normal"
,
"conditions"
:
{
"pageModule"
:
"list,share,search,category,searchGlobal"
,
"filesType"
:
"wma,wav,mp3,aac,ra,ram,mp2,ogg,aif,mpega,amr,mid,midi,m4a"
,
"filesTypeStrongMatch"
:
true
}
}],
"depsFiles"
:
[
"file-widget-1:musicPlay
\
/util
\
/mbox
\
/musicbox.css"
],
"entranceFile"
:
"file-widget-1:musicPlay
\
/start.js"
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u5927
\
u56fe
\
u9884
\
u89c8"
,
"filesType"
:
"*.exe,*.msi,*.dmg,*.pkg,*.psd,*.apk,*.key,*.ai,*.ipa"
,
"filesIcon"
:
{
"exe"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"msi"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"dmg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"pkg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"psd"
:
[
"fileicon-sys-s-psd"
,
"fileicon-sys-l-psd"
],
"apk"
:
[
"fileicon-sys-s-apk"
,
"fileicon-sys-l-apk"
],
"key"
:
[
"fileicon-sys-s-key"
,
"fileicon-sys-l-key"
],
"ai"
:
[
"fileicon-sys-s-ai"
,
"fileicon-sys-l-ai"
],
"ipa"
:
[
"fileicon-sys-s-ipa"
,
"fileicon-sys-l-ipa"
],
"pages"
:
[
"fileicon-sys-s-pages"
,
"fileicon-sys-l-pages"
],
"numbers"
:
[
"fileicon-sys-s-numbers"
,
"fileicon-sys-l-numbers"
],
"eot"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"ttf"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"woff"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"eps"
:
[
"fileicon-sys-s-eps"
,
"fileicon-sys-l-eps"
],
"lnk"
:
[
"fileicon-sys-s-links"
,
"fileicon-sys-l-links"
],
"link"
:
[
"fileicon-sys-s-links"
,
"fileicon-sys-l-links"
],
"swf"
:
[
"fileicon-sys-s-swf"
,
"fileicon-sys-l-swf"
],
"php"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"c"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"js"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"css"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"html"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"htm"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"xhtml"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"java"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"cc"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"python"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"json"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"sh"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"bat"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"ejs"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"xml"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"ts"
:
[
"fileicon-sys-s-video"
,
"fileicon-sys-l-video"
]
}
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u89c6
\
u9891"
,
"filesType"
:
"*.jpg,*.jpeg,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico"
,
"filesIcon"
:
{
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
},
"depsFiles"
:
[
"file-widget-1:preview
\
/picPreview.css"
],
"entranceFile"
:
"file-widget-1:preview
\
/start.js"
},
{
"name"
:
"sysIcon"
,
"filesType"
:
"*.wmv,*.rmvb,*.mpeg4,*.mpeg2,*.flv,*.avi,*.3gp,*.mpga,*.qt,*.rm,*.wmz,*.wmd,*.wvx,*.wmx,*.wm,*.mpg,*.mp4,*.mkv,*.mpeg,*mov,*.asf,*.m4v,*.m3u8"
,
"filesIcon"
:
{
"wmv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"rmvb"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpeg4"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpeg2"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"flv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"avi"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"3gp"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpga"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"qt"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"rm"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wmz"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wmd"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wvx"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wmx"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wm"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpg"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mp4"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mkv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpeg"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mov"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"asf"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"m4v"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"m3u8"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
]
},
"preload"
:
true
,
"entranceFile"
:
"file-widget-1:video
\
/start.js"
}
]
if
(
suffix
==
""
)
return
"dir-small"
let
css
=
""
icons
.
forEach
(
x
=>
{
//console.log(x.filesIcon.hasOwnProperty(suffix))
if
(
x
.
filesIcon
.
hasOwnProperty
(
suffix
))
{
css
=
x
.
filesIcon
[
suffix
][
0
]
return
false
}
})
if
(
css
==
''
)
{
css
=
'default-small'
}
return
css
;
"filesType"
:
"*.exe,*.msi,*.dmg,*.pkg,*.psd,*.apk,*.key,*.ai,*.ipa"
,
"filesIcon"
:
{
"exe"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"msi"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"dmg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"pkg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"psd"
:
[
"fileicon-sys-s-psd"
,
"fileicon-sys-l-psd"
],
"apk"
:
[
"fileicon-sys-s-apk"
,
"fileicon-sys-l-apk"
],
"key"
:
[
"fileicon-sys-s-key"
,
"fileicon-sys-l-key"
],
"ai"
:
[
"fileicon-sys-s-ai"
,
"fileicon-sys-l-ai"
],
"ipa"
:
[
"fileicon-sys-s-ipa"
,
"fileicon-sys-l-ipa"
],
"pages"
:
[
"fileicon-sys-s-pages"
,
"fileicon-sys-l-pages"
],
"numbers"
:
[
"fileicon-sys-s-numbers"
,
"fileicon-sys-l-numbers"
],
"eot"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"ttf"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"woff"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"eps"
:
[
"fileicon-sys-s-eps"
,
"fileicon-sys-l-eps"
],
"lnk"
:
[
"fileicon-sys-s-links"
,
"fileicon-sys-l-links"
],
"link"
:
[
"fileicon-sys-s-links"
,
"fileicon-sys-l-links"
],
"swf"
:
[
"fileicon-sys-s-swf"
,
"fileicon-sys-l-swf"
],
"php"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"c"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"js"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"css"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"html"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"htm"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"xhtml"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"java"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"cc"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"python"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"json"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"sh"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"bat"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"ejs"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"xml"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"ts"
:
[
"fileicon-sys-s-video"
,
"fileicon-sys-l-video"
]
}
}
}
\ No newline at end of file
},
{
"name"
:
"
\
u7f51
\
u76d8
\
u89c6
\
u9891"
,
"filesType"
:
"*.wmv,*.rmvb,*.mpeg4,*.mpeg2,*.flv,*.avi,*.3gp,*.mpga,*.qt,*.rm,*.wmz,*.wmd,*.wvx,*.wmx,*.wm,*.mpg,*.mp4,*.mkv,*.mpeg,*mov,*.asf,*.m4v,*.m3u8"
,
"filesIcon"
:
{
"wmv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"rmvb"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpeg4"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpeg2"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"flv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"avi"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"3gp"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpga"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"qt"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"rm"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wmz"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wmd"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wvx"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wmx"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"wm"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpg"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mp4"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mkv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mpeg"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"mov"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"asf"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"m4v"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"m3u8"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
]
},
"preload"
:
true
,
"entranceFile"
:
"file-widget-1:video
\
/start.js"
}
]
if
(
suffix
==
""
)
return
"dir-small"
let
css
=
""
icons
.
forEach
(
x
=>
{
//console.log(x.filesIcon.hasOwnProperty(suffix))
if
(
x
.
filesIcon
.
hasOwnProperty
(
suffix
))
{
css
=
x
.
filesIcon
[
suffix
][
0
]
return
false
}
})
if
(
css
==
''
)
{
css
=
'default-small'
}
return
css
;
}
}
}
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