allen hace 2 años
padre
commit
85f1014d62

+ 5 - 4
src/views/knowledge/entity/index.vue

@@ -37,7 +37,7 @@
           v-hasPermi="['knowledge:entity:edit']"
         >修改</el-button>
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="danger"
           plain
@@ -47,7 +47,7 @@
           @click="handleDelete"
           v-hasPermi="['knowledge:entity:remove']"
         >删除</el-button>
-      </el-col>
+      </el-col> -->
       <!-- <el-col :span="1.5">
         <el-button
           type="warning"
@@ -190,7 +190,8 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.entId)
+      console.info(selection)
+      this.ids = selection.map(item => item.id)
       this.single = selection.length!==1
       this.multiple = !selection.length
     },
@@ -214,7 +215,7 @@ export default {
     submitForm() {
       this.$refs["form"].validate(valid => {
         if (valid) {
-          if (this.form.entId != null) {
+          if (this.form.id != null) {
             updateEntity(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;

+ 4 - 4
src/views/knowledge/entityRelation/index.vue

@@ -37,7 +37,7 @@
           v-hasPermi="['knowledge:entityRelation:edit']"
         >修改</el-button>
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="danger"
           plain
@@ -47,7 +47,7 @@
           @click="handleDelete"
           v-hasPermi="['knowledge:entityRelation:remove']"
         >删除</el-button>
-      </el-col>
+      </el-col> -->
       <!-- <el-col :span="1.5">
         <el-button
           type="warning"
@@ -212,7 +212,7 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.relId)
+      this.ids = selection.map(item => item.id)
       this.single = selection.length!==1
       this.multiple = !selection.length
     },
@@ -236,7 +236,7 @@ export default {
     submitForm() {
       this.$refs["form"].validate(valid => {
         if (valid) {
-          if (this.form.relId != null) {
+          if (this.form.id != null) {
             updateEntityRelation(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;