作业得分:{{ item.stuscore && item.scoreFabu == '1' ? item.stuscore : '未评' }}分
diff --git a/src/views/zy/zyInfo/ZyInfoV2List.vue b/src/views/zy/zyInfo/ZyInfoV2List.vue
index 48c4a25..089242e 100644
--- a/src/views/zy/zyInfo/ZyInfoV2List.vue
+++ b/src/views/zy/zyInfo/ZyInfoV2List.vue
@@ -556,6 +556,7 @@
+
@@ -607,6 +608,7 @@ import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
import ZyInfoEditModal from './components/ZyInfoEditModal.vue';
import YyzyListModal from '/@/views/zy/zyInfo/YyzyListModal.vue';
import ZyCyFenxiangListModal from '/@/views/zy/zyCyFenxiang/ZyCyFenxiangListModal.vue';
+import ZyInfoBhModal from '/@/views/zy/zyInfo/components/ZyInfoBhModal.vue';
import Xzxx from './components/Xzxx.vue';
import { encryptByBase64 } from '/@/utils/cipher';
@@ -664,6 +666,7 @@ const registerPiyueModal = ref();
const YyzyListModalPage = ref();
const ZyCyFenxiangListModalpage = ref();
const XzxxRef = ref()
+const bohuiRef = ref()
const pdfUrl = ref('/downPath/ylhpsf.pdf');
//注册table数据
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
@@ -954,26 +957,30 @@ function yulanFile(record) {
}
//驳回
async function handleBohui(record: Recordable) {
- createConfirm({
- iconType: 'warning',
- title: '驳回',
- content: '您确定驳回此作业吗,驳回后需要学生重新提交?',
- okText: '确认',
- cancelText: '取消',
- onOk: async () => {
- let zyinfo = await defHttp.get({ url: '/zyInfo/zyInfo/queryById', params: { id: record.mainId } })
- if(zyinfo.xzxstjzy == 'Y'){
- let stuZyIds = await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getZyStuIdById', data: { zyinfoId: record.mainId, xh: record.createBy } })
- stuZyIds.forEach(async stu => {
- await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: stu.id } })
- })
- }else{
- await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: record.id } })
- }
- createMessage.success('作业驳回成功!')
- handleSuccess();
- },
- });
+
+ bohuiRef.value.disableSubmit = false;
+ bohuiRef.value.edit(record);
+
+ // createConfirm({
+ // iconType: 'warning',
+ // title: '驳回',
+ // content: '您确定驳回此作业吗,驳回后需要学生重新提交?',
+ // okText: '确认',
+ // cancelText: '取消',
+ // onOk: async () => {
+ // let zyinfo = await defHttp.get({ url: '/zyInfo/zyInfo/queryById', params: { id: record.mainId } })
+ // if(zyinfo.xzxstjzy == 'Y'){
+ // let stuZyIds = await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getZyStuIdById', data: { zyinfoId: record.mainId, xh: record.createBy } })
+ // stuZyIds.forEach(async stu => {
+ // await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: stu.id } })
+ // })
+ // }else{
+ // await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: record.id } })
+ // }
+ // createMessage.success('作业驳回成功!')
+ // handleSuccess();
+ // },
+ // });
}
//填写评分
function handleScore(record: Recordable) {
diff --git a/src/views/zy/zyInfo/components/ZyInfoBhForm.vue b/src/views/zy/zyInfo/components/ZyInfoBhForm.vue
new file mode 100644
index 0000000..e7142f8
--- /dev/null
+++ b/src/views/zy/zyInfo/components/ZyInfoBhForm.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/zy/zyInfo/components/ZyInfoBhModal.vue b/src/views/zy/zyInfo/components/ZyInfoBhModal.vue
new file mode 100644
index 0000000..8b4de93
--- /dev/null
+++ b/src/views/zy/zyInfo/components/ZyInfoBhModal.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+