添加字段
This commit is contained in:
parent
e2da0d42de
commit
64d1d46ba7
|
@ -212,6 +212,21 @@ export const formSchema: FormSchema[] = [
|
|||
label: '类别',
|
||||
field: 'hxrlb',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '说课视频地址',
|
||||
field: 'shuokePath',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '授课视频地址',
|
||||
field: 'shoukePath',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '课后反思视频地址',
|
||||
field: 'kehouPath',
|
||||
component: 'Input',
|
||||
},
|
||||
// TODO 主键隐藏字段,目前写死为ID
|
||||
{
|
||||
|
|
|
@ -84,6 +84,21 @@
|
|||
<j-image-upload v-model:value="formData.tpmc" :disabled="disabled"></j-image-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="说课视频地址" v-bind="validateInfos.shuokePath">
|
||||
<a-input v-model:value="formData.shuokePath" placeholder="请输入说课视频地址" :disabled="disabled"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="授课视频地址" v-bind="validateInfos.shoukePath">
|
||||
<a-input v-model:value="formData.shoukePath" placeholder="请输入授课视频地址" :disabled="disabled"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="课后反思视频地址" v-bind="validateInfos.kehouPath">
|
||||
<a-input v-model:value="formData.kehouPath" placeholder="请输入课后反思视频地址" :disabled="disabled"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<!-- <a-col :span="12">
|
||||
<a-form-item label="教师图片2" v-bind="validateInfos.tpmc2">
|
||||
|
@ -139,6 +154,9 @@ import { filterDictTextByCache } from '/@/utils/dict/JDictSelectUtil.js';
|
|||
dqztpx: '2',
|
||||
sfxs: '1',
|
||||
hxrlb: '',
|
||||
shuokePath: '',
|
||||
shoukePath: '',
|
||||
kehouPath: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<div class="ggkFourTitle">{{item.logcount}}人听课</div>
|
||||
</a>
|
||||
<!-- -{{ item.kclj }}--{{ item.jslj }} -->
|
||||
<div v-if="item.type=='1'"><a-button type="primary" class="ggkButton" target="_blank" :href="item.kclj" @click="jrkt(item)">进入课堂</a-button></div>
|
||||
<div v-if="item.sfxs2=='1'"><a-button type="primary" class="ggkButton" target="_blank" :href="item.kclj" @click="jrkt(item)">进入课堂</a-button></div>
|
||||
<div v-else><a-button type="primary" class="ggkButton" target="_blank" disabled :href="item.kclj" @click="false" style="background-color: rgb(197, 192, 192);">进入课堂</a-button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -156,7 +156,19 @@ function loadData(){
|
|||
// queryParam.value.order = 'asc'
|
||||
list(queryParam.value).then(res => {
|
||||
console.log(`🚀 ~ file: index.vue:104 ~ list ~ res:`, res)
|
||||
listData.value.push(...res.records)
|
||||
var list = res.records
|
||||
for(var i=0;i<list.length;i++){
|
||||
var kssj = new Date(list[i].rq+" "+list[i].kssj+":00");
|
||||
var jssj = new Date(list[i].rq+" "+list[i].jssj+":00");
|
||||
var dqsj = new Date();
|
||||
|
||||
if(kssj<=dqsj&&jssj>=dqsj){
|
||||
console.log(`🚀 ~ file: index.vue:166 ~ list ~ dqsj:`, 11111111111)
|
||||
list[i].sfxs2 = 1
|
||||
}
|
||||
}
|
||||
console.log(`🚀 ~ file: index.vue:169 ~ list ~ list:`, list)
|
||||
listData.value.push(...list)
|
||||
current = res.pages
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue