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

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

parent 6071e5ea
......@@ -5,6 +5,7 @@
:before-upload="handleBeforeUpload"
:file-list="fileList"
:limit="limit"
:accept="accept"
:on-error="handleUploadError"
:on-exceed="handleExceed"
:on-success="handleUploadSuccess"
......@@ -63,6 +64,10 @@
<script>
export default {
props: {
accept: {
type: String,
default: "",
},
// 值
value: [String, Object, Array],
// 大小限制(MB)
......
......@@ -17,6 +17,13 @@
v-model="form.title"
placeholder="请输入标题"
/>
<Field label="视频"
><fileUpload
v-model="form.videoUrl"
:fileType="['mp4', 'avi']"
prePath="/file/fileupload"
:accept="'.mp4,.avi'"
/></Field>
<Field :span="24" label="内容"
><editor v-model="form.content" :min-height="256"
/></Field>
......
......@@ -142,9 +142,9 @@ export default {
},
{
label: "创建时间",
prop: "createTime",
formatter: this.formatterDate,
label: "发布时间",
prop: "publishTime",
formatter: this.formatterDateOnly,
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