详情页、审批bug修改

This commit is contained in:
gaoyuanwei 2022-06-30 19:44:50 +08:00
parent 2663665321
commit d898bbec7e
4 changed files with 51 additions and 21 deletions

View File

@ -94,7 +94,7 @@
placeholder="共享类型" placeholder="共享类型"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="共享方式"> <el-form-item label="共享方式" v-if="coverageNotShow">
<el-input <el-input
v-model="dataForm.shareMode" v-model="dataForm.shareMode"
:disabled="fieldDisabled" :disabled="fieldDisabled"
@ -108,14 +108,14 @@
placeholder="共享方条件" placeholder="共享方条件"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="服务接口"> <el-form-item label="服务接口" v-if="coverageNotShow">
<el-input <el-input
v-model="dataForm.apiUrl" v-model="dataForm.apiUrl"
:disabled="fieldDisabled" :disabled="fieldDisabled"
placeholder="服务接口" placeholder="服务接口"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="接口请求方式"> <el-form-item label="接口请求方式" v-if="coverageNotShow">
<el-input <el-input
v-model="dataForm.applyCount" v-model="dataForm.applyCount"
:disabled="fieldDisabled" :disabled="fieldDisabled"
@ -179,7 +179,8 @@ export default {
fieldDisabled: false, fieldDisabled: false,
dataForm: [], dataForm: [],
id: '', id: '',
shifoushizujian: true shifoushizujian: true,
coverageNotShow: true
} }
}, },
watch: {}, watch: {},
@ -208,6 +209,12 @@ export default {
} }
this.dataForm = res.data.resourceDTO this.dataForm = res.data.resourceDTO
if (this.dataForm.type != '应用资源') { if (this.dataForm.type != '应用资源') {
this.dataForm.infoList.forEach((val) => {
if (val.attrValue === '图层服务') {
this.coverageNotShow = false
console.log(this.coverageNotShow, 'wowowo')
}
})
this.shifoushizujian = false this.shifoushizujian = false
} else { } else {
this.shifoushizujian = true this.shifoushizujian = true

View File

@ -27,8 +27,15 @@
</div> </div>
<div class="content-right"> <div class="content-right">
<div class="content-right-left"> <div class="content-right-left">
<div class="content-right-title">{{ item.contact }}</div> <!-- <div class="content-right-title">{{ item.contact }}</div> -->
<div class="content-right-content"> <div class="content-right-content">
<p>
<span>{{ item.contact }}</span>
<a-tooltip>
<template #title>{{ item.facilitator.value }}</template>
<span>{{ item.facilitator.value }}</span>
</a-tooltip>
</p>
<p> <p>
<span>{{ item.people.name }}</span> <span>{{ item.people.name }}</span>
<a-tooltip> <a-tooltip>
@ -46,8 +53,15 @@
</div> </div>
</div> </div>
<div class="content-right-right"> <div class="content-right-right">
<div class="content-right-title">{{ item.contact2 }}</div> <!-- <div class="content-right-title">{{ item.contact2 }}</div> -->
<div class="content-right-content"> <div class="content-right-content">
<p>
<span>{{ item.contact2 }}</span>
<a-tooltip>
<template #title>{{ item.facilitator2.value }}</template>
<span>{{ item.facilitator2.value }}</span>
</a-tooltip>
</p>
<p> <p>
<span>{{ item.people2.name }}</span> <span>{{ item.people2.name }}</span>
<a-tooltip> <a-tooltip>
@ -83,19 +97,19 @@
name: '接口地址:', name: '接口地址:',
}, },
linkValue: '', linkValue: '',
contact: '归属部门', contact: '归属部门',
facilitator: { name: '归属部门:', value: '讯飞科大' }, facilitator: { name: '归属部门:', value: '' },
people: { name: '部门联系人:', value: '李四' }, people: { name: '部门联系人:', value: '' },
phone: { phone: {
name: '联系人电话:', name: '联系人电话:',
value: '12345678901', value: '',
}, },
contact2: '服务商', contact2: '服务商',
facilitator2: { name: '服务商:', value: '科大讯飞' }, facilitator2: { name: '服务商:', value: '' },
people2: { name: '服务商联系人:', value: '李四' }, people2: { name: '服务商联系人:', value: '' },
phone2: { phone2: {
name: '联系人电话:', name: '联系人电话:',
value: '1234567890', value: '',
}, },
}, },
], ],
@ -114,7 +128,7 @@
} else { } else {
// eslint-disable-next-line vue/no-setup-props-destructure // eslint-disable-next-line vue/no-setup-props-destructure
dataFrom.value.content[0].link.value = props.dataList.apiUrl dataFrom.value.content[0].link.value = props.dataList.apiUrl
dataFrom.value.content[0].facilitator.value = props.dataList.deptContacts dataFrom.value.content[0].facilitator.value = props.dataList.deptName
dataFrom.value.content[0].people.value = props.dataList.deptContacts dataFrom.value.content[0].people.value = props.dataList.deptContacts
dataFrom.value.content[0].phone.value = props.dataList.deptPhone dataFrom.value.content[0].phone.value = props.dataList.deptPhone
console.log('dataList', props.dataList) console.log('dataList', props.dataList)
@ -140,7 +154,7 @@
flag.value = false flag.value = false
} else { } else {
dataFrom.value.content[0].link.value = val.apiUrl dataFrom.value.content[0].link.value = val.apiUrl
dataFrom.value.content[0].facilitator.value = val.deptContacts dataFrom.value.content[0].facilitator.value = val.deptName
dataFrom.value.content[0].people.value = val.deptContacts dataFrom.value.content[0].people.value = val.deptContacts
dataFrom.value.content[0].phone.value = val.deptPhone dataFrom.value.content[0].phone.value = val.deptPhone
console.log('dataList', val) console.log('dataList', val)

View File

@ -11,21 +11,30 @@
<li v-for="(item, index) in dataFromLeft.content" :key="index"> <li v-for="(item, index) in dataFromLeft.content" :key="index">
<img :src="iconImg" /> <img :src="iconImg" />
<span>{{ item.type }}</span> <span>{{ item.type }}</span>
<a-tooltip>
<template #title>{{ item.values }}</template>
<p>{{ item.values }}</p> <p>{{ item.values }}</p>
</a-tooltip>
</li> </li>
</ul> </ul>
<ul> <ul>
<li v-for="(item, index) in dataFromCenter.content" :key="index"> <li v-for="(item, index) in dataFromCenter.content" :key="index">
<img :src="iconImg" /> <img :src="iconImg" />
<span>{{ item.type }}</span> <span>{{ item.type }}</span>
<a-tooltip>
<template #title>{{ item.values }}</template>
<p>{{ item.values }}</p> <p>{{ item.values }}</p>
</a-tooltip>
</li> </li>
</ul> </ul>
<ul> <ul>
<li v-for="(item, index) in dataFromRight.content" :key="index"> <li v-for="(item, index) in dataFromRight.content" :key="index">
<img :src="iconImg" /> <img :src="iconImg" />
<span>{{ item.type }}</span> <span>{{ item.type }}</span>
<a-tooltip>
<template #title>{{ item.values }}</template>
<p>{{ item.values }}</p> <p>{{ item.values }}</p>
</a-tooltip>
</li> </li>
</ul> </ul>
</div> </div>

View File

@ -129,7 +129,7 @@
} }
}) })
select.value = navList.value.filter( select.value = navList.value.filter(
(item) => item.name === list.value[0] (item) => item.name === '图层展示'
)[0].key )[0].key
console.log('11111111111111111111111111', list.value, navList.value) console.log('11111111111111111111111111', list.value, navList.value)
} }
@ -205,7 +205,7 @@
}) })
if (list.value.length > 0) { if (list.value.length > 0) {
select.value = navList.value.filter( select.value = navList.value.filter(
(item) => item.name === list.value[0] (item) => item.name === '图层展示'
)[0].key )[0].key
} }
console.log('11111111111111111111111111', list.value, navList.value) console.log('11111111111111111111111111', list.value, navList.value)