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

页面修改

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