|
@@ -12,12 +12,16 @@
|
|
<el-col class="list" :span="8" :key="index" v-for="(item, index) in science">
|
|
<el-col class="list" :span="8" :key="index" v-for="(item, index) in science">
|
|
<el-col :span="24" class="image"><el-image :src="src"></el-image></el-col>
|
|
<el-col :span="24" class="image"><el-image :src="src"></el-image></el-col>
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="info">
|
|
- <el-col :span="24" class="title textOver">
|
|
|
|
|
|
+ <el-col :span="24" class="title textOver" :title="item.title">
|
|
<span>[{{ item.room_id }}]</span>{{ item.title }}
|
|
<span>[{{ item.room_id }}]</span>{{ item.title }}
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="other">
|
|
<el-col :span="24" class="other">
|
|
- <el-col :span="10" class="textOver"><i class="el-icon-location-outline"></i>{{ item.province }}-{{ item.city }}</el-col>
|
|
|
|
- <el-col :span="14" class="textOver"><i class="iconfont iconshijian"></i>{{ item.start_time }}-{{ item.end_time }}</el-col>
|
|
|
|
|
|
+ <el-col :span="10" class="textOver">
|
|
|
|
+ <el-icon><LocationInformation /></el-icon>{{ item.province }}-{{ item.city }}
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="14" class="textOver" :title="item.time">
|
|
|
|
+ <el-icon><Clock /></el-icon>{{ item.time }}
|
|
|
|
+ </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="btn">
|
|
<el-col :span="24" class="btn">
|
|
<el-button type="primary" size="small" @click="toLogin(item)">管理进入</el-button>
|
|
<el-button type="primary" size="small" @click="toLogin(item)">管理进入</el-button>
|
|
@@ -34,12 +38,16 @@
|
|
<el-col class="list" :span="8" :key="index" v-for="(item, index) in nextList">
|
|
<el-col class="list" :span="8" :key="index" v-for="(item, index) in nextList">
|
|
<el-col :span="24" class="image"><el-image :src="src"></el-image></el-col>
|
|
<el-col :span="24" class="image"><el-image :src="src"></el-image></el-col>
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="info">
|
|
- <el-col :span="24" class="title textOver">
|
|
|
|
|
|
+ <el-col :span="24" class="title textOver" :title="item.title">
|
|
<span>[{{ item.room_id }}]</span>{{ item.title }}
|
|
<span>[{{ item.room_id }}]</span>{{ item.title }}
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="other">
|
|
<el-col :span="24" class="other">
|
|
- <el-col :span="10" class="textOver"><i class="el-icon-location-outline"></i>{{ item.province }}-{{ item.city }}</el-col>
|
|
|
|
- <el-col :span="14" class="textOver"><i class="iconfont iconshijian"></i>{{ item.start_time }}-{{ item.end_time }}</el-col>
|
|
|
|
|
|
+ <el-col :span="10" class="textOver">
|
|
|
|
+ <el-icon><LocationInformation /></el-icon>{{ item.province }}-{{ item.city }}
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="14" class="textOver" :title="item.time">
|
|
|
|
+ <el-icon><Clock /></el-icon>{{ item.time }}
|
|
|
|
+ </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="btn">
|
|
<el-col :span="24" class="btn">
|
|
<el-button type="primary" size="small" @click="toLogin(item)">管理进入</el-button>
|
|
<el-button type="primary" size="small" @click="toLogin(item)">管理进入</el-button>
|
|
@@ -55,12 +63,17 @@
|
|
<el-col class="list" :span="8" :key="index" v-for="(item, index) in endscience">
|
|
<el-col class="list" :span="8" :key="index" v-for="(item, index) in endscience">
|
|
<el-col :span="24" class="image"><el-image :src="src"></el-image></el-col>
|
|
<el-col :span="24" class="image"><el-image :src="src"></el-image></el-col>
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="info">
|
|
- <el-col :span="24" class="title textOver">
|
|
|
|
|
|
+ <el-col :span="24" class="title textOver" :title="item.title">
|
|
<span>[{{ item.room_id }}]</span>{{ item.title }}
|
|
<span>[{{ item.room_id }}]</span>{{ item.title }}
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="other">
|
|
<el-col :span="24" class="other">
|
|
- <el-col :span="10" class="textOver"><i class="el-icon-location-outline"></i>{{ item.province }}-{{ item.city }}</el-col>
|
|
|
|
- <el-col :span="14" class="textOver"><i class="iconfont iconshijian"></i>{{ item.start_time }}-{{ item.end_time }}</el-col>
|
|
|
|
|
|
+ <el-col :span="10" class="textOver">
|
|
|
|
+ <el-icon><LocationInformation /></el-icon>
|
|
|
|
+ {{ item.province }}-{{ item.city }}
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="14" class="textOver" :title="item.time">
|
|
|
|
+ <el-icon><Clock /></el-icon>{{ item.time }}
|
|
|
|
+ </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="btn">
|
|
<el-col :span="24" class="btn">
|
|
<el-button type="primary" size="small" @click="toLogin(item)">管理进入</el-button>
|
|
<el-button type="primary" size="small" @click="toLogin(item)">管理进入</el-button>
|
|
@@ -106,13 +119,38 @@ const search = async () => {
|
|
let res: IQueryResult;
|
|
let res: IQueryResult;
|
|
// 开始
|
|
// 开始
|
|
res = await dock.query({ status: '1' });
|
|
res = await dock.query({ status: '1' });
|
|
- if (res.errcode == 0) science.value = res.data as [];
|
|
|
|
|
|
+ if (res.errcode == 0) {
|
|
|
|
+ let data: any = res.data;
|
|
|
|
+ for (const p1 of data) {
|
|
|
|
+ if (!p1.start_time) p1.start_time = '暂无';
|
|
|
|
+ if (!p1.end_time) p1.end_time = '暂无';
|
|
|
|
+ p1.time = p1.start_time + '-' + p1.end_time;
|
|
|
|
+ }
|
|
|
|
+ science.value = data;
|
|
|
|
+ }
|
|
|
|
+
|
|
// 准备
|
|
// 准备
|
|
res = await dock.query({ status: '0' });
|
|
res = await dock.query({ status: '0' });
|
|
- if (res.errcode == 0) nextList.value = res.data as [];
|
|
|
|
|
|
+ if (res.errcode == 0) {
|
|
|
|
+ let data: any = res.data;
|
|
|
|
+ for (const p1 of data) {
|
|
|
|
+ if (!p1.start_time) p1.start_time = '暂无';
|
|
|
|
+ if (!p1.end_time) p1.end_time = '暂无';
|
|
|
|
+ p1.time = p1.start_time + '-' + p1.end_time;
|
|
|
|
+ }
|
|
|
|
+ nextList.value = data;
|
|
|
|
+ }
|
|
// 结束
|
|
// 结束
|
|
res = await dock.query({ status: '2' });
|
|
res = await dock.query({ status: '2' });
|
|
- if (res.errcode == 0) endscience.value = res.data as [];
|
|
|
|
|
|
+ if (res.errcode == 0) {
|
|
|
|
+ let data: any = res.data;
|
|
|
|
+ for (const p1 of data) {
|
|
|
|
+ if (!p1.start_time) p1.start_time = '暂无';
|
|
|
|
+ if (!p1.end_time) p1.end_time = '暂无';
|
|
|
|
+ p1.time = p1.start_time + '-' + p1.end_time;
|
|
|
|
+ }
|
|
|
|
+ endscience.value = data;
|
|
|
|
+ }
|
|
};
|
|
};
|
|
const toLogin = (e) => {
|
|
const toLogin = (e) => {
|
|
console.log(e);
|
|
console.log(e);
|