-
-
+
+
+
+ 选择试卷
+
+
+
+
+
+ {{item.value}}
+
+
+
+
+
+ {{item.value}}
+
@@ -274,10 +292,29 @@ export default {
showAnalysis:2,
showAnswers:2,
choosedTime:'',
+ choosedTest:[
+ {
+ key:1,
+ value:'提高核心竞争力'
+ },
+ {
+ key:2,
+ value:'增强创新意识感'
+ },
+ {
+ key:3,
+ value:'巩固基础求发展'
+ },
+ ],
+
});
const state = reactive({
addLoading: false,
isOuter:1, // 是否为外部考试
+ choosedTestList:[{
+ value:'提高核心竞争力',
+ key:1,
+ }],
})
const formRef = ref();
let checkExaminationName = async (_rule, value) => {
@@ -555,6 +592,16 @@ export default {
console.log(value)
state.isOuter = value
}
+ const chooseTest = (index) => {
+ for(let i in state.choosedTestList ) {
+ if(state.choosedTestList[i].key == formState.choosedTest[index].key) return;
+ }
+ state.choosedTestList.push(formState.choosedTest[index])
+ }
+ const closeTag = (removedTag) => {
+ const tags = state.choosedTestList.filter(item => item.key != removedTag);
+ state.choosedTestList = tags;
+ }
return {
formState,
afterVisibleChange,
@@ -574,6 +621,8 @@ export default {
updateTest,
queryTest,
changeOuter,
+ chooseTest,
+ closeTag,
...toRefs(state)
};
},
@@ -583,6 +632,26 @@ export default {
.ant-table-striped :deep(.table-striped) td {
background-color: #fafafa !important;
}
+.outer {
+ background-color: #4ea6ff;
+ color: #fff;
+ border-radius: 5px;
+ border:1px solid #a09292;
+ height: 36px;
+ margin-right: 10px;
+}
+.notOuter {
+ color: #000;
+ border-radius: 5px;
+ border:1px solid #a09292;
+ background:#fff;
+ margin-right: 10px;
+ padding:3px;
+}
+.tag-style {
+ color:rgb(113, 113, 237);
+ background-color:#d7d1f7;
+}
.addtestDrawer {
.drawerMain {
.header {
diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue
index 391164a5..b363e8c2 100644
--- a/src/views/learningpath/LevelAdd.vue
+++ b/src/views/learningpath/LevelAdd.vue
@@ -560,14 +560,14 @@
style="width: 270px; height: 40px; border-radius: 8px"
placeholder="关卡名称"
/>
-
+
@@ -821,6 +821,13 @@
- 搜索
- 搜索
+
+
- 重置
重置
+