Commit 170ac996 by wangyanjiao

busbtn模板更新,实现统一更新

parent b944a7d9
...@@ -228,12 +228,9 @@ ...@@ -228,12 +228,9 @@
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" :model="BctselModel" ownrefPath="bcdgrp" trnCode="bctsel" <m-busbtn ref="childs" :ownref="ownref" :model="BctselModel" ownrefPath="bcdgrp" trnCode="bctsel"
@onChoose="onChoose">11</m-busbtn> @onChoose="onChoose">11</m-busbtn>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -255,7 +252,6 @@ export ...@@ -255,7 +252,6 @@ export
return { return {
BctselModel: new BctselModel().data, BctselModel: new BctselModel().data,
ownref: "", ownref: "",
initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
trnData: { trnData: {
columns: [ columns: [
...@@ -299,17 +295,14 @@ export ...@@ -299,17 +295,14 @@ export
methods: { methods: {
...Event, ...Event,
async getButtons(ownref) { async getButtons(ownref) {
this.initdialog = true; this.$refs.childs.initdialog = true
this.ownref = ownref this.ownref = ownref
console.log("ownref:" + ownref); console.log("ownref:" + ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
}, 10)
}, },
async onChoose(code) { async onChoose(code) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false; this.$refs.childs.initdialog = false
}, },
closeTrn(refId) { closeTrn(refId) {
this.$refs[refId].doClose(); this.$refs[refId].doClose();
...@@ -331,32 +324,10 @@ export ...@@ -331,32 +324,10 @@ export
console.log(this.trnData.data); console.log(this.trnData.data);
} }
}, },
async getDitSelInfo(idx, row) { async getDitSelInfo(code) {
//TD中选中行触发 //跳转交易
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] } this.$router.history.push("/business/" + code)
let rtnmsg = await this.executeRule("infbut.dspstm", params); this.$refs.childs.initdialog = false
if (rtnmsg.respCode = SUCCESS) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] }
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if (rtnmsgNew.respCode = SUCCESS) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if (rtnmsgOitset.respCode = SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
}, },
toBctdav() { toBctdav() {
......
...@@ -236,11 +236,8 @@ ...@@ -236,11 +236,8 @@
</c-col> </c-col>
</el-row> </el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="letsel" ownrefPath="bedgrp" tabIndex=3 :model="letselModel" @onChoose="onChoose" >11</m-busbtn> <m-busbtn ref="childs" :ownref="ownref" trnCode="letsel" ownrefPath="bedgrp" tabIndex=3 :model="letselModel" @onChoose="onChoose" >11</m-busbtn>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -261,7 +258,6 @@ export default { ...@@ -261,7 +258,6 @@ export default {
return { return {
letselModel: new LetselModel().data, letselModel: new LetselModel().data,
ownref:"", ownref:"",
initdialog:false,
trnData: { trnData: {
columns: [ columns: [
'1 1 "编号" 200', '1 1 "编号" 200',
...@@ -344,17 +340,14 @@ export default { ...@@ -344,17 +340,14 @@ export default {
}, },
methods:{...Event, methods:{...Event,
async getButtons(ownref){ async getButtons(ownref){
this.initdialog = true
this.ownref = ownref this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref); console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
}, },
async onChoose(code){ async onChoose(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false this.$refs.childs.initdialog = false
} , } ,
async getDitSelInfo(code){ async getDitSelInfo(code){
//跳转交易 //跳转交易
......
...@@ -447,18 +447,10 @@ ...@@ -447,18 +447,10 @@
</c-col> </c-col>
</c-row> </c-row>
--> -->
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -527,53 +519,20 @@ export default { ...@@ -527,53 +519,20 @@ export default {
*/ */
methods: { methods: {
...Event, ...Event,
async getButtons(ownref, frm) { async getButtons(ownref){
this.initdialog = true; this.ownref = ownref
this.ownref = ownref; this.$refs.childs.initdialog = true
console.log("ownref:" + ownref); console.log("ownref:" +ownref);
setTimeout(() => { },
this.$refs.childs.$emit("childmethods"); async onChoose(code){
}, 10);
// setTimeout(()=>{
// // this.$refs.childs.$emit("childmethods")
// console.log(this)
// console.log(this.$refs)
// console.log(this.$refs.childs)
// },10)
//this.$router.history.push({ path: "/business/" + frm, query: { ownref } })
},
async onChoose(code) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code); this.$router.history.push("/business/" + code)
this.initdialog = false; this.$refs.childs.initdialog = false
}, } ,
async getDitSelInfo(code){
async getDitSelInfo(idx, row) { //跳转交易
//TD中选中行触发 this.$router.history.push("/business/" + code)
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] }; this.$refs.childs.initdialog = false
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] };
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if ((rtnmsgNew.respCode = SUCCESS)) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault(
"mtabut.coninf.oitset.oit"
);
if ((rtnmsgOitset.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit("updateShowPanel", true);
}, },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
......
...@@ -243,11 +243,8 @@ ...@@ -243,11 +243,8 @@
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" :model="BotselModel" ownrefPath="bodgrp" trnCode="botsel" @onChoose="onChoose">11</m-busbtn> <m-busbtn ref="childs" :ownref="ownref" :model="BotselModel" ownrefPath="bodgrp" trnCode="botsel" @onChoose="onChoose">11</m-busbtn>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -311,17 +308,14 @@ export default { ...@@ -311,17 +308,14 @@ export default {
methods: { methods: {
...Event, ...Event,
async getButtons(ownref) { async getButtons(ownref) {
this.initdialog = true; this.ownref = ownref
this.ownref = ownref this.$refs.childs.initdialog = true
console.log("ownref:" + ownref); console.log("ownref:" +ownref);
setTimeout(() => {
this.$refs.childs.$emit("childmethods")
}, 10)
}, },
async onChoose(code) { async onChoose(code) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false; this.$refs.childs.initdialog = false
}, },
closeTrn(refId) { closeTrn(refId) {
this.$refs[refId].doClose(); this.$refs[refId].doClose();
...@@ -343,32 +337,10 @@ export default { ...@@ -343,32 +337,10 @@ export default {
console.log(this.trnData.data); console.log(this.trnData.data);
} }
}, },
async getDitSelInfo(idx, row) { async getDitSelInfo(code) {
//TD中选中行触发 //TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] } this.$router.history.push("/business/" + code)
let rtnmsg = await this.executeRule("infbut.dspstm", params); this.$refs.childs.initdialog = false
if (rtnmsg.respCode = SUCCESS) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] }
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if (rtnmsgNew.respCode = SUCCESS) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if (rtnmsgOitset.respCode = SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
}, },
toBotdav() { toBotdav() {
......
...@@ -434,13 +434,9 @@ ...@@ -434,13 +434,9 @@
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose" <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn >11</m-busbtn
> >
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -459,7 +455,6 @@ export default { ...@@ -459,7 +455,6 @@ export default {
data() { data() {
return { return {
ownref: "", ownref: "",
initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
searchToggle: true, searchToggle: true,
stmData: { stmData: {
...@@ -588,46 +583,21 @@ export default { ...@@ -588,46 +583,21 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
async getButtons(ownref) { async getButtons(ownref){
this.initdialog = true; this.ownref = ownref
this.ownref = ownref; this.$refs.childs.initdialog = true
console.log("ownref:" + ownref); console.log("ownref:" +ownref);
setTimeout(() => { },
this.$refs.childs.$emit("childmethods"); async onChoose(code){
}, 10); //跳转交易
}, this.$router.history.push("/business/" + code)
async onChoose(code) { this.$refs.childs.initdialog = false
//跳转交易 } ,
this.$router.history.push("/business/" + code); async getDitSelInfo(code){
this.initdialog = false; //跳转交易
}, this.$router.history.push("/business/" + code)
async getBpdSelInfo(idx, row) { this.$refs.childs.initdialog = false
//TD中选中行触发 },
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] };
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if ((rtnmsgNew.respCode = SUCCESS)) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault(
"mtabut.coninf.oitset.oit"
);
if ((rtnmsgOitset.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit("updateShowPanel", true);
},
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
this.model.bpdgrp.rec.inr = row["INR"]; this.model.bpdgrp.rec.inr = row["INR"];
......
...@@ -289,11 +289,8 @@ ...@@ -289,11 +289,8 @@
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"></m-busbtn> <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"></m-busbtn>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -311,7 +308,6 @@ export default { ...@@ -311,7 +308,6 @@ export default {
data() { data() {
return { return {
ownref: "", ownref: "",
initdialog: false,
trnData: { trnData: {
columns: [ columns: [
'1 1 "编号" 200', '1 1 "编号" 200',
...@@ -356,20 +352,21 @@ export default { ...@@ -356,20 +352,21 @@ export default {
}; };
}, },
methods: { methods: {
...Event, ...Event,async getButtons(ownref){
async getButtons(ownref) { this.ownref = ownref
this.initdialog = true; this.$refs.childs.initdialog = true
this.ownref = ownref; console.log("ownref:" +ownref);
console.log("ownref:" + ownref); },
setTimeout(() => { async onChoose(code){
this.$refs.childs.$emit("childmethods"); //跳转交易
}, 10); this.$router.history.push("/business/" + code)
}, this.$refs.childs.initdialog = false
async onChoose(code) { } ,
//跳转交易 async getDitSelInfo(code){
this.$router.history.push("/business/" + code); //跳转交易
this.initdialog = false; this.$router.history.push("/business/" + code)
}, this.$refs.childs.initdialog = false
},
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
this.model.brdgrp.rec.inr = row["INR"]; this.model.brdgrp.rec.inr = row["INR"];
......
...@@ -403,13 +403,9 @@ ...@@ -403,13 +403,9 @@
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose" <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
></m-busbtn ></m-busbtn
> >
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -427,7 +423,6 @@ export default { ...@@ -427,7 +423,6 @@ export default {
return { return {
searchToggle: true, searchToggle: true,
ownref: "", ownref: "",
initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
trnData: { trnData: {
columns: [ columns: [
...@@ -513,17 +508,20 @@ export default { ...@@ -513,17 +508,20 @@ export default {
}, 1000); }, 1000);
}, */ }, */
async getButtons(ownref){ async getButtons(ownref){
this.initdialog = true this.ownref = ownref
this.ownref = ownref this.$refs.childs.initdialog = true
setTimeout(()=>{ console.log("ownref:" +ownref);
this.$refs.childs.$emit("childmethods") },
},10) async onChoose(code){
}, //跳转交易
async onChoose(code){ this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false this.$refs.childs.initdialog = false
} , },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
this.model.cpdgrp.rec.inr = row["INR"]; this.model.cpdgrp.rec.inr = row["INR"];
......
...@@ -644,13 +644,10 @@ ...@@ -644,13 +644,10 @@
</template> </template>
</el-table-column> </el-table-column>
--> -->
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="dedgrp" :model="detselModel" @onChoose="onChoose" <m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="dedgrp" :model="detselModel" @onChoose="onChoose"
>11</m-busbtn >11</m-busbtn
> >
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -672,7 +669,6 @@ export default { ...@@ -672,7 +669,6 @@ export default {
return { return {
detselModel:new DetselModel().data, detselModel:new DetselModel().data,
ownref: "", ownref: "",
initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
trnData: { trnData: {
columns: [ columns: [
...@@ -719,47 +715,21 @@ export default { ...@@ -719,47 +715,21 @@ export default {
*/ */
methods: { methods: {
...Event, ...Event,
async getButtons(ownref) { async getButtons(ownref){
this.initdialog = true; this.ownref = ownref
this.ownref = ownref; this.$refs.childs.initdialog = true
console.log("ownref:" + ownref); console.log("ownref:" +ownref);
setTimeout(() => { },
this.$refs.childs.$emit("childmethods"); async onChoose(code){
}, 10); //跳转交易
//this.$router.history.push({ path: "/business/" + frm, query: { ownref } }) this.$router.history.push("/business/" + code)
}, this.$refs.childs.initdialog = false
async onChoose(code) { } ,
//跳转交易 async getDitSelInfo(code){
this.$router.history.push("/business/" + code); //跳转交易
this.initdialog = false; this.$router.history.push("/business/" + code)
}, this.$refs.childs.initdialog = false
async getDitSelInfo(idx, row) { },
//TD中选中行触发
var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if ((rtnmsg.respCode = SUCCESS)) {
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = { selDst: "infbut.dsp", selIds: [idx + 1] };
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if ((rtnmsgNew.respCode = SUCCESS)) {
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault(
"mtabut.coninf.oitset.oit"
);
if ((rtnmsgOitset.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit("updateShowPanel", true);
},
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
......
...@@ -385,12 +385,8 @@ ...@@ -385,12 +385,8 @@
</c-col> </c-col>
<!-- </el-row> --> <!-- </el-row> -->
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" @onChoose="onChoose"></m-busbtn> <m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" @onChoose="onChoose"></m-busbtn>
</div>
</el-dialog>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
...@@ -640,46 +636,20 @@ export default { ...@@ -640,46 +636,20 @@ export default {
methods: { methods: {
...Event, ...Event,
async getButtons(ownref){ async getButtons(ownref){
this.initdialog = true
this.ownref = ownref this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref); console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
}, },
async onChoose(code){ async onChoose(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.initdialog = false this.$refs.childs.initdialog = false
} , } ,
async getDitSelInfo(idx,row){ async getDitSelInfo(code){
//TD中选中行触发 //跳转交易
var params = {selDst:"infbut.dspstm",selIds:[idx+1]} this.$router.history.push("/business/" + code)
let rtnmsg = await this.executeRule("infbut.dspstm", params); this.$refs.childs.initdialog = false
if(rtnmsg.respCode = SUCCESS){ },
this.updateModel(rtnmsg.data);
// Utils.copyValueFromVO(this.model, rtnmsg.data);
//TD中点击display时触发
params = {selDst:"infbut.dsp",selIds:[idx+1]}
let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if(rtnmsgNew.respCode = SUCCESS){
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if(rtnmsgOitset.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
},
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
......
...@@ -524,7 +524,6 @@ ...@@ -524,7 +524,6 @@
</c-col> </c-col>
</el-row> </el-row>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div v-if="dialogFlag" class="m-list-btns"> <div v-if="dialogFlag" class="m-list-btns">
<m-busbtn <m-busbtn
ref="childs" ref="childs"
...@@ -549,7 +548,6 @@ ...@@ -549,7 +548,6 @@
>11</m-busbtn >11</m-busbtn
> >
</div> </div>
</el-dialog>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="Own Reference" prop="infcon.seaownref"> <el-form-item label="Own Reference" prop="infcon.seaownref">
...@@ -745,7 +743,6 @@ export default { ...@@ -745,7 +743,6 @@ export default {
gitselModel: new GitselModel().data, gitselModel: new GitselModel().data,
getselModel: new GetselModel().data, getselModel: new GetselModel().data,
ownref: "", ownref: "",
initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
dialogFlag: true, dialogFlag: true,
trnData: { trnData: {
...@@ -808,21 +805,21 @@ export default { ...@@ -808,21 +805,21 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
async getButtons(ownref) { async getButtons(ownref){
this.initdialog = true; this.ownref = ownref
this.ownref = ownref; this.$refs.childs.initdialog = true
this.dialogFlag = ownref.startsWith("LG"); console.log("ownref:" +ownref);
console.log("dialogFlag:" + this.dialogFlag); },
console.log("ownref:" + ownref); async onChoose(code){
setTimeout(() => { //跳转交易
this.$refs.childs.$emit("childmethods"); this.$router.history.push("/business/" + code)
}, 10); this.$refs.childs.initdialog = false
}, } ,
async onChoose(code) { async getDitSelInfo(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code); this.$router.history.push("/business/" + code)
this.initdialog = false; this.$refs.childs.initdialog = false
}, },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
......
...@@ -459,13 +459,9 @@ ...@@ -459,13 +459,9 @@
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" trnCode="letsel" ownrefPath="ledgrp" :model="letselModel" @onChoose="onChoose" <m-busbtn ref="childs" :ownref="ownref" trnCode="letsel" ownrefPath="ledgrp" :model="letselModel" @onChoose="onChoose"
>11</m-busbtn >11</m-busbtn
> >
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -487,7 +483,6 @@ export default { ...@@ -487,7 +483,6 @@ export default {
letselModel:new LetselModel().data, letselModel:new LetselModel().data,
curinr:"", curinr:"",
ownref: "", ownref: "",
initdialog: false,
dialogTableVisible: false, dialogTableVisible: false,
trnData: { trnData: {
columns: [ columns: [
...@@ -591,21 +586,21 @@ export default { ...@@ -591,21 +586,21 @@ export default {
methods: { methods: {
...Event, ...Event,
async getButtons(ownref){
//获取按钮butstm的事件 this.ownref = ownref
async getButtons(ownref) { this.$refs.childs.initdialog = true
this.initdialog = true; console.log("ownref:" +ownref);
this.ownref = ownref; },
console.log("ownref:" + ownref); async onChoose(code){
setTimeout(() => { //跳转交易
this.$refs.childs.$emit("childmethods"); this.$router.history.push("/business/" + code)
}, 10); this.$refs.childs.initdialog = false
}, } ,
async onChoose(code) { async getDitSelInfo(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code); this.$router.history.push("/business/" + code)
this.initdialog = false; this.$refs.childs.initdialog = false
}, },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
......
...@@ -441,13 +441,9 @@ ...@@ -441,13 +441,9 @@
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose" <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn >11</m-busbtn
> >
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -533,21 +529,21 @@ export default { ...@@ -533,21 +529,21 @@ export default {
methods: { methods: {
...Event, ...Event,
async getButtons(ownref){
//获取按钮butstm的事件 this.ownref = ownref
async getButtons(ownref) { this.$refs.childs.initdialog = true
this.initdialog = true; console.log("ownref:" +ownref);
this.ownref = ownref; },
console.log("ownref:" + ownref); async onChoose(code){
setTimeout(() => { //跳转交易
this.$refs.childs.$emit("childmethods"); this.$router.history.push("/business/" + code)
}, 10); this.$refs.childs.initdialog = false
}, } ,
async onChoose(code) { async getDitSelInfo(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code); this.$router.history.push("/business/" + code)
this.initdialog = false; this.$refs.childs.initdialog = false
}, },
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
......
...@@ -287,13 +287,9 @@ ...@@ -287,13 +287,9 @@
<!--el-table-column prop="op" label="OP" width="100">placeholder="请输入display stream"</el-table-column--> <!--el-table-column prop="op" label="OP" width="100">placeholder="请输入display stream"</el-table-column-->
</c-istream-table> </c-istream-table>
</c-col> </c-col>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose" <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn >11</m-busbtn
> >
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -351,11 +347,6 @@ export default { ...@@ -351,11 +347,6 @@ export default {
closeTrn(refId){ closeTrn(refId){
this.$refs[refId].doClose(); this.$refs[refId].doClose();
}, },
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
} ,
async getTrnInfo(idx, row) { async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"]; this.model.infcon.objinr = row["INR"];
...@@ -370,40 +361,20 @@ export default { ...@@ -370,40 +361,20 @@ export default {
} }
}, },
async getButtons(ownref){ async getButtons(ownref){
this.initdialog = true
this.ownref = ownref this.ownref = ownref
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref); console.log("ownref:" +ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
}, },
async getDitSelInfo(idx,row){ async onChoose(code){
//TD中选中行触发 //跳转交易
var params = {selDst:"infbut.dspstm",selIds:[idx+1]} this.$router.history.push("/business/" + code)
let rtnmsg = await this.executeRule("infbut.dspstm", params); this.$refs.childs.initdialog = false
if(rtnmsg.respCode = SUCCESS){ } ,
this.updateModel(rtnmsg.data); async getDitSelInfo(code){
// Utils.copyValueFromVO(this.model, rtnmsg.data); //跳转交易
//TD中点击display时触发 this.$router.history.push("/business/" + code)
params = {selDst:"infbut.dsp",selIds:[idx+1]} this.$refs.childs.initdialog = false
let rtnmsgNew = await this.executeRule("infbut.dsp", params); },
if(rtnmsgNew.respCode = SUCCESS){
console.log(rtnmsgNew);
this.updateModel(rtnmsgNew.data);
let rtnmsgOitset = await this.executeDefault("mtabut.coninf.oitset.oit");
if(rtnmsgOitset.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, rtnmsgOitset.data);
}
}
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
},
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -244,11 +244,8 @@ ...@@ -244,11 +244,8 @@
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns">
<m-busbtn ref="childs" :ownref="curownref" @onChoose="onChoose" >11</m-busbtn> <m-busbtn ref="childs" :ownref="curownref" @onChoose="onChoose" >11</m-busbtn>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -283,18 +280,20 @@ export default { ...@@ -283,18 +280,20 @@ export default {
] ]
} }
}, },
methods:{...Event, methods:{...Event,async getButtons(ownref){
async getButtons(ownref){ this.ownref = ownref
this.initdialog = true this.$refs.childs.initdialog = true
this.curownref = ownref console.log("ownref:" +ownref);
console.log("inftrd.ownref:" + ownref);
setTimeout(()=>{
this.$refs.childs.$emit("childmethods")
},10)
}, },
async onChoose(code){ async onChoose(code){
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
} ,
async getDitSelInfo(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.$refs.childs.initdialog = false
}, },
handleReset: function () { handleReset: function () {
......
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