原项目库 关联平台件按钮判断数据
This commit is contained in:
@@ -72,7 +72,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:flag !== '1'?' ':'' }"
|
||||||
:loading="loading">
|
:loading="loading">
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
@@ -164,15 +164,17 @@
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
flag:'',
|
flag:'',
|
||||||
|
type:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
transferModel(flag) {
|
transferModel(flag,type) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.flag = flag
|
this.flag = flag
|
||||||
|
this.type = type
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
@@ -214,7 +216,7 @@
|
|||||||
},
|
},
|
||||||
onSelectChange(value) {
|
onSelectChange(value) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
if (this.selectedRowKeys.length > 1 && this.flag !== '法规') {
|
if (this.selectedRowKeys.length > 1 && this.flag !== '1') {
|
||||||
this.selectedRowKeys.shift()
|
this.selectedRowKeys.shift()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -226,7 +228,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.flag)
|
this.$emit('associatedplatForm',selectedRowKeys.join(','),this.flag,this.type)
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
// postAction(this.url.addModel, {
|
// postAction(this.url.addModel, {
|
||||||
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
||||||
|
|||||||
@@ -158,15 +158,19 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0
|
total: 0,
|
||||||
|
type:'',
|
||||||
|
id:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
transferModel() {
|
transferModel(id,type) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.id = id
|
||||||
|
this.type = type
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
|
|||||||
@@ -144,15 +144,17 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
flag:'',
|
flag:'',
|
||||||
|
type:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
transferModel(flag) {
|
transferModel(flag,type) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.flag = flag
|
this.flag = flag
|
||||||
|
this.type = type
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
@@ -194,7 +196,7 @@ 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 !== '1') {
|
||||||
// this.selectedRowKeys.shift()
|
// this.selectedRowKeys.shift()
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
@@ -206,7 +208,7 @@ export default {
|
|||||||
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('associatedplattwoForm',selectedRowKeys.join(','))
|
this.$emit('associatedplattwoForm',selectedRowKeys.join(','),this.type)
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
// postAction(this.url.addModel, {
|
// postAction(this.url.addModel, {
|
||||||
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
||||||
|
|||||||
@@ -217,6 +217,13 @@
|
|||||||
<a-icon type="file-search"/>
|
<a-icon type="file-search"/>
|
||||||
{{ $t('processReset') }}
|
{{ $t('processReset') }}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 关联平台件-->
|
||||||
|
<div @click="associatedplatformClick('认证')"
|
||||||
|
v-if="roleSwitchingCode == 0"
|
||||||
|
class="operator-text-title">
|
||||||
|
<a-icon type="setting"/>
|
||||||
|
{{ $t('Associatedplatform') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="operator-text" style="position: relative"
|
<div class="operator-text" style="position: relative"
|
||||||
@@ -472,6 +479,9 @@
|
|||||||
<reasonForReturn ref="reasonForReturnRef" @reasonForReturnForm="reasonForReturnForm"/>
|
<reasonForReturn ref="reasonForReturnRef" @reasonForReturnForm="reasonForReturnForm"/>
|
||||||
<addConfiguration ref="addConfigurationRef" @addConfigurationForm="transferListForm"/>
|
<addConfiguration ref="addConfigurationRef" @addConfigurationForm="transferListForm"/>
|
||||||
<deadlineForm ref="deadlineFormRef" @deadlineDataForm="deadlineDataForm"/>
|
<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>
|
<JLoading :loading="JTextLoading">{{ $t('Submitting') }}</JLoading>
|
||||||
<!-- <a-modal-->
|
<!-- <a-modal-->
|
||||||
<!-- :title="listTitle"-->
|
<!-- :title="listTitle"-->
|
||||||
@@ -551,6 +561,9 @@
|
|||||||
import viewFileModel from '@/components/viewFileModel/index'
|
import viewFileModel from '@/components/viewFileModel/index'
|
||||||
import ImportFile from '@/components/ImportFile/index'
|
import ImportFile from '@/components/ImportFile/index'
|
||||||
import transferList from './components/transferList'
|
import transferList from './components/transferList'
|
||||||
|
import associatedplat from '../associatedplat'
|
||||||
|
import associatedplattwo from '../associatedplattwo'
|
||||||
|
import associatedplatthree from '../associatedplatthree'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
import addModel from './components/addModel'
|
import addModel from './components/addModel'
|
||||||
import batSetting from './components/batSetting'
|
import batSetting from './components/batSetting'
|
||||||
@@ -580,6 +593,9 @@
|
|||||||
modifyHistory,
|
modifyHistory,
|
||||||
uploadFile,
|
uploadFile,
|
||||||
TaskListModel,
|
TaskListModel,
|
||||||
|
associatedplat,
|
||||||
|
associatedplattwo,
|
||||||
|
associatedplatthree,
|
||||||
referenceDeliverablesList,
|
referenceDeliverablesList,
|
||||||
SelectedBy,
|
SelectedBy,
|
||||||
viewFileModel,
|
viewFileModel,
|
||||||
@@ -1256,6 +1272,47 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
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() {
|
handleAdd() {
|
||||||
this.$refs.addModelRef.addModel()
|
this.$refs.addModelRef.addModel()
|
||||||
|
|||||||
@@ -162,10 +162,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 关联平台件-->
|
<!-- 关联平台件-->
|
||||||
<!-- v-if="this.roleSwitchingCode == '0'"-->
|
<!-- v-if="this.roleSwitchingCode == '0'"-->
|
||||||
<div class="operator-text" @click="associatedplatformClick">
|
<!-- <div class="operator-text" @click="associatedplatformClick('法规')">-->
|
||||||
<a-icon type="setting"/>
|
<!-- <a-icon type="setting"/>-->
|
||||||
{{ $t('Associatedplatform') }}
|
<!-- {{ $t('Associatedplatform') }}-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<!-- 列表设置-->
|
<!-- 列表设置-->
|
||||||
<!-- v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '13'"-->
|
<!-- v-if="this.roleSwitchingCode == '0' || this.roleSwitchingCode == '1' || this.roleSwitchingCode == '13'"-->
|
||||||
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
|
<a-popconfirm :visible="customizevisible" overlayClassName="popconfirmmize"
|
||||||
@@ -266,6 +266,13 @@
|
|||||||
<a-icon type="file-search"/>
|
<a-icon type="file-search"/>
|
||||||
{{ $t('processReset') }}
|
{{ $t('processReset') }}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 关联平台件-->
|
||||||
|
<div @click="associatedplatformClick('法规')"
|
||||||
|
v-if="roleSwitchingCode == 0"
|
||||||
|
class="operator-text-title">
|
||||||
|
<a-icon type="setting"/>
|
||||||
|
{{ $t('Associatedplatform') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="operator-text" style="position: relative">
|
<div class="operator-text" style="position: relative">
|
||||||
@@ -1937,14 +1944,45 @@
|
|||||||
this.$refs.transferListRef.transferModel()
|
this.$refs.transferListRef.transferModel()
|
||||||
},
|
},
|
||||||
// 关联平台件
|
// 关联平台件
|
||||||
associatedplatformClick(){
|
associatedplatformClick(type){
|
||||||
let flag = ''
|
let flag = ''
|
||||||
if(this.selectedRowKeys && this.selectedRowKeys.length > 0){
|
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{
|
}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() {
|
batSettingClick() {
|
||||||
@@ -2552,20 +2590,6 @@
|
|||||||
transferListForm(id) {
|
transferListForm(id) {
|
||||||
this.$refs.transferListvirtalRef.transferModel(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() {
|
transferListFormHomo() {
|
||||||
this.$refs.transferListRef.handleCancel()
|
this.$refs.transferListRef.handleCancel()
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
|
|||||||
+2
-14
@@ -775,21 +775,9 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
DutyDepartChangeOne(event) {
|
DutyDepartChangeOne(event) {
|
||||||
this.formInline.dutyTerritory = []
|
// this.formInline.dutyTerritory = []
|
||||||
this.formInline = {...this.formInline}
|
this.formInline = {...this.formInline}
|
||||||
this.getDutyTerritoryOne(event.join(','))
|
// 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 = []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
addModel() {
|
addModel() {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
|||||||
Reference in New Issue
Block a user