fix: BUG修改

This commit is contained in:
kun 2023-07-31 14:26:28 +08:00
parent 6febe6169d
commit bdf5cf5ead
25 changed files with 142 additions and 94 deletions

View File

@ -2,10 +2,10 @@
NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用)
VITE_API_URL = 'http://192.168.34.155:6688'
# VITE_API_URL = 'http://192.168.34.155:6688'
# VITE_API_URL = 'http://2xliv7gs.shenzhuo.vip:55296'
VITE_WPAPI_URL = "http://182.90.224.147:8081"
# VITE_API_URL = "http://182.90.224.147:9013"
VITE_API_URL = "http://182.90.224.147:9013"
# 上传
# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -4,14 +4,20 @@
width: 100%;
height: 100%;
.leftMenu {
width: 300px;
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 170px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -99,7 +99,7 @@ const pages = ref({
total: 0
});
const records = ref<ResAiProjectPage[] | ResAiEngineerPage[]>([]);
const active = ref(0);
const active = ref(1);
const store = GlobalStore();
interface formData {
title: string;
@ -254,7 +254,7 @@ watch(
);
onMounted(async () => {
getVideoData();
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -144,7 +144,7 @@ const headerList = reactive([
{ label: "暂停状态", color: "#C13F5B" }
]);
const colors = ref(["#D0A530", "#35e5fd", "#f1d520", "#4fd389", "#F80840", "#fc6f8e", "#C13F5B"]);
const active = ref(0);
const active = ref(1);
const records = ref<ResAiProjectPage[] | ResAiEngineerPage[]>([]);
const projects = ref([]);
const pages = ref({
@ -360,7 +360,7 @@ const getEngPage = async () => {
onBeforeMount(() => {});
onMounted(async () => {
getDataList();
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;
@ -595,6 +595,9 @@ watch(
.tab.active {
color: #0bc4f0;
}
.tab-wrapper {
display: none;
}
.isActive {
background-color: #09314e;
}

View File

@ -6,12 +6,17 @@
.leftMenu {
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -254,7 +254,7 @@ const pages = ref({
total: 0
});
const records = ref<ResAiProjectPage[] | ResAiEngineerPage[]>([]);
const active = ref(0);
const active = ref(1);
const baseUrl = import.meta.env.VITE_API_URL;
const globalStore = GlobalStore();
const fileList = ref([]);
@ -380,23 +380,6 @@ const searchSn = ref("");
//
const searchName = ref<string>("");
// dataCallback list && total && pageNum && pageSize
// hooks/useTable.ts
const dataCallback = (data: any) => {
// console.log(data);
return {
list: data.records,
total: Number(data.total),
pageNo: Number(data.current),
pageSize: Number(data.size)
};
};
// params
// ProTable :requestApi="getUserList"
const getTableList = (params: any) => {
let newParams = JSON.parse(JSON.stringify(params));
return getRealTimePage(newParams);
};
// div
const onSearch = async (params: ResAiProjectPage | ResAiEngineerPage) => {
const { result } = await getAIQuestionPage(
@ -500,7 +483,7 @@ watch(
);
onMounted(async () => {
getVideoData();
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -7,12 +7,17 @@
width: 300px;
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -89,7 +89,7 @@ const pages = ref({
total: 0
});
const records = ref([]);
const active = ref(0);
const active = ref(1);
const store = GlobalStore();
const headers = ref({ Authorization: "Bearer " + store.token });
const baseUrl = import.meta.env.VITE_API_URL;
@ -236,7 +236,7 @@ watch(
}
);
onMounted(async () => {
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = records.value[0].projectSn;
searchName.value = records.value[0].projectName;

View File

@ -7,12 +7,17 @@
width: 300px;
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -110,7 +110,7 @@ const pages = ref({
total: 0
});
const records = ref([]);
const active = ref(0);
const active = ref(1);
const fileList = ref([]);
const store = GlobalStore();
// {
@ -445,7 +445,7 @@ watch(
}
);
onMounted(async () => {
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = records.value[0].projectSn;
searchName.value = records.value[0].projectName;

View File

@ -7,12 +7,17 @@
width: 300px;
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
font-size: 20px;

View File

@ -94,7 +94,7 @@ const pages = ref({
});
const records = ref<ResAiProjectPage[] | ResAiEngineerPage[]>([]);
const DicMainList = ref([]);
const active = ref(0);
const active = ref(1);
const store = GlobalStore();
//
const columns: ColumnProps[] = [
@ -510,7 +510,7 @@ watch(
);
onMounted(async () => {
getDicMainList();
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -7,12 +7,17 @@
width: 300px;
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -92,7 +92,7 @@ const relativeId = ref("");
const detailsDialog = ref(false);
const globalStore = GlobalStore();
const openVisible = ref(false);
const active = ref(0);
const active = ref(1);
const records = ref([]);
//
const formConfig = {
@ -333,7 +333,7 @@ watch(
}
);
onMounted(async () => {
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = records.value[0].projectSn;
searchName.value = records.value[0].projectName;

View File

@ -7,12 +7,17 @@
width: 300px;
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -127,7 +127,7 @@ const pages = ref({
});
const router = useRouter();
const records = ref<ResAiProjectPage[] | ResAiEngineerPage[]>([]);
const active = ref(0);
const active = ref(1);
const fileList = ref([]);
const store = GlobalStore();
// {
@ -442,7 +442,7 @@ watch(
);
onMounted(async () => {
getVideoData();
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -6,12 +6,17 @@
.leftMenu {
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -201,7 +201,7 @@ const pageable = ref({
pageSize: 12,
total: 0
});
const active = ref(0);
const active = ref(1);
const detailsDialog = ref(false);
const orderDialog = ref(false);
const relativeId = ref("");
@ -333,7 +333,7 @@ watch(
}
);
onMounted(async () => {
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -6,12 +6,17 @@
.leftMenu {
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -170,7 +170,7 @@ const pageable = ref({
pageSize: 12,
total: 0
});
const active = ref(0);
const active = ref(1);
const detailsDialog = ref(false);
const orderDialog = ref(false);
const relativeId = ref("");
@ -301,7 +301,7 @@ watch(
}
);
onMounted(async () => {
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -6,12 +6,17 @@
.leftMenu {
// width: 290px;
// 页面的项目工程
:deep(.item) {
:deep() {
.item {
height: 78px !important;
}
:deep(.content) {
.content {
height: calc(100% - 160px) !important;
}
.tab-wrapper {
display: none;
}
}
.leftProject {
// padding: 5px 8px;
color: #333333;

View File

@ -77,7 +77,7 @@ const pages = ref({
total: 0
});
const records = ref<ResAiProjectPage[] | ResAiEngineerPage[]>([]);
const active = ref(0);
const active = ref(1);
const fileList = ref([]);
const store = GlobalStore();
//
@ -294,7 +294,7 @@ watch(
);
onMounted(async () => {
getVideoData();
await getProPage();
await getEngPage();
onSearch(records.value[0]);
searchSn.value = (records.value as ResAiProjectPage[])[0].projectSn;
searchName.value = (records.value as ResAiProjectPage[])[0].projectName;

View File

@ -57,7 +57,7 @@ const pageable = reactive({
total: 0
});
const active = ref("first");
const active = ref("two");
const parentTitle = ref<string>("");
const rightForm = ref<rightFormList>({
createTime: "",
@ -245,4 +245,12 @@ onMounted(async () => {
:deep(.btn-next) {
border: 1px solid #e5e5e5;
}
:deep() {
.el-tabs__header {
display: none;
}
.el-tabs__content {
margin-top: 15px;
}
}
</style>

View File

@ -227,6 +227,9 @@
.tab.active {
color: #0bc4f0;
}
.tab-wrapper {
display: none;
}
.isActive {
background-color: #09314e;
}

View File

@ -138,7 +138,7 @@ const BDMaps = ref<any>({});
const router = useRouter();
const globalStore = GlobalStore();
const active = ref(0);
const active = ref(1);
const pages = ref({
pageNo: 1,
pageSize: 7,
@ -397,7 +397,7 @@ onMounted(async () => {
getproList();
await mapData();
addMarker();
await getAIproPage();
await getAIengPage();
onSearch(records.value[0]);
// addMarker();
});