Merge branch 'dev-wangyiming'
# Conflicts: # src/views/user/orderManagement/index.vue
This commit is contained in:
commit
3de81a1272
|
|
@ -33,7 +33,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref, nextTick } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { Base64 } from 'js-base64'
|
||||
// import { Base64 } from 'js-base64'
|
||||
const tmpUploadUrl = import.meta.env.VITE_API_URL +"/zlpt-file/file/cos/upload"
|
||||
console.log("tmpUploadUrl",tmpUploadUrl)
|
||||
const actionUrl = ref(tmpUploadUrl)
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
},
|
||||
extraData: {}, //上传时的额外参数 如 name等
|
||||
|
||||
/*
|
||||
/*
|
||||
{
|
||||
name:'12321'
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
url: response.data,
|
||||
name: file.name
|
||||
})
|
||||
|
||||
|
||||
} else {
|
||||
ElMessage({
|
||||
type: 'warning',
|
||||
|
|
@ -218,11 +218,11 @@
|
|||
//预览 'doc', 'docx', 'xlsx', 'xls', 'txt' 文件
|
||||
name = name.replace(/&/g, '') // & 不兼容
|
||||
const target = encodeURIComponent(
|
||||
Base64.encode(
|
||||
`${location.origin}/api/abk/web/v1/resource/file?fileId=${
|
||||
url || response.data
|
||||
}&fullfilename=${name}&sid=4AC67ADB4E264AB0A8B899A671072875`
|
||||
)
|
||||
// Base64.encode(
|
||||
// `${location.origin}/api/abk/web/v1/resource/file?fileId=${
|
||||
// url || response.data
|
||||
// }&fullfilename=${name}&sid=4AC67ADB4E264AB0A8B899A671072875`
|
||||
// )
|
||||
)
|
||||
if (props.officePreviewFlag && officeType.includes(suffixFileType)) {
|
||||
// office预览的
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { get, post } from '../../index'
|
||||
|
||||
export const getGoodsClassListApi = () => {
|
||||
return get('/zlpt-order/maType/getEquipmentType', {})
|
||||
}
|
||||
return get('/zlpt-home/maType/getEquipmentType', {})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@ export const useStore = defineStore('myUser', {
|
|||
},
|
||||
// 获取省份信息
|
||||
async getprovinceList() {
|
||||
const res: any = await post('/zlpt-company/baseAddress/selectAddress', {})
|
||||
const res: any = await post('/zlpt-system/baseAddress/selectAddress', {})
|
||||
this.provinceList = res.data
|
||||
|
||||
},
|
||||
// 获取市级信息
|
||||
async getmarketList(val: any) {
|
||||
const res: any = await post('/zlpt-company/baseAddress/selectAddress', { code: val })
|
||||
const res: any = await post('/zlpt-system/baseAddress/selectAddress', { code: val })
|
||||
console.log(res, '市区信息');
|
||||
this.marketList = res.data
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ export const useStore = defineStore('myUser', {
|
|||
},
|
||||
// 获取区级信息
|
||||
async getareaList(val: any) {
|
||||
const res: any = await post('/zlpt-company/baseAddress/selectAddress', { code: val })
|
||||
const res: any = await post('/zlpt-system/baseAddress/selectAddress', { code: val })
|
||||
this.areaList = res.data
|
||||
},
|
||||
// 获取证件类型
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
<div class="business">
|
||||
<img
|
||||
:src="pageData.companyLogoUrl"
|
||||
src="@/assets/img/bns-logo.png"
|
||||
class="avatar"/>
|
||||
<div class="fonts">
|
||||
<div class="name">{{ pageData.companyName }}</div>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<div class="label">
|
||||
{{ v.list[v.index].name }}
|
||||
</div>
|
||||
<div class="select">
|
||||
<div class="select" :style=" i == 0 ? 'min-height:105px' : ''">
|
||||
<div class="item"
|
||||
@click="selectScreen(i,val,v.index)"
|
||||
v-for="(val,index) in v.list[v.index].select" :key="index">
|
||||
|
|
|
|||
|
|
@ -4,181 +4,186 @@
|
|||
import { getGoodsClassListApi } from 'http/api/home'
|
||||
import { useStore } from 'store/main'
|
||||
import { getHotList } from 'http/api/equip'
|
||||
import {reactive} from "vue";
|
||||
const router = useRouter()
|
||||
|
||||
const leftNavList = ref([])
|
||||
// 获取商品分类
|
||||
const getGoodsClassList = async () => {
|
||||
const res = await getGoodsClassListApi()
|
||||
console.log(res, '商品分类列表')
|
||||
|
||||
leftNavList.value = res.rows
|
||||
}
|
||||
|
||||
getGoodsClassList()
|
||||
|
||||
const leftNavList = [
|
||||
{
|
||||
name: '全部商品',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [
|
||||
{ goodsName: '履带挖掘机' },
|
||||
{ goodsName: '履带挖掘机' },
|
||||
{ goodsName: '履带挖掘机' },
|
||||
{ goodsName: '履带挖掘机' },
|
||||
{ goodsName: '履带挖掘机' },
|
||||
{ goodsName: '履带挖掘机' }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '挖掘机',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '土方机械',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '工程起重机械',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '动力设备',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '压实机械',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '路桥机械',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '混凝土机械',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: '桩工机械',
|
||||
children: [
|
||||
{
|
||||
title: '挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '开沟机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
},
|
||||
{
|
||||
title: '斗轮挖掘机',
|
||||
children: [{ goodsName: '履带挖掘机' }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
// [
|
||||
// {
|
||||
// name: '全部商品',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [
|
||||
// { goodsName: '履带挖掘机' },
|
||||
// { goodsName: '履带挖掘机' },
|
||||
// { goodsName: '履带挖掘机' },
|
||||
// { goodsName: '履带挖掘机' },
|
||||
// { goodsName: '履带挖掘机' },
|
||||
// { goodsName: '履带挖掘机' }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '挖掘机',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '土方机械',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '工程起重机械',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '动力设备',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '压实机械',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '路桥机械',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '混凝土机械',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// name: '桩工机械',
|
||||
// children: [
|
||||
// {
|
||||
// title: '挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '开沟机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// },
|
||||
// {
|
||||
// title: '斗轮挖掘机',
|
||||
// children: [{ goodsName: '履带挖掘机' }]
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// ]
|
||||
const handlerGoodsDetails = () => {
|
||||
console.log('去往商品详情页')
|
||||
|
||||
}
|
||||
|
||||
const detailsList = ref([
|
||||
|
|
@ -231,15 +236,15 @@
|
|||
{{ item.name }}
|
||||
<ul class="sub-goods">
|
||||
<!-- 级联框内 类别名称 -->
|
||||
<li v-for="child in item.children" :key="child.title">
|
||||
<span>{{ child.title }}</span>
|
||||
<li v-for="child in item.children" :key="child.id">
|
||||
<span>{{ child.name }}</span>
|
||||
<span>
|
||||
<!-- 小类名称 -->
|
||||
<a
|
||||
v-for="son in child.children"
|
||||
:key="son.goodsName"
|
||||
:key="son.id"
|
||||
@click="handlerGoodsDetails">
|
||||
{{ son.goodsName }}
|
||||
{{ son.name }}
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue