韩帛霖 1 жил өмнө
parent
commit
ba15198337

+ 10 - 5
ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

@@ -93,7 +93,6 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['system:outsalesdocuments:edit']"
           >修改
           </el-button>
           <el-button
@@ -101,7 +100,6 @@
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['system:outsalesdocuments:remove']"
           >删除
           </el-button>
         </template>
@@ -347,14 +345,21 @@ export default {
      * 删除提示信息语句(标识)
      * */
     handleDelete(row) {
-      let delIds = row.id || this.ids;
-      console.log(delIds)
+      let delIds = this.ids;
+
+      if (row.id != undefined && row.id != null) {
+        delIds = []
+        delIds.push(row.id);
+        // if (delIds.findIndex(item => item === row.id) == -1) {
+        //   delIds.push(row.id);
+        // }
+      }
       let data = {
         basicMap: {
           tableName: this.tableName
         },
         conditionMap: {
-          id: delIds.length == 1 ? [delIds] : delIds
+          id: delIds
         }
       }
       this.$modal