Commit 0f1a6c01 by 潘际乾

doctre事件

parent d37cec0f
...@@ -121,7 +121,6 @@ ...@@ -121,7 +121,6 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptadv/Event"
export default { export default {
inject: ['root'], inject: ['root'],
...@@ -147,7 +146,7 @@ export default { ...@@ -147,7 +146,7 @@ export default {
], ],
} }
}, },
methods:{...Event, methods:{
handleNodeClick(data) { handleNodeClick(data) {
if(!data.children){ //如果没有叶子节点 ,按钮置灰 if(!data.children){ //如果没有叶子节点 ,按钮置灰
this.atoDisabled = false; this.atoDisabled = false;
...@@ -158,6 +157,66 @@ export default { ...@@ -158,6 +157,66 @@ export default {
} }
}, },
defaultProps(){}, defaultProps(){},
async onTrndocButshw() {
let rtnmsg = await this.executeRule("trndoc.butshw")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onTrndocButadd() {
let rtnmsg = await this.executeRule("trndoc.butadd")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onTrndocButnew() {
let rtnmsg = await this.executeRule("trndoc.butnew")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onTrndocButattto() {
let rtnmsg = await this.executeRule("trndoc.butattto")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onTrndocButdel() {
let rtnmsg = await this.executeRule("trndoc.butdel")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onTrndocButatt() {
let rtnmsg = await this.executeRule("trndoc.butatt")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}, },
created:function(){ created: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