diff --git a/jero-web/src/components/SynchronousSubmissionLibrary/index.vue b/jero-web/src/components/SynchronousSubmissionLibrary/index.vue
new file mode 100644
index 000000000..9c2d5a5e4
--- /dev/null
+++ b/jero-web/src/components/SynchronousSubmissionLibrary/index.vue
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+ 是否同步选中行数据至上报库?
+ 同步后的参数项将不可修改,仅能重新下发收集,已更新参数
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
index dafa46bcb..d5ae742fe 100644
--- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
+++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
@@ -96,7 +96,7 @@
{{$t('referenceparameter')}}
-
+
@@ -187,6 +187,11 @@
+
+
+
+
@@ -194,6 +199,7 @@
import TableCollection from '@/components/tableCollection/index'
import { getAction,postAction } from '../../../api/manage'
import ParameterLibraryAdd from '@/components/ParameterLibraryAdd/index'
+import SynchronousSubmissionLibrary from '@/components/SynchronousSubmissionLibrary/index'
import TaskCutOffTime from '@/components/TaskCutOffTime/index'
import ReferenceParameter from '@/components/ReferenceParameter/index'
import AssignedBy from '@/components/AssignedBy/index'
@@ -208,7 +214,8 @@ export default {
ParameterLibraryAdd,
AssignedBy,
TaskCutOffTime,
- ReferenceParameter
+ ReferenceParameter,
+ SynchronousSubmissionLibrary
},
data(){
return{
@@ -294,6 +301,7 @@ export default {
areaVisibleAssignedby: false, // 分配填写人弹框
areaVisibleTaskCutOffTime: false, // 截至时间弹框
areaVisiblereferenceparameter: false, // 引用参数弹框
+ areaVisibsynchronous: false, // 同步上报库弹框
wrapperCol: {
xs: { span: 24 },
sm: { span: 14 }
@@ -403,7 +411,9 @@ export default {
}else if(this.sdt) {
flag = 0
this.$message.warning(this.$t('operatethisbutton'))
- } else {
+ } else {
+ flag = 0
+ console.log('ppp')
this.$message.warning(this.$t('operatethisbutton'))
}
return flag
@@ -434,6 +444,32 @@ export default {
}
return flag
},
+ // 填写人 截至时间 权限
+ // 仅仅状态为 可以截至时间
+ dreTaskCutOffTimeLibrary() {
+ // 定义开关 0为没有权限 1为有权限
+ let flag = 1
+ 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 !== '') {
+ flag = 0
+ }
+ })
+ if(flag === 1) {
+ flag = 1
+ } else {
+ this.$message.warning(this.$t('operatethisbutton'))
+ }
+ }
+ }else {
+ this.$message.warning(this.$t('operatethisbutton'))
+ }
+ return flag
+ },
// 认证工程师 强制撤回 权限
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
homoJurisdictionCompulsoryWithdrawal() {
@@ -493,6 +529,7 @@ export default {
}
}
} else {
+ flag = 0
this.$message.success(this.$t('operatethisbutton'))
}
return flag
@@ -528,7 +565,7 @@ export default {
dreJurisdictionSubmit() {
// 定义开关 0为没有权限 1为有权限
let flag = 1
- if(this.sdt) {
+ if(this.dre) {
if (this.selectedRowKeysValue.length == 0) {
flag = 0
this.$message.warning(this.$t('selectLeastOne'))
@@ -554,7 +591,7 @@ export default {
dreJurisdictionreferenceParameter() {
// 定义开关 0为没有权限 1为有权限
let flag = 1
- if(this.sdt) {
+ if(this.dre) {
if (this.selectedRowKeysValue.length == 0) {
flag = 0
this.$message.warning(this.$t('selectLeastOne'))
@@ -721,6 +758,7 @@ export default {
console.log(error);
});
},
+ // 同步上报库 权限
handleSynchronousReportLibraryJurisdiction() {
let homoJurisdictionSynchronousLibrary = this.homoJurisdictionSynchronousLibrary()
if(homoJurisdictionSynchronousLibrary) {
@@ -729,7 +767,7 @@ export default {
},
// 同步上报库
handleSynchronousReportLibrary() {
- console.log('同步上报库')
+ this.areaVisibsynchronous = true
},
// 添加
handleAdd() {
@@ -743,10 +781,7 @@ export default {
// 提交
handleSubmit() {
// 先判断提交权限
- if(this.homo || this.sdt) {
- // 认证工程师 工程接口人 任意状态 都无此权限
- this.$message.warning(this.$t('operatethisbutton'))
- } else {
+ if(this.dre) {
// 填写人 权限
let dreJurisdictionSubmit = this.dreJurisdictionSubmit()
if(dreJurisdictionSubmit) {
@@ -777,6 +812,9 @@ export default {
})
}
}
+ } else {
+ // 认证工程师 工程接口人 任意状态 都无此权限
+ this.$message.warning(this.$t('operatethisbutton'))
}
},
returnDataJurisdiction() {
@@ -870,15 +908,19 @@ export default {
},
// 分配填写人
assignedBy() {
- if(this.homo) {
- // 认证工程师 任意状态 都无此权限
- this.$message.warning(this.$t('operatethisbutton'))
- } else {
+ if(this.sdt) {
// 工程接口人
let sdtJurisdictionAssigned = this.sdtJurisdictionAssigned()
if(sdtJurisdictionAssigned) {
this.areaVisibleAssignedby = true
}
+ return
+ } else if(this.homo) {
+ // 认证工程师 任意状态 都无此权限
+ this.$message.warning(this.$t('operatethisbutton'))
+ }else if(this.dre) {
+ // 填写人 任意状态 都无此权限
+ this.$message.warning(this.$t('operatethisbutton'))
}
},
// 分配填写人确定后弹框关闭
@@ -886,12 +928,15 @@ export default {
this.areaVisibleAssignedby = val
},
// 截止时间
- TaskCutOffTime() {
+ TaskCutOffTimeLibrary() {
if(this.homo || this.sdt) {
// 认证工程师 任意状态 都无此权限
this.$message.warning(this.$t('operatethisbutton'))
} else {
- this.areaVisibleTaskCutOffTime = true
+ let dreTaskCutOffTimeLibrary = this.dreTaskCutOffTimeLibrary()
+ if(dreTaskCutOffTimeLibrary) {
+ this.areaVisibleTaskCutOffTime = true
+ }
}
},
// 截至时间确定弹框关闭