|
@@ -42,9 +42,21 @@
|
|
|
>适用商品</el-button
|
|
|
>
|
|
|
<el-button type="text" @click="watchs(props.scope.row)">预览</el-button>
|
|
|
- <el-button type="text" @click="downMaterial(props.scope.row)">下载资料</el-button>
|
|
|
- <el-button type="text" @click="syncUser(props.scope.row)">同步考场信息</el-button>
|
|
|
- <el-button type="text" @click="syncExam(props.scope.row)"
|
|
|
+ <el-button type="text" @click="downMaterial(props.scope.row)"
|
|
|
+ >下载资料</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="syncUser(props.scope.row)"
|
|
|
+ v-if="props.scope.row.wisdomNum > 0"
|
|
|
+ :disabled="sysTime < props.scope.row.applyEndTime"
|
|
|
+ >同步考场信息</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="syncExam(props.scope.row)"
|
|
|
+ v-if="props.scope.row.wisdomNum > 0"
|
|
|
+ :disabled="sysTime < props.scope.row.applyEndTime"
|
|
|
>同步信息到考场</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -622,10 +634,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <p>总共:{{ syncData.total }}个学员</p>
|
|
|
- <p>成功:{{ syncData.success }}个学员</p>
|
|
|
+ <p>总共:{{ syncData.total }}条数据</p>
|
|
|
+ <p>成功:{{ syncData.success }}条数据</p>
|
|
|
<p>
|
|
|
- 失败:{{ syncData.fail }}个学员
|
|
|
+ 失败:{{ syncData.fail }}条数据
|
|
|
<el-button type="text" @click="watchSyncPeople">查看</el-button>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -727,7 +739,7 @@ export default {
|
|
|
// 弹窗数据
|
|
|
listData: {
|
|
|
applyStatus: [],
|
|
|
- reportStatus:1,
|
|
|
+ reportStatus: 1,
|
|
|
},
|
|
|
statusPop: -1,
|
|
|
dialogVisible: false,
|
|
@@ -828,32 +840,28 @@ export default {
|
|
|
infoData: {
|
|
|
applyStatus: [],
|
|
|
},
|
|
|
+ sysTime: 0,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.sysTime = new Date().getTime() / 1000;
|
|
|
this.search();
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.sysTime = new Date().getTime() / 1000;
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
//下载资料
|
|
|
- downMaterial(row){
|
|
|
- this.$refs.downMaterial.openBox(row)
|
|
|
+ downMaterial(row) {
|
|
|
+ this.$refs.downMaterial.openBox(row);
|
|
|
},
|
|
|
//同步考场信息
|
|
|
- syncUser(row){
|
|
|
- this.$api
|
|
|
+ syncUser(row) {
|
|
|
+ this.$api
|
|
|
.appcommonwisdomSyncExamStatus({ applyId: row.applyId })
|
|
|
.then((res) => {
|
|
|
- this.$message.success("同步成功")
|
|
|
- // if (res.data && res.data.total) {
|
|
|
- // res.data.applyId = row.applyId;
|
|
|
- // this.syncData = res.data;
|
|
|
- // this.dialogExamSync = true;
|
|
|
- // } else {
|
|
|
- // this.$message.error("没有学员推送");
|
|
|
- // }
|
|
|
+ this.$message.success("同步成功");
|
|
|
});
|
|
|
},
|
|
|
//同步信息到考场
|
|
@@ -1299,7 +1307,7 @@ export default {
|
|
|
this.statusPop = 1;
|
|
|
this.listData = {
|
|
|
applyStatus: [],
|
|
|
- reportStatus:1,
|
|
|
+ reportStatus: 1,
|
|
|
applyUrl: "oss/images/avatar/20211013/1634097664410_1397766697",
|
|
|
};
|
|
|
this.$nextTick(() => {
|