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