Commit 6507c7db authored by 李苏's avatar 李苏 💬

联动按钮

parent 92ee20f8
......@@ -38,8 +38,6 @@
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
console.log('兄弟组件通信',this.$attrs.vMain.$refs.lessIndex,this.$attrs.vMain.$refs.mainIndex)
await this.$asRun(
[QueryApptype(),
res => {
......@@ -53,7 +51,6 @@
}
]
)
this.$refs['TablePager'].pageQuery()
},
data() {
return {
......
......@@ -103,6 +103,13 @@
/* 删除操作*/
apiDelete: DelAppversion,
/* 初始化赋值操作*/
/* 点击主表事件*/
getRow: function(e) {
this.rowItem = e
let lessIndex=this.vMain.$refs.lessIndex
lessIndex.queryParams.mlid=this.rowItem.id
lessIndex.$refs['TablePager'].pageQuery()
}
},
/* 注册组件*/
components: {
......
......@@ -37,9 +37,7 @@
name: 'securityDocumentManagementDtl',
/* 初始额外赋值*/
async mounted() {
console.log('兄弟组件通信',this.$attrs.vMain.$refs.lessIndex,this.$attrs.vMain.$refs.mainIndex)
this.$refs['TablePager'].pageQuery()
},
data() {
return {
......
......@@ -30,7 +30,6 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
console.log(this.$router)
this.systemType = JSON.parse(JSON.stringify(this.app.systemType))
},
/* 组件名称*/
......
......@@ -70,6 +70,14 @@
async mounted() {
this.$refs['TablePager'].pageQuery()
},
props:{
vMain:{
type:Object,
default:function(){
return {}
}
}
},
data() {
return {
/*需要的额外参数 */
......@@ -108,7 +116,14 @@
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete
apiDelete: doDelete,
/* 点击主表事件*/
getRow: function(e) {
this.rowItem = e
let lessIndex=this.vMain.$refs.lessIndex
lessIndex.queryParams.mlid=this.rowItem.id
lessIndex.$refs['TablePager'].pageQuery()
}
},
/* 注册组件*/
components: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment