原项目库 关联平台件按钮判断数据
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
:scroll="{x: 1000}"
|
||||
:data-source="dataList"
|
||||
:pagination="false"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:flag !== '法规'?' ':'' }"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:flag !== '1'?' ':'' }"
|
||||
:loading="loading">
|
||||
|
||||
</a-table>
|
||||
@@ -164,15 +164,17 @@
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
flag:'',
|
||||
type:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
transferModel(flag) {
|
||||
transferModel(flag,type) {
|
||||
this.visible = true
|
||||
this.flag = flag
|
||||
this.type = type
|
||||
this.queryParam = {}
|
||||
this.selectedRowKeys = []
|
||||
this.replacePage()
|
||||
@@ -214,7 +216,7 @@
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
if (this.selectedRowKeys.length > 1 && this.flag !== '法规') {
|
||||
if (this.selectedRowKeys.length > 1 && this.flag !== '1') {
|
||||
this.selectedRowKeys.shift()
|
||||
}
|
||||
},
|
||||
@@ -226,7 +228,7 @@
|
||||
this.confirmLoading = true
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
this.confirmLoading = false
|
||||
this.$emit('associatedplatForm',selectedRowKeys.join(','),this.flag)
|
||||
this.$emit('associatedplatForm',selectedRowKeys.join(','),this.flag,this.type)
|
||||
this.selectedRowKeys = []
|
||||
// postAction(this.url.addModel, {
|
||||
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
||||
|
||||
@@ -158,15 +158,19 @@
|
||||
loading: false,
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
total: 0
|
||||
total: 0,
|
||||
type:'',
|
||||
id:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
transferModel() {
|
||||
transferModel(id,type) {
|
||||
this.visible = true
|
||||
this.id = id
|
||||
this.type = type
|
||||
this.queryParam = {}
|
||||
this.selectedRowKeys = []
|
||||
this.replacePage()
|
||||
|
||||
@@ -144,15 +144,17 @@ export default {
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
flag:'',
|
||||
type:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
transferModel(flag) {
|
||||
transferModel(flag,type) {
|
||||
this.visible = true
|
||||
this.flag = flag
|
||||
this.type = type
|
||||
this.queryParam = {}
|
||||
this.selectedRowKeys = []
|
||||
this.replacePage()
|
||||
@@ -194,7 +196,7 @@ export default {
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
// if (this.selectedRowKeys.length > 1 && this.flag !== '法规') {
|
||||
// if (this.selectedRowKeys.length > 1 && this.flag !== '1') {
|
||||
// this.selectedRowKeys.shift()
|
||||
// }
|
||||
},
|
||||
@@ -206,7 +208,7 @@ export default {
|
||||
this.confirmLoading = true
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
this.confirmLoading = false
|
||||
this.$emit('associatedplattwoForm',selectedRowKeys.join(','))
|
||||
this.$emit('associatedplattwoForm',selectedRowKeys.join(','),this.type)
|
||||
this.selectedRowKeys = []
|
||||
// postAction(this.url.addModel, {
|
||||
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
||||
|
||||
@@ -217,6 +217,13 @@
|
||||
<a-icon type="file-search"/>
|
||||
{{ $t('processReset') }}
|
||||
</div>
|
||||
<!-- 关联平台件-->
|
||||
<div @click="associatedplatformClick('认证')"
|
||||
v-if="roleSwitchingCode == 0"
|
||||
class="operator-text-title">
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('Associatedplatform') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="operator-text" style="position: relative"
|
||||
@@ -472,6 +479,9 @@
|
||||
<reasonForReturn ref="reasonForReturnRef" @reasonForReturnForm="reasonForReturnForm"/>
|
||||
<addConfiguration ref="addConfigurationRef" @addConfigurationForm="transferListForm"/>
|
||||
<deadlineForm ref="deadlineFormRef" @deadlineDataForm="deadlineDataForm"/>
|
||||
<associatedplat :url="url" @associatedplatForm="associatedplatForm" ref="associatedplatRef"/>
|
||||
<associatedplattwo :url="url" @associatedplattwoForm="associatedplattwoForm" ref="associatedplattwoRef"/>
|
||||
<associatedplatthree :url="url" @associatedplatthreeForm="associatedplatthreeForm" ref="associatedplatthreeRef"/>
|
||||
<JLoading :loading="JTextLoading">{{ $t('Submitting') }}</JLoading>
|
||||
<!-- <a-modal-->
|
||||
<!-- :title="listTitle"-->
|
||||
@@ -551,6 +561,9 @@
|
||||
import viewFileModel from '@/components/viewFileModel/index'
|
||||
import ImportFile from '@/components/ImportFile/index'
|
||||
import transferList from './components/transferList'
|
||||
import associatedplat from '../associatedplat'
|
||||
import associatedplattwo from '../associatedplattwo'
|
||||
import associatedplatthree from '../associatedplatthree'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
import addModel from './components/addModel'
|
||||
import batSetting from './components/batSetting'
|
||||
@@ -580,6 +593,9 @@
|
||||
modifyHistory,
|
||||
uploadFile,
|
||||
TaskListModel,
|
||||
associatedplat,
|
||||
associatedplattwo,
|
||||
associatedplatthree,
|
||||
referenceDeliverablesList,
|
||||
SelectedBy,
|
||||
viewFileModel,
|
||||
@@ -1256,6 +1272,47 @@
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
},
|
||||
// 关联平台件
|
||||
associatedplatformClick(type){
|
||||
let flag = ''
|
||||
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){
|
||||
this.detailedWarningList = []
|
||||
let dataSource = []
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
for (let j = 0; j < this.selectedRowKeys.length; j++) {
|
||||
if (this.dataSource[i].id == this.selectedRowKeys[j]) {
|
||||
dataSource.push(this.dataSource[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < dataSource.length; i++) {
|
||||
if (dataSource[i].verifyFlowStatus == 'List to be released' &&
|
||||
dataSource[i].designFlowStatus == 'List to be released') {
|
||||
flag = '1'
|
||||
this.$refs.associatedplatRef.transferModel(flag,type)
|
||||
} else {
|
||||
this.$message.warning(this.$t('unpublishedregulationsselected'))
|
||||
return
|
||||
}
|
||||
}
|
||||
}else{
|
||||
flag = '2'
|
||||
this.$refs.associatedplatRef.transferModel(flag,type)
|
||||
}
|
||||
},
|
||||
associatedplatForm(id,flag,type){
|
||||
if(flag == '1'){
|
||||
this.$refs.associatedplatthreeRef.transferModel(id,type)
|
||||
}else{
|
||||
this.$refs.associatedplattwoRef.transferModel(id,type)
|
||||
}
|
||||
},
|
||||
associatedplattwoForm(id,type){
|
||||
this.$refs.associatedplatthreeRef.transferModel(id,type)
|
||||
},
|
||||
associatedplatthreeForm(id){
|
||||
console.log(id)
|
||||
},
|
||||
//添加
|
||||
handleAdd() {
|
||||
this.$refs.addModelRef.addModel()
|
||||
|
||||
@@ -162,10 +162,10 @@
|
||||
</div>
|
||||
<!-- 关联平台件-->
|
||||
<!-- v-if="this.roleSwitchingCode == '0'"-->
|
||||
<div class="operator-text" @click="associatedplatformClick">
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('Associatedplatform') }}
|
||||
</div>
|
||||
<!-- <div class="operator-text" @click="associatedplatformClick('法规')">-->
|
||||
<!-- <a-icon type="setting"/>-->
|
||||
<!-- {{ $t('Associatedplatform') }}-->
|
||||
<!-- </div>-->
|
||||
<!-- 列表设置-->
|
||||
<!-- v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '13'"-->
|
||||
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
|
||||
@@ -266,6 +266,13 @@
|
||||
<a-icon type="file-search"/>
|
||||
{{ $t('processReset') }}
|
||||
</div>
|
||||
<!-- 关联平台件-->
|
||||
<div @click="associatedplatformClick('法规')"
|
||||
v-if="roleSwitchingCode == 0"
|
||||
class="operator-text-title">
|
||||
<a-icon type="setting"/>
|
||||
{{ $t('Associatedplatform') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="operator-text" style="position: relative">
|
||||
@@ -1937,14 +1944,45 @@
|
||||
this.$refs.transferListRef.transferModel()
|
||||
},
|
||||
// 关联平台件
|
||||
associatedplatformClick(){
|
||||
associatedplatformClick(type){
|
||||
let flag = ''
|
||||
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){
|
||||
flag = '法规'
|
||||
this.detailedWarningList = []
|
||||
let dataSource = []
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
for (let j = 0; j < this.selectedRowKeys.length; j++) {
|
||||
if (this.dataSource[i].id == this.selectedRowKeys[j]) {
|
||||
dataSource.push(this.dataSource[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < dataSource.length; i++) {
|
||||
if (dataSource[i].verifyFlowStatus == 'List to be released' &&
|
||||
dataSource[i].designFlowStatus == 'List to be released') {
|
||||
flag = '1'
|
||||
this.$refs.associatedplatRef.transferModel(flag,type)
|
||||
} else {
|
||||
this.$message.warning(this.$t('unpublishedregulationsselected'))
|
||||
return
|
||||
}
|
||||
}
|
||||
}else{
|
||||
flag = '清单'
|
||||
flag = '2'
|
||||
this.$refs.associatedplatRef.transferModel(flag,type)
|
||||
}
|
||||
this.$refs.associatedplatRef.transferModel(flag)
|
||||
},
|
||||
associatedplatForm(id,flag,type){
|
||||
if(flag == '1'){
|
||||
this.$refs.associatedplatthreeRef.transferModel(id,type)
|
||||
}else{
|
||||
this.$refs.associatedplattwoRef.transferModel(id,type)
|
||||
}
|
||||
},
|
||||
associatedplattwoForm(id,type){
|
||||
this.$refs.associatedplatthreeRef.transferModel(id,type)
|
||||
},
|
||||
associatedplatthreeForm(id){
|
||||
console.log(id)
|
||||
},
|
||||
//批量设置
|
||||
batSettingClick() {
|
||||
@@ -2552,20 +2590,6 @@
|
||||
transferListForm(id) {
|
||||
this.$refs.transferListvirtalRef.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)
|
||||
},
|
||||
associatedplatthreeForm(id){
|
||||
console.log(id)
|
||||
},
|
||||
transferListFormHomo() {
|
||||
this.$refs.transferListRef.handleCancel()
|
||||
this.pageNo = 1
|
||||
|
||||
+2
-14
@@ -775,21 +775,9 @@
|
||||
})
|
||||
},
|
||||
DutyDepartChangeOne(event) {
|
||||
this.formInline.dutyTerritory = []
|
||||
// this.formInline.dutyTerritory = []
|
||||
this.formInline = {...this.formInline}
|
||||
this.getDutyTerritoryOne(event.join(','))
|
||||
},
|
||||
getDutyTerritoryOne(row) {
|
||||
let query = {
|
||||
dutyDepart: row
|
||||
}
|
||||
getAction('/sys/dict/getDutyTeryByDD', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dutyTerritoryList = res.result || []
|
||||
} else {
|
||||
this.dutyTerritoryList = []
|
||||
}
|
||||
})
|
||||
// this.getDutyTerritoryOne(event.join(','))
|
||||
},
|
||||
addModel() {
|
||||
this.visible = true
|
||||
|
||||
Reference in New Issue
Block a user