|
@@ -7,41 +7,48 @@ import img_lczs from '~/assets/zbktssys/bar.png';
|
|
|
import img_tx from '~/assets/zbktssys/tx.png';
|
|
|
|
|
|
import { View as IconView, Histogram as IconHistogram, Search as IconSearch } from '@element-plus/icons-vue';
|
|
|
+import { getFullUrl, getAvatarUrl } from '~/utils/helper';
|
|
|
+
|
|
|
+const queryForm = reactive({
|
|
|
+ keyword: '',
|
|
|
+ grade_id: null,
|
|
|
+ team_id: null
|
|
|
+})
|
|
|
+
|
|
|
const activeTab = $ref('first')
|
|
|
function handleClick() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-const nj = [
|
|
|
- { n: '全部', v: '1' },
|
|
|
- { n: '幼儿园', v: '' },
|
|
|
- { n: '一年级', v: '' },
|
|
|
- { n: '二年级', v: '' },
|
|
|
- { n: '三年级', v: '' },
|
|
|
- { n: '四年级', v: '' },
|
|
|
- { n: '五年级', v: '' },
|
|
|
- { n: '六年级', v: '' },
|
|
|
- { n: '初一', v: '' },
|
|
|
- { n: '初二', v: '' },
|
|
|
- { n: '初三', v: '' },
|
|
|
- { n: '高一', v: '' },
|
|
|
- { n: '高二', v: '' },
|
|
|
- { n: '高三', v: '' },
|
|
|
- { n: '其他', v: '' },
|
|
|
-]
|
|
|
-
|
|
|
-const fc = [
|
|
|
- { n: '全部', v: '1' },
|
|
|
- { n: '上册', v: '' },
|
|
|
- { n: '下册', v: '' },
|
|
|
-]
|
|
|
+let nj = $ref()
|
|
|
+let fc = $ref()
|
|
|
+
|
|
|
+request({
|
|
|
+ url: '/jcxx/grade/index',
|
|
|
+}).then(res => {
|
|
|
+ // console.log('res :>> ', res);
|
|
|
+ if (res.code === '1') {
|
|
|
+ nj = [{ n: '全部', v: null }].concat(res.data.page_data.map(({ grade_name, grade_id }) => ({ v: grade_id, n: grade_name })))
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
const data = $ref([
|
|
|
- { img: img_lczs1, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '1' },
|
|
|
- { img: img_lczs2, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
- { img: img_lczs3, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
+ // { img: img_lczs1, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '1' },
|
|
|
+ // { img: img_lczs2, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
+ // { img: img_lczs3, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
])
|
|
|
|
|
|
+request({
|
|
|
+ url: '/kzkt/ssyskc/index',
|
|
|
+}).then(res => {
|
|
|
+ console.log('res1 :>> ', res);
|
|
|
+ if (res.code === '1') {
|
|
|
+ fc = [{ n: '全部', v: null }].concat(res.data.table_structure.field.team_id.option)
|
|
|
+ data = res.data.page_data
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
function hrefTo(href) {
|
|
|
window.open(href, '_blank')
|
|
@@ -49,13 +56,13 @@ function hrefTo(href) {
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
-function handleJyClick(){
|
|
|
+function handleJyClick() {
|
|
|
router.push('/zbkt/ssys/content')
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <common-header/>
|
|
|
+ <common-header />
|
|
|
<div class="w-full flex items-center justify-center shadow-sm h-60px bg-hex-fefefe">
|
|
|
<div class="w-1400px flex items-center">
|
|
|
<div class="text-lg text-hex-050026">双师一生</div>
|
|
@@ -94,7 +101,9 @@ function handleJyClick(){
|
|
|
|
|
|
|
|
|
<div>
|
|
|
- <div class="flex">
|
|
|
+ <check-row v-model="queryForm.grade_id" label="年级" :items="nj"></check-row>
|
|
|
+ <check-row v-model="queryForm.team_id" label="分册" :items="fc"></check-row>
|
|
|
+ <!-- <div class="flex">
|
|
|
<div class="font-bold mr-4">年级</div>
|
|
|
<div class="flex-auto flex-wrap">
|
|
|
<label v-for="i in nj" :for="i.v" class="text-hex-949494 mx-3 px-4px py-px rounded cursor-pointer"
|
|
@@ -114,49 +123,52 @@ function handleJyClick(){
|
|
|
</label>
|
|
|
<div class="border_b my-4"></div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="flex flex-wrap justify-between">
|
|
|
<div class="w-647px h-155px rounded-xl shadow-lg my-7 flex overflow-hidden" v-for="i in data">
|
|
|
<div class="w-264px h-full flex-none">
|
|
|
- <img :src="i.img" alt="" class="w-full h-full">
|
|
|
+ <img :src="getFullUrl(i.ks_img)" alt="" class="w-full h-full">
|
|
|
</div>
|
|
|
<div class="p-2 pr-6 flex-auto flex flex-col">
|
|
|
<div class="flex justify-between w-full items-center py-1">
|
|
|
- <div class="font-bold">{{ i.title }}</div>
|
|
|
+ <div class="font-bold">{{ i.ks_name }}</div>
|
|
|
<div class="text-hex-949494 text-sm flex justify-between items-center">
|
|
|
<el-icon :size="14" color="#949494">
|
|
|
<icon-view />
|
|
|
</el-icon>
|
|
|
- <span class="ml-1">{{ i.bfl }}</span>
|
|
|
+ <span class="ml-1">{{ i.kss_views }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="text-sm text-hex-949494 py-1">
|
|
|
- {{ i.desc }}
|
|
|
+ {{ i.ks_brief }}
|
|
|
</div>
|
|
|
|
|
|
<div class="text-sm py-1 flex-auto">
|
|
|
- <span>{{ i.nj }}</span>
|
|
|
+ <span>{{ i.grade_name }}</span>
|
|
|
<span class="mx-2">|</span>
|
|
|
- <span>{{ i.xk }}</span>
|
|
|
+ <span>{{ i.subject_name }}</span>
|
|
|
</div>
|
|
|
|
|
|
<div class="flex text-sm justify-between items-center">
|
|
|
<div @click="hrefTo('https://rtc.bozedu.net/index.html?uroom=18&uname=txsxnxxb&stream=18_2')"
|
|
|
class="cursor-pointer flex items-center">
|
|
|
- <el-avatar :size="16" :src="i.tx" /><span class="ml-1">{{ i.ls }}</span>
|
|
|
+ <el-avatar :size="16" :src="getAvatarUrl(i.user_id)" /><span class="ml-1">{{ i.ks_zjjsxm }}</span>
|
|
|
</div>
|
|
|
<div @click="hrefTo('https://rtc.bozedu.net/index.html?uroom=18&uname=txsxnxxa&stream=18')"
|
|
|
class="h-26px rounded-14px px-2 flex items-center text-hex-0083C5 cursor-pointer"
|
|
|
- :class="i.zt && 'border border-hex-f00 text-hex-f00'">
|
|
|
- <el-icon :color="i.zt ? '#FF0000' : '#949494'">
|
|
|
+ :class="i.ks_status === '2' && 'border border-hex-f00 text-hex-f00'">
|
|
|
+ <!-- <el-icon :color="i.zt ? '#FF0000' : '#949494'">
|
|
|
<icon-histogram />
|
|
|
- </el-icon>
|
|
|
- <span class="ml-2 "> {{ i.zt ? '已开始' : '未开始' }}</span>
|
|
|
+ </el-icon> -->
|
|
|
+ <i-bx:bar-chart></i-bx:bar-chart>
|
|
|
+ <span class="ml-2 "> {{ i.ks_status_msg }}</span>
|
|
|
</div>
|
|
|
- <div class="h-26px leading-26px px-4 bg-gradient-to-l from-green-400 to-blue-500 text-white rounded-14px cursor-pointer" @click="handleJyClick(i)" >
|
|
|
+ <div
|
|
|
+ class="h-26px leading-26px px-4 bg-gradient-to-l from-green-400 to-blue-500 text-white rounded-14px cursor-pointer"
|
|
|
+ @click="handleJyClick(i)">
|
|
|
讲义</div>
|
|
|
</div>
|
|
|
|