|
@@ -48,7 +48,13 @@
|
|
|
<script>
|
|
|
import PaperWorkIdentifierMixin from './paper-work-identifier-mixin'
|
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
|
-import { deletePaper, download, listCustomerPaperQeustions, paperRecords } from '@/api/webApi/webQue'
|
|
|
+import {
|
|
|
+ deletePaper,
|
|
|
+ download,
|
|
|
+ listCustomerPaperQeustions,
|
|
|
+ paperRecords,
|
|
|
+ saveToPersonResources, updateNameById
|
|
|
+} from '@/api/webApi/webQue'
|
|
|
import consts from '@/common/mx-const'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
@@ -129,10 +135,24 @@ export default {
|
|
|
this.getPaperRecords()
|
|
|
},
|
|
|
clickSendToResource(paperId) {
|
|
|
-
|
|
|
+ this.tableLoading = true;
|
|
|
+ saveToPersonResources(paperId).then((res) => {
|
|
|
+ this.tableLoading = false;
|
|
|
+ this.msgSuccess("发送成功");
|
|
|
+ });
|
|
|
},
|
|
|
savePaperName() {
|
|
|
+ const paperName = this.dialogPaperName?.trim();
|
|
|
+ if (!paperName) {
|
|
|
+ this.msgError("试卷标题不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
+ updateNameById(this.dialogPager.paperId, paperName).then((res) => {
|
|
|
+ this.dialogPager.name = paperName;
|
|
|
+ this.dialogPaperNameVisible = false;
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|