Commit 6922b66c authored by 黄奎's avatar 黄奎

页面修改

parent b2af4ba6
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
<div style="margin-right: 15px;width: auto;-webkit-box-flex: 0;flex-shrink: 0;flex-grow: 0;"> <div style="margin-right: 15px;width: auto;-webkit-box-flex: 0;flex-shrink: 0;flex-grow: 0;">
<el-button @click="addGroup" style="margin-bottom: 12px;" type="primary" size="small">添加分组</el-button> <el-button @click="addGroup" style="margin-bottom: 12px;" type="primary" size="small">添加分组</el-button>
<div style="border: 1px solid rgb(227, 227, 227);width:250px"> <div style="border: 1px solid rgb(227, 227, 227);width:250px">
<!-- <div style="margin:20px 0">
<el-input v-model="val" style="width:90%;margin:0 5%" placeholder="请输入分类名称搜索" size="small"></el-input>
</div> -->
<div class="el-scrollbar" style="width: 100%;height:670px"> <div class="el-scrollbar" style="width: 100%;height:670px">
<div class="el-scrollbar__wrap" style="margin-bottom: -8px; margin-right: -8px;"> <div class="el-scrollbar__wrap" style="margin-bottom: -8px; margin-right: -8px;">
<div class="el-scrollbar__view"> <div class="el-scrollbar__view">
...@@ -77,7 +74,6 @@ ...@@ -77,7 +74,6 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
</div> </div>
<div style="border: 1px solid rgb(227, 227, 227);height:674px"> <div style="border: 1px solid rgb(227, 227, 227);height:674px">
<div class="basefix app-attachment-list"> <div class="basefix app-attachment-list">
...@@ -88,7 +84,6 @@ ...@@ -88,7 +84,6 @@
:show-file-list="false" :http-request="UploadImage" multiple> :show-file-list="false" :http-request="UploadImage" multiple>
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
</el-upload> </el-upload>
</div> </div>
</div> </div>
<el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" <el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark"
...@@ -112,7 +107,8 @@ ...@@ -112,7 +107,8 @@
<div class="material-item material-upload"> <div class="material-item material-upload">
<div class="app-upload" flex="main:center cross:center" style="width: 140px; height: 140px;"> <div class="app-upload" flex="main:center cross:center" style="width: 140px; height: 140px;">
<el-upload class="avatar-uploader" action="" :before-upload="beforeAvatarUpload" <el-upload class="avatar-uploader" action="" :before-upload="beforeAvatarUpload"
accept="video/mp4,video/ogg,video/webm" :show-file-list="false" :http-request="UploadImage" multiple> accept="video/mp4,video/ogg,video/webm" :show-file-list="false" :http-request="UploadVideo"
multiple>
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
</el-upload> </el-upload>
</div> </div>
...@@ -137,8 +133,6 @@ ...@@ -137,8 +133,6 @@
</div> </div>
</el-tooltip> </el-tooltip>
</template> </template>
</div> </div>
<div style="padding-right:10px"> <div style="padding-right:10px">
<el-pagination style="text-align:right" background :current-page="currentPage4" <el-pagination style="text-align:right" background :current-page="currentPage4"
...@@ -149,13 +143,10 @@ ...@@ -149,13 +143,10 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<video style="display:none;" controls="controls" id="aa" oncanplaythrough="myFunction(this)"> <video style="display:none;" controls="controls" id="aa" oncanplaythrough="myFunction(this)">
</video> </video>
</div> </div>
<!-- 新增分组 --> <!-- 新增分组 -->
<el-dialog title="分组管理" :visible.sync="addGroupMsgDig" width="400px"> <el-dialog title="分组管理" :visible.sync="addGroupMsgDig" width="400px">
...@@ -187,11 +178,8 @@ ...@@ -187,11 +178,8 @@
<el-button size="small" type="primary" @click="pagesubmitForm('addpageMsg')">确 定</el-button> <el-button size="small" type="primary" @click="pagesubmitForm('addpageMsg')">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'ChooseImg', name: 'ChooseImg',
...@@ -477,12 +465,25 @@ ...@@ -477,12 +465,25 @@
} }
}) })
}, },
//上传视频
UploadVideo(file) {
var that = this;
this.UploadSelfFile(this.FileType().Video, file.file, res => {
if (res.resultCode == 1) {
if (that.addpageMsg.Type == 2) {
that.addpageMsg.Image = res.FileUrl;
}
that.addpageMsg.Path = res.FileUrl;
that.addpageMsg.Name = res.FileName;
that.addPageList();
}
})
},
// 新增素材信息 // 新增素材信息
addPageList() { addPageList() {
this.apipost("/api/product/SetMaterialInfo", this.addpageMsg, res => { this.apipost("/api/product/SetMaterialInfo", this.addpageMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.GetPageList(); this.GetPageList();
} }
}) })
}, },
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
return { return {
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 1000, pageSize: 10,
Source: 0, Source: 0,
StartDate: '', StartDate: '',
EndDate: '', EndDate: '',
......
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