|
@@ -72,9 +72,24 @@ export default {
|
|
|
const knowledgeList = this.dimensionList.filter(
|
|
|
item => item.dimensionType === "KNOWLEDGE"
|
|
|
);
|
|
|
+ if (!knowledgeList.length) {
|
|
|
+ this.$message.error("请设置知识维度");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
const abilityList = this.dimensionList.filter(
|
|
|
item => item.dimensionType === "ABILITY"
|
|
|
);
|
|
|
+ if (!abilityList.length) {
|
|
|
+ const confirm = await this.$confirm(
|
|
|
+ `能力维度未设置,确定要提交吗?`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ type: "warning"
|
|
|
+ }
|
|
|
+ ).catch(() => {});
|
|
|
+ if (confirm !== "confirm") return;
|
|
|
+ }
|
|
|
|
|
|
const funcs = [
|
|
|
updatePaperDimension({
|