刘洋 1 år sedan
förälder
incheckning
dc3b0f3e8c

+ 2 - 2
src/components/UploadButton.vue

@@ -1,12 +1,12 @@
 <template>
   <div>
-    <el-input
+    <!-- <el-input
       v-if="!autoUpload"
       :style="{ width: inputWidth, marginRight: '10px' }"
       v-model.trim="filename"
       placeholder="文件名称"
       readonly
-    ></el-input>
+    ></el-input> -->
     <el-upload
       :action="uploadUrl"
       :headers="headers"

+ 13 - 3
src/modules/question/components/KnowledgePoints.vue

@@ -1,6 +1,8 @@
 <template>
-  <div class="Knowledge-points">
-    <el-button type="primary" @click="showDialog = true">选择知识点</el-button>
+  <div class="knowledge-points">
+    <el-button type="primary" @click="showDialog = true" class="choose"
+      >选择知识点</el-button
+    >
 
     <el-dialog
       :visible.sync="showDialog"
@@ -173,4 +175,12 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped></style>
+<style lang="scss" scoped>
+.knowledge-points {
+  :deep(.choose) {
+    span {
+      display: inline !important;
+    }
+  }
+}
+</style>

+ 2 - 1
src/modules/question/components/QuestionInfoEdit.vue

@@ -112,7 +112,8 @@
           > -->
         </div>
       </el-form-item>
-      <el-form-item v-if="modalForm.quesProperties.length" label="知识点列表">
+      <!-- <el-form-item v-if="modalForm.quesProperties.length" label="知识点列表"> -->
+      <el-form-item v-if="modalForm.quesProperties.length" label="">
         <el-tag
           v-for="content in modalForm.quesProperties"
           :key="content.key"

+ 1 - 1
src/modules/question/components/import-edit/QuestionInfoView.vue

@@ -27,7 +27,7 @@
       v-if="question.quesProperties && question.quesProperties.length"
       class="question-info-item"
     >
-      <div class="question-info-label">属性</div>
+      <div class="question-info-label">知识点</div>
       <div class="question-info-content">
         <el-tag
           v-for="(content, propIndex) in question.quesProperties"

+ 19 - 14
src/modules/questions/views/PropertyInfo.vue

@@ -353,20 +353,25 @@ export default {
     impCourseProperty() {
       this.$refs.ImportCourseDialog.open();
     },
-    uploadSuccess(res) {
-      if (res.success) {
-        this.$notify({
-          message: "导入成功",
-          type: "success",
-        });
-        // this.searchCourProperty();
-        this.$refs.ImportCourseDialog.cancel();
-      } else {
-        this.$notify({
-          message: res.message,
-          type: "error",
-        });
-      }
+    uploadSuccess() {
+      // if (res.success) {
+      //   this.$notify({
+      //     message: "导入成功",
+      //     type: "success",
+      //   });
+      // this.searchCourProperty();
+      this.$notify({
+        message: "导入成功",
+        type: "success",
+      });
+      this.$refs.ImportCourseDialog.cancel();
+      this.searchProperty();
+      // } else {
+      //   this.$notify({
+      //     message: res.message,
+      //     type: "error",
+      //   });
+      // }
     },
     disAllBtn() {
       this.showButton = true;