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
dc6d1cf9
Commit
dc6d1cf9
authored
Feb 02, 2019
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
index.js冲突
parents
be6a8ed6
cc1d8eeb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1356 additions
and
999 deletions
+1356
-999
cssReset.css
src/assets/css/cssReset.css
+45
-2
sellCommissionRules.vue
src/components/FinancialModule/sellCommissionRules.vue
+494
-186
enrollTotalTwo.vue
src/components/SalesModule/enrollTotalTwo.vue
+4
-1
RegistrationList.vue
src/components/TravelManager/TravelList/RegistrationList.vue
+31
-27
index.js
src/plug/index.js
+782
-783
No files found.
src/assets/css/cssReset.css
View file @
dc6d1cf9
...
@@ -543,12 +543,13 @@ vertical-align:middle
...
@@ -543,12 +543,13 @@ vertical-align:middle
bottom
:
0
;
bottom
:
0
;
left
:
50px
;
left
:
50px
;
padding
:
10px
;
padding
:
10px
;
overflow
:
auto
;
overflow
:
hidden
;
font-family
:
'PingFangSc-Fine'
;
font-family
:
'PingFangSc-Fine'
;
z-index
:
999
;
z-index
:
999
;
right
:
0
;
right
:
0
;
background-color
:
#fff
;
background-color
:
#fff
;
border-top
:
3px
solid
#38425d
;
border-top
:
3px
solid
#38425d
;
padding-bottom
:
30px
;
}
}
.bottom-box
.btm-title
{
.bottom-box
.btm-title
{
padding-left
:
10px
;
padding-left
:
10px
;
...
@@ -569,4 +570,46 @@ vertical-align:middle
...
@@ -569,4 +570,46 @@ vertical-align:middle
.page_ShoppingReimbursementDetails
.avatar-uploader-icon
{
.page_ShoppingReimbursementDetails
.avatar-uploader-icon
{
height
:
auto
!important
;
height
:
auto
!important
;
}
}
\ No newline at end of file
/************************** luochao 重新定义表格样式 BEGIN *******************************/
.al-tab
{
width
:
100%
;
border-collapse
:
collapse
;
}
.al-tab
.center.th
,
.al-tab
.center.td
{
text-align
:
center
!important
;
}
.al-tab
,
.al-tab
th
,
.al-tab
td
{
border
:
1px
solid
#ddd
;
}
.al-tab
caption
{
font-size
:
18px
;
color
:
#333
;
height
:
40px
;
line-height
:
40px
;
text-align
:
left
;
padding-left
:
12px
;
}
.al-tab
th
{
background
:
#E6E6E6
;
height
:
40px
;
line-height
:
40px
;
color
:
#333
;
font-size
:
16px
;
font-weight
:
300
;
text-align
:
left
;
padding-left
:
5px
;
}
.al-tab
td
{
height
:
40px
;
line-height
:
40px
;
color
:
#333
;
font-size
:
12px
;
font-weight
:
300
;
text-align
:
left
;
padding-left
:
5px
;
}
/************************** luochao 重新定义表格样式 END *******************************/
\ No newline at end of file
src/components/FinancialModule/sellCommissionRules.vue
View file @
dc6d1cf9
<
template
>
<
template
>
<div>
<div
class=
"rule-box"
>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<ul>
<ul>
<li>
<li>
<input
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"addNew"
>
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"addShow=true,text='新增',ed=false"
>
<input
type=
"button"
class=
"normalBtn"
@
click=
"downMuban()"
value=
"导出"
>
</li>
</li>
</ul>
</ul>
</div>
</div>
<v-table
<v-table
v-if=
"isReady"
v-if=
"isReady"
is-horizontal-resize
is-horizontal-resize
column-width-drag
column-height-drag
style=
"width:100%"
style=
"width:100%"
:is-loading=
"loading"
:columns=
"columns"
:columns=
"columns"
:table-data=
"tableData"
:table-data=
"tableData"
:filter-method=
"filterMethod"
:filter-method=
"filterMethod"
...
@@ -25,119 +22,233 @@
...
@@ -25,119 +22,233 @@
:pageIndex=
"pageIndex"
:pageIndex=
"pageIndex"
:handleCurrentChange=
"handleCurrentChanges"
:handleCurrentChange=
"handleCurrentChanges"
:multiple-sort=
"multipleSort"
:multiple-sort=
"multipleSort"
:is-loading=
"loading"
sort-always
sort-always
@
sort-change=
"sortChange"
@
sort-change=
"sortChange"
@
on-custom-comp=
"customCompFunc"
></v-table>
></v-table>
<!-- @on-custom-comp="customCompFunc" -->
<!-- @on-custom-comp="customCompFunc" -->
<div
class=
"bottom-box"
>
<div
class=
"bottom-box"
v-show=
"showForm"
v-loading=
"formLoading"
>
<div
class=
"btm-title"
>
新增规则
</div>
<div
class=
"btm-title"
>
{{
addMsg
.
ID
==
0
?
'新增规则'
:
'修改规则'
}}
</div>
<div>
<div>
<el-form
<el-form
class=
"_info_box clearfix"
class=
"_info_box clearfix"
:model=
"addMsg"
:model=
"addMsg"
ref=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"110px"
label-width=
"110px"
:rules=
"rules"
>
>
<el-row>
<el-row>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-form-item
label=
"账户别名:"
>
<el-form-item
label=
"账户别名:"
prop=
"RuleName"
>
<el-input
v-model=
"addMsg.RuleName"
></el-input>
<el-input
v-model=
"addMsg.RuleName"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-col
:span=
"5"
:gutter=
"20"
>
<el-form-item
label=
"提成类别:"
>
<el-form-item
label=
"提成类别:"
>
<el-select
filterable
v-model=
"addMsg.CommissionMethod"
class
>
<el-select
filterable
v-model=
"addMsg.CommissionMethod"
class
>
<el-option
label=
"交易额"
value=
1
></el-option>
<el-option
label=
"交易额"
:value=
"1"
></el-option>
<el-option
label=
"毛利"
value=
2
></el-option>
<!--
<el-option
label=
"毛利"
:value=
"2"
></el-option>
-->
<el-option
label=
"人头数"
value=
3
></el-option>
<el-option
label=
"人头数"
:value=
"3"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-col
:span=
"5"
:gutter=
"20"
>
<el-form-item
label=
"提成方式:"
>
<el-form-item
label=
"提成方式:"
>
<el-select
filterable
v-model=
"addMsg.CommissionType"
class
>
<el-select
filterable
v-model=
"addMsg.CommissionType"
class
>
<el-option
label=
"百分比"
value=
1
></el-option>
<el-option
label=
"固定百分比"
:value=
"1"
v-if=
'addMsg.CommissionMethod==1'
></el-option>
<el-option
label=
"定额"
value=
2
></el-option>
<el-option
label=
"阶梯百分比"
:value=
"2"
v-if=
'addMsg.CommissionMethod==1'
></el-option>
</el-select>
<el-option
label=
"固定金额"
:value=
"3"
v-if=
'addMsg.CommissionMethod==3'
></el-option>
</el-form-item>
<el-option
label=
"阶梯金额"
:value=
"4"
v-if=
'addMsg.CommissionMethod==3'
></el-option>
</el-col>
</el-select>
<el-col
:span=
"4"
:gutter=
"20"
>
</el-form-item>
<el-form-item
label=
"提成比例:"
>
</el-col>
<el-input
v-model=
"addMsg.CommissionVariable"
>
<el-col
:span=
"5"
:gutter=
"20"
>
<template
slot=
"append"
>
{{
addMsg
.
CommissionType
==
1
?
'%'
:
'/人'
}}
</
template
>
<el-form-item
label=
"提成比例:"
prop=
"CommissionVariable"
>
</el-input>
<el-input
</el-form-item>
v-model=
"addMsg.CommissionVariable"
</el-col>
type=
"int"
<el-col
:span=
"4"
:gutter=
"20"
>
:disabled=
"addMsg.CommissionType%2!=1"
<el-form-item
label=
"提成要求:"
>
>
<el-select
filterable
v-model=
"addMsg.Require"
class
>
<template
slot=
"append"
>
{{
addMsg
.
CommissionType
==
1
?
'%'
:
'/人'
}}
</
template
>
<el-option
label=
"已收定金"
value=
1
></el-option>
</el-input>
<el-option
label=
"尾款收齐"
value=
2
></el-option>
</el-form-item>
</el-select>
</el-col>
</el-form-item>
<el-col
:span=
"5"
:gutter=
"20"
>
</el-col>
<el-form-item
label=
"提成要求:"
>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-select
v-model=
"addMsg.Require"
class
>
<el-form-item
label=
"结算周期:"
>
<el-option
label=
"已收定金"
:value=
"1"
></el-option>
<el-select
filterable
v-model=
"addMsg.BalanceCyc"
class
>
<el-option
label=
"尾款收齐"
:value=
"2"
></el-option>
<el-option
label=
"按单结算"
value=
1
></el-option>
</el-select>
<el-option
label=
"按月结算"
value=
2
></el-option>
</el-form-item>
</el-select>
</el-col>
</el-form-item>
</el-row>
</el-col>
<el-row>
</el-row>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-row>
<el-form-item
label=
"结算周期:"
>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-select
v-model=
"addMsg.BalanceCyc"
class
>
<el-form-item
label=
"结算要求:"
>
<el-option
label=
"按单结算"
:value=
"1"
></el-option>
<el-select
filterable
v-model=
"addMsg.BalanceCyc"
class
>
<el-option
label=
"按月结算"
:value=
"2"
></el-option>
<el-option
label=
"强制完成周期内所有订单提成要求"
value=
1
></el-option>
</el-select>
<el-option
label=
"不用强制完成"
value=
0
></el-option>
</el-form-item>
</el-select>
</el-col>
</el-form-item>
<el-col
:span=
"5"
:gutter=
"20"
>
</el-col>
<el-form-item
label=
"结算要求:"
>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-select
v-model=
"addMsg.IsFinishAll"
class
>
<el-form-item
label=
"适用公司:"
>
<el-option
label=
"强制完成周期内所有订单提成要求"
:value=
"1"
></el-option>
<el-select
filterable
v-model=
"addMsg.BalanceCyc"
class
>
<el-option
label=
"不用强制完成"
:value=
"0"
></el-option>
<el-option
label=
"强制完成周期内所有订单提成要求"
value=
1
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"5"
:gutter=
"20"
>
<el-col
:span=
"4"
:gutter=
"20"
>
<el-form-item
label=
"适用公司:"
prop=
"UsingBranchArray"
>
<el-form-item
label=
"适用线路:"
>
<el-select
<el-select
filterable
v-model=
"addMsg.BalanceCyc"
class
>
filterable
<el-option
label=
"强制完成周期内所有订单提成要求"
value=
1
></el-option>
multiple
</el-select>
collapse-tags
</el-form-item>
@
change=
"changeData(1)"
</el-col>
v-model=
"addMsg.UsingBranchArray"
<el-col
:span=
"4"
:gutter=
"20"
>
class
<el-form-item
label=
"启用时间"
>
>
<el-select
filterable
v-model=
"addMsg.BalanceCyc"
class
>
<el-option
label=
"集团通用"
value=
"-1"
></el-option>
<el-option
label=
"强制完成周期内所有订单提成要求"
value=
1
></el-option>
<el-option
</el-select>
v-for=
"(item, index) in CompanyList"
</el-form-item>
:label=
"item.BName"
</el-col>
:value=
"item.Id.toString()"
</el-row>
:key=
"index"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
:gutter=
"20"
>
<el-form-item
label=
"适用线路:"
prop=
"UsingLineArray"
>
<el-select
filterable
multiple
collapse-tags
@
change=
"changeData(2)"
v-model=
"addMsg.UsingLineArray"
class
>
<el-option
label=
"所有线路"
value=
"-1"
></el-option>
<el-option
v-for=
"(item, index) in lines"
:label=
"item.lineName"
:value=
"item.lineID.toString()"
:key=
"index"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
:gutter=
"20"
>
<el-form-item
label=
"启用时间:"
>
<el-date-picker
v-model=
"addMsg.EffectDate"
type=
"date"
placeholder=
"选择启用时间"
></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<table
class=
"al-tab"
v-show=
"addMsg.CommissionType%2==0"
>
<caption>
阶梯提成比例设定
</caption>
<thead>
<th>
序号
</th>
<th>
起始人数
</th>
<th>
终止人数
</th>
<th>
基础比列
</th>
<th>
额外奖励
</th>
<th>
操作
</th>
</thead>
<tbody>
<tr
v-for=
"(item, index) in addMsg.RuleClassList"
:key=
"index"
>
<td>
{{index+1}}
</td>
<td>
<el-input-number
size=
"small"
style=
"margin:0 12px"
:min=
"1"
:max=
"item.EndPeople"
v-model=
"item.StartPeople"
class=
"w120"
></el-input-number>
</td>
<td>
<el-input-number
size=
"small"
style=
"margin:0 15px"
:min=
"item.StartPeople"
v-model=
"item.EndPeople"
class=
"w100"
></el-input-number>
</td>
<td>
<el-input
placeholder=
"请输入基础比例"
size=
"small"
v-model=
"item.BaseVariable"
class=
"w200"
>
<
template
slot=
"append"
>
{{
addMsg
.
CommissionType
==
2
?
'%'
:
'/人'
}}
</
template
>
</el-input>
</td>
<td>
<el-input
placeholder=
"请输入外卖奖励"
size=
"small"
v-model=
"item.AddedVariable"
class=
"w200 temp"
>
<
template
slot=
"append"
>
<el-select
v-model=
"item.AddedMethod"
class
>
<el-option
label=
"/人"
:value=
"2"
></el-option>
<el-option
label=
"%"
:value=
"1"
></el-option>
</el-select>
</
template
>
</el-input>
</td>
<td>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
circle
v-if=
"index==addMsg.RuleClassList.length-1"
@
click=
"addCommissionType"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
circle
@
click=
"deleteCommissionType(index)"
v-if=
"addMsg.RuleClassList.length>1"
></el-button>
</td>
</tr>
</tbody>
</table>
</el-row>
</el-form>
</el-form>
</div>
</div>
<div
class=
"btm-opera-btn"
>
<div
class=
"btm-opera-btn"
>
<input
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"save"
>
type=
"button"
<input
type=
"button"
class=
"cancelBtn"
value=
"取消"
@
click=
"changeShow(0)"
>
class=
"normalBtn"
value=
"保存"
>
<input
type=
"button"
class=
"cancelBtn"
value=
"取消"
>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Vue
from
"vue"
;
export
default
{
export
default
{
data
()
{
data
()
{
var
checkVariable
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
==
null
||
value
.
length
==
0
)
{
return
callback
(
new
Error
(
"提成比列不能为空"
));
}
let
a
=
parseFloat
(
value
);
if
(
isNaN
(
a
))
{
callback
(
new
Error
(
"提成比例必须是整数"
));
}
else
{
callback
();
}
};
return
{
return
{
columns
:
[],
columns
:
[],
remoteLoading
:
false
,
remoteLoading
:
false
,
...
@@ -148,27 +259,146 @@ export default {
...
@@ -148,27 +259,146 @@ export default {
loading
:
false
,
loading
:
false
,
pageSize
:
1000
,
pageSize
:
1000
,
pageIndex
:
1
,
pageIndex
:
1
,
msg
:{},
msg
:
{},
CompanyList
:[],
CompanyList
:
[],
addMsg
:{
addMsg
:
{},
ID
:
0
,
lines
:
[],
RuleName
:
""
,
rules
:
{
CommissionMethod
:
'1'
,
RuleName
:
[
CommissionType
:
'1'
,
{
required
:
true
,
message
:
"请输入规则名称"
,
trigger
:
"blur"
}
Require
:
'1'
,
],
CommissionVariable
:
'0'
,
UsingLineArray
:
[
UsingLine
:
''
,
{
UsingBranch
:
''
,
type
:
"array"
,
EffectDate
:
null
,
required
:
true
,
RB_Group_Id
:
0
,
message
:
"请至少选择一个适用线路"
,
BalanceCyc
:
''
,
trigger
:
"blur"
IsFinishAll
:
'0'
,
}
IsDelete
:
1
],
UsingBranchArray
:
[
{
type
:
"array"
,
required
:
true
,
message
:
"请至少选择一个适用公司"
,
trigger
:
"blur"
}
],
CommissionVariable
:
[{
validator
:
checkVariable
,
trigger
:
"blur"
}]
},
},
rules
:
{}
showForm
:
false
,
formLoading
:
false
,
searchMsg
:
{
RB_Group_Id
:
0
}
};
};
},
},
methods
:
{
methods
:
{
customCompFunc
(
params
)
{
if
(
params
.
type
===
"delete"
)
{
this
.
delete
(
params
.
data
.
ID
);
//this.financeinfoRemove(params.id,params.alias)
}
else
if
(
params
.
type
===
"edit"
)
{
this
.
addNew
(
params
.
data
);
}
},
delete
(
id
)
{
this
.
$confirm
(
"此操作将永久删除该提成规则, 是否继续?"
,
"删除提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
let
msg
=
{
id
};
this
.
apipost
(
"sellcommission_rule_delete"
,
msg
,
x
=>
{
if
(
x
.
data
.
resultCode
==
1
)
{
this
.
Success
(
"删除成功"
);
this
.
getData
()
}
else
{
this
.
Error
(
this
.
data
.
message
);
}
});
})
.
catch
(()
=>
{});
},
addNew
(
data
)
{
if
(
!
data
.
ID
)
{
this
.
addMsg
=
{
ID
:
0
,
RuleName
:
""
,
CommissionMethod
:
1
,
CommissionType
:
1
,
Require
:
1
,
CommissionVariable
:
0
,
UsingLineArray
:
[
"-1"
],
UsingBranchArray
:
[
"-1"
],
UsingLine
:
""
,
UsingBranch
:
""
,
EffectDate
:
null
,
RB_Group_Id
:
this
.
searchMsg
.
RB_Group_Id
,
BalanceCyc
:
1
,
IsFinishAll
:
0
,
IsDelete
:
1
,
RuleClassList
:
[
{
StartPeople
:
1
,
EndPeople
:
1
,
BaseVariable
:
0
,
AddedVariable
:
0
,
AddedMethod
:
1
}
]
};
}
else
{
data
.
UsingLineArray
=
data
.
UsingLine
.
split
(
","
);
data
.
UsingBranchArray
=
data
.
UsingBranch
.
split
(
","
);
this
.
addMsg
=
data
;
}
this
.
changeShow
(
1
);
},
save
()
{
//sellcommission_rule_set
this
.
$refs
[
"addMsg"
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
formLoading
=
true
;
this
.
addMsg
.
UsingLine
=
this
.
addMsg
.
UsingLineArray
.
join
(
","
);
this
.
addMsg
.
UsingBranch
=
this
.
addMsg
.
UsingBranchArray
.
join
(
","
);
this
.
apipost
(
"sellcommission_rule_set"
,
this
.
addMsg
,
x
=>
{
if
(
x
.
data
.
resultCode
==
1
)
{
this
.
changeShow
(
0
);
this
.
Success
(
"保存成功"
);
this
.
getData
();
}
else
{
this
.
Error
(
x
.
data
.
message
);
}
this
.
formLoading
=
false
;
});
}
else
{
return
false
;
}
});
},
changeShow
(
t
)
{
this
.
showForm
=
t
==
1
;
},
deleteCommissionType
(
index
)
{
this
.
addMsg
.
RuleClassList
.
splice
(
index
,
1
);
},
addCommissionType
()
{
let
obj
=
{
StartPeople
:
this
.
addMsg
.
RuleClassList
[
this
.
addMsg
.
RuleClassList
.
length
-
1
]
.
EndPeople
+
1
,
EndPeople
:
this
.
addMsg
.
RuleClassList
[
this
.
addMsg
.
RuleClassList
.
length
-
1
]
.
EndPeople
+
1
,
Variable
:
0
,
AddedVariable
:
0
,
AddedMethod
:
"1"
};
this
.
addMsg
.
RuleClassList
.
push
(
obj
);
},
initColums
()
{
initColums
()
{
this
.
isReady
=
false
;
this
.
isReady
=
false
;
let
that
=
this
;
let
that
=
this
;
...
@@ -182,7 +412,8 @@ export default {
...
@@ -182,7 +412,8 @@ export default {
width
:
40
,
width
:
40
,
filters
:
[{}],
filters
:
[{}],
isResize
:
true
,
isResize
:
true
,
type
:
"text"
type
:
"text"
,
isFrozen
:
true
};
};
let
companyList
=
[];
let
companyList
=
[];
this
.
CompanyList
.
forEach
(
x
=>
{
this
.
CompanyList
.
forEach
(
x
=>
{
...
@@ -198,12 +429,19 @@ export default {
...
@@ -198,12 +429,19 @@ export default {
titleAlign
:
"left"
,
titleAlign
:
"left"
,
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
isResize
:
true
,
filterMultiple
:
fals
e
,
filterMultiple
:
tru
e
,
filters
:
companyList
,
filters
:
companyList
,
result
:
""
,
result
:
[]
,
type
:
"select"
type
:
"select"
,
// isFrozen:
true
isFrozen
:
true
};
};
let
lines
=
[];
this
.
lines
.
forEach
(
x
=>
{
let
item
=
{};
item
.
label
=
x
.
lineName
;
item
.
value
=
x
.
lineID
;
lines
.
push
(
item
);
});
let
LineName
=
{
let
LineName
=
{
field
:
"LineName"
,
field
:
"LineName"
,
title
:
"适用线路"
,
title
:
"适用线路"
,
...
@@ -211,30 +449,33 @@ export default {
...
@@ -211,30 +449,33 @@ export default {
titleAlign
:
"left"
,
titleAlign
:
"left"
,
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
isResize
:
true
,
result
:
""
,
result
:
[],
filterMultiple
:
false
,
filterMultiple
:
true
,
filters
:
[{}],
filters
:
lines
,
type
:
"text"
isFrozen
:
true
,
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
if
(
rowData
.
UsingLine
==
"-1"
)
{
return
"所有线路"
;
}
else
{
let
lineNames
=
""
;
rowData
.
UsingLine
.
split
(
","
).
forEach
(
x
=>
{
that
.
lines
.
forEach
(
y
=>
{
if
(
y
.
lineID
==
x
)
{
lineNames
+=
y
.
lineName
+
","
;
}
});
});
return
lineNames
;
}
}
};
};
let
Rules
=
{
let
Rules
=
{
title
:
"提成规则"
,
title
:
"提成规则"
,
field
:
"RuleDescription"
,
titleAlign
:
"left"
,
titleAlign
:
"left"
,
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
width
:
300
width
:
80
,
// orderBy: "desc"
orderBy
:
"desc"
,
// formatter: function(rowData, rowIndex, pagingIndex, field) {
// if (
// rowData["Initialbalance"] >= rowData["RiskLimitMoney"] &&
// rowData["Initialbalance"] != 0
// )
// return `
<
span
style
=
'color:red;font-weight:bold'
>
$
{
rowData
[
// "Initialbalance"
// ].toFixed(
// 2
// )}
<
/span><span style='color:red;margin-left:12px;'>超限</
span
>
`;
// else return rowData["Initialbalance"].toFixed(2);
// }
};
};
let
EffectDate
=
{
let
EffectDate
=
{
field
:
"EffectDate"
,
field
:
"EffectDate"
,
...
@@ -243,32 +484,17 @@ export default {
...
@@ -243,32 +484,17 @@ export default {
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
isResize
:
true
,
width
:
80
,
width
:
80
,
// formatter: function(rowData, rowIndex, pagingIndex, field) {
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
// return rowData.SettlementType == 1
return
rowData
.
EffectDate
.
split
(
"T"
)[
0
];
// ? rowData.Commission.toFixed(2) + "%"
}
// : rowData.Commission + "/人";
// },
// filterMultiple: true,
// result: [],
// filters: [
// {
// label: "交易额百分比",
// value: "1"
// },
// {
// label: "交易人头数",
// value: "2"
// }
// ],
//type: "check"
};
};
let
CommissionLog
=
{
let
CommissionLog
=
{
title
:
"提成记录"
,
title
:
"提成记录"
,
titleAlign
:
"left"
,
titleAlign
:
"left"
,
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
isResize
:
true
,
width: 80
,
width
:
80
orderBy: "",
//
orderBy: "",
// formatter: function(rowData, rowIndex, pagingIndex, field) {
// formatter: function(rowData, rowIndex, pagingIndex, field) {
// return rowData.Royalty.toFixed(2);
// return rowData.Royalty.toFixed(2);
// }
// }
...
@@ -279,28 +505,20 @@ export default {
...
@@ -279,28 +505,20 @@ export default {
columnAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
isResize
:
true
,
width
:
80
,
width
:
80
,
// formatter: function(rowData, rowIndex, pagingIndex, field) {
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
// return `
<
span
style
=
'color:${
let
cyc
=
""
;
// rowData.HaveContract == 0 ? "red" : "blue"
if
(
rowData
.
BalanceCyc
==
"1"
)
{
// };margin-right:12px;'
>
$
{
cyc
=
"按单结算("
;
// rowData.HaveContract == 0 ? "无合同" : "有合同"
}
else
{
// }
<
/span><span>$
{
cyc
=
"按月结算("
;
// rowData.ContraceDateRange ? rowData.ContraceDateRange : ""
}
// }
<
/span>`
;
if
(
rowData
.
IsFinishAll
==
"1"
)
{
// },
cyc
+=
"必选完成周期内所有的提成要求)"
;
// filterMultiple: true,
}
else
{
// result: [],
cyc
+=
"不强制完成周期内所有的提成要求)"
;
// filters: [
}
// {
return
cyc
;
// label: "有合同",
}
// value: "1"
// },
// {
// label: "无合同",
// value: "0"
// }
// ],
// type: "check"
};
};
let
opera
=
{
let
opera
=
{
title
:
"操作"
,
title
:
"操作"
,
...
@@ -321,6 +539,22 @@ export default {
...
@@ -321,6 +539,22 @@ export default {
this
.
columns
.
push
(
opera
);
this
.
columns
.
push
(
opera
);
this
.
isReady
=
true
;
this
.
isReady
=
true
;
},
},
changeData
(
type
)
{
let
temp
=
[];
if
(
type
==
1
)
{
temp
=
this
.
addMsg
.
UsingBranchArray
;
}
else
if
(
type
==
2
)
{
temp
=
this
.
addMsg
.
UsingLineArray
;
}
let
len
=
temp
.
length
;
if
(
len
>
1
)
{
if
(
temp
[
len
-
1
]
==
-
1
)
{
temp
.
splice
(
0
,
len
-
1
);
}
else
if
(
temp
.
indexOf
(
"-1"
)
!=
-
1
)
{
temp
.
splice
(
temp
.
indexOf
(
"-1"
),
1
);
}
}
},
handleCurrentChanges
(
val
)
{
handleCurrentChanges
(
val
)
{
this
.
pageIndex
=
val
;
this
.
pageIndex
=
val
;
this
.
getList
();
this
.
getList
();
...
@@ -358,18 +592,92 @@ export default {
...
@@ -358,18 +592,92 @@ export default {
x
.
disabled
=
false
;
x
.
disabled
=
false
;
});
});
this
.
CompanyList
=
data
;
this
.
CompanyList
=
data
;
this
.
initColums
();
this
.
getline
();
}
else
{
}
else
{
}
}
},
},
err
=>
{}
err
=>
{}
);
);
},
},
getline
()
{
let
msg
=
{
pageIndex
:
0
,
pageSize
:
100
};
this
.
apipost
(
"line_post_GetPageList"
,
msg
,
x
=>
{
this
.
lines
=
x
.
data
.
data
.
pageData
;
// console.log(this.lines)
this
.
initColums
();
this
.
getData
();
},
err
=>
{}
);
},
getData
()
{
this
.
loading
=
true
;
this
.
apipost
(
"sellcommission_rule_get"
,
this
.
searchMsg
,
x
=>
{
this
.
tableData
=
x
.
data
.
data
;
this
.
loading
=
false
;
});
}
},
},
mounted
()
{
mounted
()
{
this
.
getCompanyList
()
this
.
searchMsg
.
RB_Group_Id
=
this
.
addMsg
.
RB_Group_Id
=
this
.
getLocalStorage
().
RB_Group_id
;
this
.
getCompanyList
();
Vue
.
component
(
"table-operation"
,
{
template
:
`<div style='width:80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button></div>`
,
props
:
{
rowData
:
{
type
:
Object
},
field
:
{
type
:
String
},
index
:
{
type
:
Number
}
},
methods
:
{
update
()
{
let
params
=
{
type
:
"edit"
,
data
:
this
.
rowData
};
this
.
$emit
(
"on-custom-comp"
,
params
);
},
deleteRow
()
{
let
params
=
{
type
:
"delete"
,
data
:
this
.
rowData
};
this
.
$emit
(
"on-custom-comp"
,
params
);
}
}
});
}
}
};
};
</
script
>
</
script
>
<
style
>
<
style
>
/* .rule-box .el-select__tags{
top: 100%;
} */
.rule-box
.el-input
.el-input__inner
,
.rule-box
.el-select
.el-input
{
height
:
auto
;
}
.rule-box
.el-select
{
display
:
block
;
}
.el-input-group__append
,
.el-input-group__prepend
{
border-radius
:
0
;
}
.rule-box
.el-date-editor.el-input
,
.rule-box
.el-date-editor.el-input__inner
{
width
:
100%
;
}
.rule-box
.temp
.el-input-group__append
{
width
:
70px
;
}
.rule-box
.temp
.el-select
{
background
:
#409eff
;
color
:
#fff
;
}
.rule-box
.temp
.el-select
.el-input
.el-select__caret
{
color
:
#f1f1f1
;
}
</
style
>
</
style
>
src/components/SalesModule/enrollTotalTwo.vue
View file @
dc6d1cf9
...
@@ -263,7 +263,7 @@
...
@@ -263,7 +263,7 @@
<td>
{{
item
.
refund
}}
</td>
<td>
{{
item
.
refund
}}
</td>
<td>
{{
item
.
platformTax
}}
</td>
<td>
{{
item
.
platformTax
}}
</td>
<td>
{{
moneyFormat
(
item
.
zaiTuMoney
)
}}
</td>
<td>
{{
moneyFormat
(
item
.
zaiTuMoney
)
}}
</td>
<td>
{{
moneyFormat
(
item
.
weiShouMoney
)
}}
</td>
<td
class=
"weiShou"
>
{{
moneyFormat
(
item
.
weiShouMoney
)
}}
</td>
<td
class=
"fz12"
:style=
"item.orderState===3?'color: #e95252;':''"
>
{{
item
.
statsstr
}}
</td>
<td
class=
"fz12"
:style=
"item.orderState===3?'color: #e95252;':''"
>
{{
item
.
statsstr
}}
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -939,5 +939,8 @@
...
@@ -939,5 +939,8 @@
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
10px
0
0
;
margin
:
0
10px
0
0
;
}
}
.enrollTotalSearchTable
.weiShou
{
color
:
red
;
}
</
style
>
</
style
>
src/components/TravelManager/TravelList/RegistrationList.vue
View file @
dc6d1cf9
...
@@ -799,6 +799,10 @@
...
@@ -799,6 +799,10 @@
font-size
:
14px
;
font-size
:
14px
;
vertical-align
:
top
;
vertical-align
:
top
;
}
}
.RegistrationList
.nowrap
{
white-space
:
nowrap
;
}
</
style
>
</
style
>
<
template
>
<
template
>
...
@@ -1330,18 +1334,18 @@
...
@@ -1330,18 +1334,18 @@
<tr>
<tr>
<th
width=
"240"
>
单号
</th>
<th
width=
"240"
>
单号
</th>
<th
width=
"150"
>
客户信息
</th>
<th
width=
"150"
>
客户信息
</th>
<th
width=
"70"
>
人数/机位数
</th>
<th
width=
"70"
class=
"nowrap"
>
人数/机位数
</th>
<th
width=
"110"
>
单价
</th>
<th
width=
"110"
class=
"nowrap"
>
单价
</th>
<th
width=
"110"
>
成交单价
</th>
<th
width=
"110"
class=
"nowrap"
>
成交单价
</th>
<th
width=
"110"
>
应收总额
</th>
<th
width=
"110"
class=
"nowrap"
>
应收总额
</th>
<th
width=
"110"
>
实收
</th>
<th
width=
"110"
class=
"nowrap"
>
实收
</th>
<th
width=
"110"
>
退款
</th>
<th
width=
"110"
class=
"nowrap"
>
退款
</th>
<th
width=
"110"
>
平台税金
</th>
<th
width=
"110"
class=
"nowrap"
>
平台税金
</th>
<th
width=
"110"
>
平台在途
</th>
<th
width=
"110"
class=
"nowrap"
>
平台在途
</th>
<th
width=
"
80
"
>
待收金额
</th>
<th
width=
"
110"
class=
"nowrap
"
>
待收金额
</th>
<th
width=
"100"
>
状态
</th>
<th
width=
"100"
class=
"nowrap"
>
状态
</th>
<th
width=
"130"
>
确认函
</th>
<th
width=
"130"
class=
"nowrap"
>
确认函
</th>
<th
width=
"150"
>
操作
</th>
<th
width=
"150"
class=
"nowrap"
>
操作
</th>
</tr>
</tr>
<tr>
<tr>
<td
v-show=
"OrderDataList.Length==0"
colspan=
"14"
align=
"center"
>
暂无数据
</td>
<td
v-show=
"OrderDataList.Length==0"
colspan=
"14"
align=
"center"
>
暂无数据
</td>
...
@@ -1394,9 +1398,9 @@
...
@@ -1394,9 +1398,9 @@
</tr>
</tr>
</table>
</table>
</div>
</div>
<span
v-if=
'item.GuestNumStatus==1'
style=
"color:#1AA86B;
"
class=
"personNo
"
slot=
"reference"
>
{{
item
.
GuestNum
}}
/
{{
item
.
YSeatNum
>
0
?
item
.
YSeatNum
+
'Y '
:
''
}}{{
item
.
ESeatNum
>
0
?
item
.
ESeatNum
+
'E '
:
''
}}{{
item
.
FSeatNum
>
0
?
item
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'item.GuestNumStatus==1'
style=
"color:#1AA86B;
"
class=
"personNo nowrap
"
slot=
"reference"
>
{{
item
.
GuestNum
}}
/
{{
item
.
YSeatNum
>
0
?
item
.
YSeatNum
+
'Y '
:
''
}}{{
item
.
ESeatNum
>
0
?
item
.
ESeatNum
+
'E '
:
''
}}{{
item
.
FSeatNum
>
0
?
item
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'item.GuestNumStatus==2'
style=
"color:#E95252;
"
class=
"personNo
"
slot=
"reference"
>
{{
item
.
GuestNum
}}
/
{{
item
.
YSeatNum
>
0
?
item
.
YSeatNum
+
'Y '
:
''
}}{{
item
.
ESeatNum
>
0
?
item
.
ESeatNum
+
'E '
:
''
}}{{
item
.
FSeatNum
>
0
?
item
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'item.GuestNumStatus==2'
style=
"color:#E95252;
"
class=
"personNo nowrap
"
slot=
"reference"
>
{{
item
.
GuestNum
}}
/
{{
item
.
YSeatNum
>
0
?
item
.
YSeatNum
+
'Y '
:
''
}}{{
item
.
ESeatNum
>
0
?
item
.
ESeatNum
+
'E '
:
''
}}{{
item
.
FSeatNum
>
0
?
item
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'item.GuestNumStatus==3'
style=
"color:#666;
"
class=
"personNo
"
slot=
"reference"
>
{{
item
.
GuestNum
}}
/
{{
item
.
YSeatNum
>
0
?
item
.
YSeatNum
+
'Y '
:
''
}}{{
item
.
ESeatNum
>
0
?
item
.
ESeatNum
+
'E '
:
''
}}{{
item
.
FSeatNum
>
0
?
item
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'item.GuestNumStatus==3'
style=
"color:#666;
"
class=
"personNo nowrap
"
slot=
"reference"
>
{{
item
.
GuestNum
}}
/
{{
item
.
YSeatNum
>
0
?
item
.
YSeatNum
+
'Y '
:
''
}}{{
item
.
ESeatNum
>
0
?
item
.
ESeatNum
+
'E '
:
''
}}{{
item
.
FSeatNum
>
0
?
item
.
FSeatNum
+
'F '
:
''
}}
</span>
</el-popover>
</el-popover>
</td>
</td>
<td>
{{
item
.
TC_Price
}}
</td>
<td>
{{
item
.
TC_Price
}}
</td>
...
@@ -1571,17 +1575,17 @@
...
@@ -1571,17 +1575,17 @@
</tr>
</tr>
</table>
</table>
</div>
</div>
<span
v-if=
'childItem.GuestNumStatus==1'
style=
"color:#1AA86B;
"
class=
"personNo
"
slot=
"reference"
>
{{
childItem
.
GuestNum
}}
/
{{
childItem
.
YSeatNum
>
0
?
childItem
.
YSeatNum
+
'Y '
:
''
}}{{
childItem
.
ESeatNum
>
0
?
childItem
.
ESeatNum
+
'E '
:
''
}}{{
childItem
.
FSeatNum
>
0
?
childItem
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'childItem.GuestNumStatus==1'
style=
"color:#1AA86B;
"
class=
"personNo nowrap
"
slot=
"reference"
>
{{
childItem
.
GuestNum
}}
/
{{
childItem
.
YSeatNum
>
0
?
childItem
.
YSeatNum
+
'Y '
:
''
}}{{
childItem
.
ESeatNum
>
0
?
childItem
.
ESeatNum
+
'E '
:
''
}}{{
childItem
.
FSeatNum
>
0
?
childItem
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'childItem.GuestNumStatus==2'
style=
"color:#E95252;"
class=
"personNo"
slot=
"reference"
>
{{
childItem
.
GuestNum
}}
/
{{
childItem
.
YSeatNum
>
0
?
childItem
.
YSeatNum
+
'Y '
:
''
}}{{
childItem
.
ESeatNum
>
0
?
childItem
.
ESeatNum
+
'E '
:
''
}}{{
childItem
.
FSeatNum
>
0
?
childItem
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'childItem.GuestNumStatus==2'
style=
"color:#E95252;"
class=
"personNo
nowrap
"
slot=
"reference"
>
{{
childItem
.
GuestNum
}}
/
{{
childItem
.
YSeatNum
>
0
?
childItem
.
YSeatNum
+
'Y '
:
''
}}{{
childItem
.
ESeatNum
>
0
?
childItem
.
ESeatNum
+
'E '
:
''
}}{{
childItem
.
FSeatNum
>
0
?
childItem
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'childItem.GuestNumStatus==3'
style=
"color:#666;
"
class=
"personNo
"
slot=
"reference"
>
{{
childItem
.
GuestNum
}}
/
{{
childItem
.
YSeatNum
>
0
?
childItem
.
YSeatNum
+
'Y '
:
''
}}{{
childItem
.
ESeatNum
>
0
?
childItem
.
ESeatNum
+
'E '
:
''
}}{{
childItem
.
FSeatNum
>
0
?
childItem
.
FSeatNum
+
'F '
:
''
}}
</span>
<span
v-if=
'childItem.GuestNumStatus==3'
style=
"color:#666;
"
class=
"personNo nowrap
"
slot=
"reference"
>
{{
childItem
.
GuestNum
}}
/
{{
childItem
.
YSeatNum
>
0
?
childItem
.
YSeatNum
+
'Y '
:
''
}}{{
childItem
.
ESeatNum
>
0
?
childItem
.
ESeatNum
+
'E '
:
''
}}{{
childItem
.
FSeatNum
>
0
?
childItem
.
FSeatNum
+
'F '
:
''
}}
</span>
</el-popover>
</el-popover>
</td>
</td>
<td>
{{
childItem
.
TC_Price
}}
</td>
<td
class=
"nowrap"
>
{{
childItem
.
TC_Price
}}
</td>
<td>
{{
childItem
.
Unit_Price
}}
</td>
<td>
{{
childItem
.
Unit_Price
}}
</td>
<td>
<td
class=
"nowrap"
>
<p>
{{
childItem
.
PreferPrice
}}
</p>
<p>
{{
childItem
.
PreferPrice
}}
</p>
</td>
</td>
<td>
<td
class=
"nowrap"
>
<el-popover
style=
'padding: 0;'
width=
"400"
trigger=
"click"
>
<el-popover
style=
'padding: 0;'
width=
"400"
trigger=
"click"
>
<div
class=
"personNolayer"
>
<div
class=
"personNolayer"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"1"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"1"
>
...
@@ -1608,10 +1612,10 @@
...
@@ -1608,10 +1612,10 @@
@
click=
"getOrderDetail(childItem)"
slot=
"reference"
>
{{
childItem
.
Income
}}
</span>
@
click=
"getOrderDetail(childItem)"
slot=
"reference"
>
{{
childItem
.
Income
}}
</span>
</el-popover>
</el-popover>
</td>
</td>
<td>
{{
childItem
.
Refund
}}
</td>
<td
class=
"nowrap"
>
{{
childItem
.
Refund
}}
</td>
<td>
{{
childItem
.
PlatformTax
}}
</td>
<td
class=
"nowrap"
>
{{
childItem
.
PlatformTax
}}
</td>
<td>
{{
childItem
.
ZaiTuMoney
}}
</td>
<td
class=
"nowrap"
>
{{
childItem
.
ZaiTuMoney
}}
</td>
<td><span
:class=
"
{color_red_order:childItem.DueInMoney!==childItem.PreferPrice}">
{{
childItem
.
DueInMoney
}}
</span></td>
<td
class=
"nowrap"
><span
:class=
"
{color_red_order:childItem.DueInMoney!==childItem.PreferPrice}">
{{
childItem
.
DueInMoney
}}
</span></td>
<td
class=
"fz12"
><span
:class=
"
{'RL-redType':childItem.statsstr=='候补'}">
{{
childItem
.
statsstr
}}
</span></td>
<td
class=
"fz12"
><span
:class=
"
{'RL-redType':childItem.statsstr=='候补'}">
{{
childItem
.
statsstr
}}
</span></td>
<td>
<td>
<div
@
click=
"goOpenUrl('confirmationOrder',childItem.OrderId)"
style=
"cursor:pointer;"
>
电子确认函
</div>
<div
@
click=
"goOpenUrl('confirmationOrder',childItem.OrderId)"
style=
"cursor:pointer;"
>
电子确认函
</div>
...
@@ -2824,14 +2828,14 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
...
@@ -2824,14 +2828,14 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
if
(
this
.
addMsg
.
Commission
>
0
)
{
if
(
this
.
addMsg
.
Commission
>
0
)
{
this
.
addMsg
.
CommissionShareMoney
=
this
.
addMsg
.
Commission
/
2
;
this
.
addMsg
.
CommissionShareMoney
=
this
.
addMsg
.
Commission
/
2
;
this
.
addMsg
.
Commission
=
this
.
addMsg
.
Commission
=
this
.
addMsg
.
Commission
-
this
.
addMsg
.
CommissionShareMoney
;
(
this
.
addMsg
.
Commission
-
this
.
addMsg
.
CommissionShareMoney
).
toFixed
(
2
)
;
}
else
{
}
else
{
this
.
addMsg
.
CommissionShareMoney
=
"0"
;
this
.
addMsg
.
CommissionShareMoney
=
"0"
;
}
}
}
}
}
}
}
else
{
}
else
{
this
.
addMsg
.
Commission
=
Number
(
this
.
addMsg
.
PreferPrice
)
*
0.01
this
.
addMsg
.
Commission
=
(
Number
(
this
.
addMsg
.
PreferPrice
)
*
0.01
).
toFixed
(
2
)
}
}
},
},
getHouseNo
()
{
getHouseNo
()
{
...
...
src/plug/index.js
View file @
dc6d1cf9
...
@@ -4,822 +4,821 @@ import co from 'co'
...
@@ -4,822 +4,821 @@ import co from 'co'
import
OSS
from
'ali-oss'
import
OSS
from
'ali-oss'
import
MsgBus
from
'../assets/utils/msgBus'
import
MsgBus
from
'../assets/utils/msgBus'
export
default
{
export
default
{
data
:
{
data
:
{
loginUser
:
{},
loginUser
:
{},
apiurl
:
''
apiurl
:
''
},
},
install
(
Vue
,
options
)
{
install
(
Vue
,
options
)
{
Vue
.
prototype
.
MsgBus
=
MsgBus
;
Vue
.
prototype
.
MsgBus
=
MsgBus
;
Vue
.
prototype
.
md5
=
md5
;
Vue
.
prototype
.
md5
=
md5
;
Vue
.
prototype
.
orderBy
=
function
(
source
,
orders
,
type
)
{
Vue
.
prototype
.
orderBy
=
function
(
source
,
orders
,
type
)
{
if
(
if
(
source
instanceof
Array
&&
source
instanceof
Array
&&
orders
instanceof
Array
&&
orders
instanceof
Array
&&
orders
.
length
>
0
orders
.
length
>
0
)
{
)
{
var
ordersc
=
orders
.
concat
([]);
var
ordersc
=
orders
.
concat
([]);
var
sorttype
=
type
||
"asc"
;
var
sorttype
=
type
||
"asc"
;
var
results
=
[];
var
results
=
[];
var
totalSum
=
{};
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
);
}
});
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
)
{
var
groupmap
=
new
Map
();
totalSum
[
key
]
=
{};
source
.
forEach
(
item
=>
{
totalSum
[
key
].
name
=
key
;
if
(
groupmap
.
has
(
item
[
orders
[
0
]]))
{
totalSum
[
key
].
value
=
val
.
length
;
groupmap
.
get
(
item
[
orders
[
0
]]).
push
(
item
);
if
(
orders
.
length
==
0
)
{
}
else
{
results
=
results
.
concat
(
val
);
groupmap
.
set
(
item
[
orders
[
0
]],
[]);
}
else
{
groupmap
.
get
(
item
[
orders
[
0
]]).
push
(
item
);
totalSum
[
key
].
children
=
{};
}
var
orderscopy
=
orders
.
concat
([]);
});
grouporder
(
val
,
orderscopy
,
totalSum
[
key
].
children
);
}
}
}
grouporder
(
source
,
ordersc
,
totalSum
);
orders
.
shift
(
);
return
{
for
(
let
[
key
,
val
]
of
groupmap
)
{
results
:
results
,
totalSum
[
key
]
=
{};
totalSum
:
totalSum
totalSum
[
key
].
name
=
key
;
};
totalSum
[
key
].
value
=
val
.
length
;
}
else
{
if
(
orders
.
length
==
0
)
{
return
source
;
results
=
results
.
concat
(
val
);
}
}
else
{
},
totalSum
[
key
].
children
=
{};
Vue
.
prototype
.
calcPageSize
=
function
(
itemHeight
)
{
var
orderscopy
=
orders
.
concat
([]);
let
yuHeight
=
itemHeight
grouporder
(
val
,
orderscopy
,
totalSum
[
key
].
children
);
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://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"
});
},
//一般提示
grouporder
(
source
,
ordersc
,
totalSum
);
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
(
"已取消操作"
);
});
},
//打开新窗口连接
return
{
Vue
.
prototype
.
OpenNewUrl
=
function
(
URL
)
{
results
:
results
,
if
(
URL
!=
''
)
{
totalSum
:
totalSum
window
.
open
(
'http://'
+
URL
,
'_blank'
);
};
}
}
else
{
}
return
source
;
//HTTP提交数据
}
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
},
if
(
msg
==
null
||
msg
==
""
)
{
Vue
.
prototype
.
calcPageSize
=
function
(
itemHeight
){
msg
=
{}
let
yuHeight
=
itemHeight
}
try
{
var
apiurl
=
this
.
domainManager
().
PostUrl
;
let
obj
=
null
var
timestamp
=
(
new
Date
()).
valueOf
();
document
.
querySelectorAll
(
'.frame-box'
).
forEach
(
x
=>
{
this
.
apiurl
=
apiurl
;
if
(
x
.
style
.
display
!=
'none'
){
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signature"
)
{
obj
=
x
this
.
$router
.
push
({
}
path
:
'/signature'
})
})
let
dom
=
obj
.
offsetHeight
}
else
{
yuHeight
=
dom
-
(
obj
.
querySelector
(
'.v-table-header'
)?
obj
.
querySelector
(
'.v-table-header'
).
offsetHeight
:
39
)
-
50
//减去面包屑,减去表格头部,减去分页,减去偏量
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
//减去其它同级元素
this
.
$router
.
push
({
obj
.
childNodes
[
0
].
childNodes
.
forEach
(
x
=>
{
path
:
'/login'
if
(
x
.
className
&&
x
.
className
.
indexOf
(
'v-table-views'
)
==-
1
){
})
yuHeight
-=
x
.
offsetHeight
?
x
.
offsetHeight
:
0
}
}
}
})
var
token
=
""
;
}
catch
(
error
)
{
console
.
log
(
error
)}
var
key
=
""
;
return
Math
.
floor
(
yuHeight
/
itemHeight
)
if
(
this
.
getLocalStorage
()
!=
null
)
{
}
token
=
this
.
getLocalStorage
().
token
;
Vue
.
prototype
.
random_string
=
function
(
len
)
{
key
=
this
.
getLocalStorage
().
SecretKey
;
len
=
len
||
32
;
}
var
chars
=
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
;
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
maxPos
=
chars
.
length
;
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
pwd
=
''
;
var
postData
=
{
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
"msg"
:
msg
,
pwd
+=
chars
.
charAt
(
Math
.
floor
(
Math
.
random
()
*
maxPos
));
"cmd"
:
cmd
,
}
"timestamp"
:
timestamp
,
return
pwd
;
"token"
:
token
,
},
"sign"
:
md5Str
//是否是线上环境【发布时修改为true】
}
Vue
.
prototype
.
isOnline
=
function
()
{
this
.
$http
.
post
(
apiurl
,
postData
,
{
return
process
.
env
.
NODE_ENV
!==
'development'
;
headers
:
{
},
'Content-Type'
:
'application/json'
,
//域名管理对象
'Referer-Viitto'
:
this
.
$route
.
path
Vue
.
prototype
.
domainManager
=
function
()
{
}
let
domainUrl
=
''
;
})
let
locationName
=
window
.
location
.
hostname
;
.
then
(
res
=>
{
// domainUrl = "http://192.168.2.214:8082"; //214主域名
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
// domainUrl = "http://192.168.2.88"; //王悦主域名
this
.
$router
.
push
({
// domainUrl = "http://127.0.0.1"; //214主域名
path
:
'/login'
// domainUrl = "http://192.168.2.16:8083"; //王悦主域名
});
// domainUrl = "http://127.0.0.1"; //214主域名
}
else
if
(
res
.
resultCode
==
10005
)
{
// domainUrl = "http://192.168.2.65:8025"; //吴春主域名
this
.
$router
.
go
(
-
1
);
domainUrl
=
"http://192.168.2.106:8082"
;
//罗超主域名
}
else
{
if
(
locationName
.
indexOf
(
'oytour'
)
!==-
1
)
{
successCall
(
res
);
domainUrl
=
"https://reborn.oytour.com"
;
}
}
else
if
(
locationName
.
indexOf
(
'viitto'
)
!==-
1
)
{
},
faildCall
)
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
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
)
{
Vue
.
prototype
.
Info
=
function
(
msg
)
{
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
this
.
$message
({
var
timestamp
=
(
new
Date
()).
valueOf
();
message
:
msg
,
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
duration
:
2000
,
this
.
$router
.
push
({
type
:
"info"
path
:
'/login'
});
})
},
}
//警告提示
var
token
=
""
;
Vue
.
prototype
.
Warning
=
function
(
msg
)
{
var
key
=
""
;
this
.
$message
({
if
(
this
.
getLocalStorage
()
!=
null
)
{
message
:
msg
,
token
=
this
.
getLocalStorage
().
token
;
duration
:
2000
,
key
=
this
.
getLocalStorage
().
SecretKey
;
type
:
"warning"
}
});
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
},
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
//Confirm
var
postData
=
{
Vue
.
prototype
.
Confirm
=
function
(
msg
,
callback
)
{
"msg"
:
msg
,
this
.
$confirm
(
msg
,
"提示"
,
{
"cmd"
:
cmd
,
confirmButtonText
:
"确定"
,
"timestamp"
:
timestamp
,
cancelButtonText
:
"取消"
,
"token"
:
token
,
type
:
"warning"
"sign"
:
md5Str
})
}
.
then
(()
=>
{
this
.
$http
.
post
(
apiurl
,
postData
,
{
if
(
typeof
callback
===
'function'
)
{
responseType
:
'arraybuffer'
callback
();
}).
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
}
}
})
.
catch
(()
=>
{
this
.
Info
(
"已取消操作"
);
});
},
//PDF预览
//打开新窗口连接
Vue
.
prototype
.
previewPDF
=
function
(
url
)
{
Vue
.
prototype
.
OpenNewUrl
=
function
(
URL
)
{
window
.
open
(
this
.
domainManager
().
PDFViewUrl
+
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
)
},
Vue
.
prototype
.
downloadFile
=
function
(
objectKey
)
{
//下载文件
var
co
=
require
(
'co'
);
Vue
.
prototype
.
GetLocalFile
=
function
(
cmd
,
msg
,
fileName
)
{
var
OSS
=
require
(
'ali-oss'
);
var
apiurl
=
this
.
domainManager
().
LocalFileStreamDownLoadUrl
;
var
oss
=
new
OSS
({
var
timestamp
=
(
new
Date
()).
valueOf
();
region
:
'oss-cn-hangzhou'
,
if
(
!
localStorage
.
userInfo
&&
localStorage
.
userInfo
!=
""
&&
this
.
$route
.
path
.
toLowerCase
()
!=
"/login"
)
{
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
this
.
$router
.
push
({
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
path
:
'/login'
bucket
:
'reborndev'
})
})
}
let
url
=
oss
.
signatureUrl
(
objectKey
);
var
token
=
""
;
let
link
=
document
.
createElement
(
'a'
);
var
key
=
""
;
link
.
href
=
url
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
document
.
body
.
appendChild
(
link
);
token
=
this
.
getLocalStorage
().
token
;
link
.
click
();
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
}
},
//PDF预览
Vue
.
prototype
.
downloadFileRename
=
function
(
objectKey
,
filename
,
fileurl
)
{
Vue
.
prototype
.
previewPDF
=
function
(
url
)
{
window
.
open
(
this
.
domainManager
().
PDFViewUrl
+
url
);
},
var
co
=
require
(
'co'
);
Vue
.
prototype
.
downloadFile
=
function
(
objectKey
)
{
var
OSS
=
require
(
'ali-oss'
);
var
co
=
require
(
'co'
);
var
oss
=
new
OSS
({
var
OSS
=
require
(
'ali-oss'
);
region
:
'oss-cn-hangzhou'
,
var
oss
=
new
OSS
({
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
region
:
'oss-cn-hangzhou'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
bucket
:
'reborndev'
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
)
Vue
.
prototype
.
downloadFileRename
=
function
(
objectKey
,
filename
,
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
);
}
});
},
var
co
=
require
(
'co'
);
Vue
.
prototype
.
getFileBlob
=
function
(
objectKey
,
filename
)
{
var
OSS
=
require
(
'ali-oss'
);
var
co
=
require
(
'co'
);
var
oss
=
new
OSS
({
var
OSS
=
require
(
'ali-oss'
);
region
:
'oss-cn-hangzhou'
,
var
oss
=
new
OSS
({
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
region
:
'oss-cn-hangzhou'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
bucket
:
'reborndev'
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
},
//path 请按照"/模块名称/用户ID/自定义文件夹/" /谁搞错一次5块红包
let
url
=
''
;
//files 文件数组
if
(
fileurl
)
//p 进度回调函数
url
=
fileurl
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
else
if
(
files
&&
files
.
length
>
0
)
{
url
=
oss
.
signatureUrl
(
objectKey
);
let
nameList
=
new
Array
()
let
getBlob
=
new
Promise
(
resolve
=>
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
const
xhr
=
new
XMLHttpRequest
();
nameList
.
push
(
this
.
random_string
());
xhr
.
open
(
'GET'
,
url
,
true
);
}
xhr
.
responseType
=
'blob'
;
var
oss
=
new
OSS
({
xhr
.
onload
=
()
=>
{
region
:
'oss-cn-hangzhou'
,
if
(
xhr
.
status
===
200
)
{
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
resolve
(
xhr
.
response
);
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
}
bucket
:
'reborndev'
};
})
xhr
.
send
();
let
that
=
this
});
co
(
function
*
()
{
getBlob
.
then
(
blob
=>
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
let
fileName
=
nameList
[
index
]
navigator
.
msSaveBlob
(
blob
,
filename
);
fileName
=
path
+
fileName
+
"."
+
files
[
index
].
name
.
split
(
'.'
).
pop
()
}
else
{
var
result
=
yield
oss
.
multipartUpload
(
fileName
,
files
[
index
],
{
const
link
=
document
.
createElement
(
'a'
);
progress
:
function
*
(
p
)
{},
const
body
=
document
.
querySelector
(
'body'
);
mime
:
'application/octet-stream'
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
);
},
}
Vue
.
prototype
.
getFileBlob
=
function
(
objectKey
,
filename
)
{
}).
catch
(
function
(
err
)
{
var
co
=
require
(
'co'
);
console
.
log
(
err
);
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
)
{
//path 请按照"/模块名称/用户ID/自定义文件夹/" /谁搞错一次5块红包
if
(
files
&&
files
.
length
>
0
)
{
//files 文件数组
var
oss
=
new
OSS
({
//p 进度回调函数
region
:
'oss-cn-hangzhou'
,
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
if
(
files
&&
files
.
length
>
0
)
{
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
let
nameList
=
new
Array
()
bucket
:
'reborndev'
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
})
nameList
.
push
(
this
.
random_string
());
let
that
=
this
}
co
(
function
*
()
{
var
oss
=
new
OSS
({
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
region
:
'oss-cn-hangzhou'
,
var
result
=
yield
oss
.
multipartUpload
(
path
,
files
[
index
],
{
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
progress
:
function
*
(
p
)
{},
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
mime
:
'application/octet-stream'
bucket
:
'reborndev'
})
})
successCall
(
result
);
let
that
=
this
}
co
(
function
*
()
{
}).
catch
(
function
(
err
)
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
console
.
log
(
err
);
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】
successCall
(
result
);
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位小数汇率
}).
catch
(
function
(
err
)
{
Vue
.
prototype
.
checkRate
=
function
(
item
,
filed
)
{
console
.
log
(
err
);
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
;
}
}
},
//验证只能输入整数【负数:isMinus传true】
Vue
.
prototype
.
uploadBlob
=
function
(
path
,
files
,
successCall
)
{
Vue
.
prototype
.
checkInteger
=
function
(
item
,
filed
,
isMinus
)
{
if
(
files
&&
files
.
length
>
0
)
{
var
value
=
""
+
item
[
filed
];
//转字符串
var
oss
=
new
OSS
({
var
t
=
value
.
charAt
(
0
);
region
:
'oss-cn-hangzhou'
,
value
=
value
.
replace
(
this
.
$commonUtils
.
Regex
.
isInteger
,
""
);
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
//是否允许负数
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
if
(
isMinus
&&
t
==
'-'
)
{
bucket
:
'reborndev'
value
=
'-'
+
value
;
})
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
//验证只能输入2位小数【负数:isMinus传true】
Vue
.
prototype
.
moneyFormat
=
function
(
value
)
{
Vue
.
prototype
.
checkPrice
=
function
(
item
,
filed
,
isMinus
)
{
if
(
!
value
)
return
(
'0.00'
)
var
value
=
""
+
item
[
filed
];
//转字符串
let
nStr
=
Number
(
value
).
toFixed
(
2
)
var
t
=
value
.
charAt
(
0
);
nStr
+=
''
;
value
=
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除“数字”和“.”以外的字符
let
x
=
nStr
.
split
(
'.'
);
value
=
value
.
replace
(
/
\.{2,}
/g
,
"."
);
//只保留第一个. 清除多余的
let
x1
=
x
[
0
];
value
=
value
let
x2
=
x
.
length
>
1
?
'.'
+
x
[
1
]
:
''
;
.
replace
(
"."
,
"$#$"
)
var
rgx
=
/
(\d
+
)(\d{3})
/
;
.
replace
(
/
\.
/g
,
""
)
while
(
rgx
.
test
(
x1
))
{
.
replace
(
"$#$"
,
"."
);
x1
=
x1
.
replace
(
rgx
,
'$1'
+
','
+
'$2'
);
value
=
value
.
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
);
//只能输入两个小数
}
//如果第一位是负号,则允许添加 如果不允许添加负号 可以把这块注释掉
return
x1
+
x2
;
//是否允许负数
},
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
)
{
//验证只能输入整数【负数:isMinus传true】
let
icons
=
[{
Vue
.
prototype
.
checkInteger
=
function
(
item
,
filed
,
isMinus
)
{
"name"
:
"
\
u7f51
\
u76d8BT
\
u79bb
\
u7ebf
\
u4e0b
\
u8f7d"
,
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"
,
Vue
.
prototype
.
loadFileICON
=
function
(
suffix
)
{
"filesIcon"
:
{
let
icons
=
[{
"bt"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
],
"name"
:
"
\
u7f51
\
u76d8BT
\
u79bb
\
u7ebf
\
u4e0b
\
u8f7d"
,
"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"
,
"notSupport"
:
"ie"
,
"filesType"
:
"*.bt,*.torrent"
,
"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"
:
{
"filesIcon"
:
{
"bt"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
],
"as"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"torrent"
:
[
"fileicon-small-bt"
,
"fileicon-large-bt"
,
"fileicon-middle-bt"
]
"sh"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
},
"c"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"entranceFile"
:
"file-widget-1:bt
\
/start.js"
"cpp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
},
"h"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
{
"cs"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"name"
:
"
\
u6d69
\
u8fb0CAD"
,
"asp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"group"
:
"com.gstarcad.web"
,
"css"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"notSupport"
:
"ie6"
,
"pas"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"filesIcon"
:
{
"diff"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"dws"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"patch"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"dwt"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"erl"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"dxf"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"groovy"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"dwg"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
],
"java"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"cad"
:
[
"fileicon-small-dws"
,
"fileicon-large-dws"
,
"fileicon-middle-dws"
]
"jsp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
},
"js"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"entranceFile"
:
"file-widget-1:cad
\
/start.js"
"json"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
},
"pl"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
{
"php"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"name"
:
"
\
u7f51
\
u76d8
\
u4ee3
\
u7801
\
u9605
\
u8bfb
\
u5668"
,
"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"
:
"*.rar,*.zip"
,
"notSupport"
:
"ie"
,
"notSupport"
:
"ie6"
,
"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"
:
{
"filesIcon"
:
{
"rar"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
],
"as"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"zip"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
]
"sh"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
},
"c"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"depsFiles"
:
[
"file-widget-1:zip
\
/util
\
/css
\
/fileUnzip.css"
,
"file-widget-1:zip
\
/util
\
/css
\
/list-view.css"
],
"cpp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"entranceFile"
:
"file-widget-1:zip
\
/start.js"
"h"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
},
"cs"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
{
"asp"
:
[
"fileicon-small-code"
,
"fileicon-large-code"
],
"name"
:
"
\
u7f51
\
u76d8
\
u6587
\
u6863
\
u9605
\
u8bfb
\
u5668"
,
"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"
,
"filesType"
:
"*.rar,*.zip"
,
"filesIcon"
:
{
"notSupport"
:
"ie6"
,
"txt"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"filesIcon"
:
{
"rtf"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"rar"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
],
"pdf"
:
[
"fileicon-small-pdf"
,
"fileicon-large-pdf"
,
"fileicon-middle-pdf"
],
"zip"
:
[
"fileicon-small-zip"
,
"fileicon-large-zip"
,
"fileicon-middle-zip"
]
"doc"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
},
"docx"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"depsFiles"
:
[
"file-widget-1:zip
\
/util
\
/css
\
/fileUnzip.css"
,
"file-widget-1:zip
\
/util
\
/css
\
/list-view.css"
],
"ppt"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"entranceFile"
:
"file-widget-1:zip
\
/start.js"
"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"
],
"name"
:
"
\
u7f51
\
u76d8
\
u6587
\
u6863
\
u9605
\
u8bfb
\
u5668"
,
"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"
:
"*.jpg,*.jpeg,*.livp,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico,*.heic,*.heif,*.avci,*.webp"
,
"filesType"
:
"*.txt,*.pdf,*.doc,*.docx,*.ppt,*.pptx,*.xls,*.xlsx,*.rtf"
,
"filesIcon"
:
{
"filesIcon"
:
{
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"txt"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"rtf"
:
[
"fileicon-small-txt"
,
"fileicon-large-txt"
,
"fileicon-middle-txt"
],
"livp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"pdf"
:
[
"fileicon-small-pdf"
,
"fileicon-large-pdf"
,
"fileicon-middle-pdf"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"doc"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"docx"
:
[
"fileicon-small-doc"
,
"fileicon-large-doc"
,
"fileicon-middle-doc"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ppt"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"pptx"
:
[
"fileicon-small-ppt"
,
"fileicon-large-ppt"
,
"fileicon-middle-ppt"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"xls"
:
[
"fileicon-small-xls"
,
"fileicon-large-xls"
,
"fileicon-middle-xls"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"xlsx"
:
[
"fileicon-small-xls"
,
"fileicon-large-xls"
,
"fileicon-middle-xls"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"vsd"
:
[
"fileicon-small-vsd"
,
"fileicon-large-vsd"
,
"fileicon-middle-vsd"
]
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
},
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"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"
],
"heic"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"entranceFile"
:
"file-widget-1:doc
\
/start.js"
"heif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
},
"avci"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
{
},
"name"
:
"
\
u7f51
\
u76d8
\
u56fe
\
u7247
\
u9884
\
u89c8"
,
"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"
,
"notSupport"
:
"ie6"
,
"filesType"
:
"*.jpg,*.jpeg,*.livp,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico,*.heic,*.heif,*.avci,*.webp"
,
"filesType"
:
"*.wma,*.wav,*.mp3,*.aac,*.ra,*.ram,*.mp2,*.ogg,*.aif,*.mpega,*.amr,*.mid,*.midi,*.m4a"
,
"filesIcon"
:
{
"filesIcon"
:
{
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"wma"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"wav"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"livp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"mp3"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"aac"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ra"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ram"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"mp2"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ogg"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"aif"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"mpega"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"amr"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"mid"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"heic"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"midi"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"heif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"m4a"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
]
"avci"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
},
},
"buttons"
:
[{
"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"
],
"title"
:
"
\
u97f3
\
u4e50
\
u64ad
\
u653e"
,
"entranceFile"
:
"file-widget-1:image
\
/start.js"
"name"
:
"play-music"
,
},
"position"
:
"listTools"
,
{
"index"
:
2
,
"name"
:
"
\
u767e
\
u5ea6
\
u8111
\
u56fe"
,
"disabled"
:
"none"
,
"group"
:
"com.baidu.naotu"
,
"icon"
:
"icon-play"
,
"filesType"
:
"*.mmap,*.xmind,*.mm"
,
"buttonStyle"
:
"normal"
,
"notSupport"
:
"ie6"
,
"conditions"
:
{
"filesIcon"
:
{
"pageModule"
:
"list,share,search,category,searchGlobal"
,
"mmap"
:
[
"fileicon-small-mmap"
,
"fileicon-large-mmap"
,
"fileicon-middle-mmap"
],
"filesType"
:
"wma,wav,mp3,aac,ra,ram,mp2,ogg,aif,mpega,amr,mid,midi,m4a"
,
"xmind"
:
[
"fileicon-small-xmind"
,
"fileicon-large-xmind"
,
"fileicon-middle-xmind"
],
"filesTypeStrongMatch"
:
true
"mm"
:
[
"fileicon-small-mm"
,
"fileicon-large-mm"
,
"fileicon-middle-mm"
]
}
},
}],
"entranceFile"
:
"file-widget-1:mindmap
\
/start.js"
"depsFiles"
:
[
"file-widget-1:musicPlay
\
/util
\
/mbox
\
/musicbox.css"
],
},
"entranceFile"
:
"file-widget-1:musicPlay
\
/start.js"
{
},
"name"
:
"
\
u7f51
\
u76d8
\
u97f3
\
u9891
\
u64ad
\
u653e
\
u5668"
,
{
"name"
:
"
\
u7f51
\
u76d8
\
u5927
\
u56fe
\
u9884
\
u89c8"
,
"filesType"
:
"*.jpg,*.jpeg,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico"
,
"notSupport"
:
"ie6"
,
"filesIcon"
:
{
"filesType"
:
"*.wma,*.wav,*.mp3,*.aac,*.ra,*.ram,*.mp2,*.ogg,*.aif,*.mpega,*.amr,*.mid,*.midi,*.m4a"
,
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"filesIcon"
:
{
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"wma"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"wav"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"mp3"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"aac"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ra"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ram"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"mp2"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ogg"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"aif"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
"mpega"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
},
"amr"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"depsFiles"
:
[
"file-widget-1:preview
\
/picPreview.css"
],
"mid"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
"entranceFile"
:
"file-widget-1:preview
\
/start.js"
"midi"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
],
},
"m4a"
:
[
"fileicon-small-mp3"
,
"fileicon-large-mp3"
,
"fileicon-middle-mp3"
]
{
},
"name"
:
"sysIcon"
,
"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"
,
"filesType"
:
"*.jpg,*.jpeg,*.gif,*bmp,*.png,*jpe,*.cur,*.svgz,*.ico"
,
"filesIcon"
:
{
"filesIcon"
:
{
"exe"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"jpg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"msi"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"jpeg"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"dmg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"gif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"pkg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"bmp"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"psd"
:
[
"fileicon-sys-s-psd"
,
"fileicon-sys-l-psd"
],
"png"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"apk"
:
[
"fileicon-sys-s-apk"
,
"fileicon-sys-l-apk"
],
"jpe"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"key"
:
[
"fileicon-sys-s-key"
,
"fileicon-sys-l-key"
],
"cur"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ai"
:
[
"fileicon-sys-s-ai"
,
"fileicon-sys-l-ai"
],
"svgz"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"ipa"
:
[
"fileicon-sys-s-ipa"
,
"fileicon-sys-l-ipa"
],
"tif"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"pages"
:
[
"fileicon-sys-s-pages"
,
"fileicon-sys-l-pages"
],
"tiff"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
],
"numbers"
:
[
"fileicon-sys-s-numbers"
,
"fileicon-sys-l-numbers"
],
"ico"
:
[
"fileicon-small-pic"
,
"default-large"
,
"fileicon-middle-pic"
]
"eot"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
},
"ttf"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"depsFiles"
:
[
"file-widget-1:preview
\
/picPreview.css"
],
"woff"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"entranceFile"
:
"file-widget-1:preview
\
/start.js"
"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"
],
"name"
:
"sysIcon"
,
"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"
:
"*.wmv,*.rmvb,*.mpeg4,*.mpeg2,*.flv,*.avi,*.3gp,*.mpga,*.qt,*.rm,*.wmz,*.wmd,*.wvx,*.wmx,*.wm,*.mpg,*.mp4,*.mkv,*.mpeg,*mov,*.asf,*.m4v,*.m3u8"
,
"filesType"
:
"*.exe,*.msi,*.dmg,*.pkg,*.psd,*.apk,*.key,*.ai,*.ipa"
,
"filesIcon"
:
{
"filesIcon"
:
{
"wmv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"exe"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"rmvb"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"msi"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-exe"
],
"mpeg4"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"dmg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"mpeg2"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"pkg"
:
[
"fileicon-sys-s-exe"
,
"fileicon-sys-l-dmg"
],
"flv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"psd"
:
[
"fileicon-sys-s-psd"
,
"fileicon-sys-l-psd"
],
"avi"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"apk"
:
[
"fileicon-sys-s-apk"
,
"fileicon-sys-l-apk"
],
"3gp"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"key"
:
[
"fileicon-sys-s-key"
,
"fileicon-sys-l-key"
],
"mpga"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"ai"
:
[
"fileicon-sys-s-ai"
,
"fileicon-sys-l-ai"
],
"qt"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"ipa"
:
[
"fileicon-sys-s-ipa"
,
"fileicon-sys-l-ipa"
],
"rm"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"pages"
:
[
"fileicon-sys-s-pages"
,
"fileicon-sys-l-pages"
],
"wmz"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"numbers"
:
[
"fileicon-sys-s-numbers"
,
"fileicon-sys-l-numbers"
],
"wmd"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"eot"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"wvx"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"ttf"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"wmx"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"woff"
:
[
"fileicon-sys-s-fonts"
,
"fileicon-sys-l-fonts"
],
"wm"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"eps"
:
[
"fileicon-sys-s-eps"
,
"fileicon-sys-l-eps"
],
"mpg"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"lnk"
:
[
"fileicon-sys-s-links"
,
"fileicon-sys-l-links"
],
"mp4"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"link"
:
[
"fileicon-sys-s-links"
,
"fileicon-sys-l-links"
],
"mkv"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"swf"
:
[
"fileicon-sys-s-swf"
,
"fileicon-sys-l-swf"
],
"mpeg"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"php"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"mov"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"c"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"asf"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"js"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"m4v"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
],
"css"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
"m3u8"
:
[
"fileicon-small-video"
,
"fileicon-large-video"
,
"fileicon-middle-video"
]
"html"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
},
"htm"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"preload"
:
true
,
"xhtml"
:
[
"fileicon-sys-s-web"
,
"fileicon-sys-l-web"
],
"entranceFile"
:
"file-widget-1:video
\
/start.js"
"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"
],
if
(
suffix
==
""
)
"json"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
return
"dir-small"
"sh"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
let
css
=
""
"bat"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
icons
.
forEach
(
x
=>
{
"ejs"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
//console.log(x.filesIcon.hasOwnProperty(suffix))
"xml"
:
[
"fileicon-sys-s-code"
,
"fileicon-sys-l-code"
],
if
(
x
.
filesIcon
.
hasOwnProperty
(
suffix
))
{
"ts"
:
[
"fileicon-sys-s-video"
,
"fileicon-sys-l-video"
]
css
=
x
.
filesIcon
[
suffix
][
0
]
return
false
}
})
if
(
css
==
''
)
{
css
=
'default-small'
}
return
css
;
}
}
}
},
}
{
\ 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