Browse Source

如果查询不到数据,说明是第一次配置,应设置 isAdd=1

xw 1 day ago
parent
commit
dd654779a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/his/company/index.vue

+ 2 - 2
src/views/his/company/index.vue

@@ -181,7 +181,7 @@
             type="text"
             icon="el-icon-edit"
             @click="handleRevenue(scope.row)"
-            v-hasPermi="['company:company:revenue']"
+            v-hasPermi="['his:companyDivConfig:set']"
           >分账配置</el-button>
         </template>
       </el-table-column>
@@ -828,7 +828,7 @@ export default {
             ...response.data,
             companyId: companyId,
             companyName: row.companyName,
-            isAdd: 1
+            isAdd: 0  // 已有配置,设置为更新操作
           }
           if(response.data.acctInfos == null){
             this.revenueForm.acctInfos = []