|
@@ -34,71 +34,94 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
- <div class="leader-progress-part">
|
|
|
- <div v-if="IS_LEVEL" colspan="3" style="text-align:left">
|
|
|
- 仲裁:{{ kzzInfo.arbitrated }}
|
|
|
- </div>
|
|
|
- <table class="table table-dark" v-if="IS_LEVEL && markerProgress.length">
|
|
|
- <colgroup>
|
|
|
- <col width="120" />
|
|
|
- <col width="310" />
|
|
|
- <col width="60" />
|
|
|
- <col width="80" />
|
|
|
- </colgroup>
|
|
|
- <tr>
|
|
|
- <th>评卷员</th>
|
|
|
- <th>进度</th>
|
|
|
- <th></th>
|
|
|
- <th>打回</th>
|
|
|
- </tr>
|
|
|
- <tr v-for="(item, aindex) in markerProgress" :key="aindex">
|
|
|
- <td>{{ item.loginName }}</td>
|
|
|
- <td>
|
|
|
- <progress-line
|
|
|
- :sum="item.totalCount"
|
|
|
- :current="item.successCount"
|
|
|
- ></progress-line>
|
|
|
- </td>
|
|
|
- <td class="td-nopad">{{ item.progress }}%</td>
|
|
|
- <td>{{ item.rejectedCount }}</td>
|
|
|
+ <div v-if="kzzInfo.length" class="leader-progress-part">
|
|
|
+ <table class="table table-dark">
|
|
|
+ <tr v-for="(user, uindex) in kzzInfo" :key="uindex">
|
|
|
+ <td>科组长</td>
|
|
|
+ <td>{{ user.loginName }}</td>
|
|
|
+ <td>仲裁</td>
|
|
|
+ <td>{{ user.arbitrated }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
+ </div>
|
|
|
|
|
|
- <table class="table table-dark" v-if="IS_SCORE">
|
|
|
- <colgroup>
|
|
|
- <col width="120" />
|
|
|
- <col width="210" />
|
|
|
- <col width="60" />
|
|
|
- <col width="80" />
|
|
|
- <col width="100" />
|
|
|
- </colgroup>
|
|
|
- <tr>
|
|
|
- <th>评卷员</th>
|
|
|
- <th>进度</th>
|
|
|
- <th></th>
|
|
|
- <th>改档</th>
|
|
|
- <th>改档打分</th>
|
|
|
- </tr>
|
|
|
- <tr v-for="(item, aindex) in markerProgress" :key="aindex">
|
|
|
- <td>{{ item.loginName }}</td>
|
|
|
- <td>
|
|
|
- <progress-line
|
|
|
- :sum="item.totalCount"
|
|
|
- :current="item.successCount"
|
|
|
- ></progress-line>
|
|
|
- </td>
|
|
|
- <td class="td-nopad">{{ item.progress }}%</td>
|
|
|
- <td>{{ item.shiftCount }}</td>
|
|
|
- <td>{{ item.shiftScoreCount }}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
+ <div
|
|
|
+ v-for="(group, index) in groupMarkers"
|
|
|
+ :key="index"
|
|
|
+ class="leader-progress-part"
|
|
|
+ >
|
|
|
+ <div v-if="IS_LEVEL">
|
|
|
+ <div v-for="(kzz, kindex) in group.kzzProgress" :key="kindex">
|
|
|
+ 科组长:{{ kzz.loginName }},仲裁:{{ kzz.arbitrated }}
|
|
|
+ </div>
|
|
|
+ <table class="table table-dark">
|
|
|
+ <colgroup>
|
|
|
+ <col width="120" />
|
|
|
+ <col width="310" />
|
|
|
+ <col width="60" />
|
|
|
+ <col width="80" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>评卷员</th>
|
|
|
+ <th>进度</th>
|
|
|
+ <th></th>
|
|
|
+ <th>打回</th>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="(item, aindex) in group.markerProgress" :key="aindex">
|
|
|
+ <td>{{ item.loginName }}</td>
|
|
|
+ <td>
|
|
|
+ <progress-line
|
|
|
+ :sum="item.totalCount"
|
|
|
+ :current="item.successCount"
|
|
|
+ ></progress-line>
|
|
|
+ </td>
|
|
|
+ <td class="td-nopad">{{ item.progress }}%</td>
|
|
|
+ <td>{{ item.rejectedCount }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-if="IS_SCORE">
|
|
|
+ <table
|
|
|
+ v-for="(group, index) in groupMarkers"
|
|
|
+ :key="index"
|
|
|
+ class="table table-dark"
|
|
|
+ >
|
|
|
+ <colgroup>
|
|
|
+ <col width="120" />
|
|
|
+ <col width="210" />
|
|
|
+ <col width="60" />
|
|
|
+ <col width="80" />
|
|
|
+ <col width="100" />
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>评卷员</th>
|
|
|
+ <th>进度</th>
|
|
|
+ <th></th>
|
|
|
+ <th>改档</th>
|
|
|
+ <th>改档打分</th>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="(item, aindex) in group.markerProgress" :key="aindex">
|
|
|
+ <td>{{ item.loginName }}</td>
|
|
|
+ <td>
|
|
|
+ <progress-line
|
|
|
+ :sum="item.totalCount"
|
|
|
+ :current="item.successCount"
|
|
|
+ ></progress-line>
|
|
|
+ </td>
|
|
|
+ <td class="td-nopad">{{ item.progress }}%</td>
|
|
|
+ <td>{{ item.shiftCount }}</td>
|
|
|
+ <td>{{ item.shiftScoreCount }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { mapState } from "vuex";
|
|
|
-import { gradingProgressDetail } from "@/api";
|
|
|
+import { markLeaderGradingProgressDetail } from "@/api";
|
|
|
import ProgressLine from "../components/ProgressLine";
|
|
|
|
|
|
export default {
|
|
@@ -107,10 +130,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
modalIsShow: false,
|
|
|
- kzzInfo: {},
|
|
|
+ kzzInfo: [],
|
|
|
totalProgress: {},
|
|
|
areaProgress: [],
|
|
|
- markerProgress: []
|
|
|
+ groupMarkers: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -133,11 +156,11 @@ export default {
|
|
|
},
|
|
|
async initData() {
|
|
|
const subjectId = this.$route.params.subjectId.split("-");
|
|
|
- const data = await gradingProgressDetail({
|
|
|
+ const data = await markLeaderGradingProgressDetail({
|
|
|
workId: subjectId[0],
|
|
|
subject: subjectId[1]
|
|
|
});
|
|
|
- this.kzzInfo = data.kzz || {};
|
|
|
+ this.kzzInfo = data.kzz || [];
|
|
|
this.totalProgress = data.totalProgress;
|
|
|
const totalInfo = {
|
|
|
successCount: data.totalProgress.successCount,
|
|
@@ -147,10 +170,13 @@ export default {
|
|
|
};
|
|
|
if (this.curSubject.stage === "INIT") {
|
|
|
this.areaProgress = [totalInfo];
|
|
|
- this.markerProgress = [];
|
|
|
+ this.groupMarkers = [];
|
|
|
} else {
|
|
|
this.areaProgress = [totalInfo, ...this.addProgress(data.areaProgress)];
|
|
|
- this.markerProgress = this.addProgress(data.markerProgress);
|
|
|
+ this.groupMarkers = data.groupMarkers.map(group => {
|
|
|
+ group.markerProgress = this.addProgress(group.markerProgress);
|
|
|
+ return group;
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
addProgress(data) {
|