个人中心修改

This commit is contained in:
songyang 2023-12-08 20:29:37 +08:00
parent 7aed73fbbf
commit 1a2819b023
5 changed files with 84 additions and 71 deletions

72
components.d.ts vendored
View File

@ -3,34 +3,29 @@
// @ts-nocheck // @ts-nocheck
// Generated by unplugin-vue-components // Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399 // Read more: https://github.com/vuejs/core/pull/3399
export { } export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCarousel: typeof import('element-plus/es')['ElCarousel'] ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElCascader: typeof import('element-plus/es')['ElCascader']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCascader: typeof import('element-plus/es')['ElCascader'] ElCol: typeof import('element-plus/es')['ElCol']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElCol: typeof import('element-plus/es')['ElCol'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElDialog: typeof import('element-plus/es')['ElDialog']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElForm: typeof import('element-plus/es')['ElForm']
ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElForm: typeof import('element-plus/es')['ElForm'] ElIcon: typeof import('element-plus/es')['ElIcon']
ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElImage: typeof import('element-plus/es')['ElImage']
ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput']
ElInput: typeof import('element-plus/es')['ElInput'] ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
<<<<<<< HEAD
ElPagination: typeof import('element-plus/es')['ElPagination']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
=======
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
ElPageHeader: typeof import('element-plus/es')['ElPageHeader']
ElPagination: typeof import('element-plus/es')['ElPagination'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElProgress: typeof import('element-plus/es')['ElProgress'] ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
@ -40,18 +35,19 @@ declare module 'vue' {
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag'] ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElUpload: typeof import('element-plus/es')['ElUpload'] ElUpload: typeof import('element-plus/es')['ElUpload']
>>>>>>> dev-songyang EquipCard: typeof import('./src/components/equipCard.vue')['default']
EquipCard: typeof import('./src/components/equipCard.vue')['default'] EquipDetailTable: typeof import('./src/components/equipDetailTable.vue')['default']
EquipDetailTable: typeof import('./src/components/equipDetailTable.vue')['default'] FooterInfo: typeof import('./src/components/FooterInfo/index.vue')['default']
FooterInfo: typeof import('./src/components/FooterInfo/index.vue')['default'] FormComponent: typeof import('./src/components/FormComponent/index.vue')['default']
FormComponent: typeof import('./src/components/FormComponent/index.vue')['default'] Navmenu: typeof import('./src/components/Navmenu/index.vue')['default']
Navmenu: typeof import('./src/components/Navmenu/index.vue')['default'] PagingComponent: typeof import('./src/components/PagingComponent/index.vue')['default']
PagingComponent: typeof import('./src/components/PagingComponent/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink']
RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView']
RouterView: typeof import('vue-router')['RouterView'] TableComponent: typeof import('./src/components/TableComponent/index.vue')['default']
TableComponent: typeof import('./src/components/TableComponent/index.vue')['default'] UploadComponent: typeof import('./src/components/uploadComponent/index.vue')['default']
UploadComponent: typeof import('./src/components/uploadComponent/index.vue')['default'] UploadImg: typeof import('./src/components/uploadImg.vue')['default']
UploadImg: typeof import('./src/components/uploadImg.vue')['default'] }
}
} }

4
env/.env.dev vendored
View File

@ -5,9 +5,9 @@ VITE_BUILD_MODE = 'dev'
VITE_API_URL = '/proxyApi' VITE_API_URL = '/proxyApi'
# 开发环境接口地址 # 开发环境接口地址
VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭 # VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
# VITE_proxyTarget = 'http://10.40.92.186:8080' # 赵福海 (登录) VITE_proxyTarget = 'http://10.40.92.186:8080' # 赵福海 (登录)
# VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型) # VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型)
# VITE_proxyTarget = 'http://10.40.92.253:8080' # 牛 (个人中心 基础信息企业申请认证) # VITE_proxyTarget = 'http://10.40.92.253:8080' # 牛 (个人中心 基础信息企业申请认证)

View File

