@@ -236,6 +293,7 @@
sdt: 0, // 工程接口人
dre: 0, // 填写人
areaVisible: false,
+ areaVisiblezr:false,
form: {},
rules: {
querySdt: [
@@ -244,6 +302,13 @@
message: this.$t('PleaseSelect') + this.$t('engineeringInterfacePerson'),
trigger: 'change'
}
+ ],
+ queryzr: [
+ {
+ required: true,
+ message: this.$t('PleaseSelect') + this.$t('areaOfResponsibility'),
+ trigger: 'change'
+ }
]
},
wrapperCol: {
@@ -346,6 +411,44 @@
}
})
},
+ // 责任领域 保存
+ handleSubmitzr(record) {
+ let _this = this
+ let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, }
+ this.$refs.ruleForm.validate(valid => {
+ if (valid) {
+ axios({
+ url: '/jero-boot/params/collectManifest/updateDutyTerritory',
+ method: 'post',
+ data: param,
+ transformRequest: [function(data) {
+ let ret = ''
+ for (let it in data) {
+ ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
+ }
+ return ret
+ }],
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'X-Access-Token': _this.token
+ }
+ })
+ .then((res) => {
+ console.log(res)
+ if (res.data.success) {
+ _this.$message.success(_this.$t('OperationSuccessful'))
+ _this.areaVisiblezr = false
+ this.getTableList()
+ } else {
+ _this.$message.warning(_this.$t('operationFailed'))
+ }
+ })
+ .catch((error) => {
+ console.log(error)
+ })
+ }
+ })
+ },
// 工程接口人 保存
handleSubmit(record) {
let _this = this
@@ -389,8 +492,12 @@
this.areaVisible = false
this.$refs['ruleForm'].resetFields()
},
+ cancel(){
+ this.areaVisiblezr = false
+ this.$refs['ruleForm'].resetFields()
+ },
// 点击工程接口人的详情人员 有权限
- ondataValueTobeinitiated(record) {
+ areaOfResponsibility(record) {
this.areaVisible = true
// this.$refs.ruleForm.clearValidate()
this.$nextTick(() => {
@@ -399,9 +506,22 @@
this.$refs.ruleForm.clearValidate()
})
},
+ // 点击责任领域的详情人员 有权限
+ ondataValueTobe(record) {
+ this.areaVisiblezr = true
+ // this.$refs.ruleForm.clearValidate()
+ this.$nextTick(() => {
+ this.Dateline = { ...this.Dateline }
+ this.getquerySdtId = record.id
+ this.$refs.ruleForm.clearValidate()
+ })
+ },
dataValueTobeinitiated() {
this.$message.warning(this.$t('certifiedEngineer') + this.$t('and') + this.$t('Statusis') + this.$t('CollectionInitiated') + this.$t('ReturnedPerson') + this.$t('alteration') + this.$t('toHavePermission'))
},
+ dataValueTobe() {
+ this.$message.warning(this.$t('certifiedEngineer') + this.$t('and') + this.$t('Statusis') + this.$t('CollectionInitiated') + this.$t('ReturnedPerson') + this.$t('toHavePermission'))
+ },
// 点击工程接口人的详情人员 无权限
ondataValueNot() {
this.$message.warning(this.$t('operatethisbutton'))
@@ -491,9 +611,15 @@
sorter: res.sort,
width: 160
})
+ console.log(res)
this.columns[index].scopedSlots = {
customRender: 'titleName'
}
+ if(res.click1){
+ this.columns[index].scopedSlots = {
+ customRender: 'operationzr'
+ }
+ }
if (res.click) {
// 工程接口人列表修改
this.columns[index].scopedSlots = {
diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
index 99c19a08b..46e74f812 100644
--- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
+++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
@@ -20,8 +20,8 @@
{{$t('newNiONumber')}}
-
+