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