[update] 权限
This commit is contained in:
@@ -188,29 +188,28 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TableCollection from '@/components/tableCollection/index'
|
import TableCollection from '@/components/tableCollection/index'
|
||||||
import { getAction, postAction } from '../../../api/manage'
|
import { getAction,postAction } from '../../../api/manage'
|
||||||
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
|
||||||
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
|
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
|
||||||
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
import ReferenceParameter from '@/components/ReferenceParameter/index'
|
||||||
import AssignedBy from '@/components/AssignedBy/index'
|
import AssignedBy from '@/components/AssignedBy/index'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
export default {
|
||||||
export default {
|
|
||||||
name: 'ParameterItemCollectionList',
|
name: 'ParameterItemCollectionList',
|
||||||
components: {
|
components:{
|
||||||
TableCollection,
|
TableCollection,
|
||||||
ParameterLibraryAdd,
|
ParameterLibraryAdd,
|
||||||
AssignedBy,
|
AssignedBy,
|
||||||
TaskCutOffTime,
|
TaskCutOffTime,
|
||||||
ReferenceParameter
|
ReferenceParameter
|
||||||
},
|
},
|
||||||
data() {
|
data(){
|
||||||
return {
|
return{
|
||||||
columns: [
|
columns:[
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -220,32 +219,32 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('status'),
|
title: this.$t('status'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'state'
|
dataIndex: 'state',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('parameterTemplateName'),
|
title: this.$t('parameterTemplateName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'paramsTemplateName'
|
dataIndex: 'paramsTemplateName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('collectionCompletionTime'),
|
title: this.$t('collectionCompletionTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'finishTime'
|
dataIndex: 'finishTime',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Version'),
|
title: this.$t('Version'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'version'
|
dataIndex: 'version',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('creator'),
|
title: this.$t('creator'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'createBy'
|
dataIndex: 'createBy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('createTime'),
|
title: this.$t('createTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'createTime'
|
dataIndex: 'createTime',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
@@ -264,7 +263,7 @@
|
|||||||
getLoginUserType: 'params/collectManifest/getLoginUserType', // 获取当前登陆人
|
getLoginUserType: 'params/collectManifest/getLoginUserType', // 获取当前登陆人
|
||||||
getquerySdtList: 'params/collectManifest/querySdtList', // 获取工程接口人的列表
|
getquerySdtList: 'params/collectManifest/querySdtList', // 获取工程接口人的列表
|
||||||
updateSdt: 'params/collectManifest/updateSdt', // 提交工程接口人
|
updateSdt: 'params/collectManifest/updateSdt', // 提交工程接口人
|
||||||
deleteBatch: 'params/collectManifest/deleteBatch'
|
deleteBatch: 'params/collectManifest/deleteBatch',
|
||||||
// deleteAll: 'params/manifest/deleteBatch',
|
// deleteAll: 'params/manifest/deleteBatch',
|
||||||
// conAdd: 'params/config/addBatch',
|
// conAdd: 'params/config/addBatch',
|
||||||
// conList: 'params/config/list',
|
// conList: 'params/config/list',
|
||||||
@@ -283,7 +282,7 @@
|
|||||||
version: 0,
|
version: 0,
|
||||||
itemId: '',
|
itemId: '',
|
||||||
selectedRowKeysValue: [], // table列表所选得数据
|
selectedRowKeysValue: [], // table列表所选得数据
|
||||||
token: Vue.ls.get(ACCESS_TOKEN),
|
token:Vue.ls.get(ACCESS_TOKEN),
|
||||||
homo: 0, // 认证工程师
|
homo: 0, // 认证工程师
|
||||||
sdt: 0, // 工程接口人
|
sdt: 0, // 工程接口人
|
||||||
dre: 0, // 填写人
|
dre: 0, // 填写人
|
||||||
@@ -301,7 +300,7 @@
|
|||||||
sm: { span: 7 }
|
sm: { span: 7 }
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
FreezeList: [] // 冻结字段
|
FreezeList: [], // 冻结字段
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -311,26 +310,61 @@
|
|||||||
require: true
|
require: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {},
|
||||||
},
|
methods:{
|
||||||
methods: {
|
|
||||||
// 认证工程师的权限
|
// 认证工程师的权限
|
||||||
// 认证工程师 退回 权限
|
// 认证工程师 退回 权限
|
||||||
// 仅仅状态为 已提交 可以退回
|
// 仅仅状态为 已提交 可以退回
|
||||||
homoJurisdictionReturn() {
|
homoJurisdictionReturn() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 0
|
let flag = 1
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
if (this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
this.$message.success(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
} else {
|
} else {
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
if (item.state === '已提交') {
|
if(item.state !== '已提交') {
|
||||||
flag = 1
|
flag = 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (flag === 1) {
|
if(flag === 1) {
|
||||||
|
flag = 1
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 工程接口人 退回 权限
|
||||||
|
// 待工程接口人处理 填写人退回
|
||||||
|
}else if(this.sdt){
|
||||||
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
} else {
|
||||||
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
|
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||||
|
flag = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(flag === 1) {
|
||||||
|
flag = 1
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if(this.dre){
|
||||||
|
// 填写人
|
||||||
|
// 待填写 认证工程师退回 状态
|
||||||
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
} else {
|
||||||
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
|
if(item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||||
|
flag = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(flag === 1) {
|
||||||
flag = 1
|
flag = 1
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
@@ -345,23 +379,27 @@
|
|||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
||||||
homoJurisdictionBatchdelete() {
|
homoJurisdictionBatchdelete() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 0
|
let flag = 1
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
if (this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
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 === '工程接口人退回' || item.state === '变更') {
|
if(item.state !== '待发起收集' && item.state !== '工程接口人退回' && item.state !== '变更') {
|
||||||
flag = 1
|
flag = 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (flag === 1) {
|
if(flag === 1) {
|
||||||
flag = 1
|
flag = 1
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 工程接口人没有权限
|
||||||
|
}else if(this.sdt) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
@@ -371,24 +409,24 @@
|
|||||||
// 仅仅状态为 已提交 变更 可以同步上报库
|
// 仅仅状态为 已提交 变更 可以同步上报库
|
||||||
homoJurisdictionSynchronousLibrary() {
|
homoJurisdictionSynchronousLibrary() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 0
|
let flag = 1
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
if (this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
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 !== '已提交' && item.state !== '变更') {
|
||||||
flag = 1
|
flag = 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (flag === 1) {
|
if(flag === 1) {
|
||||||
flag = 1
|
flag = 1
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
}else {
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
@@ -397,15 +435,111 @@
|
|||||||
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
|
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
|
||||||
homoJurisdictionCompulsoryWithdrawal() {
|
homoJurisdictionCompulsoryWithdrawal() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 0
|
let flag = 1
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
if (this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
this.$message.success(this.$t('selectLeastOne'))
|
this.$message.success(this.$t('selectLeastOne'))
|
||||||
} else {
|
} else {
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
if (item.state === '待工程接口人处理' || item.state === '填写人退回') {
|
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||||
|
flag = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(flag === 1) {
|
||||||
flag = 1
|
flag = 1
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 工程接口人 强制撤回 权限
|
||||||
|
// 仅仅状态为 待填写 可以强制撤回
|
||||||
|
}else if(this.sdt){
|
||||||
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
} else {
|
||||||
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
|
if(item.state !== '待填写') {
|
||||||
|
flag = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(flag === 1) {
|
||||||
|
flag = 1
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.success(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
return flag
|
||||||
|
},
|
||||||
|
// 工程接口人 分配填写人 权限
|
||||||
|
// 仅仅状态为 待工程接口人处理 填写人退回 可以分配填写人
|
||||||
|
sdtJurisdictionAssigned() {
|
||||||
|
// 定义开关 0为没有权限 1为有权限
|
||||||
|
let flag = 1
|
||||||
|
if(this.sdt) {
|
||||||
|
if (this.selectedRowKeysValue.length == 0) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
} else {
|
||||||
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
|
if (item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||||
|
flag = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (flag === 1) {
|
||||||
|
flag = 1
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.success(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
return flag
|
||||||
|
},
|
||||||
|
// 填写人 提交 权限
|
||||||
|
// 仅仅状态为 待填写 认证工程师退回 可以提交
|
||||||
|
dreJurisdictionSubmit() {
|
||||||
|
// 定义开关 0为没有权限 1为有权限
|
||||||
|
let flag = 1
|
||||||
|
if(this.sdt) {
|
||||||
|
if (this.selectedRowKeysValue.length == 0) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
} else {
|
||||||
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
|
if (item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||||
|
flag = 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (flag === 1) {
|
||||||
|
flag = 1
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.success(this.$t('operatethisbutton'))
|
||||||
|
}
|
||||||
|
return flag
|
||||||
|
},
|
||||||
|
// 填写人 引用参数 权限
|
||||||
|
// 仅仅状态为 待填写 认证工程师退回 可以引用参数
|
||||||
|
dreJurisdictionreferenceParameter() {
|
||||||
|
// 定义开关 0为没有权限 1为有权限
|
||||||
|
let flag = 1
|
||||||
|
if(this.sdt) {
|
||||||
|
if (this.selectedRowKeysValue.length == 0) {
|
||||||
|
flag = 0
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
} else {
|
||||||
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
|
if (item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||||
|
flag = 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (flag === 1) {
|
if (flag === 1) {
|
||||||
@@ -419,42 +553,13 @@
|
|||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
|
|
||||||
// 工程接口人
|
|
||||||
|
|
||||||
// 工程接口人 下发收集 权限
|
|
||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以下发收集
|
|
||||||
// homoJurisdictionDistributionCollection() {
|
|
||||||
// // 定义开关 0为没有权限 1为有权限
|
|
||||||
// let flag = 1
|
|
||||||
// if(this.homo) {
|
|
||||||
// if(this.selectedRowKeysValue.length == 0) {
|
|
||||||
// flag = 0
|
|
||||||
// this.$message.success(this.$t('selectLeastOne'))
|
|
||||||
// } else {
|
|
||||||
// this.selectedRowKeysValue.forEach((item, index) => {
|
|
||||||
// if(item.state !== '待发起收集' && item.state !== '工程接口人退回' && item.state !== '变更') {
|
|
||||||
// flag = 0
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// if(flag === 1) {
|
|
||||||
// flag = 1
|
|
||||||
// } else {
|
|
||||||
// this.$message.warning(this.$t('operatethisbutton'))
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }else {
|
|
||||||
// this.$message.success(this.$t('operatethisbutton'))
|
|
||||||
// }
|
|
||||||
// return flag
|
|
||||||
// },
|
|
||||||
LoginUserType(val) {
|
LoginUserType(val) {
|
||||||
val.split(',').forEach((item, index) => {
|
val.split(',').forEach((item,index) => {
|
||||||
if (item === 'homo') {
|
if(item === 'homo') {
|
||||||
this.homo = 1
|
this.homo = 1
|
||||||
} else if (item === 'sdt') {
|
} else if(item === 'sdt') {
|
||||||
this.sdt = 1
|
this.sdt = 1
|
||||||
} else if (item === 'dre') {
|
} else if(item === 'dre') {
|
||||||
this.dre = 1
|
this.dre = 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -470,7 +575,7 @@
|
|||||||
},
|
},
|
||||||
// 冻结配置
|
// 冻结配置
|
||||||
freezeConfiguration() {
|
freezeConfiguration() {
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
// 认证工程师 任意状态 都有此权限
|
// 认证工程师 任意状态 都有此权限
|
||||||
this.areaVisibleFreeze = true
|
this.areaVisibleFreeze = true
|
||||||
// 获取冻结配置数据
|
// 获取冻结配置数据
|
||||||
@@ -482,12 +587,12 @@
|
|||||||
// 冻结配置提交
|
// 冻结配置提交
|
||||||
handleSubmitFreeze() {
|
handleSubmitFreeze() {
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { paramsManifestId: this.paramsManifest.id, paramsConfigIds: this.Dateline.paramsConfig }
|
let param = {paramsManifestId: this.paramsManifest.id, paramsConfigIds: this.Dateline.paramsConfig}
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/lockConfigColumn',
|
url: '/jero-boot/params/collectManifest/lockConfigColumn',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param,
|
data: param,
|
||||||
transformRequest: [function(data) {
|
transformRequest: [function (data) {
|
||||||
let ret = ''
|
let ret = ''
|
||||||
for (let it in data) {
|
for (let it in data) {
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
@@ -496,22 +601,22 @@
|
|||||||
}],
|
}],
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'X-Access-Token': _this.token
|
'X-Access-Token':_this.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then( (res) =>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
_this.$message.success(res.data.result)
|
_this.$message.success(res.data.result)
|
||||||
this.areaVisibleFreeze = false
|
this.areaVisibleFreeze = false
|
||||||
this.$refs.CollectionTabel.getTableList()
|
this.$refs.CollectionTabel.getTableList()
|
||||||
} else {
|
}else{
|
||||||
_this.$message.warning(res.data.result)
|
_this.$message.warning(res.data.result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch( (error) =>{
|
||||||
console.log(error)
|
console.log(error);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// 冻结配置取消
|
// 冻结配置取消
|
||||||
cancleImportsFreeze() {
|
cancleImportsFreeze() {
|
||||||
@@ -519,12 +624,12 @@
|
|||||||
},
|
},
|
||||||
getFreeze() {
|
getFreeze() {
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { paramsManifestId: this.paramsManifest.id, configFlag: 2 }
|
let param = {paramsManifestId: this.paramsManifest.id, configFlag: 2}
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/getConfigLableList',
|
url: '/jero-boot/params/collectManifest/getConfigLableList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param,
|
data: param,
|
||||||
transformRequest: [function(data) {
|
transformRequest: [function (data) {
|
||||||
let ret = ''
|
let ret = ''
|
||||||
for (let it in data) {
|
for (let it in data) {
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
@@ -533,25 +638,25 @@
|
|||||||
}],
|
}],
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'X-Access-Token': _this.token
|
'X-Access-Token':_this.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then( (res) =>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
this.FreezeList = res.data.result
|
this.FreezeList = res.data.result
|
||||||
} else {
|
}else{
|
||||||
_this.$message.warning(res.data.result)
|
_this.$message.warning(res.data.result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch( (error) =>{
|
||||||
console.log(error)
|
console.log(error);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// 下发收集的权限
|
// 下发收集的权限
|
||||||
distributionAndCollectionJurisdiction() {
|
distributionAndCollectionJurisdiction() {
|
||||||
let homoJurisdictionBatchdelete = this.homoJurisdictionBatchdelete()
|
let homoJurisdictionBatchdelete = this.homoJurisdictionBatchdelete()
|
||||||
if (homoJurisdictionBatchdelete) {
|
if(homoJurisdictionBatchdelete) {
|
||||||
console.log(';;;;')
|
console.log(';;;;')
|
||||||
this.distributionAndCollection()
|
this.distributionAndCollection()
|
||||||
}
|
}
|
||||||
@@ -563,12 +668,12 @@
|
|||||||
_array.push(item.id)
|
_array.push(item.id)
|
||||||
})
|
})
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { projectId: this.$route.query.id, ids: _array.join(',') }
|
let param = {projectId: this.$route.query.id, ids: _array.join(',')}
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/issueCollection',
|
url: '/jero-boot/params/collectManifest/issueCollection',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param,
|
data: param,
|
||||||
transformRequest: [function(data) {
|
transformRequest: [function (data) {
|
||||||
let ret = ''
|
let ret = ''
|
||||||
for (let it in data) {
|
for (let it in data) {
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
@@ -577,27 +682,27 @@
|
|||||||
}],
|
}],
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'X-Access-Token': _this.token
|
'X-Access-Token':_this.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then( (res) =>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
_this.$message.success(res.data.result)
|
_this.$message.success(res.data.result)
|
||||||
_this.areaVisible = false
|
_this.areaVisible = false
|
||||||
_this.getTableList()
|
_this.getTableList()
|
||||||
_this.selectedRowKeysValue = []
|
_this.selectedRowKeysValue=[]
|
||||||
} else {
|
}else{
|
||||||
_this.$message.warning(res.data.result)
|
_this.$message.warning(res.data.result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch( (error) =>{
|
||||||
console.log(error)
|
console.log(error);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
handleSynchronousReportLibraryJurisdiction() {
|
handleSynchronousReportLibraryJurisdiction() {
|
||||||
let homoJurisdictionSynchronousLibrary = this.homoJurisdictionSynchronousLibrary()
|
let homoJurisdictionSynchronousLibrary = this.homoJurisdictionSynchronousLibrary()
|
||||||
if (homoJurisdictionSynchronousLibrary) {
|
if(homoJurisdictionSynchronousLibrary) {
|
||||||
this.handleSynchronousReportLibrary()
|
this.handleSynchronousReportLibrary()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -607,7 +712,7 @@
|
|||||||
},
|
},
|
||||||
// 添加
|
// 添加
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
// 认证工程师 任意状态 都有此权限
|
// 认证工程师 任意状态 都有此权限
|
||||||
this.areaVisible = true
|
this.areaVisible = true
|
||||||
} else {
|
} else {
|
||||||
@@ -617,17 +722,20 @@
|
|||||||
// 提交
|
// 提交
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// 先判断提交权限
|
// 先判断提交权限
|
||||||
if (this.homo || this.sdt) {
|
if(this.homo || this.sdt) {
|
||||||
// 认证工程师 工程接口人 任意状态 都无此权限
|
// 认证工程师 工程接口人 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
|
// 填写人 权限
|
||||||
|
let dreJurisdictionSubmit = this.dreJurisdictionSubmit()
|
||||||
|
if(dreJurisdictionSubmit) {
|
||||||
// 提交数据
|
// 提交数据
|
||||||
let postDate = []
|
let postDate = []
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
let postDateobj = {}
|
let postDateobj = {}
|
||||||
Object.keys(item).forEach((itemIn, index) => {
|
Object.keys(item).forEach((itemIn, index) => {
|
||||||
if (itemIn !== 'sdt') {
|
if(itemIn !== 'sdt') {
|
||||||
if (item[itemIn] instanceof Object) {
|
if(item[itemIn] instanceof Object) {
|
||||||
postDateobj[itemIn] = item[itemIn]
|
postDateobj[itemIn] = item[itemIn]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -636,9 +744,9 @@
|
|||||||
postDate.push(postDateobj)
|
postDate.push(postDateobj)
|
||||||
})
|
})
|
||||||
let configDataList = { configDataList: postDate }
|
let configDataList = { configDataList: postDate }
|
||||||
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) => {
|
postAction(this.url.add, configDataList).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
@@ -648,10 +756,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
returnDataJurisdiction() {
|
returnDataJurisdiction() {
|
||||||
// 退回的状态权限
|
// 退回的状态权限
|
||||||
let homoJurisdictionReturn = this.homoJurisdictionReturn
|
let homoJurisdictionReturn = this.homoJurisdictionReturn()
|
||||||
if (homoJurisdictionReturn) {
|
if (homoJurisdictionReturn) {
|
||||||
this.returnData()
|
this.returnData()
|
||||||
}
|
}
|
||||||
@@ -663,12 +772,12 @@
|
|||||||
_array.push(item.id)
|
_array.push(item.id)
|
||||||
})
|
})
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { ids: _array.join(',') }
|
let param = {ids: _array.join(',')}
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/back',
|
url: '/jero-boot/params/collectManifest/back',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param,
|
data: param,
|
||||||
transformRequest: [function(data) {
|
transformRequest: [function (data) {
|
||||||
let ret = ''
|
let ret = ''
|
||||||
for (let it in data) {
|
for (let it in data) {
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
@@ -677,26 +786,26 @@
|
|||||||
}],
|
}],
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'X-Access-Token': _this.token
|
'X-Access-Token':_this.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then( (res) =>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
_this.$message.success(res.data.result)
|
_this.$message.success(res.data.result)
|
||||||
_this.getTableList()
|
_this.getTableList()
|
||||||
_this.selectedRowKeysValue = []
|
_this.selectedRowKeysValue=[]
|
||||||
} else {
|
}else{
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch( (error) =>{
|
||||||
console.log(error)
|
console.log(error);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
compulsoryWithdrawaljurisdiction() {
|
compulsoryWithdrawaljurisdiction() {
|
||||||
let homoJurisdictionCompulsoryWithdrawal = this.homoJurisdictionCompulsoryWithdrawal()
|
let homoJurisdictionCompulsoryWithdrawal = this.homoJurisdictionCompulsoryWithdrawal()
|
||||||
if (homoJurisdictionCompulsoryWithdrawal) {
|
if(homoJurisdictionCompulsoryWithdrawal) {
|
||||||
this.compulsoryWithdrawal()
|
this.compulsoryWithdrawal()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -707,12 +816,12 @@
|
|||||||
_array.push(item.id)
|
_array.push(item.id)
|
||||||
})
|
})
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { ids: _array.join(',') }
|
let param = {ids: _array.join(',')}
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/withdraw',
|
url: '/jero-boot/params/collectManifest/withdraw',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: param,
|
data: param,
|
||||||
transformRequest: [function(data) {
|
transformRequest: [function (data) {
|
||||||
let ret = ''
|
let ret = ''
|
||||||
for (let it in data) {
|
for (let it in data) {
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
@@ -721,31 +830,35 @@
|
|||||||
}],
|
}],
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'X-Access-Token': _this.token
|
'X-Access-Token':_this.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then( (res) =>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
_this.$message.success(res.data.result)
|
_this.$message.success(res.data.result)
|
||||||
_this.getTableList()
|
_this.getTableList()
|
||||||
_this.selectedRowKeysValue = []
|
_this.selectedRowKeysValue=[]
|
||||||
} else {
|
}else{
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch( (error) =>{
|
||||||
console.log(error)
|
console.log(error);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// 分配填写人
|
// 分配填写人
|
||||||
assignedBy() {
|
assignedBy() {
|
||||||
if (this.homo) {
|
if(this.homo) {
|
||||||
// 认证工程师 任意状态 都无此权限
|
// 认证工程师 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
|
// 工程接口人
|
||||||
|
let sdtJurisdictionAssigned = this.sdtJurisdictionAssigned()
|
||||||
|
if(sdtJurisdictionAssigned) {
|
||||||
this.areaVisibleAssignedby = true
|
this.areaVisibleAssignedby = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 分配填写人确定后弹框关闭
|
// 分配填写人确定后弹框关闭
|
||||||
areaVisibleAssignedbyflag(val) {
|
areaVisibleAssignedbyflag(val) {
|
||||||
@@ -753,7 +866,7 @@
|
|||||||
},
|
},
|
||||||
// 截止时间
|
// 截止时间
|
||||||
TaskCutOffTime() {
|
TaskCutOffTime() {
|
||||||
if (this.homo || this.sdt) {
|
if(this.homo || this.sdt) {
|
||||||
// 认证工程师 任意状态 都无此权限
|
// 认证工程师 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
@@ -767,12 +880,16 @@
|
|||||||
},
|
},
|
||||||
//引用参数
|
//引用参数
|
||||||
referenceparameter() {
|
referenceparameter() {
|
||||||
if (this.homo || this.sdt) {
|
if(this.homo || this.sdt) {
|
||||||
// 认证工程师 工程接口人 任意状态 都无此权限
|
// 认证工程师 工程接口人 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
|
// 填写人的权限
|
||||||
|
let dreJurisdictionreferenceParameter = this.dreJurisdictionreferenceParameter()
|
||||||
|
if(dreJurisdictionreferenceParameter) {
|
||||||
this.areaVisiblereferenceparameter = true
|
this.areaVisiblereferenceparameter = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleModule() {
|
handleModule() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user