Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
confucius
Commits
6febb684
Commit
6febb684
authored
Jul 26, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
435229a1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
381 additions
and
32 deletions
+381
-32
backbill-form.vue
src/components/sale/backbill-form.vue
+36
-3
backclass-form.vue
src/components/sale/backclass-form.vue
+42
-2
changebill-form.vue
src/components/sale/changebill-form.vue
+36
-4
ordertrans-form.vue
src/components/sale/ordertrans-form.vue
+31
-3
stopbill-form.vue
src/components/sale/stopbill-form.vue
+31
-3
temporaryClassbill-form.vue
src/components/sale/temporaryClassbill-form.vue
+36
-4
transferclass-form.vue
src/components/sale/transferclass-form.vue
+42
-3
changeClassForm.vue
src/components/teacher/changeClassForm.vue
+42
-3
provisionalInviteForm.vue
src/components/teacher/provisionalInviteForm.vue
+42
-3
stopLessonForm.vue
src/components/teacher/stopLessonForm.vue
+43
-4
No files found.
src/components/sale/backbill-form.vue
View file @
6febb684
...
@@ -395,9 +395,26 @@
...
@@ -395,9 +395,26 @@
<span
<span
v-if=
"item.type === 1"
v-if=
"item.type === 1"
class=
"iconfont"
class=
"iconfont"
:class=
"item.suffix == 'PDF' ? 'icon-pdf' : 'icon-excel'"
:class=
"
item.suffix == 'PDF'
? 'icon-pdf'
: item.suffix == 'TXT'
? 'icon-txt'
: 'icon-excel'
"
></span>
<span
v-if=
"item.type === 3"
class=
"iconfont icon-yasuobao"
></span>
<span
v-if=
"item.type === 4"
class=
"iconfont icon-shipin"
></span>
<span
v-if=
"item.type === 5"
class=
"iconfont icon-wenjian"
></span>
></span>
<span
v-if=
"item.type === 3"
class=
""
>
{{
item
.
url
}}
</span>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -663,13 +680,29 @@ export default {
...
@@ -663,13 +680,29 @@ export default {
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
{
}
else
if
(
"ZIP|RAR|7Z|TAR"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
type
:
3
,
type
:
3
,
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
if
(
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
url
:
item
,
type
:
4
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
else
{
let
obj
=
{
url
:
item
,
type
:
5
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
}
});
});
return
arr
;
return
arr
;
...
...
src/components/sale/backclass-form.vue
View file @
6febb684
...
@@ -76,12 +76,19 @@
...
@@ -76,12 +76,19 @@
}
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
._addUpload_box
.icon-pdf
,
._addUpload_box
.icon-txt
,
._addUpload_box
.icon-wenjian
,
._addUpload_box
.icon-yasuobao
,
._addUpload_box
.icon-shipin
{
text-align
:
center
;
text-align
:
center
;
font-size
:
38px
;
font-size
:
38px
;
color
:
green
;
color
:
green
;
line-height
:
75px
;
line-height
:
75px
;
}
}
._addUpload_box
.icon-yasuobao
{
color
:
gray
;
}
._show_img_box
{
._show_img_box
{
position
:
fixed
;
position
:
fixed
;
...
@@ -208,6 +215,11 @@
...
@@ -208,6 +215,11 @@
file.Content.length
file.Content.length
).toUpperCase() == 'PDF'
).toUpperCase() == 'PDF'
? 'icon-pdf'
? 'icon-pdf'
: file.Content.substring(
file.Content.lastIndexOf('.') + 1,
file.Content.length
).toUpperCase() == 'TXT'
? 'icon-txt'
: 'icon-excel'
: 'icon-excel'
"
"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
...
@@ -219,7 +231,27 @@
...
@@ -219,7 +231,27 @@
</div>
</div>
<div
v-if=
"file.Type == 2"
>
<div
v-if=
"file.Type == 2"
>
<div
<div
class=
"iconfont icon-excel"
class=
"iconfont icon-wenjian"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 4"
>
<div
class=
"iconfont icon-yasuobao"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 5"
>
<div
class=
"iconfont icon-shipin"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
></div>
></div>
<span
<span
...
@@ -508,6 +540,14 @@ export default {
...
@@ -508,6 +540,14 @@ export default {
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
type
:
1
,
type
:
1
,
},
},
{
stringArr
:
"ZIP|RAR|7Z|TAR"
,
type
:
4
,
},
{
stringArr
:
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
,
type
:
5
,
},
];
];
let
ft
=
file
.
file
.
name
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
...
...
src/components/sale/changebill-form.vue
View file @
6febb684
...
@@ -580,9 +580,26 @@
...
@@ -580,9 +580,26 @@
<span
<span
v-if=
"item.type === 1"
v-if=
"item.type === 1"
class=
"iconfont"
class=
"iconfont"
:class=
"item.suffix == 'PDF' ? 'icon-pdf' : 'icon-excel'"
:class=
"
item.suffix == 'PDF'
? 'icon-pdf'
: item.suffix == 'TXT'
? 'icon-txt'
: 'icon-excel'
"
></span>
<span
v-if=
"item.type === 3"
class=
"iconfont icon-yasuobao"
></span>
<span
v-if=
"item.type === 4"
class=
"iconfont icon-shipin"
></span>
<span
v-if=
"item.type === 5"
class=
"iconfont icon-wenjian"
></span>
></span>
<span
v-if=
"item.type === 3"
class=
""
>
{{
item
.
url
}}
</span>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -881,7 +898,6 @@ export default {
...
@@ -881,7 +898,6 @@ export default {
let
fjlist
=
this
.
setingObj
.
ReceiptFileList
;
let
fjlist
=
this
.
setingObj
.
ReceiptFileList
;
fjlist
.
map
((
item
)
=>
{
fjlist
.
map
((
item
)
=>
{
let
suffix
=
item
.
split
(
"."
)[
item
.
split
(
"."
).
length
-
1
].
toUpperCase
();
let
suffix
=
item
.
split
(
"."
)[
item
.
split
(
"."
).
length
-
1
].
toUpperCase
();
console
.
log
(
653
,
item
.
split
(
"."
));
if
(
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
.
indexOf
(
suffix
)
!=
"-1"
)
{
if
(
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
...
@@ -896,13 +912,29 @@ export default {
...
@@ -896,13 +912,29 @@ export default {
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
{
}
else
if
(
"ZIP|RAR|7Z|TAR"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
type
:
3
,
type
:
3
,
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
if
(
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
url
:
item
,
type
:
4
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
else
{
let
obj
=
{
url
:
item
,
type
:
5
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
}
});
});
return
arr
;
return
arr
;
...
...
src/components/sale/ordertrans-form.vue
View file @
6febb684
...
@@ -304,12 +304,24 @@
...
@@ -304,12 +304,24 @@
v-if=
"item.type === 1"
v-if=
"item.type === 1"
class=
"iconfont"
class=
"iconfont"
:class=
"
:class=
"
item.suffix == 'PDF' ? 'icon-pdf' : 'icon-excel'
item.suffix == 'PDF'
? 'icon-pdf'
: item.suffix == 'TXT'
? 'icon-txt'
: 'icon-excel'
"
"
></span>
></span>
<span
<span
v-if=
"item.type === 3"
v-if=
"item.type === 3"
class=
"iconfont icon-excel"
class=
"iconfont icon-yasuobao"
></span>
<span
v-if=
"item.type === 4"
class=
"iconfont icon-shipin"
></span>
<span
v-if=
"item.type === 5"
class=
"iconfont icon-wenjian"
></span>
></span>
</div>
</div>
</
template
>
</
template
>
...
@@ -622,13 +634,29 @@ export default {
...
@@ -622,13 +634,29 @@ export default {
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
{
}
else
if
(
"ZIP|RAR|7Z|TAR"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
type
:
3
,
type
:
3
,
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
if
(
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
url
:
item
,
type
:
4
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
else
{
let
obj
=
{
url
:
item
,
type
:
5
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
}
});
});
return
arr
;
return
arr
;
...
...
src/components/sale/stopbill-form.vue
View file @
6febb684
...
@@ -417,12 +417,24 @@
...
@@ -417,12 +417,24 @@
v-if=
"item.type === 1"
v-if=
"item.type === 1"
class=
"iconfont"
class=
"iconfont"
:class=
"
:class=
"
item.suffix == 'PDF' ? 'icon-pdf' : 'icon-excel'
item.suffix == 'PDF'
? 'icon-pdf'
: item.suffix == 'TXT'
? 'icon-txt'
: 'icon-excel'
"
"
></span>
></span>
<span
<span
v-if=
"item.type === 3"
v-if=
"item.type === 3"
class=
"iconfont icon-excel"
class=
"iconfont icon-yasuobao"
></span>
<span
v-if=
"item.type === 4"
class=
"iconfont icon-shipin"
></span>
<span
v-if=
"item.type === 5"
class=
"iconfont icon-wenjian"
></span>
></span>
</div>
</div>
</
template
>
</
template
>
...
@@ -685,13 +697,29 @@ export default {
...
@@ -685,13 +697,29 @@ export default {
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
{
}
else
if
(
"ZIP|RAR|7Z|TAR"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
type
:
3
,
type
:
3
,
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
if
(
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
url
:
item
,
type
:
4
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
else
{
let
obj
=
{
url
:
item
,
type
:
5
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
}
});
});
return
arr
;
return
arr
;
...
...
src/components/sale/temporaryClassbill-form.vue
View file @
6febb684
...
@@ -376,9 +376,26 @@
...
@@ -376,9 +376,26 @@
<span
<span
v-if=
"item.type === 1"
v-if=
"item.type === 1"
class=
"iconfont"
class=
"iconfont"
:class=
"item.suffix == 'PDF' ? 'icon-pdf' : 'icon-excel'"
:class=
"
item.suffix == 'PDF'
? 'icon-pdf'
: item.suffix == 'TXT'
? 'icon-txt'
: 'icon-excel'
"
></span>
<span
v-if=
"item.type === 3"
class=
"iconfont icon-yasuobao"
></span>
<span
v-if=
"item.type === 4"
class=
"iconfont icon-shipin"
></span>
<span
v-if=
"item.type === 5"
class=
"iconfont icon-wenjian"
></span>
></span>
<span
v-if=
"item.type === 3"
class=
""
>
{{
item
.
url
}}
</span>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -587,7 +604,6 @@ export default {
...
@@ -587,7 +604,6 @@ export default {
let
fjlist
=
this
.
setingObj
.
ReceiptFileList
;
let
fjlist
=
this
.
setingObj
.
ReceiptFileList
;
fjlist
.
map
((
item
)
=>
{
fjlist
.
map
((
item
)
=>
{
let
suffix
=
item
.
split
(
"."
)[
item
.
split
(
"."
).
length
-
1
].
toUpperCase
();
let
suffix
=
item
.
split
(
"."
)[
item
.
split
(
"."
).
length
-
1
].
toUpperCase
();
console
.
log
(
653
,
item
.
split
(
"."
));
if
(
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
.
indexOf
(
suffix
)
!=
"-1"
)
{
if
(
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
...
@@ -602,13 +618,29 @@ export default {
...
@@ -602,13 +618,29 @@ export default {
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
{
}
else
if
(
"ZIP|RAR|7Z|TAR"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
let
obj
=
{
url
:
item
,
url
:
item
,
type
:
3
,
type
:
3
,
suffix
:
suffix
,
suffix
:
suffix
,
};
};
arr
.
push
(
obj
);
arr
.
push
(
obj
);
}
else
if
(
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
.
indexOf
(
suffix
)
!=
"-1"
)
{
let
obj
=
{
url
:
item
,
type
:
4
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
else
{
let
obj
=
{
url
:
item
,
type
:
5
,
suffix
:
suffix
,
};
arr
.
push
(
obj
);
}
}
});
});
return
arr
;
return
arr
;
...
...
src/components/sale/transferclass-form.vue
View file @
6febb684
...
@@ -160,13 +160,19 @@
...
@@ -160,13 +160,19 @@
}
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
._addUpload_box
.icon-pdf
,
._addUpload_box
.icon-txt
,
._addUpload_box
.icon-wenjian
,
._addUpload_box
.icon-yasuobao
,
._addUpload_box
.icon-shipin
{
text-align
:
center
;
text-align
:
center
;
font-size
:
38px
;
font-size
:
38px
;
color
:
green
;
color
:
green
;
line-height
:
75px
;
line-height
:
75px
;
}
}
._addUpload_box
.icon-yasuobao
{
color
:
gray
;
}
._show_img_box
{
._show_img_box
{
position
:
fixed
;
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
...
@@ -383,6 +389,11 @@
...
@@ -383,6 +389,11 @@
file.Content.length
file.Content.length
).toUpperCase() == 'PDF'
).toUpperCase() == 'PDF'
? 'icon-pdf'
? 'icon-pdf'
: file.Content.substring(
file.Content.lastIndexOf('.') + 1,
file.Content.length
).toUpperCase() == 'TXT'
? 'icon-txt'
: 'icon-excel'
: 'icon-excel'
"
"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
...
@@ -394,7 +405,27 @@
...
@@ -394,7 +405,27 @@
</div>
</div>
<div
v-if=
"file.Type == 2"
>
<div
v-if=
"file.Type == 2"
>
<div
<div
class=
"iconfont icon-excel"
class=
"iconfont icon-wenjian"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 4"
>
<div
class=
"iconfont icon-yasuobao"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 5"
>
<div
class=
"iconfont icon-shipin"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
></div>
></div>
<span
<span
...
@@ -1042,6 +1073,14 @@ export default {
...
@@ -1042,6 +1073,14 @@ export default {
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
type
:
1
,
type
:
1
,
},
},
{
stringArr
:
"ZIP|RAR|7Z|TAR"
,
type
:
4
,
},
{
stringArr
:
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
,
type
:
5
,
},
];
];
let
ft
=
file
.
file
.
name
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
...
...
src/components/teacher/changeClassForm.vue
View file @
6febb684
...
@@ -108,13 +108,19 @@
...
@@ -108,13 +108,19 @@
}
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
._addUpload_box
.icon-pdf
,
._addUpload_box
.icon-txt
,
._addUpload_box
.icon-wenjian
,
._addUpload_box
.icon-yasuobao
,
._addUpload_box
.icon-shipin
{
text-align
:
center
;
text-align
:
center
;
font-size
:
38px
;
font-size
:
38px
;
color
:
green
;
color
:
green
;
line-height
:
75px
;
line-height
:
75px
;
}
}
._addUpload_box
.icon-yasuobao
{
color
:
gray
;
}
._show_img_box
{
._show_img_box
{
position
:
fixed
;
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
...
@@ -924,6 +930,11 @@
...
@@ -924,6 +930,11 @@
file.Content.length
file.Content.length
).toUpperCase() == 'PDF'
).toUpperCase() == 'PDF'
? 'icon-pdf'
? 'icon-pdf'
: file.Content.substring(
file.Content.lastIndexOf('.') + 1,
file.Content.length
).toUpperCase() == 'TXT'
? 'icon-txt'
: 'icon-excel'
: 'icon-excel'
"
"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
...
@@ -935,7 +946,27 @@
...
@@ -935,7 +946,27 @@
</div>
</div>
<div
v-if=
"file.Type == 2"
>
<div
v-if=
"file.Type == 2"
>
<div
<div
class=
"iconfont icon-excel"
class=
"iconfont icon-wenjian"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 4"
>
<div
class=
"iconfont icon-yasuobao"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 5"
>
<div
class=
"iconfont icon-shipin"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
></div>
></div>
<span
<span
...
@@ -1731,6 +1762,14 @@ export default {
...
@@ -1731,6 +1762,14 @@ export default {
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
type
:
1
,
type
:
1
,
},
},
{
stringArr
:
"ZIP|RAR|7Z|TAR"
,
type
:
4
,
},
{
stringArr
:
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
,
type
:
5
,
},
];
];
let
ft
=
file
.
file
.
name
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
...
...
src/components/teacher/provisionalInviteForm.vue
View file @
6febb684
...
@@ -108,13 +108,19 @@
...
@@ -108,13 +108,19 @@
}
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
._addUpload_box
.icon-pdf
,
._addUpload_box
.icon-txt
,
._addUpload_box
.icon-wenjian
,
._addUpload_box
.icon-yasuobao
,
._addUpload_box
.icon-shipin
{
text-align
:
center
;
text-align
:
center
;
font-size
:
38px
;
font-size
:
38px
;
color
:
green
;
color
:
green
;
line-height
:
75px
;
line-height
:
75px
;
}
}
._addUpload_box
.icon-yasuobao
{
color
:
gray
;
}
._show_img_box
{
._show_img_box
{
position
:
fixed
;
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
...
@@ -314,6 +320,11 @@
...
@@ -314,6 +320,11 @@
file.Content.length
file.Content.length
).toUpperCase() == 'PDF'
).toUpperCase() == 'PDF'
? 'icon-pdf'
? 'icon-pdf'
: file.Content.substring(
file.Content.lastIndexOf('.') + 1,
file.Content.length
).toUpperCase() == 'TXT'
? 'icon-txt'
: 'icon-excel'
: 'icon-excel'
"
"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
...
@@ -325,7 +336,27 @@
...
@@ -325,7 +336,27 @@
</div>
</div>
<div
v-if=
"file.Type == 2"
>
<div
v-if=
"file.Type == 2"
>
<div
<div
class=
"iconfont icon-excel"
class=
"iconfont icon-wenjian"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 4"
>
<div
class=
"iconfont icon-yasuobao"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 5"
>
<div
class=
"iconfont icon-shipin"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
></div>
></div>
<span
<span
...
@@ -753,6 +784,14 @@ export default {
...
@@ -753,6 +784,14 @@ export default {
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
type
:
1
,
type
:
1
,
},
},
{
stringArr
:
"ZIP|RAR|7Z|TAR"
,
type
:
4
,
},
{
stringArr
:
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
,
type
:
5
,
},
];
];
let
ft
=
file
.
file
.
name
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
...
...
src/components/teacher/stopLessonForm.vue
View file @
6febb684
...
@@ -66,6 +66,11 @@
...
@@ -66,6 +66,11 @@
file.Content.length
file.Content.length
).toUpperCase() == 'PDF'
).toUpperCase() == 'PDF'
? 'icon-pdf'
? 'icon-pdf'
: file.Content.substring(
file.Content.lastIndexOf('.') + 1,
file.Content.length
).toUpperCase() == 'TXT'
? 'icon-txt'
: 'icon-excel'
: 'icon-excel'
"
"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
...
@@ -77,7 +82,27 @@
...
@@ -77,7 +82,27 @@
</div>
</div>
<div
v-if=
"file.Type == 2"
>
<div
v-if=
"file.Type == 2"
>
<div
<div
class=
"iconfont icon-excel"
class=
"iconfont icon-wenjian"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 4"
>
<div
class=
"iconfont icon-yasuobao"
@
click=
"showUpLoadFile(file)"
></div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type == 5"
>
<div
class=
"iconfont icon-shipin"
@
click=
"showUpLoadFile(file)"
@
click=
"showUpLoadFile(file)"
></div>
></div>
<span
<span
...
@@ -283,7 +308,7 @@ export default {
...
@@ -283,7 +308,7 @@ export default {
this
.
$message
.
warning
(
"文件大小不能超过5M"
);
this
.
$message
.
warning
(
"文件大小不能超过5M"
);
return
;
return
;
}
}
// 1 文档 2 数据 3 图片
// 1 文档 2 数据 3 图片
,4压缩包,5视频
let
typeArr
=
[
let
typeArr
=
[
{
{
stringArr
:
"GIF|JPG|JPEG|PNG|BMP|WEBP"
,
stringArr
:
"GIF|JPG|JPEG|PNG|BMP|WEBP"
,
...
@@ -293,6 +318,14 @@ export default {
...
@@ -293,6 +318,14 @@ export default {
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
stringArr
:
"DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT"
,
type
:
1
,
type
:
1
,
},
},
{
stringArr
:
"ZIP|RAR|7Z|TAR"
,
type
:
4
,
},
{
stringArr
:
"MP4|3GP|AVI|MOV|WMV|RMVB|MKV|M4V|FLV"
,
type
:
5
,
},
];
];
let
ft
=
file
.
file
.
name
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
"."
)
+
1
,
file
.
file
.
name
.
length
)
...
@@ -390,13 +423,19 @@ export default {
...
@@ -390,13 +423,19 @@ export default {
}
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
._addUpload_box
.icon-pdf
,
._addUpload_box
.icon-txt
,
._addUpload_box
.icon-wenjian
,
._addUpload_box
.icon-yasuobao
,
._addUpload_box
.icon-shipin
{
text-align
:
center
;
text-align
:
center
;
font-size
:
38px
;
font-size
:
38px
;
color
:
green
;
color
:
green
;
line-height
:
75px
;
line-height
:
75px
;
}
}
._addUpload_box
.icon-yasuobao
{
color
:
gray
;
}
._show_img_box
{
._show_img_box
{
position
:
fixed
;
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
...
...
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