@ -258,7 +258,7 @@
/* 设备图片 */ /* 设备图片 */
{ {
id: '20', id: '20',
utr: 'https://zlpt-1259760603.cos.ap-nanjing.myqcloud.com/488bab245180ebf9f1f3d7db5301be4.png' utr: 'https://zlpt-1259760603.cos.ap-nanjing.myqcloud.com/DemoData/10/655f1724956e0b38bf6adb6087123f7e_b.jpg'
} }
], ],
/* 设备状态 */ /* 设备状态 */

View File

@ -24,7 +24,7 @@
getList() getList()
} }
const tableData = ref([{ supplierCompany: '供应商' }]) const tableData = ref([])
/* 退租按钮 */ /* 退租按钮 */
const clickRentingTermination = () => { const clickRentingTermination = () => {
@ -104,6 +104,7 @@
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
show-overflow-tooltip
:header-cell-style="{ :header-cell-style="{
background: '#3E98FF', background: '#3E98FF',
color: '#fff' color: '#fff'
@ -121,7 +122,7 @@
<el-tag v-if="row.orderStatus == 36">进行中</el-tag> <el-tag v-if="row.orderStatus == 36">进行中</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="name" label="操作" width="320px"> <el-table-column align="left" prop="name" label="操作" width="160px">
<template #default="scope"> <template #default="scope">
<el-button size="small" type="primary" @click="clickPreviewDetails(scope.row)"> <el-button size="small" type="primary" @click="clickPreviewDetails(scope.row)">
查看 查看

View File

@ -47,7 +47,7 @@
}) })
} }
const tableData: any = ref([{ address: '客户单位' }]) const tableData: any = ref([])
const time = ref([]) const time = ref([])
</script> </script>
@ -83,33 +83,49 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 表格 --> <!-- 表格 -->
<el-table <el-table
:data="tableData" :data="tableData"
show-overflow-tooltip show-overflow-tooltip
:header-cell-style="{ :header-cell-style="{
background: '#3E98FF', background: '#3E98FF',
color: '#fff' color: '#fff'
}" }"
fit> fit>
<el-table-column align="center" prop="code" label="订单编号" /> <el-table-column align="center" prop="code" label="订单编号" />
<el-table-column align="center" prop="supplierCompany" label="客户单位" /> <el-table-column align="center" prop="supplierCompany" label="客户单位" />
<el-table-column align="center" prop="time" label="订单创建日期" /> <el-table-column align="center" prop="time" label="订单创建日期" />
<el-table-column align="center" prop="orderPhone" label="联系方式" /> <el-table-column align="center" prop="orderPhone" label="联系方式" />
<el-table-column align="center" prop="typeName" label="装备类型" /> <el-table-column align="center" prop="typeName" label="装备类型" />
<el-table-column align="center" prop="deviceName" label="装备名称" /> <el-table-column align="center" prop="deviceName" label="装备名称" />
<el-table-column align="center" prop="orderStatus" label="订单状态" /> <el-table-column align="center" prop="orderStatus" label="订单状态" />
<el-table-column align="center" prop="name" label="操作" width="260px"> <el-table-column align="center" prop="name" label="操作" width="260px">
<template #default="{ row }"> <template #default="{ row }">
<el-button size="small" type="primary" @click="confirmBtn(row)" v-if="row.orderStatus==31">确认</el-button> <el-button
<el-button size="small" type="warning" @click="clickPreviewDetails(row)" v-if="row.orderStatus!=31"> size="small"
查看 type="primary"
</el-button> @click="confirmBtn(row)"
<el-button size="small" type="danger" v-if="row.orderStatus=39">删除</el-button> v-if="row.orderStatus == 31">
<el-button size="small" type="success" @click="settlementBtn" v-if="row.orderStatus=34">结算</el-button> 确认
</template> </el-button>
</el-table-column> <el-button
</el-table> size="small"
type="warning"
@click="clickPreviewDetails(row)"
v-if="row.orderStatus != 31">
查看
</el-button>
<el-button size="small" type="danger" v-if="(row.orderStatus = 39)">删除</el-button>
<el-button
size="small"
type="success"
@click="settlementBtn"
v-if="(row.orderStatus = 34)">
结算
</el-button>
</template>
</el-table-column>
</el-table>
<PagingComponent <PagingComponent
@getList="getList" @getList="getList"