Compare commits

...

7 Commits

6 changed files with 459 additions and 389 deletions

View File

@ -83,6 +83,9 @@ export default {
form: { form: {
auditViem: '' auditViem: ''
}, },
dataForm: {
state: 0
},
rowData: {}, rowData: {},
wrjStateObj: { wrjStateObj: {
0: '待审批', 0: '待审批',
@ -94,6 +97,7 @@ export default {
}, },
methods: { methods: {
taskHandle(row) { taskHandle(row) {
this.form.auditViem = '';
this.rowData = row; this.rowData = row;
this.centerDialogVisible = true this.centerDialogVisible = true
}, },

View File

@ -13,7 +13,11 @@
<p>{{ dataFrom.linkName }}</p> <p>{{ dataFrom.linkName }}</p>
<a-tooltip> <a-tooltip>
<template #title>请申请后查看</template> <template #title>请申请后查看</template>
<p style="cursor: pointer; filter: blur(4px)"> <!-- <p style="cursor: pointer; filter: blur(4px)">
{{ dataFrom.link }}
</p> -->
<p style="cursor: pointer;"
:class="{ 'blur-word': approveStatus == '通过' && whoShow1.itShowXiHaiAn ? false : true}">
{{ dataFrom.link }} {{ dataFrom.link }}
</p> </p>
</a-tooltip> </a-tooltip>
@ -22,12 +26,11 @@
<p>{{ dataFrom.numberName }}</p> <p>{{ dataFrom.numberName }}</p>
<a-tooltip> <a-tooltip>
<template #title>请申请后查看</template> <template #title>请申请后查看</template>
<p style="filter: blur(4px)">{{ dataFrom.number }}</p> <!-- <p style="filter: blur(4px)">{{ dataFrom.number }}</p> -->
<p :class="{ 'blur-word': approveStatus == '通过' && whoShow1.itShowXiHaiAn ? false : true}">{{ dataFrom.number
}}</p>
</a-tooltip> </a-tooltip>
<div <div @click="copyFunction(dataFrom.number, '复制账号')" v-if="dataFrom.number != '' && flag">
@click="copyFunction(dataFrom.number, '复制账号')"
v-if="dataFrom.number != '' && flag"
>
复制账号 复制账号
</div> </div>
<!-- <div v-else id="zanwu">暂无</div> --> <!-- <div v-else id="zanwu">暂无</div> -->
@ -37,11 +40,9 @@
<a-tooltip> <a-tooltip>
<template #title>请申请后查看</template> <template #title>请申请后查看</template>
<p style="filter: blur(4px)">{{ dataFrom.password }}</p> <p style="filter: blur(4px)">{{ dataFrom.password }}</p>
<p style="filter: blur(4px)" :class="{ 'blur-word': approveStatus == '通过' && whoShow1.itShowXiHaiAn ? false : true}">{{ dataFrom.password }}</p>
</a-tooltip> </a-tooltip>
<div <div @click="copyFunction(dataFrom.password2, '复制密码')" v-if="dataFrom.password2 != '' && flag">
@click="copyFunction(dataFrom.password2, '复制密码')"
v-if="dataFrom.password2 != '' && flag"
>
复制密码 复制密码
</div> </div>
<!-- <div v-else id="zanwu">暂无</div> --> <!-- <div v-else id="zanwu">暂无</div> -->
@ -50,166 +51,185 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle.vue' import DetalsTitle from '@/views/detailsAll/components/DetalsTitle.vue'
import { ref, defineProps, watch } from 'vue' import { ref, defineProps, watch } from 'vue'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
let flag = ref(true) let flag = ref(true)
const whoShow1 = ref(whoShow) const whoShow1 = ref(whoShow)
console.log('whoShow1', whoShow1.value.itShowQingDao) console.log('whoShow1', whoShow1.value.itShowQingDao)
const props = defineProps({ const props = defineProps({
dataList: { type: Object, default: null }, dataList: { type: Object, default: null },
}) })
const dataFrom = ref({ const dataFrom = ref({
linkName: '访问地址', linkName: '访问地址',
link: '', link: '',
numberName: '试用账号', numberName: '试用账号',
number: '', number: '',
passwordName: '试用密码', passwordName: '试用密码',
password: '**************************', password: '**************************',
password2: '', password2: '',
}) })
if (props.dataList.infoList) { console.log('props.dataList------------>', props.dataList);
let obj = props.dataList.approveStatus const approveStatus = ref('')
if (obj !== '通过' && whoShow1.value.itShowQingDao) {
flag.value = false if (props.dataList.infoList) {
} let obj = props.dataList.approveStatus;
dataFrom.value.link = props.dataList.link approveStatus.value = props.dataList.approveStatus
props.dataList.infoList.map((item) => { if (obj !== '通过' && whoShow1.value.itShowQingDao) {
if (item.attrType == '试用用户名' || item.attrType == '试用账号') { flag.value = false
dataFrom.value.number = item.attrValue
} else if (item.attrType == '试用密码') {
dataFrom.value.password2 = item.attrValue
}
})
if (dataFrom.value.password2 === '') {
dataFrom.value.password = ''
}
// }
} }
const clickLink = (link) => { dataFrom.value.link = props.dataList.link
window.open(link) props.dataList.infoList.map((item) => {
} if (item.attrType == '试用用户名' || item.attrType == '试用账号') {
// dataFrom.value.number = item.attrValue
const copyFunction = (data, name) => { } else if (item.attrType == '试用密码') {
if (data !== '') { dataFrom.value.password2 = item.attrValue
let url = data
let oInput = document.createElement('input')
oInput.value = url
document.body.appendChild(oInput)
oInput.select() // ;
console.log(oInput.value)
document.execCommand('Copy') //
oInput.remove() //
message.success(name + '成功')
} else {
message.error('复制为空')
} }
}
message.config({
top: '100px', //
}) })
// const success = () => { if (dataFrom.value.password2 === '') {
// message.success({ dataFrom.value.password = ''
// // content: 'This is a prompt message with custom className and style', }
// className: 'custom-class',
// style: {},
// })
// } // }
watch( }
() => props.dataList, const clickLink = (link) => {
(val) => { window.open(link)
if (val) { }
let obj = props.dataList.approveStatus //
if (obj !== '通过' && whoShow1.value.itShowQingDao) { const copyFunction = (data, name) => {
flag.value = false if (data !== '') {
} let url = data
dataFrom.value.link = props.dataList.link let oInput = document.createElement('input')
props.dataList.infoList.map((item) => { oInput.value = url
if (item.attrType == '试用用户名' || item.attrType == '试用账号') { document.body.appendChild(oInput)
dataFrom.value.number = item.attrValue oInput.select() // ;
} else if (item.attrType == '试用密码') { console.log(oInput.value)
dataFrom.value.password2 = item.attrValue document.execCommand('Copy') //
} oInput.remove() //
}) message.success(name + '成功')
if (dataFrom.value.password2 === '') { } else {
dataFrom.value.password = '' message.error('复制为空')
}
}
message.config({
top: '100px', //
})
// const success = () => {
// message.success({
// // content: 'This is a prompt message with custom className and style',
// className: 'custom-class',
// style: {},
// })
// }
watch(
() => props.dataList,
(val) => {
if (val) {
let obj = props.dataList.approveStatus
approveStatus.value = props.dataList.approveStatus
if (obj !== '通过' && whoShow1.value.itShowQingDao) {
flag.value = false
}
dataFrom.value.link = props.dataList.link
props.dataList.infoList.map((item) => {
if (item.attrType == '试用用户名' || item.attrType == '试用账号') {
dataFrom.value.number = item.attrValue
} else if (item.attrType == '试用密码') {
dataFrom.value.password2 = item.attrValue
} }
})
if (dataFrom.value.password2 === '') {
dataFrom.value.password = ''
} }
} }
) }
)
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.algorithm-on-trial { .algorithm-on-trial {
padding: 0.8rem 0px 0.8rem; padding: 0.8rem 0px 0.8rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
.main {
margin-top: 0.3rem;
width: 13rem;
height: 2.5rem;
background: url('~@/assets/detailsAll/kfzj_sybg.png') no-repeat;
display: grid;
grid-template-columns: 33.33% 33.33% 33.33%;
align-items: center; align-items: center;
.main {
margin-top: 0.3rem; .main-left {
width: 13rem; border-right: 0.01rem #ffffff solid;
height: 2.5rem; padding-left: 0.7rem;
background: url('~@/assets/detailsAll/kfzj_sybg.png') no-repeat; padding-right: 1rem;
display: grid;
grid-template-columns: 33.33% 33.33% 33.33%; &>p {
align-items: center; overflow: hidden;
.main-left { text-overflow: ellipsis;
border-right: 0.01rem #ffffff solid; display: -webkit-box;
padding-left: 0.7rem; -webkit-line-clamp: 2;
padding-right: 1rem; word-break: break-all;
& > p { -webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
word-break: break-all;
-webkit-box-orient: vertical;
}
}
.main-center {
padding-left: 1rem;
padding-right: 1rem;
}
.main-right {
padding-right: 0.7rem;
}
& > div > p:first-child {
font-size: 0.26rem;
color: #ffffff;
font-weight: bold;
}
& > div > p:nth-child(2) {
font-size: 0.22rem;
color: #ffffff;
line-height: 0.34rem;
}
& > div:first-child > p:last-child {
text-decoration: underline;
word-wrap: break-word;
word-break: normal;
}
& > div > div:last-child {
height: 0.34rem;
width: 1.1rem;
border: 0.01rem solid #ffffff;
border-radius: 0.06rem;
font-size: 0.18rem;
color: #ffffff;
cursor: pointer;
text-align: center;
line-height: 0.34rem;
} }
} }
#zanwu {
.main-center {
padding-left: 1rem;
padding-right: 1rem;
}
.main-right {
padding-right: 0.7rem;
}
&>div>p:first-child {
font-size: 0.26rem;
color: #ffffff;
font-weight: bold;
}
&>div>p:nth-child(2) {
font-size: 0.22rem;
color: #ffffff;
line-height: 0.34rem;
}
&>div:first-child>p:last-child {
text-decoration: underline;
word-wrap: break-word;
word-break: normal;
}
&>div>div:last-child {
height: 0.34rem; height: 0.34rem;
width: 1.1rem; width: 1.1rem;
font-size: 0.24rem; border: 0.01rem solid #ffffff;
border-radius: 0.06rem;
font-size: 0.18rem;
color: #ffffff; color: #ffffff;
border: 0; cursor: pointer;
text-align: center;
line-height: 0.34rem;
} }
} }
#zanwu {
height: 0.34rem;
width: 1.1rem;
font-size: 0.24rem;
color: #ffffff;
border: 0;
}
}
.blur-word {
filter: blur(4px);
}
</style> </style>
<style> <style>
.custom-class { .custom-class {
/* top: 100px; */ /* top: 100px; */
} }
</style> </style>

View File

@ -156,8 +156,11 @@
class="modal-box" class="modal-box"
title="请选择" title="请选择"
:visible="showAddModal" :visible="showAddModal"
:onOk="handleOk" ok-text="确认"
:onCancel="handleCancel" cancel-text="取消"
@ok="handleOk"
@cancel="handleCancel"
> >
<a-table <a-table
:columns="columns" :columns="columns"
@ -652,7 +655,14 @@
} }
</script> </script>
<style>
.ant-modal-footer {
display: block;
}
</style>
<style lang="less" scoped> <style lang="less" scoped>
.bg { .bg {
background: #fff; background: #fff;
height: 100vh; height: 100vh;

View File

@ -746,7 +746,7 @@ export default {
applicationSystem: formName.applicationSystem, // applicationSystem: formName.applicationSystem, //
applicationArea: JSON.stringify(formName.applicationScene), // applicationArea: JSON.stringify(formName.applicationScene), //
demand: formName.applicationBackground, // demand: formName.applicationBackground, //
applyUserId: formName.userId // id // applyUserId: formName.userId // id
} }
console.log('_data-----提交申请------->', _data); console.log('_data-----提交申请------->', _data);
soldierApply(_data).then(res => { soldierApply(_data).then(res => {

View File

@ -395,7 +395,7 @@
destroyOnClose @cancel="videoClean"> destroyOnClose @cancel="videoClean">
<template #footer></template> <template #footer></template>
<div class="batch-video"> <div class="batch-video">
<div v-for="item in videoList" :key="item.id" style="width: 100%; height: 100%"> <div v-for="item in videoList" :key="item.id" style="width: 100%; height: 100%;position:relative">
<p></p> <p></p>
<vue3VideoPlay v-bind="item.options" /> <vue3VideoPlay v-bind="item.options" />
</div> </div>
@ -659,7 +659,7 @@ const selectedRowKeys = ref([])
const tabList = ref([ const tabList = ref([
{ {
title: '设施类型', title: '设施类型',
content: isXiHaiAn ? ['视频资源', '城市云脑会客厅'] : ['视频资源', '云资源', '感知资源', '城市云脑会客厅'], content: isXiHaiAn ? ['视频资源'] : ['视频资源', '云资源', '感知资源', '城市云脑会客厅'],
}, },
{ {
title: '视频标签', title: '视频标签',
@ -1261,6 +1261,8 @@ const getSoldierData = (indexFather, name) => {
return message.error(res.data.msg) return message.error(res.data.msg)
} }
let { list = [], total = 0 } = res.data.data; let { list = [], total = 0 } = res.data.data;
console.log('total------------>', total);
pagination.value.total = total pagination.value.total = total
if (name == '无人机') { if (name == '无人机') {
list.map((wrj) => { list.map((wrj) => {
@ -2085,4 +2087,5 @@ const showMsg = () => {
video::-webkit-media-controls { video::-webkit-media-controls {
display: none !important; display: none !important;
} }
</style> </style>

View File

@ -8,65 +8,40 @@
<div class="bottom"> <div class="bottom">
<div class="item"> <div class="item">
<div class="zj">组件服务</div> <div class="zj">组件服务</div>
<div <div class="name" v-for="(item, index) in zjList" :key="item.id" :class="index == 4 ? 'name-last' : ''"
class="name" @click="selectOne(item.id)">
v-for="(item, index) in zjList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)"
>
{{ index + 1 }}-{{ item.name }} {{ index + 1 }}-{{ item.name }}
</div> </div>
<div class="btn" @click="jumpPage('组件服务')">查看更多</div> <div class="btn" @click="jumpPage('组件服务')">查看更多</div>
</div> </div>
<div class="item"> <div class="item">
<div class="yy">应用资源</div> <div class="yy">应用资源</div>
<div <div class="name" v-for="(item, index) in yyList" :key="item.id" :class="index == 4 ? 'name-last' : ''"
class="name" @click="selectOne(item.id)">
v-for="(item, index) in yyList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="selectOne(item.id)"
>
{{ index + 1 }}-{{ item.name }} {{ index + 1 }}-{{ item.name }}
</div> </div>
<div class="btn" @click="jumpPage('应用资源')">查看更多</div> <div class="btn" @click="jumpPage('应用资源')">查看更多</div>
</div> </div>
<div class="item"> <div class="item">
<div class="jc">基础设施</div> <div class="jc">基础设施</div>
<div <div class="name" v-for="(item, index) in jcList" :key="item.name" :class="index == 2 ? 'name-last' : ''"
class="name" @click="selectOne2(item.name)">
v-for="(item, index) in jcList"
:key="item.name"
:class="index == 2 ? 'name-last' : ''"
@click="selectOne2(item.name)"
>
{{ item.name + '-' + item.num + '项' }} {{ item.name + '-' + item.num + '项' }}
</div> </div>
<div class="btn" @click="jumpPage('基础设施')">查看更多</div> <div class="btn" @click="jumpPage('基础设施')">查看更多</div>
</div> </div>
<div class="item"> <div class="item">
<div class="sj">数据资源</div> <div class="sj">数据资源</div>
<div <div class="name" v-for="(item, index) in sjList" :key="item.id" :class="index == 4 ? 'name-last' : ''"
class="name" @click="selectOne3(item.name)">
v-for="(item, index) in sjList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="selectOne3(item.name)"
>
{{ index + 1 }}-{{ item.name }} {{ index + 1 }}-{{ item.name }}
</div> </div>
<div class="btn" @click="jumpPage('数据资源')">查看更多</div> <div class="btn" @click="jumpPage('数据资源')">查看更多</div>
</div> </div>
<div class="item"> <div class="item">
<div class="zs">知识库</div> <div class="zs">知识库</div>
<div <div class="name" v-for="(item, index) in zsList" :key="item.id" :class="index == 4 ? 'name-last' : ''"
class="name" @click="openHref(item)">
v-for="(item, index) in zsList"
:key="item.id"
:class="index == 4 ? 'name-last' : ''"
@click="openHref(item)"
>
{{ index + 1 }}-{{ item.name }} {{ index + 1 }}-{{ item.name }}
</div> </div>
<div class="btn" @click="jumpPage('知识库')">查看更多</div> <div class="btn" @click="jumpPage('知识库')">查看更多</div>
@ -76,220 +51,261 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import { import {
pageWithAttrs, pageWithAttrs,
getDataResource, getDataResource,
selectInfrastructureList, selectInfrastructureList,
} from '@/api/home.js' } from '@/api/home.js'
import { ref, reactive } from 'vue' import { ref, reactive } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useStore } from 'vuex' import { useStore } from 'vuex'
import { updateVisits, browsingInsert } from '@/api/home' import { updateVisits, browsingInsert, getSoldierList } from '@/api/home'
import mybus from '@/myplugins/mybus' import { message, Upload } from 'ant-design-vue'
const store = useStore() import mybus from '@/myplugins/mybus'
const router = useRouter() const store = useStore()
const zjList = ref([]) const router = useRouter()
const jcList = ref([]) const zjList = ref([])
const sjList = ref([]) const jcList = ref([])
const yyList = ref([]) const sjList = ref([])
// const yyList = ref([])
const zsList = ref([]) //
// const jcList = ref([]) const zsList = ref([])
const paramsGetResources = { // const jcList = ref([])
districtId: '', const paramsGetResources = {
pageNum: 1, districtId: '',
pageSize: 5, pageNum: 1,
type: '', pageSize: 5,
name: '', type: '',
infoList: [], name: '',
orderField: 'total', // total visits 访 applyCount score collectCount infoList: [],
orderType: 'DESC', // ASC DESC orderField: 'total', // total visits 访 applyCount score collectCount
} orderType: 'DESC', // ASC DESC
console.log('dataShowdev==========================>', whoShow) }
// eslint-disable-next-line no-undef console.log('dataShowdev==========================>', whoShow)
const whoShow1 = ref(whoShow) // eslint-disable-next-line no-undef
const interfaceSuccess = ref(0) const whoShow1 = ref(whoShow)
const object = reactive({ const interfaceSuccess = ref(0)
yyNum: '', const object = reactive({
zjNum: '', yyNum: '',
jcNum: '', zjNum: '',
sjNum: '', jcNum: '',
zsNum: '', sjNum: '',
}) zsNum: '',
const getAppResources = (type, obj) => { })
paramsGetResources.type = type const getAppResources = (type, obj) => {
if (type === '数据资源' && !whoShow1.value.itShowBaoTou) { paramsGetResources.type = type
getDataResource({ if (type === '数据资源' && !whoShow1.value.itShowBaoTou) {
serviceName: paramsGetResources.name || '', // getDataResource({
orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', // serviceName: paramsGetResources.name || '', //
orderType: paramsGetResources.orderType.toLowerCase(), //descasc orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', //
pageNum: paramsGetResources.pageNum, // orderType: paramsGetResources.orderType.toLowerCase(), //descasc
pageSize: paramsGetResources.pageSize, // pageNum: paramsGetResources.pageNum, //
}).then((res) => { pageSize: paramsGetResources.pageSize, //
console.log('数据资源==================>', res.data.data) }).then((res) => {
if (whoShow1.value.itShowQingDao) { console.log('数据资源==================>', res.data.data)
res.data.data.data.forEach((val) => { if (whoShow1.value.itShowQingDao) {
val.id = val.guid // id res.data.data.data.forEach((val) => {
val.name = val.zyname // val.id = val.guid // id
val.sjlCount = val.sjcczl // val.name = val.zyname //
val.applyCount = val.syqk // val.sjlCount = val.sjcczl //
val.deptName = val.TGBM // val.applyCount = val.syqk //
val.createDate = val.fbrq // val.deptName = val.TGBM //
val.description = val.xgxt // val.createDate = val.fbrq //
}) val.description = val.xgxt //
obj.value = res.data.data.data || [] })
object.sjNum = res.data.data.rows obj.value = res.data.data.data || []
// interfaceSuccess.value++ object.sjNum = res.data.data.rows
// if (interfaceSuccess.value == 5) { // interfaceSuccess.value++
// mybus.emit('chagneNum', object) // if (interfaceSuccess.value == 5) {
// } // mybus.emit('chagneNum', object)
} else if (whoShow1.value.itShowXiHaiAn) { // }
res.data.data.list.forEach((val) => { } else if (whoShow1.value.itShowXiHaiAn) {
val.id = val.serviceId // id res.data.data.list.forEach((val) => {
val.name = val.serviceName // val.id = val.serviceId // id
val.sjlCount = val.requestQuantity // val.name = val.serviceName //
val.applyCount = val.requestCount // val.sjlCount = val.requestQuantity //
val.deptName = val.departmentName // val.applyCount = val.requestCount //
val.createTime = val.createTime.split('.')[0] val.deptName = val.departmentName //
val.createDate = val.createTime // val.createTime = val.createTime.split('.')[0]
}) val.createDate = val.createTime //
obj.value = res.data.data.list || [] })
object.sjNum = res.data.data.total obj.value = res.data.data.list || []
// interfaceSuccess.value++ object.sjNum = res.data.data.total
// if (interfaceSuccess.value == 5) { // interfaceSuccess.value++
// mybus.emit('chagneNum', object) // if (interfaceSuccess.value == 5) {
// } // mybus.emit('chagneNum', object)
} // }
}) }
} else { })
let type = paramsGetResources.type } else {
if (type == '基础设施') { let type = paramsGetResources.type
selectInfrastructureList().then((res) => { if (type == '基础设施') {
console.log('基础设施==========>', res.data.data) jcList.value = []
for (const key in res.data.data) { selectInfrastructureList().then((res) => {
console.log('基础设施==========>', res.data.data)
for (const key in res.data.data) {
if (whoShow1.value.itShowXiHaiAn) {
if (key === '视频资源') {
jcList.value.push({
name: key,
num: res.data.data[key],
})
}
} else {
jcList.value.push({ jcList.value.push({
name: key, name: key,
num: res.data.data[key], num: res.data.data[key],
}) })
} }
if (uavAndIndividualSoldier.num) { }
// 西-
if (whoShow1.value.itShowXiHaiAn) {
getSoldierData('无人机').then(res => {
let { total = 0 } = res.data.data;
jcList.value.push({ jcList.value.push({
name: '无人机', name: '无人机',
num: uavAndIndividualSoldier.uavList.length, num: total,
}) })
})
getSoldierData('单兵设备').then(res => {
let { total = 0 } = res.data.data;
jcList.value.push({ jcList.value.push({
name: '单兵设备', name: '单兵设备',
num: uavAndIndividualSoldier.individualSoldier.length, num: total,
}) })
} })
}) }
} else { })
pageWithAttrs(paramsGetResources).then((res) => { } else {
console.log('object个数======>', type) pageWithAttrs(paramsGetResources).then((res) => {
obj.value = res.data.data.records console.log('object个数======>', type)
switch (type) { obj.value = res.data.data.records
case '组件服务': switch (type) {
assignmentMethod('zjNum', res) case '组件服务':
break assignmentMethod('zjNum', res)
case '应用资源': break
assignmentMethod('yyNum', res) case '应用资源':
break assignmentMethod('yyNum', res)
case '基础设施': break
assignmentMethod('jcNum', res) case '基础设施':
break assignmentMethod('jcNum', res)
case '知识库': break
assignmentMethod('zsNum', res) case '知识库':
break assignmentMethod('zsNum', res)
} break
}) }
}
}
}
const openHref = (item) => {
console.log(item.id, 'wowowo')
console.log(item.visits, 'wowowo')
browsingInsert({ resourceId: item.id }).then((res) => {
// console.log(res)
})
const arrList = ref([])
arrList.value = JSON.parse(window.sessionStorage.getItem('visits'))
if (arrList.value.indexOf(item.id) === -1) {
arrList.value.push(item.id)
updateVisits({
id: item.id,
visits: item.visits || '0',
}).then(() => {
window.sessionStorage.setItem('visits', JSON.stringify(arrList.value))
}) })
} }
window.open(item.link)
// window.open(
// window.SITE_CONFIG.previewUrl +
// 'hisense_office/onlinePreview?url=' +
// btoa(encodeURI(item.fileHref))
// )
} }
const assignmentMethod = (type, res) => { }
object[type] = res.data.data.total
// interfaceSuccess.value++
// console.log('object======>', object, interfaceSuccess.value, type)
// if (interfaceSuccess.value >= 4) {
// mybus.emit('chagneNum', object)
// }
}
getAppResources('组件服务', zjList)
getAppResources('应用资源', yyList)
getAppResources('基础设施', jcList)
getAppResources('数据资源', sjList)
getAppResources('知识库', zsList)
function jumpPage(type) { // todo
// store const getSoldierData = (name) => {
store.commit('home/selectCardsData', { let _params = {
selectCardsnum: type, type: name,
page: 1,
limit: 10,
}
return new Promise((resolve, reject) => {
getSoldierList(_params).then(res => {
resolve(res)
console.log('res---获取无人机、单兵设备--------->', res);
if (res.data.code !== 0) {
return message.error(res.data.msg)
}
console.log('total------------>', total);
}).catch(err => {
reject(err)
message.error(err)
}) })
console.log( })
'选中===================>', }
store.getters['home/selectCardsnum']
) const openHref = (item) => {
// router.push({ path: '/DetailsPageconetent' }) console.log(item.id, 'wowowo')
router.push({ console.log(item.visits, 'wowowo')
path: '/DetailsPageconetent', browsingInsert({ resourceId: item.id }).then((res) => {
query: { // console.log(res)
select: type, })
}, const arrList = ref([])
}) arrList.value = JSON.parse(window.sessionStorage.getItem('visits'))
} if (arrList.value.indexOf(item.id) === -1) {
const selectOne = (id) => { arrList.value.push(item.id)
console.log('点击===============》', id) updateVisits({
router.push({ id: item.id,
path: '/details', visits: item.visits || '0',
query: { }).then(() => {
id: id, window.sessionStorage.setItem('visits', JSON.stringify(arrList.value))
},
})
}
const selectOne2 = (name) => {
console.log('点击===============》', name)
router.push({
path: '/DetailsPageconetent',
query: {
type: name,
select: '基础设施',
},
})
}
const selectOne3 = (name) => {
console.log('点击===============》', name)
router.push({
path: '/DetailsPageconetent',
query: {
str: name,
select: '数据资源',
},
}) })
} }
window.open(item.link)
// window.open(
// window.SITE_CONFIG.previewUrl +
// 'hisense_office/onlinePreview?url=' +
// btoa(encodeURI(item.fileHref))
// )
}
const assignmentMethod = (type, res) => {
object[type] = res.data.data.total
// interfaceSuccess.value++
// console.log('object======>', object, interfaceSuccess.value, type)
// if (interfaceSuccess.value >= 4) {
// mybus.emit('chagneNum', object)
// }
}
getAppResources('组件服务', zjList)
getAppResources('应用资源', yyList)
getAppResources('基础设施', jcList)
getAppResources('数据资源', sjList)
getAppResources('知识库', zsList)
function jumpPage(type) {
// store
store.commit('home/selectCardsData', {
selectCardsnum: type,
})
console.log(
'选中===================>',
store.getters['home/selectCardsnum']
)
// router.push({ path: '/DetailsPageconetent' })
router.push({
path: '/DetailsPageconetent',
query: {
select: type,
},
})
}
const selectOne = (id) => {
console.log('点击===============》', id)
router.push({
path: '/details',
query: {
id: id,
},
})
}
const selectOne2 = (name) => {
console.log('点击===============》', name)
router.push({
path: '/DetailsPageconetent',
query: {
type: name,
select: '基础设施',
},
})
}
const selectOne3 = (name) => {
console.log('点击===============》', name)
router.push({
path: '/DetailsPageconetent',
query: {
str: name,
select: '数据资源',
},
})
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.capability-convergence { .capability-convergence {
@ -298,12 +314,14 @@
background-size: 100%; background-size: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
.main { .main {
width: 13rem; width: 13rem;
margin-top: 1.8rem; margin-top: 1.8rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-wrap: wrap; flex-wrap: wrap;
.top { .top {
font-size: 0.3rem; font-size: 0.3rem;
color: #212121; color: #212121;
@ -313,6 +331,7 @@
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.line { .line {
width: 0.34rem; width: 0.34rem;
height: 0.03rem; height: 0.03rem;
@ -320,10 +339,12 @@
margin-top: 0.08rem; margin-top: 0.08rem;
} }
} }
.bottom { .bottom {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 0.4rem; margin-top: 0.4rem;
.item { .item {
width: 2.44rem; width: 2.44rem;
height: 3.91rem; height: 3.91rem;
@ -332,6 +353,7 @@
border-radius: 0.02rem; border-radius: 0.02rem;
box-shadow: 0 0.05rem 0.2rem #ccc; box-shadow: 0 0.05rem 0.2rem #ccc;
position: relative; position: relative;
div:nth-of-type(1) { div:nth-of-type(1) {
height: 1.02rem; height: 1.02rem;
line-height: 1.02rem; line-height: 1.02rem;
@ -340,21 +362,27 @@
padding-left: 0.15rem; padding-left: 0.15rem;
background-size: 100%; background-size: 100%;
} }
.jc { .jc {
background: url('~@/assets/newHome/Convergence-jc.png') no-repeat; background: url('~@/assets/newHome/Convergence-jc.png') no-repeat;
} }
.sj { .sj {
background: url('~@/assets/newHome/Convergence-sj.png') no-repeat; background: url('~@/assets/newHome/Convergence-sj.png') no-repeat;
} }
.zj { .zj {
background: url('~@/assets/newHome/Convergence-zj.png') no-repeat; background: url('~@/assets/newHome/Convergence-zj.png') no-repeat;
} }
.yy { .yy {
background: url('~@/assets/newHome/Convergence-yy.png') no-repeat; background: url('~@/assets/newHome/Convergence-yy.png') no-repeat;
} }
.zs { .zs {
background: url('~@/assets/newHome/Convergence-zs.png') no-repeat; background: url('~@/assets/newHome/Convergence-zs.png') no-repeat;
} }
.name { .name {
height: 0.47rem; height: 0.47rem;
line-height: 0.47rem; line-height: 0.47rem;
@ -367,13 +395,16 @@
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
word-break: break-all; word-break: break-all;
} }
.name:hover { .name:hover {
color: #0058e1; color: #0058e1;
cursor: pointer; cursor: pointer;
} }
.name-last { .name-last {
border-bottom: none; border-bottom: none;
} }
.btn { .btn {
cursor: pointer; cursor: pointer;
width: 0.8rem; width: 0.8rem;
@ -388,11 +419,13 @@
position: absolute; position: absolute;
bottom: 0.2rem; bottom: 0.2rem;
} }
.btn:hover { .btn:hover {
background: rgba(0, 88, 225, 0.3); background: rgba(0, 88, 225, 0.3);
color: #000; color: #000;
} }
} }
.item:hover { .item:hover {
border-radius: 0.02rem; border-radius: 0.02rem;
border: 0.01rem solid #0058e1; border: 0.01rem solid #0058e1;