平台件项目库 合规认证计划设定
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
this.confirmLoading = true
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
this.confirmLoading = false
|
||||
this.$emit('associatedplatForm',selectedRowKeys.join(','))
|
||||
this.$emit('associatedplatForm',selectedRowKeys.join(','),this.flag)
|
||||
this.selectedRowKeys = []
|
||||
// postAction(this.url.addModel, {
|
||||
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
},
|
||||
{
|
||||
title: this.$t('design') + '-' + this.$t('typeOfDeliverables'),
|
||||
dataIndex: 'deliverableTypeName',
|
||||
dataIndex: 'designdeliverableTypeName',
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
width: 130
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
:scroll="{x: 1000}"
|
||||
:data-source="dataList"
|
||||
:pagination="false"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:flag !== '法规'?' ':'' }"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:'' }"
|
||||
:loading="loading">
|
||||
|
||||
</a-table>
|
||||
@@ -124,7 +124,7 @@ export default {
|
||||
},
|
||||
{
|
||||
title: this.$t('design') + '-' + this.$t('typeOfDeliverables'),
|
||||
dataIndex: 'deliverableTypeName',
|
||||
dataIndex: 'designdeliverableTypeName',
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
@@ -194,9 +194,9 @@ export default {
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
if (this.selectedRowKeys.length > 1 && this.flag !== '法规') {
|
||||
this.selectedRowKeys.shift()
|
||||
}
|
||||
// if (this.selectedRowKeys.length > 1 && this.flag !== '法规') {
|
||||
// this.selectedRowKeys.shift()
|
||||
// }
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
|
||||
@@ -1938,7 +1938,13 @@
|
||||
},
|
||||
// 关联平台件
|
||||
associatedplatformClick(){
|
||||
this.$refs.associatedplatRef.transferModel('法规')
|
||||
let flag = ''
|
||||
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){
|
||||
flag = '法规'
|
||||
}else{
|
||||
flag = '清单'
|
||||
}
|
||||
this.$refs.associatedplatRef.transferModel(flag)
|
||||
},
|
||||
//批量设置
|
||||
batSettingClick() {
|
||||
@@ -2546,8 +2552,13 @@
|
||||
transferListForm(id) {
|
||||
this.$refs.transferListvirtalRef.transferModel(id)
|
||||
},
|
||||
associatedplatForm(id){
|
||||
this.$refs.associatedplattwoRef.transferModel(id)
|
||||
associatedplatForm(id,flag){
|
||||
console.log(flag)
|
||||
if(flag == '法规'){
|
||||
this.$refs.associatedplatthreeRef.transferModel(id)
|
||||
}else{
|
||||
this.$refs.associatedplattwoRef.transferModel(id)
|
||||
}
|
||||
},
|
||||
associatedplattwoForm(id){
|
||||
this.$refs.associatedplatthreeRef.transferModel(id)
|
||||
|
||||
+3
-3
@@ -128,9 +128,9 @@
|
||||
add: 'platform/projectLibraryBase/add',
|
||||
edit: 'platform/projectLibraryBase/edit',
|
||||
queryByProjectId: 'platform/projectTaskPlanning/queryByProjectId',
|
||||
addSettingUrl: 'platform/projectTaskPlanning/add',
|
||||
editSettingUrl: 'platform/projectTaskPlanning/edit',
|
||||
settingQueryForm: '/platform/projectTaskPlanning/list'
|
||||
addSettingUrl: '/platform/platformTaskPlanningEO/addBatch',
|
||||
editSettingUrl: '/platform/platformTaskPlanningEO/addBatch',
|
||||
settingQueryForm: '/platform/platformTaskPlanningEO/list'
|
||||
},
|
||||
selectedRowKeys: [],
|
||||
idList: [],
|
||||
|
||||
+9
-7
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel">
|
||||
<a-input class="box-input"
|
||||
v-model="item.nodename"
|
||||
v-model="item.nodeName"
|
||||
:placeholder="$t('PleaseEnter')+$t('Nodename')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -37,7 +37,7 @@
|
||||
@change="dateChange(item,index)"
|
||||
format="YYYY-MM-DD"
|
||||
:getCalendarContainer="(trigger) => trigger.parentNode"
|
||||
v-model="item.date"
|
||||
v-model="item.nodeTime"
|
||||
:disabled="false"
|
||||
style="width: 100%"/>
|
||||
</a-form-model-item>
|
||||
@@ -114,17 +114,22 @@
|
||||
})
|
||||
},
|
||||
handleOk() {
|
||||
if(this.formInline.list){
|
||||
this.formInline.list.forEach(item => {
|
||||
item.projectId = this.$route.query.id
|
||||
})
|
||||
}
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let query = {
|
||||
...this.formInline,
|
||||
projectId: this.$route.query.id
|
||||
// projectId: this.$route.query.id
|
||||
}
|
||||
let url = ''
|
||||
let Action
|
||||
if (this.formInline.id) {
|
||||
url = this.url.editSettingUrl
|
||||
Action = putAction
|
||||
Action = postAction
|
||||
} else {
|
||||
url = this.url.addSettingUrl
|
||||
Action = postAction
|
||||
@@ -136,9 +141,6 @@
|
||||
this.visible = false
|
||||
this.confirmLoading = false
|
||||
this.$emit('settingListForm')
|
||||
if(res.result.matchVdr == true){
|
||||
this.vdrClick()
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.confirmLoading = false
|
||||
|
||||
Reference in New Issue
Block a user