diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 57e72ec00..dff2d1037 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -707,6 +707,7 @@ module.exports = { uploadTime: 'Upload time', enclosure: 'enclosure', // 认证 + modifyprojectInterfacePerson: 'modify project Interface Person', operatethisbutton: 'You do not have permission to operate this button', ParameterLibrary: 'Parameter Library', referenceparameter: 'reference Parameter', diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index c15b0411e..c0f6d1d8c 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -717,6 +717,7 @@ module.exports = { uploadTime: '上传时间', enclosure: '附件', // 认证 + modifyprojectInterfacePerson: '修改工程接口人', operatethisbutton: '没有权限操作此按钮', ParameterLibrary: '参数库', referenceparameter: '引用参数', diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index d637e9288..f188a3caa 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -25,9 +25,36 @@ - - {{ record.dataValue == null? '--': record.dataValue}} - + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + + + {{ record.dataValue == null? '--': record.dataValue}} + @@ -49,9 +76,37 @@ - - - + + + + + + + + + + {{ item.label }} + + + + + + + + @@ -104,18 +159,59 @@ export default { sdt: 0, // 工程接口人 dre: 0, // 填写人 areaVisible: false, + form: {}, + rules: { + // templatetitle: [ + // { required: true, message: this.$t('enterTitle'), trigger: 'blur' } + // ] + }, + wrapperCol: { + xs: { span: 24 }, + sm: { span: 14 } + }, + labelCol: { + xs: { span: 24 }, + sm: { span: 7 } + }, + querySdtList: [], // 工程接口人 } }, mounted() { }, methods: { + // 获取工程接口人 + getquerySdtList(record) { + getAction(this.url.getquerySdtList, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => { + if (res.success) { + this.querySdtList = res.result + } + }) + }, + // 工程接口人 保存 + handleSubmit(record) { + this.areaVisible = false + postAction(this.url.updateSdt, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => { + if (res.success) { + this.querySdtList = res.result + } + }) + }, + // 工程接口人 取消 + cancleImports() { + this.areaVisible = false + }, + // 点击工程接口人的详情人员 有权限 + ondataValueTobeinitiated(record) { + this.areaVisible = true + this.getquerySdtList(record) + }, + // 点击工程接口人的详情人员 无权限 + ondataValueNot() { + this.$message.warning(this.$t('operatethisbutton')) + }, onHeaderRow(column, index) { console.log(column, index) }, - ondataValue() { - this.areaVisible = true - console.log('ppp') - }, getLoginUserType() { let params = { paramsManifestId: this.paramsManifest.id, @@ -239,7 +335,16 @@ export default { } } -