邓洁: 站点接口及修改细节
This commit is contained in:
@@ -16,7 +16,7 @@ steps:
|
|||||||
- export NODE_MODULES_PATH=`pwd`/node_modules
|
- export NODE_MODULES_PATH=`pwd`/node_modules
|
||||||
- npm config set registry https://registry.npm.taobao.org
|
- npm config set registry https://registry.npm.taobao.org
|
||||||
- set NODE_OPTIONS=--openssl-legacy-provider
|
- set NODE_OPTIONS=--openssl-legacy-provider
|
||||||
- npm install
|
# - npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- echo $NODE_MODULES_PATH
|
- echo $NODE_MODULES_PATH
|
||||||
- cp -r dist /app/build/$DRONE_REPO_NAME
|
- cp -r dist /app/build/$DRONE_REPO_NAME
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import request from '@/utils/request.js'
|
|||||||
|
|
||||||
export const getSiteList = (params) => {
|
export const getSiteList = (params) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/tunnel/site/screenlist',
|
url: '/tunnel/site/screen/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -599,3 +599,11 @@ input[type="number"] {
|
|||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.el-pagination.is-background .btn-prev:disabled{
|
||||||
|
background-color: transparent!important;
|
||||||
|
color: #60DDDE!important;
|
||||||
|
}
|
||||||
|
.el-pagination.is-background .btn-next:disabled{
|
||||||
|
background-color: transparent!important;
|
||||||
|
color: #60DDDE!important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
@click="handleOpenAirChart(item)"
|
@click="handleOpenAirChart(item)"
|
||||||
/>
|
/>
|
||||||
<div class="digital-tunnel">
|
<div class="digital-tunnel">
|
||||||
<el-dialog v-model="isWindSpeedVisited" :title="'风速监控数据'" width="2175px" :modal="false">
|
<el-dialog :close-on-click-modal="false" v-model="isWindSpeedVisited" :title="'风速监控数据'" width="2175px" :modal="false">
|
||||||
<div class="left-top-icon"></div>
|
<div class="left-top-icon"></div>
|
||||||
<div class="right-top-icon"></div>
|
<div class="right-top-icon"></div>
|
||||||
<div class="chat-dialog">
|
<div class="chat-dialog">
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
<div class="digital-tunnel">
|
<div class="digital-tunnel">
|
||||||
<el-dialog v-model="isAirVisited" :title="airTitle+'监控数据'" width="2175px" :modal="false">
|
<el-dialog :close-on-click-modal="false" v-model="isAirVisited" :title="airTitle+'监控数据'" width="2175px" :modal="false">
|
||||||
<div class="left-top-icon"></div>
|
<div class="left-top-icon"></div>
|
||||||
<div class="right-top-icon"></div>
|
<div class="right-top-icon"></div>
|
||||||
<div class="chat-dialog">
|
<div class="chat-dialog">
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<div class="digital-tunnel">
|
<div class="digital-tunnel">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
:close-on-click-modal="false"
|
||||||
v-model="isBadGasVisited"
|
v-model="isBadGasVisited"
|
||||||
title="有害气体监控数据"
|
title="有害气体监控数据"
|
||||||
width="2175px"
|
width="2175px"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="digital-tunnel">
|
<div class="digital-tunnel">
|
||||||
<el-dialog v-model="isVisited" width="2175px" :modal="false">
|
<el-dialog :close-on-click-modal="false" v-model="isVisited" width="2175px" :modal="false">
|
||||||
<div class="left-top-icon"></div>
|
<div class="left-top-icon"></div>
|
||||||
<div class="right-top-icon"></div>
|
<div class="right-top-icon"></div>
|
||||||
<div class="top-tag">
|
<div class="top-tag">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
@click="handleOpenChart(item,index+1)"/>
|
@click="handleOpenChart(item,index+1)"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="digital-tunnel">
|
<div class="digital-tunnel">
|
||||||
<el-dialog v-model="isVisited" :title="windSort+'号风压监控数据'" width="2175px" :modal="false">
|
<el-dialog :close-on-click-modal="false" v-model="isVisited" :title="windSort+'号风压监控数据'" width="2175px" :modal="false">
|
||||||
<div class="left-top-icon"></div>
|
<div class="left-top-icon"></div>
|
||||||
<div class="right-top-icon"></div>
|
<div class="right-top-icon"></div>
|
||||||
<div class="chat-dialog">
|
<div class="chat-dialog">
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<div class="box-center">
|
<div class="box-center">
|
||||||
<div class="left-img"></div>
|
<div class="left-img"></div>
|
||||||
<div class="right-tunnel">
|
<div class="right-tunnel">
|
||||||
<div>隧道数量:{{ item.info.tunnelNum }}条
|
<div>隧道数量:{{ item.tunnelList.length }}条
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="tunnel" v-if="item.info.tunnelName">
|
<div class="tunnel" v-if="item.info.tunnelName">
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
<div style="cursor: pointer">添加站点</div>
|
<div style="cursor: pointer">添加站点</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog v-model="isVisited" width="1958px">
|
<el-dialog :close-on-click-modal="false" v-model="isVisited" width="1958px">
|
||||||
<div class="siteId">
|
<div class="siteId">
|
||||||
<span>{{ title }}</span>
|
<span>{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -101,41 +101,40 @@ import {ElMessage, ElMessageBox} from "element-plus";
|
|||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const siteList = ref([
|
const siteList = ref([
|
||||||
{
|
// {
|
||||||
siteName: '松江站',
|
// siteName: '松江站',
|
||||||
info:{
|
// info:{
|
||||||
tunnelNum: 1,
|
// tunnelNum: 1,
|
||||||
tunnelName: '一号隧道',
|
// tunnelName: '一号隧道',
|
||||||
constructionLength: 500,
|
// constructionLength: 500,
|
||||||
implementationLength: 10
|
// implementationLength: 10
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
siteName: '松江站',
|
// siteName: '松江站',
|
||||||
info:{
|
// info:{
|
||||||
tunnelNum: 1,
|
// tunnelNum: 1,
|
||||||
tunnelName: '二号隧道',
|
// tunnelName: '二号隧道',
|
||||||
constructionLength: 500,
|
// constructionLength: 500,
|
||||||
implementationLength: 10
|
// implementationLength: 10
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
siteName: '松江站',
|
// siteName: '松江站',
|
||||||
info:{
|
// info:{
|
||||||
tunnelNum: 1,
|
// tunnelNum: 1,
|
||||||
tunnelName: '三号隧道',
|
// tunnelName: '三号隧道',
|
||||||
constructionLength: 500,
|
// constructionLength: 500,
|
||||||
implementationLength: 10
|
// implementationLength: 10
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
])
|
])
|
||||||
const siteIds = ref([])
|
const siteIds = ref([])
|
||||||
const siteNameList = ref([])
|
const siteNameList = ref([])
|
||||||
const info = ref({
|
const info = ref({
|
||||||
tunnelNum: 0,
|
|
||||||
tunnelName: '',
|
tunnelName: '',
|
||||||
constructionLength: 0,
|
constructionLength: 0,
|
||||||
implementationLength: 0
|
totalLength: 0
|
||||||
})
|
})
|
||||||
const title = ref('新增站点')
|
const title = ref('新增站点')
|
||||||
const isClick = ref(false);
|
const isClick = ref(false);
|
||||||
@@ -160,16 +159,18 @@ const getList = () => {
|
|||||||
...pageInfo
|
...pageInfo
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
total.value = res.data.total;
|
total.value = res.data.total;
|
||||||
showAddIcon.value = total.value !== 6;
|
showAddIcon.value = total.value % 6!==0;
|
||||||
res.data.rows.map(item => {
|
res.data.rows.map(item => {
|
||||||
if (item.tunnelList === null || item.tunnelList === []) {
|
if (item.tunnelList === null || item.tunnelList.length === 0) {
|
||||||
item.info = info.value
|
item.info = info.value
|
||||||
}else{
|
}else{
|
||||||
item.info=item.tunnelList[0]
|
item.info=item.tunnelList[0]
|
||||||
}
|
}
|
||||||
item.checked = false
|
item.checked = false
|
||||||
})
|
})
|
||||||
// siteList.value = res.data.rows;
|
|
||||||
|
siteList.value = res.data.rows;
|
||||||
|
console.log('res',siteList.value)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getList()
|
getList()
|
||||||
@@ -191,8 +192,8 @@ const handleClickSite = (type) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const goToAddTunnel = (siteId) => {
|
const goToAddTunnel = (siteId) => {
|
||||||
// router.push('/tunnel/' + siteId)
|
router.push('/tunnel/' + siteId)
|
||||||
router.push('/tunnel/1')
|
// router.push('/tunnel/1')
|
||||||
}
|
}
|
||||||
//重置from表单
|
//重置from表单
|
||||||
const restFrom = () => {
|
const restFrom = () => {
|
||||||
@@ -205,11 +206,11 @@ const restFrom = () => {
|
|||||||
const handleEdit = (item) => {
|
const handleEdit = (item) => {
|
||||||
title.value = '编辑站点'
|
title.value = '编辑站点'
|
||||||
restFrom()
|
restFrom()
|
||||||
// getSiteDetail(item.siteId).then((res) => {
|
getSiteDetail(item.siteId).then((res) => {
|
||||||
// form.value = res.data;
|
form.value = res.data;
|
||||||
form.value = item;
|
form.value = item;
|
||||||
isVisited.value = true
|
isVisited.value = true
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleAdd = () => {
|
const handleAdd = () => {
|
||||||
@@ -218,21 +219,21 @@ const handleAdd = () => {
|
|||||||
isVisited.value = true
|
isVisited.value = true
|
||||||
}
|
}
|
||||||
const handleSubmit = (instance) => {
|
const handleSubmit = (instance) => {
|
||||||
// if (!instance) return
|
if (!instance) return
|
||||||
// instance.validate(async (valid) => {
|
instance.validate(async (valid) => {
|
||||||
// if (!valid) return
|
if (!valid) return
|
||||||
// if (title.value === '编辑站点') {
|
if (title.value === '编辑站点') {
|
||||||
// editSite(form.value).then(() => {
|
editSite(form.value).then(() => {
|
||||||
// isVisited.value = false
|
|
||||||
// getList()
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// addSite(form.value).then(() => {
|
|
||||||
isVisited.value = false
|
isVisited.value = false
|
||||||
// getList()
|
getList()
|
||||||
// });
|
});
|
||||||
// }
|
} else {
|
||||||
// })
|
addSite(form.value).then(() => {
|
||||||
|
isVisited.value = false
|
||||||
|
getList()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const handleChooseAll=()=>{
|
const handleChooseAll=()=>{
|
||||||
siteList.value.map(item=>{
|
siteList.value.map(item=>{
|
||||||
@@ -249,16 +250,16 @@ const handleMoreDelete = () => {
|
|||||||
type: 'warning',
|
type: 'warning',
|
||||||
customClass: 'delBox'
|
customClass: 'delBox'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// deleteSite(siteIds.value).then(res => {
|
deleteSite(siteIds.value).then(res => {
|
||||||
// if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
// ElMessage.success(res.msg)
|
ElMessage.success(res.msg)
|
||||||
// getList()
|
getList()
|
||||||
// siteIds.value = []
|
siteIds.value = []
|
||||||
// siteNameList.value = []
|
siteNameList.value = []
|
||||||
// } else {
|
} else {
|
||||||
// ElMessage.error(res.msg)
|
ElMessage.error(res.msg)
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<div style="cursor: pointer">添加隧道</div>
|
<div style="cursor: pointer">添加隧道</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog v-model="isVisited" width="1958px">
|
<el-dialog :close-on-click-modal="false" v-model="isVisited" width="1958px">
|
||||||
<div class="siteId">
|
<div class="siteId">
|
||||||
<span>{{ title }}</span>
|
<span>{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -602,16 +602,15 @@ const handleMoreDelete = () => {
|
|||||||
:deep(.btn-prev) {
|
:deep(.btn-prev) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
font-family: MicrosoftYaHei, MicrosoftYaHei;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #60DDDE;
|
color: #60DDDE;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.btn-next) {
|
:deep(.btn-next) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
font-family: MicrosoftYaHei, MicrosoftYaHei;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #60DDDE;
|
color: #60DDDE;
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
@@ -624,7 +623,6 @@ const handleMoreDelete = () => {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: #071F40;
|
color: #071F40;
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
font-family: MicrosoftYaHei, MicrosoftYaHei;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -639,7 +637,6 @@ const handleMoreDelete = () => {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
font-family: MicrosoftYaHei, MicrosoftYaHei;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #60DDDE;
|
color: #60DDDE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog v-model="isVisited" width="1658px">
|
<el-dialog :close-on-click-modal="false" v-model="isVisited" width="1658px">
|
||||||
<div class="siteId">
|
<div class="siteId">
|
||||||
<span>{{ title }}</span>
|
<span>{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user