|
@@ -24,15 +24,15 @@
|
|
|
color: '#333',
|
|
|
}"
|
|
|
>
|
|
|
- <template v-for="(item, index) in tableSetChild">
|
|
|
- <el-table-column
|
|
|
- :width="item.width"
|
|
|
- :key="index"
|
|
|
- :label="item.label"
|
|
|
- align="center"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <!-- <span v-if="item.scope === 'types'">
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, index) in tableSetChild"
|
|
|
+ :width="item.width"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <!-- <span v-if="item.scope === 'types'">
|
|
|
{{
|
|
|
scope.row[item.prop] === 1
|
|
|
? "开课"
|
|
@@ -51,19 +51,18 @@
|
|
|
}}</span>
|
|
|
</span> -->
|
|
|
|
|
|
- <span v-if="item.scope === 'types'">
|
|
|
- {{
|
|
|
- scope.row[item.prop] === 1
|
|
|
- ? "练习题"
|
|
|
- : scope.row[item.prop] === 2
|
|
|
- ? "模拟题"
|
|
|
- : ""
|
|
|
- }}
|
|
|
- </span>
|
|
|
- <span v-else> {{ scope.row[item.prop] }} </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </template>
|
|
|
+ <span v-if="item.scope === 'types'">
|
|
|
+ {{
|
|
|
+ scope.row[item.prop] === 1
|
|
|
+ ? "练习题"
|
|
|
+ : scope.row[item.prop] === 2
|
|
|
+ ? "模拟题"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <span v-else> {{ scope.row[item.prop] }} </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" align="center" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -76,39 +75,38 @@
|
|
|
</el-table>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <template v-for="(item, index) in tableSet">
|
|
|
- <el-table-column
|
|
|
- :width="item.width"
|
|
|
- :key="index"
|
|
|
- :label="item.label"
|
|
|
- align="center"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="item.scope === 'yewu'">
|
|
|
- {{ scope.row[item.prop1] }}-{{ scope.row[item.prop2] }}-{{
|
|
|
- scope.row[item.prop3]
|
|
|
- }}
|
|
|
- </span>
|
|
|
- <span v-else-if="item.scope === 'time'">
|
|
|
- {{ $methodsTools.onlyForma(scope.row[item.prop]) }}
|
|
|
- </span>
|
|
|
- <span v-else-if="item.scope === 'moreTime'">
|
|
|
- {{ $methodsTools.onlyForma(scope.row[item.prop1]) }} -
|
|
|
- {{ $methodsTools.onlyForma(scope.row[item.prop2]) }}
|
|
|
- </span>
|
|
|
- <span v-else-if="item.scope === 'computes'">
|
|
|
- {{
|
|
|
- ((scope.row[item.prop1] / scope.row[item.prop2]) * 100).toFixed(
|
|
|
- 2
|
|
|
- )
|
|
|
- }}%
|
|
|
- </span>
|
|
|
- <span v-else>
|
|
|
- {{ scope.row[item.prop] }}{{ item.ch ? item.ch : "" }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, index) in tableSet"
|
|
|
+ :width="item.width"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="item.scope === 'yewu'">
|
|
|
+ {{ scope.row[item.prop1] }}-{{ scope.row[item.prop2] }}-{{
|
|
|
+ scope.row[item.prop3]
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'time'">
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop]) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'moreTime'">
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop1]) }} -
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop2]) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'computes'">
|
|
|
+ {{
|
|
|
+ ((scope.row[item.prop1] / scope.row[item.prop2]) * 100).toFixed(
|
|
|
+ 2
|
|
|
+ )
|
|
|
+ }}%
|
|
|
+ </span>
|
|
|
+ <span v-else>
|
|
|
+ {{ scope.row[item.prop] }}{{ item.ch ? item.ch : "" }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<el-dialog
|
|
|
:visible.sync="dialogVisible"
|
|
@@ -136,44 +134,43 @@
|
|
|
>
|
|
|
<el-table-column label="序号" align="center" type="index" width="70">
|
|
|
</el-table-column>
|
|
|
- <template v-for="(item, index) in studyListRemard">
|
|
|
- <el-table-column
|
|
|
- :width="item.width"
|
|
|
- :key="index"
|
|
|
- :label="item.label"
|
|
|
- align="center"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="item.scope === 'studyTime'">
|
|
|
- {{ $methodsTools.onlyForma(scope.row[item.prop1])
|
|
|
- }}{{
|
|
|
- scope.row[item.prop1] && scope.row[item.prop2] ? "至" : ""
|
|
|
- }}
|
|
|
- {{ $methodsTools.onlyForma(scope.row[item.prop2]) }}
|
|
|
- </span>
|
|
|
- <span v-else-if="item.scope === 'status'">
|
|
|
- {{
|
|
|
- scope.row[item.prop] === 1
|
|
|
- ? "完成"
|
|
|
- : scope.row[item.prop] === 0
|
|
|
- ? "未学习"
|
|
|
- : scope.row[item.prop] === 2
|
|
|
- ? "学习中"
|
|
|
- : "未知"
|
|
|
- }}
|
|
|
- </span>
|
|
|
- <span v-else-if="item.scope === 'computerTimes'">
|
|
|
- {{
|
|
|
- $methodsTools.humandate(
|
|
|
- scope.row[item.prop1],
|
|
|
- scope.row[item.prop2]
|
|
|
- )
|
|
|
- }}
|
|
|
- </span>
|
|
|
- <span v-else> {{ scope.row[item.prop] }} </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </template>
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, index) in studyListRemard"
|
|
|
+ :width="item.width"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="item.scope === 'studyTime'">
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop1])
|
|
|
+ }}{{
|
|
|
+ scope.row[item.prop1] && scope.row[item.prop2] ? "至" : ""
|
|
|
+ }}
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop2]) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'status'">
|
|
|
+ {{
|
|
|
+ scope.row[item.prop] === 1
|
|
|
+ ? "完成"
|
|
|
+ : scope.row[item.prop] === 0
|
|
|
+ ? "未学习"
|
|
|
+ : scope.row[item.prop] === 2
|
|
|
+ ? "学习中"
|
|
|
+ : "未知"
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.scope === 'computerTimes'">
|
|
|
+ {{
|
|
|
+ $methodsTools.humandate(
|
|
|
+ scope.row[item.prop1],
|
|
|
+ scope.row[item.prop2]
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <span v-else> {{ scope.row[item.prop] }} </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|