Commit 2289c0bf authored by 姬鋆屾's avatar 姬鋆屾

feated:添加新闻得视频上传功能,修改列表得创建时间改为发布时间

parent 6071e5ea
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:file-list="fileList" :file-list="fileList"
:limit="limit" :limit="limit"
:accept="accept"
:on-error="handleUploadError" :on-error="handleUploadError"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-success="handleUploadSuccess" :on-success="handleUploadSuccess"
...@@ -63,6 +64,10 @@ ...@@ -63,6 +64,10 @@
<script> <script>
export default { export default {
props: { props: {
accept: {
type: String,
default: "",
},
// 值 // 值
value: [String, Object, Array], value: [String, Object, Array],
// 大小限制(MB) // 大小限制(MB)
......
...@@ -17,6 +17,13 @@ ...@@ -17,6 +17,13 @@
v-model="form.title" v-model="form.title"
placeholder="请输入标题" placeholder="请输入标题"
/> />
<Field label="视频"
><fileUpload
v-model="form.videoUrl"
:fileType="['mp4', 'avi']"
prePath="/file/fileupload"
:accept="'.mp4,.avi'"
/></Field>
<Field :span="24" label="内容" <Field :span="24" label="内容"
><editor v-model="form.content" :min-height="256" ><editor v-model="form.content" :min-height="256"
/></Field> /></Field>
......
...@@ -142,9 +142,9 @@ export default { ...@@ -142,9 +142,9 @@ export default {
}, },
{ {
label: "创建时间", label: "发布时间",
prop: "createTime", prop: "publishTime",
formatter: this.formatterDate, formatter: this.formatterDateOnly,
width: 140, width: 140,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment