Commit 41e1b0f3 authored by 黄奎's avatar 黄奎

页面修改

parent d7179cb5
...@@ -118,8 +118,7 @@ ...@@ -118,8 +118,7 @@
<div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''" <div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''"
class="el-tooltip item material-item "> class="el-tooltip item material-item ">
<img :src="getIconLink(item.Image)" <img :src="getIconLink(item.Image)" class="material-img" style="width: 140px; height: 140px;">
class="material-img" style="width: 140px; height: 140px;">
<div class="material-video-info"><i class="el-icon-video-play"></i> <div class="material-video-info"><i class="el-icon-video-play"></i>
<span>{{Time(item.VideoTime)}}</span></div> <span>{{Time(item.VideoTime)}}</span></div>
...@@ -180,7 +179,7 @@ ...@@ -180,7 +179,7 @@
<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>
...@@ -254,10 +253,10 @@ ...@@ -254,10 +253,10 @@
this.GetPageList(); this.GetPageList();
}, },
mounted() { mounted() {
}, },
methods: { methods: {
Time(value) { Time(value) {
var theTime = parseInt(value); // 秒 var theTime = parseInt(value); // 秒
var middle = 0; // 分 var middle = 0; // 分
...@@ -432,7 +431,6 @@ ...@@ -432,7 +431,6 @@
this.GetPageList(); this.GetPageList();
this.Success(res.data.message) this.Success(res.data.message)
this.pageMsgDig = false; this.pageMsgDig = false;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -477,7 +475,9 @@ ...@@ -477,7 +475,9 @@
that.addpageMsg.Image = res.VideoCoverImg; that.addpageMsg.Image = res.VideoCoverImg;
that.addpageMsg.Path = res.FileUrl; that.addpageMsg.Path = res.FileUrl;
that.addpageMsg.Name = res.FileName; that.addpageMsg.Name = res.FileName;
that.addPageList(); that.addPageList();
that.$forceUpdate();
} }
}) })
}, },
...@@ -486,6 +486,7 @@ ...@@ -486,6 +486,7 @@
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();
this.$forceUpdate();
} }
}) })
}, },
...@@ -518,16 +519,13 @@ ...@@ -518,16 +519,13 @@
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.GetMemberGradeList(); this.GetMemberGradeList();
this.Success(res.data.message) this.Success(res.data.message)
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
null null
); );
}).catch(() => { }).catch(() => {});
});
}, },
HsGroup(item) { HsGroup(item) {
let that = this; let that = this;
...@@ -550,9 +548,7 @@ ...@@ -550,9 +548,7 @@
}, },
null null
); );
}).catch(() => { }).catch(() => {});
});
}, },
DeleteGroup(item) { DeleteGroup(item) {
let that = this; let that = this;
...@@ -575,9 +571,7 @@ ...@@ -575,9 +571,7 @@
}, },
null null
); );
}).catch(() => { }).catch(() => {});
});
}, },
addGroup() { addGroup() {
this.addGroupMsgDig = true; this.addGroupMsgDig = true;
...@@ -587,7 +581,6 @@ ...@@ -587,7 +581,6 @@
Type: this.commonType, Type: this.commonType,
Sort: '', Sort: '',
} }
}, },
GroupsubmitForm(formName) { GroupsubmitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
...@@ -619,6 +612,7 @@ ...@@ -619,6 +612,7 @@
}, },
GetPageList() { GetPageList() {
this.loading = true; this.loading = true;
this.PageList = [];
this.apipost("/api/product/GetMaterialInfoPageList", this.PageMsg, res => { this.apipost("/api/product/GetMaterialInfoPageList", this.PageMsg, res => {
this.loading = false; this.loading = false;
this.total = res.data.data.count; this.total = res.data.data.count;
...@@ -629,8 +623,7 @@ ...@@ -629,8 +623,7 @@
item.Selected = false; item.Selected = false;
}) })
this.PageList = data; this.PageList = data;
this.$forceUpdate();
}) })
}, },
handleClick(val) { handleClick(val) {
...@@ -640,13 +633,11 @@ ...@@ -640,13 +633,11 @@
this.addpageMsg.Type = val; this.addpageMsg.Type = val;
this.GetMemberGradeList(); this.GetMemberGradeList();
this.GetPageList(); this.GetPageList();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.PageMsg.pageIndex = val; this.PageMsg.pageIndex = val;
this.GetPageList(); this.GetPageList();
}, },
}, },
} }
......
...@@ -148,6 +148,8 @@ export default { ...@@ -148,6 +148,8 @@ export default {
//上传文件到本地服务器 //上传文件到本地服务器
Vue.prototype.UploadSelfFile = function (path, file, callback) { Vue.prototype.UploadSelfFile = function (path, file, callback) {
var that = this; var that = this;
that.Info('上传中...')
var newPath = '/Upload/' + path + "/"; var newPath = '/Upload/' + path + "/";
var formData = new FormData(); var formData = new FormData();
var uploadUrl = that.domainManager().VTUploadUrl + "/Upload?filePath=" + newPath+"&isCreateCover=1"; var uploadUrl = that.domainManager().VTUploadUrl + "/Upload?filePath=" + newPath+"&isCreateCover=1";
......
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