Commit e57bf803 authored by xinzhedeai's avatar xinzhedeai

fix:商户详情编辑添加安全员权限处理;隐患审核与逾期上报安全员权限添加;首页usertag宽度自动调整处理

parent e1cdbd60
......@@ -172,7 +172,7 @@ body {
position: absolute;
right: 0.3rem;
top: 0.3rem;
width: 2rem;
min-width: 2rem;
height: 0.48rem;
background: #cfe8fd;
border-radius: 0.24rem;
......@@ -180,6 +180,8 @@ body {
font-size: 0.26rem;
color: #0166bc;
text-align: center;
padding-left: 0.1rem;
padding-right: 0.1rem;
}
.welcome .user_tag img {
......
......@@ -299,7 +299,7 @@
</van-action-sheet> -->
<!-- 隐患详情底部栏 -->
<div class="bottom_bar" v-if="flag=='3' && userType == 'wgy'">
<div class="bottom_bar" v-if="flag=='3' && (userType == 'wgy' || userType=='safety')">
<div>
<van-button type="primary" size="small" @click="shangbao">逾期上报</van-button>
......@@ -313,7 +313,7 @@
</div>
</div>
<div class="bottom_bar" v-if="flag=='2' && userType=='wgy'">
<div class="bottom_bar" v-if="flag=='2' && (userType == 'wgy' || userType=='safety')">
<div style="display: flex; justify-content: center; gap: 1rem">
<van-button type="danger" size="small" @click="validRefuse(0)" style="width: 2rem">拒绝</van-button>
<van-button type="info" size="small" @click="add4DSH_XQ(1)" style="width: 2rem">通过</van-button>
......
......@@ -6,7 +6,6 @@ window.addEventListener('load', function () {
el: '#app',
data() {
return {
// showCommunityModal:true,
previewUrl: BASE_URL,
loading: false,
finished: false,
......@@ -55,7 +54,7 @@ window.addEventListener('load', function () {
dict4fangwuType: [],
dict4fangwuyongtuType: [],
dict4businessType: [],
// dict4community: [],
dict4community: [],
dict4industryType: [],
consumerSuggestList: [],
}
......@@ -65,7 +64,7 @@ window.addEventListener('load', function () {
mounted() {
// 详情编辑权限控制
const userType = gemhoUtil.getCookie('userType')
if (userType == 'wgy') {
if (userType == 'wgy' || userType == 'safety') {
this.flag = 'XG'
} else {
this.flag = 'XQ'
......@@ -75,7 +74,7 @@ window.addEventListener('load', function () {
this.getDict4fangwuType()
this.getDict4fangwuyongtuType()
this.getDict4businessType()
// this.getDict4community()
this.getDict4community()
this.getDict4industryType()
// this.getDict4changhsuoType()
......@@ -94,11 +93,6 @@ window.addEventListener('load', function () {
}
},
methods: {
handleCommunityChange(value) {
// value是选中的路径数组,如 ['1', '1-1', '1-1-1']
// 根据需求决定存储完整路径还是最后一级值
this.formData.community = value[value.length - 1]; // 存储最后一级值
},
reset(){
this.page = 0
this.size = 9999
......@@ -145,6 +139,7 @@ window.addEventListener('load', function () {
return true;
},
afterRead(file, type) { // 调用爱山东中台系统,将数据流传递过去
alert(type)
vant.Toast.loading({
message: '正在处理...',
forbidClick: true,
......@@ -325,35 +320,35 @@ window.addEventListener('load', function () {
}
})
},
// getDict4community() {
// http2.post({
// serviceId: API_KEY_MAP["no-page"]['id'],
// interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
// interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
// reqParams: {
// sign: 22,
// }
// }, (res) => {
// if (!res) { // 中台返回为undefined 重新请求
// vant.Toast.clear()
// setTimeout(() => {
// // this.getDict4community()
// }, 0);
// return
// }
// if (res) {
// console.log('接口回调数据=所属社区', JSON.parse(res))
// setTimeout(() => {
// this.$nextTick(() => {
// vant.Toast.clear()
// })
// }, 0);
// var result = JSON.parse(res)
// this.dict4community = result.data
getDict4community() {
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
sign: 22,
}
}, (res) => {
if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear()
setTimeout(() => {
// this.getDict4community()
}, 0);
return
}
if (res) {
console.log('接口回调数据=所属社区', JSON.parse(res))
setTimeout(() => {
this.$nextTick(() => {
vant.Toast.clear()
})
}, 0);
var result = JSON.parse(res)
this.dict4community = result.data
// }
// })
// },
}
})
},
getDict4businessType() {
http2.post({
serviceId: API_KEY_MAP["page"]['id'],
......@@ -567,18 +562,12 @@ window.addEventListener('load', function () {
let tempData = result.data
if(tempData['businessLicensePhotos']){
tempData['businessLicensePhotos'] = tempData['businessLicensePhotos'].split(',')
}else{
tempData['businessLicensePhotos'] = []
}
if(tempData['floorPlanPhotos']){
tempData['floorPlanPhotos'] = tempData['floorPlanPhotos'].split(',')
}else{
tempData['floorPlanPhotos'] = []
}
if(tempData['storefrontPhotos']){
tempData['storefrontPhotos'] = tempData['storefrontPhotos'].split(',')
}else{
tempData['storefrontPhotos'] = []
}
this.formData = tempData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment