|
@@ -18,18 +18,23 @@
|
|
>一键导出</el-button
|
|
>一键导出</el-button
|
|
>
|
|
>
|
|
<el-button @click="exportData"
|
|
<el-button @click="exportData"
|
|
- v-if="cutTabNum == 0 && multipleSelection.length > 1"
|
|
|
|
|
|
+ v-if="DState == 5 && cutTabNum == 0 && multipleSelection.length > 1"
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
>批量导出</el-button
|
|
>批量导出</el-button
|
|
>
|
|
>
|
|
<el-button @click="exportData"
|
|
<el-button @click="exportData"
|
|
- v-if="cutTabNum == 0 && multipleSelection.length < 2"
|
|
|
|
|
|
+ v-if="DState == 5 && cutTabNum == 0 && multipleSelection.length < 2"
|
|
type="info"
|
|
type="info"
|
|
disabled
|
|
disabled
|
|
size="small"
|
|
size="small"
|
|
>批量导出</el-button
|
|
>批量导出</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button @click="customizeExport"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ >{{ DState == 5 ? '按任务导出' : '自定义导出' }}</el-button
|
|
|
|
+ >
|
|
<el-button style="margin-left: 20px;" @click="retPage" type="primary" size="small">返回</el-button>
|
|
<el-button style="margin-left: 20px;" @click="retPage" type="primary" size="small">返回</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -159,10 +164,12 @@
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
- v-show="cutTabNum == 0"
|
|
|
|
|
|
+ v-if="cutTabNum == 0 && DState == 5"
|
|
|
|
+ key="1"
|
|
type="selection"
|
|
type="selection"
|
|
width="55">
|
|
width="55">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="sName"
|
|
prop="sName"
|
|
label="姓名"
|
|
label="姓名"
|
|
@@ -1569,19 +1576,36 @@
|
|
class="worksDialogCSSExp"
|
|
class="worksDialogCSSExp"
|
|
:append-to-body="true"
|
|
:append-to-body="true"
|
|
:fullscreen="true"
|
|
:fullscreen="true"
|
|
-
|
|
|
|
>
|
|
>
|
|
<div slot="title" class="header-title">
|
|
<div slot="title" class="header-title">
|
|
<div style="color: #fff">导出作业集</div>
|
|
<div style="color: #fff">导出作业集</div>
|
|
</div>
|
|
</div>
|
|
<exportWorksDialog :key="exportW" :multipleSelection="multipleSelection" :digNum="digNum" :oid="oid" :worksDialog.sync="worksDialog" :worksDialogCon="worksDialogCon" :uid="exportPdfSetUid" :cid="id"></exportWorksDialog>
|
|
<exportWorksDialog :key="exportW" :multipleSelection="multipleSelection" :digNum="digNum" :oid="oid" :worksDialog.sync="worksDialog" :worksDialogCon="worksDialogCon" :uid="exportPdfSetUid" :cid="id"></exportWorksDialog>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+<!-- 自定义导出作业筛选弹框 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="自定义导出作业"
|
|
|
|
+ :visible.sync="dialogVisibleBao"
|
|
|
|
+ :append-to-body="true"
|
|
|
|
+ width="550px"
|
|
|
|
+ :before-close="handleClose"
|
|
|
|
+ class="dialog_diy r_diy"
|
|
|
|
+ >
|
|
|
|
+ <div>
|
|
|
|
+ <div>
|
|
|
|
+ <Report :cid="dataJson.courseId" :dataJson="dataJson"></Report>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer"> </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import StudentData from "./studentData";
|
|
import StudentData from "./studentData";
|
|
import exportWorksDialog from "./exportWorksDialog";
|
|
import exportWorksDialog from "./exportWorksDialog";
|
|
|
|
+import Report from "./report";
|
|
|
|
|
|
import pdf from "./vpdf";
|
|
import pdf from "./vpdf";
|
|
import htmlDocx from "html-docx-js/dist/html-docx";
|
|
import htmlDocx from "html-docx-js/dist/html-docx";
|
|
@@ -1595,6 +1619,7 @@ export default {
|
|
LookWork,
|
|
LookWork,
|
|
pdf,
|
|
pdf,
|
|
exportWorksDialog,
|
|
exportWorksDialog,
|
|
|
|
+ Report
|
|
},
|
|
},
|
|
props: ["cid", "uid", "ooid","DState","dataJson"],
|
|
props: ["cid", "uid", "ooid","DState","dataJson"],
|
|
data() {
|
|
data() {
|
|
@@ -1834,7 +1859,8 @@ export default {
|
|
exportPdfSetUid:'',
|
|
exportPdfSetUid:'',
|
|
exportW:0,
|
|
exportW:0,
|
|
digNum:0,
|
|
digNum:0,
|
|
- multipleSelection:[]
|
|
|
|
|
|
+ multipleSelection:[],
|
|
|
|
+ dialogVisibleBao:false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1931,6 +1957,11 @@ export default {
|
|
return;
|
|
return;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 自定义导出
|
|
|
|
+ customizeExport(){
|
|
|
|
+ this.dialogVisibleBao = true
|
|
|
|
+ },
|
|
|
|
+
|
|
// 批量导出
|
|
// 批量导出
|
|
exportData(){
|
|
exportData(){
|
|
// this.$emit("update:dialogVisibleBao", true);
|
|
// this.$emit("update:dialogVisibleBao", true);
|
|
@@ -2168,7 +2199,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleClose(done) {
|
|
handleClose(done) {
|
|
- this.studentId =""
|
|
|
|
|
|
+ // this.studentId =""
|
|
done();
|
|
done();
|
|
},
|
|
},
|
|
tableRowClassName({ row, rowIndex }) {
|
|
tableRowClassName({ row, rowIndex }) {
|
|
@@ -2192,17 +2223,17 @@ export default {
|
|
// this.getWorks();
|
|
// this.getWorks();
|
|
},
|
|
},
|
|
lookWork(id, uid, type, index,con) {
|
|
lookWork(id, uid, type, index,con) {
|
|
- console.log('con',con);
|
|
|
|
|
|
+ // console.log('con',con);
|
|
|
|
|
|
this.scopeId1 = id;
|
|
this.scopeId1 = id;
|
|
this.studentId = uid;
|
|
this.studentId = uid;
|
|
|
|
|
|
- if (this.DState == 5) {
|
|
|
|
- this.$nextTick(()=>{
|
|
|
|
- this.dialogVisible3 = true
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.DState == 5) {
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.dialogVisible3 = true
|
|
|
|
+ })
|
|
|
|
+ // }
|
|
|
|
+ return
|
|
|
|
|
|
|
|
|
|
|
|
|