Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangzhijiang
2022-06-15 11:49:03 +08:00
5 changed files with 49 additions and 27 deletions
+1
View File
@@ -712,6 +712,7 @@ module.exports = {
uploadTime: 'Upload time',
enclosure: 'Enclosure',
// 认证
Areyousureparameteritems: 'Are you sure to submit the selected parameter items?',
Theselectedconfiguration: 'The selected item has incomplete data collection, unable to add configuration',
theCurrent: 'The current status of this data is',
thisbuttonCompleted: 'This button can only be operated when the status is completed',
+1
View File
@@ -723,6 +723,7 @@ module.exports = {
uploadTime: '上传时间',
enclosure: '附件',
// 认证
Areyousureparameteritems: '确认提交所选参数项嘛?',
Theselectedconfiguration: '所选项目有未完成收集数据不能添加配置',
theCurrent: '此数据当前状态为',
thisbuttonCompleted: '当状态为"已完成"才可操作此按钮',
@@ -24,7 +24,7 @@
</div>
<span slot="operationbtn" slot-scope="record">
<span v-if='homo === 1'>
<span v-if='currentPersonRole === "homo"'>
<!-- 认证工程师 -->
<span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更"'>
<span
@@ -56,7 +56,7 @@
<a-row :gutter='24'>
<a-col :span='24'>
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='region'>
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt">
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt">
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.label ">
{{ item.label }}
@@ -29,6 +29,7 @@
<div class="Virtual-detail-left">
<div class="Virtual-detail-left-text" :title="$t('projectDetails')"
v-has="'projectLawsInventory:projectDetails'"
v-if="isTrue"
@click="textClick(0,$t('projectDetails'))">
<a-icon type="container"/>
{{$t('projectDetails')}}
@@ -101,7 +102,7 @@
title: this.$t('projectDetails'),
isDisplayNum: '',
textTitle: '',
isTrue: false,
isTrue: true,
url: {
logList: '/project/projectLawsInventoryLogEO/page',
historicalVersionUrl: '',
@@ -134,7 +135,15 @@
this.textTitle = this.$t('TaskParameterCollection')
}
} else {
this.getList()
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
if (this.userInfo().userRoleList.length == 1 && this.userInfo().userRoleList[0].roleCode == 'sdt') {
this.getList()
} else {
this.textColor(0)
}
} else {
this.textColor(0)
}
}
},
methods: {
@@ -145,6 +154,7 @@
textColor[0].classList.remove('Virtual-detail-left-text-color')
}
let text = document.getElementsByClassName('Virtual-detail-left-text')
console.log(text)
if (name == 0) {
text[name].classList.add('Virtual-detail-left-text-color')
this.textTitle = text[name].title
@@ -217,14 +227,14 @@
dataSource.forEach(res => {
this.engineeringInterfacePerson += res.engineeringInterfacePerson + ','
})
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) {
this.isTrue = true
} else {
this.isTrue = false
}
this.$nextTick(() => {
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) {
this.isTrue = true
} else {
this.isTrue = false
}
this.textColor(0)
})
this.textColor(0)
} else {
this.textColor(0)
}
@@ -252,11 +252,11 @@
<a-row :gutter="24">
<a-col :span="24">
<div style='font-size: 20px;margin-bottom: 20px;display: flex;justify-content: center' class="box-title-text-index" v-for='(item,key) in NotSelectedRowKeysValue'>
<div>NIO编号为{{ item.nioNumber }},状态为{{ item.state }},没有此按钮的操作权限。</div>
<div>NIO编号为{{ item.nioNumber }},状态为<span style='color: red'>{{ item.state }}</span>,没有此按钮的操作权限。</div>
</div>
<!-- 认证工程师-提示-->
<div style='font-size: 16px;color: red;display: flex;justify-content: center'>
{{ currentPersonRole =='homo'? '认证工程师': (currentPersonRole =='sdt'? '工程接口人': '填写人') }} 数据状态为
{{ currentPersonRole =='homo'? '认证工程师': (currentPersonRole =='sdt'? '工程接口人': '填写人') }}数据状态为
<!-- 下发收集时-->
<span v-if='jurisdiction === "HOMOZFSJ"'>
'待发起收集'、'工程接口人退回'或'变更'
@@ -267,7 +267,7 @@
</span>
<!-- 截止时间-->
<span v-if='jurisdiction === "HOMOJZSJ"'>
'已提交'或'变更'
'待发起收集'
</span>
<!-- 分配填写人 -->
<span v-if='jurisdiction === "SDTFPTXR"'>
@@ -463,6 +463,7 @@ export default {
handleOkRoleSwitching() {
this.visibleRoleSwitching = false
this.currentPersonRole = this.formInlineRoleSwitching.roleSwitchingCode
this.selectedRowKeysValue = []
},
roleSwitchingClick() {
this.visibleRoleSwitching = true
@@ -475,6 +476,7 @@ export default {
},
// 错误数据的弹框
cancleoperationFailed() {
this.selectedRowKeysValue = []
this.visibleoperationFailed = false
this.GetgetTableList()
},
@@ -503,7 +505,7 @@ export default {
// 仅仅状态为 已提交 可以退回
homoJurisdictionReturn() {
// 认证工程师 已提交
if(currentPersonRole =='homo') {
if(this.currentPersonRole =='homo') {
this.NotSelectedRowKeysValue = []
// 定义开关 0为没有权限 1为有权限
let flag = 1
@@ -521,7 +523,7 @@ export default {
}
return flag
//工程接口人 待工程接口人处理 填写人退回
}else if(currentPersonRole =='sdt') {
}else if(this.currentPersonRole =='sdt') {
this.NotSelectedRowKeysValue = []
// 定义开关 0为没有权限 1为有权限
let flag = 1
@@ -539,7 +541,7 @@ export default {
}
return flag
//填写人 待填写 认证工程师退回
}else if(currentPersonRole =='dre') {
}else if(this.currentPersonRole =='dre') {
this.NotSelectedRowKeysValue = []
// 定义开关 0为没有权限 1为有权限
let flag = 1
@@ -598,7 +600,6 @@ export default {
},
// 填写人 截至时间 权限
// 仅仅状态为 可以截至时间
// todo 此状态为错误的
dreTaskCutOffTimeLibrary() {
// 定义开关 0为没有权限 1为有权限
this.NotSelectedRowKeysValue = []
@@ -608,7 +609,7 @@ export default {
this.$message.warning(this.$t('selectLeastOne'))
} else {
this.selectedRowKeysValue.forEach((item, index) => {
if(item.state !== '已提交' && item.state !== '变更') {
if(item.state !== '待发起收集') {
this.NotSelectedRowKeysValue.push(item)
flag = 0
}
@@ -620,7 +621,7 @@ export default {
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
homoJurisdictionCompulsoryWithdrawal() {
// 认证工程师 已提交
if(currentPersonRole =='homo') {
if(this.currentPersonRole =='homo') {
this.NotSelectedRowKeysValue = []
// 定义开关 0为没有权限 1为有权限
let flag = 1
@@ -639,7 +640,7 @@ export default {
return flag
// 工程接口人 强制撤回 权限
// 仅仅状态为 待填写 可以强制撤回
}else if(currentPersonRole =='sdt') {
}else if(this.currentPersonRole =='sdt') {
this.NotSelectedRowKeysValue = []
// 定义开关 0为没有权限 1为有权限
let flag = 1
@@ -657,7 +658,7 @@ export default {
}
return flag
//填写人 已提交
}else if(currentPersonRole =='dre') {
}else if(this.currentPersonRole =='dre') {
this.NotSelectedRowKeysValue = []
// 定义开关 0为没有权限 1为有权限
let flag = 1
@@ -698,6 +699,7 @@ export default {
// 填写人 提交 权限
// 仅仅状态为 待填写 认证工程师退回 可以提交
dreJurisdictionSubmit() {
console.log(this.selectedRowKeysValue,'this.selectedRowKeysValue')
// 定义开关 0为没有权限 1为有权限
this.NotSelectedRowKeysValue = []
let flag = 1
@@ -908,6 +910,7 @@ export default {
},
// 提交数据
ishandleSubmit() {
let _this = this
let postDate = []
this.selectedRowKeysValue.forEach((item, index) => {
let postDateobj = {}
@@ -930,12 +933,19 @@ export default {
if(this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne'))
}else {
postAction(this.url.add, configDataList).then((res) => {
if (res.success) {
this.GetgetTableList()
this.$message.success(this.$t('OperationSuccessful'))
} else {
this.$message.warning(this.$t('operationFailed'))
let _configDataListNo = []
this.$confirm({
content: _this.$t('Areyousureparameteritems'),
onOk() {
console.log(configDataList,'configDataListconfigDataList')
postAction(_this.url.add, configDataList).then((res) => {
if (res.success) {
_this.GetgetTableList()
_this.$message.success(this.$t('OperationSuccessful'))
} else {
_this.$message.warning(this.$t('operationFailed'))
}
})
}
})
}