Bladeren bron

改为核心企业

sqg 4 jaren geleden
bovenliggende
commit
48801bd8aa

+ 2 - 6
front-vue/src/api/service/company/company.js

@@ -93,12 +93,8 @@ export function listRel(query) {
 
 // 更改为核心企业
 export function companyToCore(scyId) {
-  const data = {
-    scyId
-  }
   return request({
-    url: '/sc-service/company/companyToCore',
-    method: 'put',
-    data: data
+    url: '/sc-service/company/companyToCore?scyId='+scyId,
+    method: 'GET'
   })
 }

+ 3 - 2
front-vue/src/views/service/company/supCompanyManage.vue

@@ -125,6 +125,7 @@
             v-hasPermi="['service:company:delete']"
           >删除</el-button>
           <el-button
+            v-if="scope.row.scyStatus == '00'"
             size="mini"
             type="text"
             @click="handleToCore(scope.row)"
@@ -516,12 +517,12 @@ export default {
           return companyToCore(scyId);
         }).then(() => {
           this.getList();
-          this.msgSuccess("删除成功");
+          this.msgSuccess("更改成功");
         })
         .catch(() => {
           this.$message({
             type: "warning",
-            message: "已取消删除",
+            message: "已取消更改",
            
           });
         });