|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
item: {} as any
|
|
|
});
|
|
|
const showGuide = ref(false);
|
|
|
- const SearchGroupResourcesRef = ref()
|
|
|
+ const SearchGroupResourcesRef = ref();
|
|
|
const getList = async () => {
|
|
|
try {
|
|
|
state.loading = true;
|
|
@@ -92,39 +92,41 @@ export default defineComponent({
|
|
|
return () => (
|
|
|
<>
|
|
|
<SearchGroupResources
|
|
|
- ref={SearchGroupResourcesRef}
|
|
|
+ ref={SearchGroupResourcesRef}
|
|
|
onSearch={(item: any) => onSearch(item)}
|
|
|
onAdd={() => (state.teachingStatus = true)}
|
|
|
/>
|
|
|
<NSpin v-model:show={state.loading} style={{ 'min-height': '50vh' }}>
|
|
|
<div class={styles.list}>
|
|
|
{state.tableList.map((item: any, index: number) => (
|
|
|
- <>
|
|
|
- {index == 0 ? (
|
|
|
- <CardType
|
|
|
- {...{ id: 'shareResources-1' }}
|
|
|
- item={item}
|
|
|
- disabledMouseHover={false}
|
|
|
- onClick={(val: any) => {
|
|
|
- if (val.type === 'IMG') return;
|
|
|
- state.show = true;
|
|
|
- state.item = val;
|
|
|
- }}
|
|
|
- onCollect={(item: any) => onCollect(item)}
|
|
|
- />
|
|
|
- ) : (
|
|
|
- <CardType
|
|
|
- item={item}
|
|
|
- disabledMouseHover={false}
|
|
|
- onClick={(val: any) => {
|
|
|
- if (val.type === 'IMG') return;
|
|
|
- state.show = true;
|
|
|
- state.item = val;
|
|
|
- }}
|
|
|
- onCollect={(item: any) => onCollect(item)}
|
|
|
- />
|
|
|
- )}
|
|
|
- </>
|
|
|
+ <div class={styles.itemWrap}>
|
|
|
+ <div class={styles.itemWrapBox}>
|
|
|
+ {index == 0 ? (
|
|
|
+ <CardType
|
|
|
+ {...{ id: 'shareResources-1' }}
|
|
|
+ item={item}
|
|
|
+ disabledMouseHover={false}
|
|
|
+ onClick={(val: any) => {
|
|
|
+ if (val.type === 'IMG') return;
|
|
|
+ state.show = true;
|
|
|
+ state.item = val;
|
|
|
+ }}
|
|
|
+ onCollect={(item: any) => onCollect(item)}
|
|
|
+ />
|
|
|
+ ) : (
|
|
|
+ <CardType
|
|
|
+ item={item}
|
|
|
+ disabledMouseHover={false}
|
|
|
+ onClick={(val: any) => {
|
|
|
+ if (val.type === 'IMG') return;
|
|
|
+ state.show = true;
|
|
|
+ state.item = val;
|
|
|
+ }}
|
|
|
+ onCollect={(item: any) => onCollect(item)}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
))}
|
|
|
|
|
|
{!state.loading && state.tableList.length <= 0 && (
|