修改模型上传界面功能
parent
4dc0e75e46
commit
6d73f7f510
|
@ -201,4 +201,11 @@ body.is-sapi {
|
||||||
.app-main {
|
.app-main {
|
||||||
height: calc(100vh - 84px);
|
height: calc(100vh - 84px);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog.noscroll .el-dialog__body{
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
.el-dialog.footer-center .el-dialog__footer{
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
|
@ -1,15 +1,21 @@
|
||||||
<template>
|
<template>
|
||||||
<a-modal title="经纬度局部坐标系" :width="380" :maskClosable="false" :open="visibleLocal" @ok="handleOk" @cancel="hide"
|
<el-dialog title="经纬度局部坐标系" :width="450" :close-on-click-modal="false" v-model="show"
|
||||||
ok-text="确定" cancel-text="取消">
|
@close="hide" confirm-button-text="确定" cancel-button-text="取消" class="noscroll footer-center">
|
||||||
<a-form ref="form" :model="form" :labelCol="{ style: { width: '40px' } }" class="scroll-box" :rules="formRules">
|
<el-form ref="form" :model="form" :label-width="60" class="scroll-box" :rules="formRules">
|
||||||
<a-form-item label="经度" :labelCol="{ span: 4 }" name="latitude">
|
<el-form-item label="经度" prop="latitude">
|
||||||
<a-input :value="form.latitude" placeholder="例如:108.88" />
|
<el-input v-model="form.latitude" placeholder="例如:108.88" />
|
||||||
</a-form-item>
|
</el-form-item>
|
||||||
<a-form-item label="纬度" :labelCol="{ span: 4 }" name="longitude">
|
<el-form-item label="纬度" prop="longitude">
|
||||||
<a-input :value="form.longitude" placeholder="例如:34.2" />
|
<el-input v-model="form.longitude" placeholder="例如:34.2" />
|
||||||
</a-form-item>
|
</el-form-item>
|
||||||
</a-form>
|
</el-form>
|
||||||
</a-modal>
|
|
||||||
|
<template #footer>
|
||||||
|
<el-button type="primary" @click="handleOk">确 定</el-button>
|
||||||
|
<el-button @click="show = false">取 消</el-button>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -24,6 +30,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
show: false,
|
||||||
uploadType: '1',
|
uploadType: '1',
|
||||||
scene: 'a',
|
scene: 'a',
|
||||||
showScene: false,
|
showScene: false,
|
||||||
|
@ -45,14 +52,18 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showDialog() {
|
||||||
|
this.show = true;
|
||||||
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
const that = this
|
const that = this
|
||||||
// 触发表单验证
|
// 触发表单验证
|
||||||
that.showDelete = false
|
that.showDelete = false
|
||||||
that.$refs.form
|
that.$refs.form
|
||||||
.validateFields()
|
.validate()
|
||||||
.then((a, b) => {
|
.then(() => {
|
||||||
this.$emit('LocalCoordinatesValue', `ENU:${this.form.latitude},${this.form.longitude}`)
|
this.$emit('LocalCoordinatesValue', `ENU:${this.form.latitude},${this.form.longitude}`)
|
||||||
|
this.show = false;
|
||||||
})
|
})
|
||||||
.catch((e) => { })
|
.catch((e) => { })
|
||||||
},
|
},
|
||||||
|
@ -64,7 +75,7 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
:deep(.ant-upload-list) {
|
:deep(.el-upload-list) {
|
||||||
max-height: 215px;
|
max-height: 215px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
|
@ -113,21 +124,21 @@ export default {
|
||||||
background: rgba(255, 255, 255, 0.3);
|
background: rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tree-node-content-wrapper {
|
.el-tree-node__content {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-list-empty-text {
|
.el-list__empty-text {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tooltip {
|
.el-tooltip {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.special-item {
|
.special-item {
|
||||||
.ant-form-item-children {
|
.el-form-item__content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
>div {
|
>div {
|
||||||
|
@ -135,7 +146,7 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
|
||||||
.ant-btn {
|
.el-button {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
@ -143,7 +154,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.anticon {
|
.el-icon {
|
||||||
color: #21ad8d;
|
color: #21ad8d;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px" :key="data.elKey">
|
||||||
:key="data.elKey">
|
|
||||||
<el-form-item label="项目名称" prop="projectId">
|
<el-form-item label="项目名称" prop="projectId">
|
||||||
<el-select v-model="queryParams.projectId" clearable :disabled="data.currentPrjId ? true : false" filterable
|
<el-select v-model="queryParams.projectId" clearable :disabled="data.currentPrjId ? true : false" filterable placeholder="请选择所属项目" style="width: 200px" @change="queryProjectChange">
|
||||||
placeholder="请选择所属项目" style="width: 200px" @change="queryProjectChange">
|
<el-option v-for="item in data.projects" :key="item.id" :label="item.projectName" :value="item.id"></el-option>
|
||||||
<el-option v-for="item in data.projects" :key="item.id" :label="item.projectName"
|
|
||||||
:value="item.id"></el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="所属单位" prop="deptId" >
|
<!-- <el-form-item label="所属单位" prop="deptId" >
|
||||||
|
@ -28,7 +25,7 @@
|
||||||
<el-button type="primary" plain icon="Plus" v-if="data.isAdmin" @click="handleAdd">绑定模型</el-button>
|
<el-button type="primary" plain icon="Plus" v-if="data.isAdmin" @click="handleAdd">绑定模型</el-button>
|
||||||
<el-button type="primary" plain icon="Plus" v-if="data.isAdmin" @click="handleUpload">上传模型</el-button>
|
<el-button type="primary" plain icon="Plus" v-if="data.isAdmin" @click="handleUpload">上传模型</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="bimModelList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="bimModelList" @selection-change="handleSelectionChange">
|
||||||
|
@ -54,16 +51,13 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['bim:bimModel:edit']">修改</el-button>
|
||||||
v-hasPermi="['bim:bimModel:edit']">修改</el-button>
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['bim:bimModel:remove']">删除</el-button>
|
||||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
|
|
||||||
v-hasPermi="['bim:bimModel:remove']">删除</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination v-show="total > 0" :total="total" :page="queryParams.pageNum" :limit="queryParams.pageSize"
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||||
@pagination="getList" />
|
|
||||||
|
|
||||||
<!-- 添加或修改Bim模型对话框 -->
|
<!-- 添加或修改Bim模型对话框 -->
|
||||||
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
||||||
|
@ -90,9 +84,7 @@
|
||||||
<el-switch v-model="form.sand" size="large" active-text="显示" inactive-text="隐藏" />
|
<el-switch v-model="form.sand" size="large" active-text="显示" inactive-text="隐藏" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="模型尺寸单位" prop="unit">
|
<el-form-item label="模型尺寸单位" prop="unit">
|
||||||
<el-select v-model="form.unit" placeholder="请选择模型尺寸单位" style="width: 200px"> <el-option
|
<el-select v-model="form.unit" placeholder="请选择模型尺寸单位" style="width: 200px"> <el-option v-for="item in unitInfos" :key="item.value" :label="item.label" :value="item.value"></el-option> </el-select>
|
||||||
v-for="item in unitInfos" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="备注说明" prop="remark">
|
<el-form-item label="备注说明" prop="remark">
|
||||||
|
@ -331,7 +323,7 @@ function handleDelete(row) {
|
||||||
getList();
|
getList();
|
||||||
proxy.$modal.msgSuccess("删除成功");
|
proxy.$modal.msgSuccess("删除成功");
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue