Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js增强,将表单中的单价和数量相乘得到总价 #3980

Closed
luo009 opened this issue Aug 18, 2022 · 1 comment
Closed

js增强,将表单中的单价和数量相乘得到总价 #3980

luo009 opened this issue Aug 18, 2022 · 1 comment

Comments

@luo009
Copy link

luo009 commented Aug 18, 2022

版本号:都是从jeecgboot的GitHub官网下载的,前端是jeecgboot-vue3-master,后端是jeecg-boot-master
问题描述:大佬好,我跟着jeecgboot零基础入门视频,看到第四个视频关于js增强,然后我完全跟着做,但是自己没能实现,一直显示如下错误:Uncaught (in promise) TypeError: event.target.emit is not a function。谢谢大佬指点一下。
截图&代码:

image

js增强的代码是:ces_order_goods_onlChange(){
return {
num(){

        let id = event.row.id
        let num = event.row.num
        let price = event.row.price

        let targrt = event.target
        
        let nval = price*num
        console.log('row',event.row);
        console.log('num',num);
        console.log('that',that);
        let otherValues = {'zong_price': nval}
          
        that.triggleChangeValues(otherValues,id,targrt)


    }
}

}

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@zhangdaiscott
Copy link
Member

vue3 js增强功能还不完善,等下个版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants