Merge branch 'main' into dev-wangyiming
This commit is contained in:
commit
ea24ddefee
|
|
@ -10,16 +10,11 @@ declare module 'vue' {
|
||||||
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']
|
||||||
ElCascader: typeof import('element-plus/es')['ElCascader']
|
|
||||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||||
ElCol: typeof import('element-plus/es')['ElCol']
|
ElCol: typeof import('element-plus/es')['ElCol']
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
|
||||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
|
||||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
|
||||||
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
|
||||||
ElForm: typeof import('element-plus/es')['ElForm']
|
ElForm: typeof import('element-plus/es')['ElForm']
|
||||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||||
|
|
@ -29,15 +24,12 @@ declare module 'vue' {
|
||||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||||
|
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
||||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
|
||||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
|
||||||
ElRow: typeof import('element-plus/es')['ElRow']
|
ElRow: typeof import('element-plus/es')['ElRow']
|
||||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||||
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']
|
||||||
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
|
||||||
ElTabs: typeof import('element-plus/es')['ElTabs']
|
|
||||||
ElTag: typeof import('element-plus/es')['ElTag']
|
ElTag: typeof import('element-plus/es')['ElTag']
|
||||||
ElUpload: typeof import('element-plus/es')['ElUpload']
|
ElUpload: typeof import('element-plus/es')['ElUpload']
|
||||||
EquipCard: typeof import('./src/components/equipCard.vue')['default']
|
EquipCard: typeof import('./src/components/equipCard.vue')['default']
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,53 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const emit = defineEmits(['getList'])
|
|
||||||
// 每页数量值改变
|
// 每页数量值改变
|
||||||
const handleSizeChange = (val: Number) => {
|
const handleSizeChange = (val: Number) => {
|
||||||
|
emit('update:pageSize', val)
|
||||||
// 传递每页数量
|
// 传递每页数量
|
||||||
emit('getList', val)
|
emit('getListChange')
|
||||||
}
|
}
|
||||||
// 页码值改变
|
// 页码值改变
|
||||||
const handleCurrentChange = (val: Number) => {
|
const handleCurrentChange = (val: Number) => {
|
||||||
|
emit('update:pageNum', val)
|
||||||
// 传递页码值
|
// 传递页码值
|
||||||
emit('getList', val)
|
emit('getListChange')
|
||||||
}
|
}
|
||||||
|
|
||||||
defineProps<Props>()
|
const props = withDefaults(
|
||||||
interface Props {
|
defineProps<{
|
||||||
pageSize?: 20
|
page?: number
|
||||||
pageNumber?: 1
|
size?: number
|
||||||
total?: 0
|
total?: number
|
||||||
}
|
}>(),
|
||||||
|
{
|
||||||
|
page: 1,
|
||||||
|
size: 10,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
const emit = defineEmits(['getListChange', 'update:pageSize', 'update:pageNum'])
|
||||||
|
|
||||||
|
const currentPage = computed({
|
||||||
|
get: () => {
|
||||||
|
return props.page
|
||||||
|
},
|
||||||
|
set: (val: number) => {
|
||||||
|
emit('update:pageNum', val)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const pageSize = computed({
|
||||||
|
get: () => {
|
||||||
|
return props.size
|
||||||
|
},
|
||||||
|
set: (val: number) => {
|
||||||
|
emit('update:pageSize', val)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// const paginationData = reactive({
|
||||||
|
// pageSize: Props.pageSize,
|
||||||
|
// pageNumber: Props.pageNumber
|
||||||
|
// })
|
||||||
|
|
||||||
// const handleTotalText = () => {
|
// const handleTotalText = () => {
|
||||||
// const targetDom: any = document.querySelector('.el-pagination__total')
|
// const targetDom: any = document.querySelector('.el-pagination__total')
|
||||||
|
|
@ -30,9 +61,9 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="pageNumber"
|
v-model:current-page="currentPage"
|
||||||
:page-size="pageSize"
|
v-model:page-size="pageSize"
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
:page-sizes="[5, 10, 20, 40]"
|
||||||
small="small"
|
small="small"
|
||||||
background="background"
|
background="background"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
// 个人中心 承租下的商品管理
|
// 个人中心 承租下的商品管理
|
||||||
|
|
||||||
import { get, post } from '../../index'
|
import { get, post, put } from '../../index'
|
||||||
|
|
||||||
// 装备入驻提交
|
// 新增装备入驻提交
|
||||||
export const equipmentDeploymentApi = (data: any) => {
|
export const equipmentDeploymentApi = (data: any) => {
|
||||||
return post('/zlpt-equip/dev', data)
|
return post('/zlpt-equip/dev', data)
|
||||||
}
|
}
|
||||||
|
// 装备入驻修改提交
|
||||||
|
export const equipmentEditApi = (data: any) => {
|
||||||
|
return put('/zlpt-equip/dev', data)
|
||||||
|
}
|
||||||
|
|
||||||
// 获取商品入驻列表
|
// 获取商品入驻列表
|
||||||
export const getEquipmentListApi = (data: any) => {
|
export const getEquipmentListApi = (data: any) => {
|
||||||
|
|
|
||||||
|
|
@ -370,6 +370,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||||
isLogin: true
|
isLogin: true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
/* 专区管理 */
|
||||||
{
|
{
|
||||||
path: 'zoneManag',
|
path: 'zoneManag',
|
||||||
name: 'zoneManag',
|
name: 'zoneManag',
|
||||||
|
|
@ -381,6 +382,18 @@ const routes: Array<RouteRecordRaw> = [
|
||||||
isLogin: true
|
isLogin: true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
/* 申请加入专区页面 */
|
||||||
|
{
|
||||||
|
path: 'joinZone',
|
||||||
|
name: 'joinZone',
|
||||||
|
component: () => import('views/user/zoneManag/zoneCom/joinZone.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '请加入专区',
|
||||||
|
keepAlive: true,
|
||||||
|
AuthFlag: false,
|
||||||
|
isLogin: true
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
import FormComponent from 'components/FormComponent/index.vue'
|
import FormComponent from 'components/FormComponent/index.vue'
|
||||||
import PagingComponent from 'components/PagingComponent/index.vue'
|
import PagingComponent from 'components/PagingComponent/index.vue'
|
||||||
import uploadComponent from 'components/uploadComponent/index.vue'
|
import uploadComponent from 'components/uploadComponent/index.vue'
|
||||||
|
import previewImg from './previewImg/index.vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
|
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
@ -15,7 +16,8 @@
|
||||||
import {
|
import {
|
||||||
equipmentDeploymentApi,
|
equipmentDeploymentApi,
|
||||||
getEquipmentListApi,
|
getEquipmentListApi,
|
||||||
deleteGoodstApi
|
deleteGoodstApi,
|
||||||
|
equipmentEditApi
|
||||||
} from 'http/api/usercenter/goodsmang'
|
} from 'http/api/usercenter/goodsmang'
|
||||||
|
|
||||||
// 注册地址拼装
|
// 注册地址拼装
|
||||||
|
|
@ -29,6 +31,17 @@
|
||||||
store.getDeviceTypeList()
|
store.getDeviceTypeList()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/* 查询参数 */
|
||||||
|
const queryParams: any = ref({
|
||||||
|
code: '',
|
||||||
|
maStatus: '',
|
||||||
|
leaseScope: '',
|
||||||
|
typeName: '',
|
||||||
|
deviceName: '',
|
||||||
|
pageSize: 10,
|
||||||
|
pageNum: 1
|
||||||
|
})
|
||||||
|
|
||||||
// 省级数据源
|
// 省级数据源
|
||||||
const selProvinceList: any = computed(() => {
|
const selProvinceList: any = computed(() => {
|
||||||
return store.provinceList
|
return store.provinceList
|
||||||
|
|
@ -65,6 +78,9 @@
|
||||||
/* 编辑 */
|
/* 编辑 */
|
||||||
const isEditDisabled = ref(false)
|
const isEditDisabled = ref(false)
|
||||||
|
|
||||||
|
/* 入驻框的标题 */
|
||||||
|
const settleinTitle = ref('')
|
||||||
|
|
||||||
// 省级下拉框选中时获取市级
|
// 省级下拉框选中时获取市级
|
||||||
const changeProvince = (val: any) => {
|
const changeProvince = (val: any) => {
|
||||||
// console.log(val, '省选择**')
|
// console.log(val, '省选择**')
|
||||||
|
|
@ -158,16 +174,15 @@
|
||||||
maStatus: 15
|
maStatus: 15
|
||||||
})
|
})
|
||||||
|
|
||||||
const pageSize = 20
|
|
||||||
const pageNumber = 1
|
|
||||||
const total: any = ref(0)
|
const total: any = ref(0)
|
||||||
|
|
||||||
const tableData: any = ref([])
|
const tableData: any = ref([])
|
||||||
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
const res: any = await getEquipmentListApi({})
|
console.log(queryParams.value.pageNum, '***9999', queryParams.value.pageSize)
|
||||||
console.log('商品管理99999', res)
|
const res: any = await getEquipmentListApi(queryParams.value)
|
||||||
|
console.log(res, '列表数据**--**')
|
||||||
|
|
||||||
total.value = res.total
|
total.value = res.total
|
||||||
tableData.value = res.rows.filter((item: any) => item !== null)
|
tableData.value = res.rows.filter((item: any) => item !== null)
|
||||||
|
|
@ -181,6 +196,8 @@
|
||||||
|
|
||||||
// 编辑按钮
|
// 编辑按钮
|
||||||
const editRowInfo = (row: any) => {
|
const editRowInfo = (row: any) => {
|
||||||
|
settleinTitle.value = '装备入驻编辑'
|
||||||
|
// row.fileList = []
|
||||||
getRowList(row)
|
getRowList(row)
|
||||||
isEditDisabled.value = true
|
isEditDisabled.value = true
|
||||||
disabledForm.value = false
|
disabledForm.value = false
|
||||||
|
|
@ -199,6 +216,7 @@
|
||||||
|
|
||||||
/* 查看按钮 */
|
/* 查看按钮 */
|
||||||
const previewRowInfo = (row: any) => {
|
const previewRowInfo = (row: any) => {
|
||||||
|
settleinTitle.value = '装备入驻详情'
|
||||||
row.devPicList = []
|
row.devPicList = []
|
||||||
row.fileList.map((item) => {
|
row.fileList.map((item) => {
|
||||||
if (item.dicId == 28) {
|
if (item.dicId == 28) {
|
||||||
|
|
@ -211,6 +229,7 @@
|
||||||
row.devPicList.push(item.fileUrl)
|
row.devPicList.push(item.fileUrl)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
getRowList(row)
|
getRowList(row)
|
||||||
disabledForm.value = true
|
disabledForm.value = true
|
||||||
isEditDisabled.value = false
|
isEditDisabled.value = false
|
||||||
|
|
@ -218,20 +237,24 @@
|
||||||
|
|
||||||
const getRowList = (row: any) => {
|
const getRowList = (row: any) => {
|
||||||
equipmentDeploymentParams.value = row
|
equipmentDeploymentParams.value = row
|
||||||
equipmentDeploymentParams.value.cityId = equipmentDeploymentParams.value.cityId + ''
|
equipmentDeploymentParams.value.cityId = String(equipmentDeploymentParams.value.cityId)
|
||||||
equipmentDeploymentParams.value.areaId = equipmentDeploymentParams.value.areaId + ''
|
equipmentDeploymentParams.value.areaId = String(equipmentDeploymentParams.value.areaId)
|
||||||
equipmentDeploymentParams.value.provinceId = equipmentDeploymentParams.value.provinceId + ''
|
equipmentDeploymentParams.value.provinceId = String(
|
||||||
equipmentDeploymentParams.value.leaseScope = equipmentDeploymentParams.value.leaseScope + ''
|
equipmentDeploymentParams.value.provinceId
|
||||||
|
)
|
||||||
equipmentDeploymentParams.value.companyId = equipmentDeploymentParams.value.companyId * 1
|
equipmentDeploymentParams.value.leaseScope = String(
|
||||||
equipmentDeploymentParams.value.groupId = equipmentDeploymentParams.value.groupId * 1
|
equipmentDeploymentParams.value.leaseScope
|
||||||
equipmentDeploymentParams.value.typeId = equipmentDeploymentParams.value.typeId * 1
|
)
|
||||||
|
|
||||||
|
equipmentDeploymentParams.value.companyId = Number(
|
||||||
|
equipmentDeploymentParams.value.companyId
|
||||||
|
)
|
||||||
|
equipmentDeploymentParams.value.groupId = Number(equipmentDeploymentParams.value.groupId)
|
||||||
|
equipmentDeploymentParams.value.typeId = Number(equipmentDeploymentParams.value.typeId)
|
||||||
dialogFormVisibleSettlein.value = true
|
dialogFormVisibleSettlein.value = true
|
||||||
store.getprovinceList()
|
store.getprovinceList()
|
||||||
store.getmarketList(row.provinceId)
|
store.getmarketList(row.provinceId)
|
||||||
store.getareaList(row.cityId)
|
store.getareaList(row.cityId)
|
||||||
|
|
||||||
store.getDeviceTypeList()
|
store.getDeviceTypeList()
|
||||||
store.getDeviceTypeSonList(row.companyId)
|
store.getDeviceTypeSonList(row.companyId)
|
||||||
store.getDeviceTypeSunList(row.groupId)
|
store.getDeviceTypeSunList(row.groupId)
|
||||||
|
|
@ -239,7 +262,9 @@
|
||||||
|
|
||||||
// 装备入驻按钮
|
// 装备入驻按钮
|
||||||
const equipmentDeployment = () => {
|
const equipmentDeployment = () => {
|
||||||
|
settleinTitle.value = '新增装备入驻'
|
||||||
isEditDisabled.value = true
|
isEditDisabled.value = true
|
||||||
|
disabledForm.value = false
|
||||||
equipmentDeploymentParams.value = {
|
equipmentDeploymentParams.value = {
|
||||||
/* 企业Id */
|
/* 企业Id */
|
||||||
ownCo: mainStore().userInfo.companyId,
|
ownCo: mainStore().userInfo.companyId,
|
||||||
|
|
@ -305,21 +330,41 @@
|
||||||
|
|
||||||
const ruleFormRef: any = ref(null)
|
const ruleFormRef: any = ref(null)
|
||||||
|
|
||||||
// 入驻框保存提交
|
/* 关闭按钮 */
|
||||||
const submitBtn = async () => {
|
const closeDialogBtn = () => {
|
||||||
ruleFormRef.value.validate((valid: any) => {
|
ruleFormRef.value.resetFields()
|
||||||
console.log(valid)
|
dialogFormVisibleSettlein.value = false
|
||||||
})
|
}
|
||||||
/* const res: any = await equipmentDeploymentApi(equipmentDeploymentParams.value)
|
|
||||||
if (res.code === 200) {
|
|
||||||
ElMessage({
|
|
||||||
type: 'success',
|
|
||||||
message: '入驻成功'
|
|
||||||
})
|
|
||||||
|
|
||||||
dialogFormVisibleSettlein.value = false
|
// 入驻框保存提交
|
||||||
getList()
|
const submitBtn = () => {
|
||||||
} */
|
ruleFormRef.value.validate(async (valid: any) => {
|
||||||
|
if (valid) {
|
||||||
|
if (settleinTitle.value === '装备入驻编辑') {
|
||||||
|
const res: any = await equipmentEditApi(equipmentDeploymentParams.value)
|
||||||
|
if (res.code === 200) {
|
||||||
|
ElMessage({
|
||||||
|
type: 'success',
|
||||||
|
message: '修改成功'
|
||||||
|
})
|
||||||
|
dialogFormVisibleSettlein.value = false
|
||||||
|
ruleFormRef.value.resetField()
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const res: any = await equipmentDeploymentApi(equipmentDeploymentParams.value)
|
||||||
|
if (res.code === 200) {
|
||||||
|
ElMessage({
|
||||||
|
type: 'success',
|
||||||
|
message: '入驻成功'
|
||||||
|
})
|
||||||
|
dialogFormVisibleSettlein.value = false
|
||||||
|
ruleFormRef.value.resetField()
|
||||||
|
getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 表单 lable 数据
|
// 表单 lable 数据
|
||||||
|
|
@ -479,6 +524,8 @@
|
||||||
|
|
||||||
/* 检测信息图片地址 */
|
/* 检测信息图片地址 */
|
||||||
const successResultCallBackFnjc = (val: any) => {
|
const successResultCallBackFnjc = (val: any) => {
|
||||||
|
equipmentDeploymentParams.value.detectionList = []
|
||||||
|
equipmentDeploymentParams.value.detectionList.push(val.msg)
|
||||||
equipmentDeploymentParams.value.fileList.push({
|
equipmentDeploymentParams.value.fileList.push({
|
||||||
dicId: '28',
|
dicId: '28',
|
||||||
fileUrl: val.msg
|
fileUrl: val.msg
|
||||||
|
|
@ -486,6 +533,8 @@
|
||||||
}
|
}
|
||||||
/* 保险信息图片地址 */
|
/* 保险信息图片地址 */
|
||||||
const successResultCallBackFnbs = (val: any) => {
|
const successResultCallBackFnbs = (val: any) => {
|
||||||
|
equipmentDeploymentParams.value.insureList = []
|
||||||
|
equipmentDeploymentParams.value.insureList.push(val.msg)
|
||||||
equipmentDeploymentParams.value.fileList.push({
|
equipmentDeploymentParams.value.fileList.push({
|
||||||
dicId: '29',
|
dicId: '29',
|
||||||
fileUrl: val.msg
|
fileUrl: val.msg
|
||||||
|
|
@ -493,6 +542,8 @@
|
||||||
}
|
}
|
||||||
/* 设备图片信息地址 */
|
/* 设备图片信息地址 */
|
||||||
const successResultCallBackFnDevicePic = (val: any) => {
|
const successResultCallBackFnDevicePic = (val: any) => {
|
||||||
|
equipmentDeploymentParams.value.picList = []
|
||||||
|
equipmentDeploymentParams.value.picList.push(val.msg)
|
||||||
if (!equipmentDeploymentParams.value.picUrl) {
|
if (!equipmentDeploymentParams.value.picUrl) {
|
||||||
equipmentDeploymentParams.value.picUrl = val.msg
|
equipmentDeploymentParams.value.picUrl = val.msg
|
||||||
}
|
}
|
||||||
|
|
@ -501,25 +552,73 @@
|
||||||
fileUrl: val.msg
|
fileUrl: val.msg
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 关闭对话框 */
|
||||||
|
const handleClose = (done: () => void) => {
|
||||||
|
ruleFormRef.value.resetFields()
|
||||||
|
done()
|
||||||
|
dialogFormVisibleSettlein.value = false
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 查询按钮 */
|
||||||
|
const queryTableList = () => {
|
||||||
|
getList()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- 商品管理 -->
|
<!-- 商品管理 -->
|
||||||
<FormComponent :formItemList="formItemList">
|
|
||||||
|
<el-form :model="queryParams" :inline="true" size="small" label-width="auto">
|
||||||
|
<el-form-item label="编码:" prop="menuName">
|
||||||
|
<el-input v-model.trim="queryParams.code" style="width: 160px" clearable />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="状态:" prop="menuName">
|
||||||
|
<el-select style="width: 160px" v-model="queryParams.maStatus" clearable>
|
||||||
|
<el-option label="待上架" value="15"></el-option>
|
||||||
|
<el-option label="待租" value="16"></el-option>
|
||||||
|
<el-option label="在租" value="17"></el-option>
|
||||||
|
<el-option label="下架" value="18"></el-option>
|
||||||
|
<el-option label="自有" value="43"></el-option>
|
||||||
|
<el-option label="待审批" value="331"></el-option>
|
||||||
|
<el-option label="上架驳回" value="332"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="租赁范围:" prop="menuName">
|
||||||
|
<el-select style="width: 160px" v-model="queryParams.leaseScope" clearable>
|
||||||
|
<el-option label="全平台" value="329"></el-option>
|
||||||
|
<el-option label="专区" value="330"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="装备类型:" prop="menuName">
|
||||||
|
<el-select style="width: 160px" v-model="queryParams.typeName" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in selDeviceTypeList"
|
||||||
|
:key="item.typeId"
|
||||||
|
:label="item.typeName"
|
||||||
|
:value="item.typeId"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="装备名称:" prop="menuName">
|
||||||
|
<el-input v-model.trim="queryParams.deviceName" style="width: 160px" clearable />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="queryTableList">查询</el-button>
|
||||||
|
<el-button type="success">重置</el-button>
|
||||||
<el-button type="primary" @click="equipmentDeployment">装备入驻</el-button>
|
<el-button type="primary" @click="equipmentDeployment">装备入驻</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</FormComponent>
|
</el-form>
|
||||||
|
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
style="width: 100%"
|
style="width: auto"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:header-cell-style="{
|
:header-cell-style="{
|
||||||
background: '#3E98FF',
|
background: '#3E98FF',
|
||||||
color: '#fff'
|
color: '#fff'
|
||||||
}">
|
}"
|
||||||
|
max-height="400px">
|
||||||
<el-table-column align="center" prop="code" label="编码" />
|
<el-table-column align="center" prop="code" label="编码" />
|
||||||
<el-table-column align="center" prop="leaseScope" label="租赁范围">
|
<el-table-column align="center" prop="leaseScope" label="租赁范围">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
|
@ -545,7 +644,7 @@
|
||||||
<el-tag v-if="row.maStatus == 332" size="small" type="danger">上架驳回</el-tag>
|
<el-tag v-if="row.maStatus == 332" size="small" type="danger">上架驳回</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="name" label="操作" width="200px" align="center">
|
<el-table-column prop="name" label="操作" min-width="160px" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.maStatus == 15 || row.maStatus == 1"
|
v-if="row.maStatus == 15 || row.maStatus == 1"
|
||||||
|
|
@ -554,7 +653,7 @@
|
||||||
@click="editRowInfo(row)">
|
@click="editRowInfo(row)">
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="small" type="primary" @click="editRowInfo(row)">编辑</el-button>
|
<!-- <el-button size="small" type="primary" @click="editRowInfo(row)">编辑</el-button> -->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.maStatus == 15 || row.maStatus == 1"
|
v-if="row.maStatus == 15 || row.maStatus == 1"
|
||||||
size="small"
|
size="small"
|
||||||
|
|
@ -569,13 +668,19 @@
|
||||||
|
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
<PagingComponent
|
<PagingComponent
|
||||||
@getList="getList"
|
@getListChange="getList"
|
||||||
:pageSize="pageSize"
|
v-model:pageSize="queryParams.pageSize"
|
||||||
:pageNumber="pageNumber"
|
v-model:currentPage="queryParams.pageNum"
|
||||||
:total="total" />
|
:total="total" />
|
||||||
|
|
||||||
<!-- 装备入驻弹框 -->
|
<!-- 装备入驻弹框 -->
|
||||||
<el-dialog v-model="dialogFormVisibleSettlein" title="装备入驻" width="60%" align-center>
|
<el-dialog
|
||||||
|
v-model="dialogFormVisibleSettlein"
|
||||||
|
:title="settleinTitle"
|
||||||
|
width="60%"
|
||||||
|
align-center
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:before-close="handleClose">
|
||||||
<el-form
|
<el-form
|
||||||
label-width="160"
|
label-width="160"
|
||||||
ref="ruleFormRef"
|
ref="ruleFormRef"
|
||||||
|
|
@ -604,7 +709,7 @@
|
||||||
v-for="item in selProvinceList"
|
v-for="item in selProvinceList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.code + ''"></el-option>
|
:value="item.code"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label-width="8px" prop="cityId">
|
<el-form-item label-width="8px" prop="cityId">
|
||||||
|
|
@ -618,7 +723,7 @@
|
||||||
v-for="item in selMarketList"
|
v-for="item in selMarketList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.code + ''"></el-option>
|
:value="item.code"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label-width="8px" prop="areaId">
|
<el-form-item label-width="8px" prop="areaId">
|
||||||
|
|
@ -632,7 +737,7 @@
|
||||||
v-for="item in selAreaList"
|
v-for="item in selAreaList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.code + ''"></el-option>
|
:value="item.code"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -741,7 +846,7 @@
|
||||||
v-if="!disabledForm || isEditDisabled"
|
v-if="!disabledForm || isEditDisabled"
|
||||||
:maxLimit="1"
|
:maxLimit="1"
|
||||||
listType="picture-card"
|
listType="picture-card"
|
||||||
:acceptTypeList="['.pdf']"
|
:acceptTypeList="['.pdf', '.jpg', '.jpeg', '.png']"
|
||||||
width="120px"
|
width="120px"
|
||||||
height="120px"
|
height="120px"
|
||||||
:autoUpload="true"
|
:autoUpload="true"
|
||||||
|
|
@ -765,7 +870,7 @@
|
||||||
v-if="!disabledForm || isEditDisabled"
|
v-if="!disabledForm || isEditDisabled"
|
||||||
:maxLimit="1"
|
:maxLimit="1"
|
||||||
listType="picture-card"
|
listType="picture-card"
|
||||||
:acceptTypeList="['.pdf']"
|
:acceptTypeList="['.pdf', '.jpg', '.jpeg', '.png']"
|
||||||
width="120px"
|
width="120px"
|
||||||
height="120px"
|
height="120px"
|
||||||
:autoUpload="true"
|
:autoUpload="true"
|
||||||
|
|
@ -842,12 +947,15 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<template v-if="disabledForm && !isEditDisabled">
|
<template v-if="disabledForm && !isEditDisabled">
|
||||||
<el-image
|
<template v-if="equipmentDeploymentParams.devPicList.length > 0">
|
||||||
v-for="item in equipmentDeploymentParams.devPicList"
|
<el-image
|
||||||
:key="item"
|
v-for="item in equipmentDeploymentParams.devPicList"
|
||||||
style="width: 120px; height: 120px; margin-right: 8px"
|
:key="item"
|
||||||
:src="item"
|
style="width: 120px; height: 120px; margin-right: 8px"
|
||||||
fit="cover" />
|
:src="item"
|
||||||
|
fit="cover" />
|
||||||
|
</template>
|
||||||
|
<template v-else>暂无图片</template>
|
||||||
</template>
|
</template>
|
||||||
<!-- <el-image
|
<!-- <el-image
|
||||||
style="width: 120px; height: 120px; margin-right: 8px"
|
style="width: 120px; height: 120px; margin-right: 8px"
|
||||||
|
|
@ -861,10 +969,10 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button type="primary" @click="dialogFormVisibleSettlein = false">
|
<el-button type="primary" @click="closeDialogBtn">关 闭</el-button>
|
||||||
关 闭
|
<el-button @click="submitBtn" v-if="!disabledForm || isEditDisabled" type="success">
|
||||||
|
提 交
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="submitBtn">保 存</el-button>
|
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,59 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
|
const deleteIcon = () => {
|
||||||
|
ElMessageBox.confirm('是否确定移除文件,并重新上传?', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
ElMessage({
|
||||||
|
type: 'success',
|
||||||
|
message: '已移除'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {})
|
||||||
|
}
|
||||||
|
const srcList = ref([''])
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
imgUrl: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="img-container">
|
||||||
|
<el-image
|
||||||
|
style="width: 120px; height: 120px"
|
||||||
|
:src="imgUrl"
|
||||||
|
fit="cover"
|
||||||
|
:zoom-rate="1.2"
|
||||||
|
:max-scale="7"
|
||||||
|
:min-scale="0.2"
|
||||||
|
:preview-src-list="srcList" />
|
||||||
|
|
||||||
|
<div class="del-icon" @click="deleteIcon">
|
||||||
|
<Delete style="width: 1.5em; height: 1.5em" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.img-container {
|
||||||
|
position: relative;
|
||||||
|
width: 120px;
|
||||||
|
height: 120px;
|
||||||
|
margin-right: 8px;
|
||||||
|
.del-icon {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: #f2ecec;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -1,23 +1,34 @@
|
||||||
<script setup lang="ts"></script>
|
<script setup lang="ts">
|
||||||
|
const time = ref('')
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- 专区管理 -->
|
<!-- 专区管理 -->
|
||||||
<el-form :inline="true" size="small" label-width="auto">
|
<el-form :inline="true" size="small" label-width="auto">
|
||||||
<el-form-item label="专区名称:">
|
<el-form-item label="专区名称:">
|
||||||
<el-input style="width: 120px" />
|
<el-input />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="申请时间:">
|
<el-form-item label="申请时间:">
|
||||||
<el-input style="width: 120px" />
|
<el-date-picker
|
||||||
|
v-model="time"
|
||||||
|
type="daterange"
|
||||||
|
unlink-panels
|
||||||
|
range-separator="-"
|
||||||
|
start-placeholder="开始时间"
|
||||||
|
end-placeholder="结束时间"
|
||||||
|
style="width: 180px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态:">
|
<el-form-item label="状态:">
|
||||||
<el-input style="width: 120px" />
|
<el-select style="width: 180px">
|
||||||
|
<el-option></el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="申请人:">
|
<el-form-item label="申请人:">
|
||||||
<el-input style="width: 120px" />
|
<el-input />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary">申请加入专区</el-button>
|
<el-button type="primary" @click="$router.push('joinZone')">申请加入专区</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>申请加入专区</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
Loading…
Reference in New Issue