소스 검색

企业编辑流程调整

master
unknown 4 년 전
부모
커밋
8b8d15fe9b
2개의 변경된 파일8개의 추가작업 그리고 12개의 파일을 삭제
  1. +6
    -10
      src/views/manage_system/index/index.vue
  2. +2
    -2
      src/views/manage_system/index/services.js

+ 6
- 10
src/views/manage_system/index/index.vue 파일 보기

@@ -1124,20 +1124,14 @@ export default {
*/
async updateCompany() {
if (!this.checkCompanyData()) {
return;
return false;
}
var thisApp = this;
this.currentCompany.modifyUserID = sessionStorage.userId;
const res = await services.updateCompany(this.currentCompany);
const flag = res.Code === 0;
if (!flag) {
thisApp.$notify.error({
title: "温馨提示",
message: res.Msg,
offset: 100,
duration: 5000,
});
return;
return false;
}
thisApp.$notify({
title: "恭喜您",
@@ -1147,6 +1141,7 @@ export default {
duration: 2500,
});
thisApp.listCompany();
return true;
// this.$axios({
// method: "put",
// url: encodeURI(process.env.API_HOST + "sysinfo/company"),
@@ -1406,12 +1401,13 @@ export default {
/**
* 更新企业信息,保存数据
*/
updateSave: function () {
async updateSave () {
const flag = await this.updateCompany();
if(!flag) return;
this.el_formLabelcolor = "textlabelgray";
this.editButtonGroup = 1;
this.boolEdit = false;
this.rightTitle = this.currentCompany.companyName;
this.updateCompany();
},
/**
* 取消更新企业信息


+ 2
- 2
src/views/manage_system/index/services.js 파일 보기

@@ -1,4 +1,4 @@
import { fetchApi } from '@/utils/request';
import { fetchApi, wrapErrorHint } from '@/utils/request';
import dayjs from 'dayjs';

/**
@@ -143,7 +143,7 @@ export async function updateCompany(data) {
}

const resData = await fetchApi('company/updateCompanyById', { company: fixedData, user: userData });
return resData;
return wrapErrorHint(resData);
}

async function recursionFetchNode(parentNodeId, topNodeId) {


불러오는 중...
취소
저장