Browse Source

修复:黄家明项目一直已知问题

dev
科技小王子 1 month ago
parent
commit
d074f2ad31
  1. 4
      .env.production
  2. 8
      src/store/modules/user.ts
  3. 2
      src/views/hjm/hjmCar/components/hjmCarEdit.vue
  4. 7
      src/views/hjm/hjmCar/components/search.vue
  5. 14
      src/views/hjm/hjmCar/index.vue

4
.env.production

@ -1,4 +1,8 @@
VITE_APP_NAME=后台管理系统
#VITE_SOCKET_URL=wss://server.gxwebsoft.com
#VITE_SERVER_URL=https://server.gxwebsoft.com/api
#VITE_API_URL=https://cms-api.websoft.top/api
VITE_SOCKET_URL=wss://server.gxwebsoft.com
VITE_SERVER_URL=https://server.gxwebsoft.com/api
VITE_API_URL=https://cms-api.websoft.top/api

8
src/store/modules/user.ts

@ -10,7 +10,6 @@ import {getUserInfo} from '@/api/layout';
import { initialization } from '@/api/layout';
import {clone} from "@/api/system/menu";
import { message } from 'ant-design-vue/es';
import { Modal } from 'ant-design-vue';
import {logout} from "@/utils/page-tab-util";
// import { isExternalLink } from 'ele-admin-pro';
const EXTRA_MENUS: any = [];
@ -43,14 +42,7 @@ export const useUserStore = defineStore({
// const company = await getTenantInfo().catch(() => void 0);
const result = await getUserInfo().catch(() => {});
if (!result) {
Modal.info({
title: '系统提示',
content: '网站已被关停,请登录控制台查看具体原因!',
okText: '重新登录',
onOk: () => {
logout(false, '/login');
}
});
return {};
}
// 系统初始化

2
src/views/hjm/hjmCar/components/hjmCarEdit.vue

@ -307,7 +307,7 @@
);
if (find) {
if (d.value == index) {
form.code = `${find.organizationCode}${d.organizationCode}`;
form.code = `${find.organizationCode}`;
form.organizationParentId = find.organizationId;
form.organizationId = d.organizationId;
organizationId.value = find.organizationId;

7
src/views/hjm/hjmCar/components/search.vue

@ -112,7 +112,14 @@
};
const reload = () => {
const isParent = props.organizationList.find(d => d.organizationId == where.organizationId);
if(isParent){
where.organizationParentId = isParent.organizationId;
where.organizationId = undefined;
emit('search', where);
}else {
emit('search', where);
}
};
//

14
src/views/hjm/hjmCar/index.vue

@ -154,13 +154,13 @@ const datasource: DatasourceFunction = ({
//
const columns = ref<ColumnItem[]>([
{
title: 'ID',
dataIndex: 'id',
key: 'id',
align: 'center',
width: 90,
},
// {
// title: 'ID',
// dataIndex: 'id',
// key: 'id',
// align: 'center',
// width: 90,
// },
{
title: '车辆编号',
dataIndex: 'code',

Loading…
Cancel
Save