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

联动按钮

parent 92ee20f8
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
name: 'appVersion', name: 'appVersion',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
console.log('兄弟组件通信',this.$attrs.vMain.$refs.lessIndex,this.$attrs.vMain.$refs.mainIndex)
await this.$asRun( await this.$asRun(
[QueryApptype(), [QueryApptype(),
res => { res => {
...@@ -53,7 +51,6 @@ ...@@ -53,7 +51,6 @@
} }
] ]
) )
this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
......
...@@ -103,6 +103,13 @@ ...@@ -103,6 +103,13 @@
/* 删除操作*/ /* 删除操作*/
apiDelete: DelAppversion, 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: { components: {
......
...@@ -37,9 +37,7 @@ ...@@ -37,9 +37,7 @@
name: 'securityDocumentManagementDtl', name: 'securityDocumentManagementDtl',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
console.log('兄弟组件通信',this.$attrs.vMain.$refs.lessIndex,this.$attrs.vMain.$refs.mainIndex)
this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
console.log(this.$router)
this.systemType = JSON.parse(JSON.stringify(this.app.systemType)) this.systemType = JSON.parse(JSON.stringify(this.app.systemType))
}, },
/* 组件名称*/ /* 组件名称*/
......
...@@ -70,6 +70,14 @@ ...@@ -70,6 +70,14 @@
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
props:{
vMain:{
type:Object,
default:function(){
return {}
}
}
},
data() { data() {
return { return {
/*需要的额外参数 */ /*需要的额外参数 */
...@@ -108,7 +116,14 @@ ...@@ -108,7 +116,14 @@
/* 基础更新*/ /* 基础更新*/
apiUpdate: doUpdate, 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: { 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