修改bug
This commit is contained in:
parent
f1e52ee738
commit
652b47d5d0
Binary file not shown.
After Width: | Height: | Size: 243 KiB |
|
@ -58,11 +58,11 @@
|
|||
const emit = defineEmits(['register', 'ok']);
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
optionsradios: '',
|
||||
optionsradios: 'errohyhmm',
|
||||
meetingnum: '',
|
||||
meetingpsw: '',
|
||||
meetinglink: '',
|
||||
edittype: undefined,
|
||||
edittype: '0',
|
||||
ismodified: undefined,
|
||||
skrq: '',
|
||||
sfcj: undefined,
|
||||
|
@ -95,7 +95,6 @@
|
|||
* 新增
|
||||
*/
|
||||
function add(record) {
|
||||
console.log(`🚀 ~ file: KcErrorreportIndexForm.vue:106 ~ add ~ record:`, record)
|
||||
var param = {kechengbiaoid:record.id}
|
||||
edit(param);
|
||||
}
|
||||
|
@ -104,10 +103,12 @@
|
|||
* 编辑
|
||||
*/
|
||||
function edit(record) {
|
||||
console.log(`🚀 ~ file: KcErrorreportIndexForm.vue:107 ~ edit ~ record:`, record)
|
||||
nextTick(() => {
|
||||
resetFields();
|
||||
//赋值
|
||||
Object.assign(formData, record);
|
||||
console.log(`🚀 ~ file: KcErrorreportIndexForm.vue:112 ~ nextTick ~ formData:`, formData)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -74,12 +74,12 @@
|
|||
</a-col>
|
||||
|
||||
<a-col :span="12">
|
||||
<a-form-item label="教师图片1" v-bind="validateInfos.tpmc">
|
||||
<a-form-item label="教师图片" v-bind="validateInfos.tpmc">
|
||||
<j-image-upload v-model:value="formData.tpmc" :disabled="disabled"></j-image-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :span="12">
|
||||
<!-- <a-col :span="12">
|
||||
<a-form-item label="教师图片2" v-bind="validateInfos.tpmc2">
|
||||
<j-image-upload v-model:value="formData.tpmc2" :disabled="disabled"></j-image-upload>
|
||||
</a-form-item>
|
||||
|
@ -89,7 +89,7 @@
|
|||
<a-form-item label="教师图片3" v-bind="validateInfos.tpmc3">
|
||||
<j-image-upload v-model:value="formData.tpmc3" :disabled="disabled"></j-image-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
|
|
|
@ -13,9 +13,14 @@
|
|||
<div>
|
||||
<a href="javascript:void(0)" @click="funGkk(item.jslj)">
|
||||
<div>
|
||||
<span style="position: absolute;top: 4rem;border-radius: 0 10px 10px 0;background: #1c84c6;color: #FFF;padding: 3px 10px 3px 5px;z-index: 2;">公开课预告</span>
|
||||
<img style="border-radius: 10px 10px 0 0;margin-bottom: 8px;" v-if="!item.tpmc" src="/resource/img/kc/moren.jpg" height="170px"/>
|
||||
<AImage style="border-radius: 10px 10px 0 0;" v-else :src="getFileAccessHttpUrl(item.tpmc)" :preview="false" :width="'100%'" height="170px"/>
|
||||
<span style="position: absolute;top: 4rem;border-radius: 0 10px 10px 0;background: #1ab394;color: #FFF;padding: 3px 10px 3px 5px;z-index: 2;" v-if="item.dqztpx == 1">{{item.dqzt}}</span>
|
||||
<span style="position: absolute;top: 4rem;border-radius: 0 10px 10px 0;background: #1c84c6;color: #FFF;padding: 3px 10px 3px 5px;z-index: 2;" v-if="item.dqztpx == 2">{{item.dqzt}}</span>
|
||||
<span style="position: absolute;top: 4rem;border-radius: 0 10px 10px 0;background-color: rgba(0,0,0,0.46);color: #FFF;padding: 3px 10px 3px 5px;z-index: 2;" v-if="item.dqztpx == 3">{{item.dqzt}}</span>
|
||||
<div>
|
||||
<img style="border-radius: 10px 10px 0 0;margin-bottom: 8px;" :class="classFun(index)" v-if="!item.tpmc" src="/resource/img/kc/moren.png" height="170px"/>
|
||||
<AImage style="border-radius: 10px 10px 0 0;" :class="classFun(index)" v-else :src="getFileAccessHttpUrl(item.tpmc)" :preview="false" :width="'100%'" height="170px"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div style="padding: 10px 1rem 1rem;background: #f3f3f3;">
|
||||
<div class="ggkTitle ggkCcxs" :title="item.hxr +`·`+item.hxrlb">{{item.hxr}} · {{item.hxrlb}}</div>
|
||||
|
@ -67,6 +72,18 @@ function funGkk(jslj){
|
|||
window.open(jslj,"_blank")
|
||||
}
|
||||
}
|
||||
function classFun(index){
|
||||
let stylecss = "redImgClass";
|
||||
if(index%3<1){
|
||||
stylecss = "redImgClass";
|
||||
}else if(index%3==1){
|
||||
stylecss = "blueImgClass";
|
||||
}else if(index%3>1){
|
||||
stylecss = "greenImgClass";
|
||||
}
|
||||
return stylecss;
|
||||
}
|
||||
|
||||
/**
|
||||
* 公开课收起
|
||||
*/
|
||||
|
@ -79,6 +96,7 @@ function funShouqi(){
|
|||
* 加载更多公开课
|
||||
*/
|
||||
function funMore(){
|
||||
console.log(`🚀 ~ file: index.vue:83 ~ funMore ~ current>pageNo:`, current,pageNo)
|
||||
if(current>pageNo){
|
||||
pageNo ++;
|
||||
loadData()
|
||||
|
@ -99,9 +117,10 @@ function loadData(){
|
|||
queryParam.value.pageNo = pageNo
|
||||
// queryParam.value.column = 'type'
|
||||
// queryParam.value.order = 'asc'
|
||||
list(queryParam.value).then(res=>{
|
||||
list(queryParam.value).then(res => {
|
||||
console.log(`🚀 ~ file: index.vue:104 ~ list ~ res:`, res)
|
||||
listData.value.push(...res.records)
|
||||
current = res.size
|
||||
current = res.pages
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
@ -140,4 +159,16 @@ function funSj(rq){
|
|||
.ggkCcxs{
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.redImgClass{
|
||||
background:linear-gradient(45deg,#b23d59,#d3718a)
|
||||
}
|
||||
.blueImgClass{
|
||||
background:linear-gradient(45deg,#53637a,#8590a6)
|
||||
}
|
||||
.greenImgClass{
|
||||
background:linear-gradient(45deg,#7999fc,#79bdfc)
|
||||
}
|
||||
|
||||
</style>
|
|
@ -11,7 +11,7 @@
|
|||
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw"
|
||||
:dictCode="`tkrszdw_view,college,college`" />
|
||||
:dictCode="`kc_kkdw_view,kkdw,kkdw`" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw"
|
||||
:dictCode="`tkrszdw_view,college,college`" />
|
||||
:dictCode="`kc_kkdw_view,kkdw,kkdw`" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw"
|
||||
:dictCode="`tkrszdw_view,college,college`" />
|
||||
:dictCode="`kc_kkdw_view,kkdw,kkdw`" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
|
||||
|
|
Loading…
Reference in New Issue