修改已知问题

This commit is contained in:
qq787203167
2022-05-25 14:59:03 +08:00
parent e9312d3a70
commit 1e78dae43a
5 changed files with 54 additions and 23 deletions
+2 -2
View File
@@ -596,11 +596,11 @@ module.exports = {
certificationType: '认证类型', certificationType: '认证类型',
certificationLevel: '认证级别', certificationLevel: '认证级别',
areaOfResponsibility: '责任领域', areaOfResponsibility: '责任领域',
confirmationOfDesignConformity: '法规设计符合性确认', confirmationOfDesignConformity: '设计符合性确认',
Deliverables: '交付物', Deliverables: '交付物',
personLiable: '责任人', personLiable: '责任人',
PrehomoConfirmation: 'Pre-Homo确认', PrehomoConfirmation: 'Pre-Homo确认',
verificationAndConformityconfirmation: '法规验证符合性确认', verificationAndConformityconfirmation: '验证符合性确认',
StandardImplementationDate: '标准实施日期', StandardImplementationDate: '标准实施日期',
regulatoryEngineer: '法规工程师', regulatoryEngineer: '法规工程师',
certifiedEngineer: '认证工程师', certifiedEngineer: '认证工程师',
+13 -10
View File
@@ -6,16 +6,18 @@
:style="{ padding: '0' , background:'#fff'}"> :style="{ padding: '0' , background:'#fff'}">
<div v-if="mode === 'sidemenu'" class="header" :class="theme"> <div v-if="mode === 'sidemenu'" class="header" :class="theme">
<!-- <a-icon--> <a-icon
<!-- v-if="device==='mobile'"--> v-if="device==='mobile'"
<!-- class="trigger"--> class="trigger"
<!-- :type="collapsed ? 'menu-fold' : 'menu-unfold'"--> style="color: #000"
<!-- @click="toggle"></a-icon>--> :type="collapsed ? 'menu-fold' : 'menu-unfold'"
<!-- <a-icon--> @click="toggle"></a-icon>
<!-- v-else--> <a-icon
<!-- class="trigger"--> v-else
<!-- :type="collapsed ? 'menu-unfold' : 'menu-fold'"--> class="trigger"
<!-- @click="toggle"/>--> style="color: #000"
:type="collapsed ? 'menu-unfold' : 'menu-fold'"
@click="toggle"/>
<!-- <span v-if="device === 'desktop'">欢迎进入 蔚来法规</span>--> <!-- <span v-if="device === 'desktop'">欢迎进入 蔚来法规</span>-->
<!-- <span v-else>Jero-Boot</span>--> <!-- <span v-else>Jero-Boot</span>-->
@@ -179,6 +181,7 @@
} }
} }
.trigger { .trigger {
background: #000;
line-height: 64px; line-height: 64px;
&:hover { &:hover {
background: rgba(0, 0, 0, 0.05); background: rgba(0, 0, 0, 0.05);
@@ -1,10 +1,12 @@
<template> <template>
<div class="customContent-box"> <div class="customContent-box">
<div class="box-content" v-for="(item,index) in dataSourceContentList" :key="index"> <div class="box-content-top">
<img src="../../../assets/jspg.png" class="img" alt=""> <div class="box-content" v-for="(item,index) in dataSourceContentList" :key="index" @click="urlClick(item)">
<div class="text">{{item.iconName}}</div> <img :src="item.iconPath" class="img" alt="">
<div class="text">{{item.iconName}}</div>
</div>
</div> </div>
<div class="box-content" @click="customClick()"> <div class="box-content" @click="customClick()" style=";margin-top: 0">
<img src="../../../assets/zdy.png" class="img" alt=""> <img src="../../../assets/zdy.png" class="img" alt="">
<div class="text">{{$t('custom')}}</div> <div class="text">{{$t('custom')}}</div>
</div> </div>
@@ -22,7 +24,7 @@
<div style="display: inline-block" v-for="(item,index) in dataSourceTopList"> <div style="display: inline-block" v-for="(item,index) in dataSourceTopList">
<div class="box-top" @click="statusClick(1,item,index)"> <div class="box-top" @click="statusClick(1,item,index)">
<div class="box-content"> <div class="box-content">
<img src="../../../assets/jspg.png" class="img" alt=""> <img :src="item.iconPath" class="img" alt="">
<div class="text">{{item.iconName}}</div> <div class="text">{{item.iconName}}</div>
</div> </div>
</div> </div>
@@ -101,10 +103,17 @@
dataSourceTopList.forEach(res => { dataSourceTopList.forEach(res => {
dataSource.unshift(res) dataSource.unshift(res)
}) })
postAction(this.url.add, dataSource).then((res) => { dataSource.forEach((res, index) => {
res.sort = index
})
let query = {
listMap: dataSource
}
postAction(this.url.add, query).then((res) => {
if (res.success) { if (res.success) {
this.visible = false this.visible = false
this.confirmLoading = false this.confirmLoading = false
this.getList()
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
} else { } else {
this.$message.warning(this.$t('operationFailed')) this.$message.warning(this.$t('operationFailed'))
@@ -115,6 +124,11 @@
handleCancel() { handleCancel() {
this.visible = false this.visible = false
}, },
urlClick(item) {
this.$router.push({
path: item.url
})
},
statusClick(num, item, index) { statusClick(num, item, index) {
if (num == 1) { if (num == 1) {
if (this.dataSourceTopList && this.dataSourceTopList.length > 0) { if (this.dataSourceTopList && this.dataSourceTopList.length > 0) {
@@ -137,9 +151,6 @@
} }
} else { } else {
this.dataSourceTopList.push(item) this.dataSourceTopList.push(item)
for (let i = 0; i < this.dataSourceTopList.length; i++) {
this.dataSourceTopList[i].sort = i
}
if (this.dataSource && this.dataSource.length > 0) { if (this.dataSource && this.dataSource.length > 0) {
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
if (this.dataSource[i].id == item.id) { if (this.dataSource[i].id == item.id) {
@@ -159,11 +170,20 @@
width: 100%; width: 100%;
text-align: center; text-align: center;
.box-content-top {
max-width: calc(100% - 130px);
display: inline-block;
overflow: hidden;
white-space: nowrap;
float: left;
}
.box-content { .box-content {
text-align: center; text-align: center;
display: inline-block; display: inline-block;
margin-right: 30px; margin-right: 30px;
cursor: pointer; cursor: pointer;
width: 100px;
.img { .img {
width: 44px; width: 44px;
@@ -196,6 +216,7 @@
margin-right: 30px; margin-right: 30px;
cursor: pointer; cursor: pointer;
margin-bottom: 30px; margin-bottom: 30px;
width: 100px;
.img { .img {
width: 44px; width: 44px;
@@ -253,6 +253,9 @@
} }
}) })
}, },
submitNoRule(callBack) {
callBack(this.formInline)
},
clickButtonToUpload(item) { clickButtonToUpload(item) {
this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.perentHandleFunc()
this.$refs.uploadFile.visible = true this.$refs.uploadFile.visible = true
@@ -222,7 +222,9 @@
this.textLoading = this.$t('terminationProcessing') this.textLoading = this.$t('terminationProcessing')
this.loading = true this.loading = true
this.queryBy.reviewResult = 'Termination of task' this.queryBy.reviewResult = 'Termination of task'
this.completeTask({ flag: 2, operatorTime: operatorTime }) this.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
this.completeTask({ flag: 2, operatorTime: operatorTime, ...res })
})
}, },
adopt(operatorTime) { adopt(operatorTime) {
this.$refs.reviewedByThePersonInChargeRef.submit((res) => { this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
@@ -241,7 +243,9 @@
} else { } else {
this.queryBy.reviewResult = 'No rating' this.queryBy.reviewResult = 'No rating'
} }
this.completeTask({ flag: 1, operatorTime: operatorTime }) this.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
this.completeTask({ flag: 1, operatorTime: operatorTime, ...res })
})
}, },
Resubmit(operatorTime) { Resubmit(operatorTime) {
this.$refs.reviewedByThePersonInChargeRef.submit((res) => { this.$refs.reviewedByThePersonInChargeRef.submit((res) => {