Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -140,6 +140,10 @@
|
|||||||
formInline: {
|
formInline: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
currentPersonRole: {
|
||||||
|
type: String,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -203,7 +207,6 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
orderBy: '1',
|
orderBy: '1',
|
||||||
orderByField: '',
|
orderByField: '',
|
||||||
LoginUserType: '', // 登陆人角色状态
|
|
||||||
homo: 0, // 认证工程师
|
homo: 0, // 认证工程师
|
||||||
sdt: 0, // 工程接口人
|
sdt: 0, // 工程接口人
|
||||||
dre: 0, // 填写人
|
dre: 0, // 填写人
|
||||||
@@ -339,9 +342,8 @@
|
|||||||
}
|
}
|
||||||
getAction(this.url.getLoginUserType, params).then((res) => {
|
getAction(this.url.getLoginUserType, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.LoginUserType = res.result
|
|
||||||
this.getTableList()
|
this.getTableList()
|
||||||
this.$emit('LoginUserType', this.LoginUserType)
|
this.$emit('LoginUserType', res.result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -414,10 +416,11 @@
|
|||||||
getTableListReset() {
|
getTableListReset() {
|
||||||
let params = {
|
let params = {
|
||||||
paramsManifestId: this.paramsManifest.id,
|
paramsManifestId: this.paramsManifest.id,
|
||||||
userTypes: this.LoginUserType
|
userTypes: this.currentPersonRole
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$emit('listReset', '')
|
this.$emit('listReset', '')
|
||||||
|
// todo
|
||||||
getAction(this.url.tableList, params).then((res) => {
|
getAction(this.url.tableList, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result
|
this.dataSource = res.result
|
||||||
@@ -430,6 +433,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getTableList() {
|
getTableList() {
|
||||||
|
// todo
|
||||||
let paramsManifestid
|
let paramsManifestid
|
||||||
let url
|
let url
|
||||||
if (this.$route.query.it === undefined) {
|
if (this.$route.query.it === undefined) {
|
||||||
@@ -443,7 +447,7 @@
|
|||||||
url = 'params/collectManifestHistory/list'
|
url = 'params/collectManifestHistory/list'
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
userTypes: this.LoginUserType,
|
userTypes: this.currentPersonRole,
|
||||||
paramsManifestId: paramsManifestid,
|
paramsManifestId: paramsManifestid,
|
||||||
...this.formInline
|
...this.formInline
|
||||||
}
|
}
|
||||||
@@ -480,6 +484,9 @@
|
|||||||
paramsManifest(newVal, oldVal) {
|
paramsManifest(newVal, oldVal) {
|
||||||
this.getData()
|
this.getData()
|
||||||
this.getLoginUserType()
|
this.getLoginUserType()
|
||||||
|
},
|
||||||
|
currentPersonRole(newVal,oldVal){
|
||||||
|
console.log(newVal,oldVal)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -758,6 +758,7 @@
|
|||||||
//导出
|
//导出
|
||||||
handleExportManage(){
|
handleExportManage(){
|
||||||
if(JSON.stringify(this.parameter)=='{}'){
|
if(JSON.stringify(this.parameter)=='{}'){
|
||||||
|
console.log('pppp')
|
||||||
this.parameter.info_id=this.infoId
|
this.parameter.info_id=this.infoId
|
||||||
this.parameter.menu_id=this.menuId
|
this.parameter.menu_id=this.menuId
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,10 +72,10 @@
|
|||||||
<!-- // 游客 guest-->
|
<!-- // 游客 guest-->
|
||||||
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight">
|
<a-popconfirm overlayClassName='popconfirm' placement="bottomRight">
|
||||||
<template slot="title" id="popconfirm">
|
<template slot="title" id="popconfirm">
|
||||||
<!-- 退回-->
|
<!-- 添加-->
|
||||||
<div @click="returnDataJurisdiction" class="operator-text-title" v-if='currentPersonRole == "sdt" || currentPersonRole == "homo" || currentPersonRole == "dre"'>
|
<div @click="handleAdd" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
<a-icon type="delete"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('sendBack')}}
|
{{$t('addTo')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 下发收集 -->
|
<!-- 下发收集 -->
|
||||||
<div @click="distributionAndCollectionJurisdiction" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
<div @click="distributionAndCollectionJurisdiction" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
@@ -92,45 +92,45 @@
|
|||||||
<a-icon type="setting"/>
|
<a-icon type="setting"/>
|
||||||
{{$t('SynchronousReportLibrary')}}
|
{{$t('SynchronousReportLibrary')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 强制撤回-->
|
|
||||||
<div @click="compulsoryWithdrawaljurisdiction" class="operator-text-title" v-if='currentPersonRole == "homo" || currentPersonRole == "sdt" ||currentPersonRole == "dre"'>
|
|
||||||
<a-icon type="delete"/>
|
|
||||||
{{$t('CompulsoryWithdrawal')}}
|
|
||||||
</div>
|
|
||||||
<!-- 分配填写人-->
|
|
||||||
<div @click="assignedBy" class="operator-text-title" v-if='currentPersonRole == "sdt" '>
|
|
||||||
<a-icon type="copy"/>
|
|
||||||
{{$t('Assignedby')}}
|
|
||||||
</div>
|
|
||||||
<!-- 引用参数-->
|
|
||||||
<div @click="referenceparameter" class="operator-text-title" v-if='currentPersonRole == "dre" '>
|
|
||||||
<a-icon type="plus"/>
|
|
||||||
{{$t('referenceparameter')}}
|
|
||||||
</div>
|
|
||||||
<!-- 截止时间-->
|
<!-- 截止时间-->
|
||||||
<div @click="TaskCutOffTimeLibrary" class="operator-text-title" v-if='currentPersonRole == "homo" '>
|
<div @click="TaskCutOffTimeLibrary" class="operator-text-title" v-if='currentPersonRole == "homo" '>
|
||||||
<a-icon type="bulb"/>
|
<a-icon type="bulb"/>
|
||||||
{{$t('TaskCutOffTime')}}
|
{{$t('TaskCutOffTime')}}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 批量删除-->
|
||||||
|
<div @click="handleDelJurisdiction" class="operator-text-title" v-if='currentPersonRole == "homo"'>
|
||||||
|
<a-icon type="delete"/>
|
||||||
|
{{$t('BatchDelete')}}
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="operator-text" style="position: relative">
|
<div class="operator-text" style="position: relative">
|
||||||
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
||||||
</div>
|
</div>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
<!-- 添加-->
|
<!-- 分配填写人-->
|
||||||
<div @click="handleAdd" class="operator-text" v-if='currentPersonRole == "homo"'>
|
<div @click="assignedBy" class="operator-text" v-if='currentPersonRole == "sdt" '>
|
||||||
|
<a-icon type="copy"/>
|
||||||
|
{{$t('Assignedby')}}
|
||||||
|
</div>
|
||||||
|
<!-- 引用参数-->
|
||||||
|
<div @click="referenceparameter" class="operator-text" v-if='currentPersonRole == "dre" '>
|
||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
{{$t('addTo')}}
|
{{$t('referenceparameter')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 提交-->
|
<!-- 提交-->
|
||||||
<div @click="handleSubmit" class="operator-text" v-if='currentPersonRole == "dre"'>
|
<div @click="handleSubmit" class="operator-text" v-if='currentPersonRole == "dre"'>
|
||||||
<a-icon type="check-circle"/>
|
<a-icon type="check-circle"/>
|
||||||
{{$t('submit')}}
|
{{$t('submit')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 批量删除-->
|
<!-- 退回-->
|
||||||
<div @click="handleDelJurisdiction" class="operator-text" v-if='currentPersonRole == "homo"'>
|
<div @click="returnDataJurisdiction" class="operator-text" v-if='currentPersonRole == "sdt" || currentPersonRole == "homo" || currentPersonRole == "dre"'>
|
||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
{{$t('BatchDelete')}}
|
{{$t('sendBack')}}
|
||||||
|
</div>
|
||||||
|
<!-- 强制撤回-->
|
||||||
|
<div @click="compulsoryWithdrawaljurisdiction" class="operator-text" v-if='currentPersonRole == "homo" || currentPersonRole == "sdt" ||currentPersonRole == "dre"'>
|
||||||
|
<a-icon type="delete"/>
|
||||||
|
{{$t('CompulsoryWithdrawal')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- 角色切换 -->
|
<!-- 角色切换 -->
|
||||||
<div class="operator-text"
|
<div class="operator-text"
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<!-- 表格-10控件-->
|
<!-- 表格-10控件-->
|
||||||
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
|
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
|
||||||
:formInline='formInline' @LoginUserType='LoginUserType' @value='value' @listReset='listReset'/>
|
:formInline='formInline' :currentPersonRole='currentPersonRole' @value='value' @listReset='listReset' @LoginUserType='LoginUserType'/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 添加--->
|
<!-- 添加--->
|
||||||
<a-modal v-model="areaVisible" :title="$t('ParameterLibrary')" width='750px' :footer="null">
|
<a-modal v-model="areaVisible" :title="$t('ParameterLibrary')" width='750px' :footer="null">
|
||||||
@@ -207,6 +207,7 @@
|
|||||||
<synchronous-submission-library v-if='areaVisibsynchronous' :paramsManifest='paramsManifest' @GetgetTableList='GetgetTableList'
|
<synchronous-submission-library v-if='areaVisibsynchronous' :paramsManifest='paramsManifest' @GetgetTableList='GetgetTableList'
|
||||||
:selectedRowKeysArray='selectedRowKeysArray' @areaVisible='areaVisibsynchronous = false'/>
|
:selectedRowKeysArray='selectedRowKeysArray' @areaVisible='areaVisibsynchronous = false'/>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
<!-- 切换角色-->
|
||||||
<a-modal
|
<a-modal
|
||||||
:title="$t('roleSwitching')"
|
:title="$t('roleSwitching')"
|
||||||
:width="500"
|
:width="500"
|
||||||
@@ -381,9 +382,6 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
RoleType: [ // 控件类型
|
RoleType: [ // 控件类型
|
||||||
{value:'homo', label: '认证工程师' },
|
|
||||||
{value:'sdt', label: '工程接口人' },
|
|
||||||
{value:'dre', label: '填写人' },
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -395,13 +393,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.GetgetLoginUserType()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
handleCancelRoleSwitching() {
|
handleCancelRoleSwitching() {
|
||||||
this.visibleRoleSwitching = false
|
this.visibleRoleSwitching = false
|
||||||
},
|
},
|
||||||
handleOkRoleSwitching() {
|
handleOkRoleSwitching() {
|
||||||
//
|
this.visibleRoleSwitching = false
|
||||||
|
this.currentPersonRole = this.formInlineRoleSwitching.roleSwitchingCode
|
||||||
},
|
},
|
||||||
roleSwitchingClick() {
|
roleSwitchingClick() {
|
||||||
this.visibleRoleSwitching = true
|
this.visibleRoleSwitching = true
|
||||||
@@ -722,13 +722,11 @@ export default {
|
|||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
LoginUserType(val) {
|
LoginUserType(val) {
|
||||||
|
this.currentPersonRole = val.length > 1 ? val[0].value : ''
|
||||||
this.RoleType = val
|
this.RoleType = val
|
||||||
val.forEach((item) => {
|
this.formInlineRoleSwitching.roleSwitchingCode = this.currentPersonRole
|
||||||
console.log(item,'pppp')
|
this.formInlineRoleSwitching = {...this.formInlineRoleSwitching}
|
||||||
// if(item) {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 表格所选中得行内容
|
// 表格所选中得行内容
|
||||||
rowValue(val) {
|
rowValue(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user