|
@@ -19,8 +19,6 @@
|
|
|
:default-sort="{ prop: 'data', order: 'descending' }"
|
|
:default-sort="{ prop: 'data', order: 'descending' }"
|
|
|
element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
|
class
|
|
class
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
|
ref="multipleTable"
|
|
ref="multipleTable"
|
|
|
>
|
|
>
|
|
|
>
|
|
>
|
|
@@ -52,8 +50,6 @@
|
|
|
width="25px"
|
|
width="25px"
|
|
|
height="25px"
|
|
height="25px"
|
|
|
/>
|
|
/>
|
|
|
- <!--<img class="head" :src="scope.row.Head" alt="" height="51" width="51" v-if="scope.row.Head">-->
|
|
|
|
|
- <!--<img class="head" src="../assets/img/nav/head.png" height="51" width="51" v-else/>-->
|
|
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -63,22 +59,25 @@
|
|
|
sortable
|
|
sortable
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="Phone"
|
|
|
|
|
- label="手机号"
|
|
|
|
|
- width="120"
|
|
|
|
|
|
|
+ prop="ToTalScore"
|
|
|
|
|
+ label="总分"
|
|
|
|
|
+ width="90"
|
|
|
sortable
|
|
sortable
|
|
|
- v-if="!isCollapse"
|
|
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- v-for="item in actionList" :key="item.index" :label="item.label"
|
|
|
|
|
- :value="item.HrId" :prop="item.Prop"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ v-for="item in actionList" :key="item.AgdId" :label="item.EaName"
|
|
|
|
|
+ :value="item.AgdId" :prop="item.AgdId+''"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{scope.row.DetailScore[item.AgdId]}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<br/>
|
|
<br/>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
background
|
|
background
|
|
|
- :total="pageination.total"
|
|
|
|
|
- :page-size="pageination.pageItem"
|
|
|
|
|
|
|
+ :total="pagination.total"
|
|
|
|
|
+ :page-size="pagination.pageItem"
|
|
|
@current-change="pageChange"
|
|
@current-change="pageChange"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -88,14 +87,15 @@
|
|
|
<script>
|
|
<script>
|
|
|
import Global from "../Global.js";
|
|
import Global from "../Global.js";
|
|
|
import {
|
|
import {
|
|
|
- ClassOverDetailListQuery,
|
|
|
|
|
|
|
+ AGDetailQuery,
|
|
|
|
|
+ ScoreClassQuery,
|
|
|
} from "../api/getApiRes";
|
|
} from "../api/getApiRes";
|
|
|
|
|
|
|
|
let qs = require("qs");
|
|
let qs = require("qs");
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- AgId:0,
|
|
|
|
|
|
|
+ AgId: 0,
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
title: "",
|
|
title: "",
|
|
|
ClassType: 0,
|
|
ClassType: 0,
|
|
@@ -105,34 +105,10 @@ export default {
|
|
|
current: getNowDate(),
|
|
current: getNowDate(),
|
|
|
ClassName: "",
|
|
ClassName: "",
|
|
|
cur_page: 1,
|
|
cur_page: 1,
|
|
|
- actionList: [{
|
|
|
|
|
- index: 0,
|
|
|
|
|
- value: 0,
|
|
|
|
|
- isCheck: false,
|
|
|
|
|
- Prop: "StdId",
|
|
|
|
|
- label: "总分",
|
|
|
|
|
- }, {
|
|
|
|
|
- index: 1,
|
|
|
|
|
- value: 1,
|
|
|
|
|
- isCheck: true,
|
|
|
|
|
- Prop: "StdId",
|
|
|
|
|
- label: "动作1",
|
|
|
|
|
- }, {
|
|
|
|
|
- index: 2,
|
|
|
|
|
- value: 2,
|
|
|
|
|
- isCheck: false,
|
|
|
|
|
- Prop: "StdId",
|
|
|
|
|
- label: "动作1",
|
|
|
|
|
- }, {
|
|
|
|
|
- index: 3,
|
|
|
|
|
- value: 3,
|
|
|
|
|
- isCheck: false,
|
|
|
|
|
- Prop: "StdId",
|
|
|
|
|
- label: "动作2",
|
|
|
|
|
- }],
|
|
|
|
|
- pageination: {
|
|
|
|
|
|
|
+ actionList: [],
|
|
|
|
|
+ pagination: {
|
|
|
pageItem: 1000,
|
|
pageItem: 1000,
|
|
|
- pageoptions: pageOptions(),
|
|
|
|
|
|
|
+ pageOptions: pageOptions(),
|
|
|
total: 1000,
|
|
total: 1000,
|
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
|
},
|
|
},
|
|
@@ -140,8 +116,7 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- // this.getTableQuery();
|
|
|
|
|
- // this.getSelectHrSensors();
|
|
|
|
|
|
|
+ this.getActionQuery();
|
|
|
this.AgId = this.$route.query.AgId;
|
|
this.AgId = this.$route.query.AgId;
|
|
|
this.ClassType = this.$route.query.ClassType;
|
|
this.ClassType = this.$route.query.ClassType;
|
|
|
this.PkNum = this.$route.query.PkNum;
|
|
this.PkNum = this.$route.query.PkNum;
|
|
@@ -160,102 +135,82 @@ export default {
|
|
|
query: {},
|
|
query: {},
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ //查询动作
|
|
|
|
|
+ getActionQuery() {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ let param = {
|
|
|
|
|
+ token: localStorage.token,
|
|
|
|
|
+ agId: this.$route.query.AgId
|
|
|
|
|
+ };
|
|
|
|
|
+ let postData = qs.stringify(param);
|
|
|
|
|
+ AGDetailQuery(postData).then((res) => {
|
|
|
|
|
+ let json = res;
|
|
|
|
|
+ if (json.Code == 0) {
|
|
|
|
|
+ if (json.Rs) {
|
|
|
|
|
+ that.actionList = json.Rs;
|
|
|
|
|
+ that.getTableQuery();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.actionList = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.$message.error(json.Memo + " 错误码:" + json.Code);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 页面数据查询
|
|
// 页面数据查询
|
|
|
getTableQuery() {
|
|
getTableQuery() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
- that.loading = true;
|
|
|
|
|
- that.BeginState = true;
|
|
|
|
|
let param = {
|
|
let param = {
|
|
|
token: localStorage.token,
|
|
token: localStorage.token,
|
|
|
- stdId: this.$route.query.StdId,
|
|
|
|
|
- start: 1, //
|
|
|
|
|
- tableMax: 9999, //
|
|
|
|
|
|
|
+ stdId: this.$route.query.StdId
|
|
|
};
|
|
};
|
|
|
that.allTableData = [];
|
|
that.allTableData = [];
|
|
|
that.tableData = [];
|
|
that.tableData = [];
|
|
|
that.recordsTotal = 0;
|
|
that.recordsTotal = 0;
|
|
|
- let postdata = qs.stringify(param);
|
|
|
|
|
- ClassOverDetailListQuery(postdata).then((res) => {
|
|
|
|
|
|
|
+ let postData = qs.stringify(param);
|
|
|
|
|
+ ScoreClassQuery(postData).then((res) => {
|
|
|
let json = res;
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
if (json.Code == 0) {
|
|
|
- that.loading = false;
|
|
|
|
|
if (json.Rs) {
|
|
if (json.Rs) {
|
|
|
- // 没人不允许开课
|
|
|
|
|
- if (json.Rs.length > 0) {
|
|
|
|
|
- // 全部预约 都是未到也不允许开课
|
|
|
|
|
- json.Rs.map(function (item) {
|
|
|
|
|
- // 只要有一个不是就放开
|
|
|
|
|
- if (item.Status != 2) {
|
|
|
|
|
- that.BeginState = false;
|
|
|
|
|
- }
|
|
|
|
|
- item.IsOnline = item.IsOnline.toString();
|
|
|
|
|
- item.IsOnlineState = item.IsOnline == 1 ? true : false;
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- // 分队处理
|
|
|
|
|
- // 未上课的分队,已上课的旧的不处理,新人需要处理
|
|
|
|
|
- if (that.FinishClass == 3) {
|
|
|
|
|
- if (that.ClassType == 2) {
|
|
|
|
|
- that.TurnUnit(json.Rs);
|
|
|
|
|
- } else {
|
|
|
|
|
- json.Rs.map(function (item) {
|
|
|
|
|
- item.group_no = item.GroupNo;
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- // 已上课的状态
|
|
|
|
|
- json.Rs.map(function (item, i) {
|
|
|
|
|
- if (that.ClassType == 2) {
|
|
|
|
|
- if (item.GroupNo == 0) {
|
|
|
|
|
- item.group_no = (i % that.PkNum) + 1;
|
|
|
|
|
- } else {
|
|
|
|
|
- item.group_no = item.GroupNo;
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- item.group_no = item.GroupNo;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
that.allTableData = json.Rs;
|
|
that.allTableData = json.Rs;
|
|
|
that.recordsTotal = json.Rs.length;
|
|
that.recordsTotal = json.Rs.length;
|
|
|
} else {
|
|
} else {
|
|
|
that.allTableData = [];
|
|
that.allTableData = [];
|
|
|
that.recordsTotal = 0;
|
|
that.recordsTotal = 0;
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(that.allTableData);
|
|
|
// 设置分页数据
|
|
// 设置分页数据
|
|
|
- that.setPaginations();
|
|
|
|
|
|
|
+ that.setPagination();
|
|
|
} else {
|
|
} else {
|
|
|
that.$message.error(json.Memo + " 错误码:" + json.Code);
|
|
that.$message.error(json.Memo + " 错误码:" + json.Code);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 设置分页数据
|
|
// 设置分页数据
|
|
|
- setPaginations() {
|
|
|
|
|
|
|
+ setPagination() {
|
|
|
// 分页属性
|
|
// 分页属性
|
|
|
let that = this;
|
|
let that = this;
|
|
|
- that.pageination.total = that.recordsTotal;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ that.pagination.total = that.recordsTotal;
|
|
|
// 默认分页
|
|
// 默认分页
|
|
|
that.tableData = that.allTableData.filter((item, index) => {
|
|
that.tableData = that.allTableData.filter((item, index) => {
|
|
|
- return index < that.pageination.pageItem;
|
|
|
|
|
|
|
+ return index < that.pagination.pageItem;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 每页显示数量
|
|
// 每页显示数量
|
|
|
handleSizeChange() {
|
|
handleSizeChange() {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
that.tableData = that.allTableData.filter((item, index) => {
|
|
that.tableData = that.allTableData.filter((item, index) => {
|
|
|
- return index < that.pageination.pageItem;
|
|
|
|
|
|
|
+ return index < that.pagination.pageItem;
|
|
|
});
|
|
});
|
|
|
- that.draw = that.pageination.pageItem;
|
|
|
|
|
- // that.getTableQuery();
|
|
|
|
|
|
|
+ that.draw = that.pagination.pageItem;
|
|
|
},
|
|
},
|
|
|
// 翻页
|
|
// 翻页
|
|
|
pageChange(pageIndex) {
|
|
pageChange(pageIndex) {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
// 获取当前页
|
|
// 获取当前页
|
|
|
- let index = that.pageination.pageItem * (pageIndex - 1);
|
|
|
|
|
|
|
+ let index = that.pagination.pageItem * (pageIndex - 1);
|
|
|
// 数据总数
|
|
// 数据总数
|
|
|
- let nums = that.pageination.pageItem * pageIndex;
|
|
|
|
|
|
|
+ let nums = that.pagination.pageItem * pageIndex;
|
|
|
// 容器
|
|
// 容器
|
|
|
let tables = [];
|
|
let tables = [];
|
|
|
for (var i = index; i < nums; i++) {
|
|
for (var i = index; i < nums; i++) {
|
|
@@ -265,19 +220,6 @@ export default {
|
|
|
this.tableData = tables;
|
|
this.tableData = tables;
|
|
|
}
|
|
}
|
|
|
that.start = index * that.draw;
|
|
that.start = index * that.draw;
|
|
|
- // that.getTableQuery();
|
|
|
|
|
- },
|
|
|
|
|
- // 过滤时间
|
|
|
|
|
- filterFmtDate(value, row, column) {
|
|
|
|
|
- let that = this;
|
|
|
|
|
- if (
|
|
|
|
|
- column == "0001-01-01T08:05:43+08:05" ||
|
|
|
|
|
- column == "0001-01-01T00:00:00Z"
|
|
|
|
|
- ) {
|
|
|
|
|
- return "未预约";
|
|
|
|
|
- } else {
|
|
|
|
|
- return nonTfmtDate(column, 11);
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
goType(url) {
|
|
goType(url) {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -297,12 +239,11 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
$route(to) {
|
|
$route(to) {
|
|
|
if (to.name == "scoreResult") {
|
|
if (to.name == "scoreResult") {
|
|
|
- this.getTableQuery();
|
|
|
|
|
|
|
+ this.getActionQuery();
|
|
|
this.AgId = this.$route.query.AgId;
|
|
this.AgId = this.$route.query.AgId;
|
|
|
this.FinishClass = this.$route.query.FinishClass;
|
|
this.FinishClass = this.$route.query.FinishClass;
|
|
|
this.ClassType = this.$route.query.ClassType;
|
|
this.ClassType = this.$route.query.ClassType;
|
|
|
this.PkNum = this.$route.query.PkNum;
|
|
this.PkNum = this.$route.query.PkNum;
|
|
|
-
|
|
|
|
|
this.title =
|
|
this.title =
|
|
|
this.$route.query.ClassName +
|
|
this.$route.query.ClassName +
|
|
|
" " +
|
|
" " +
|