按钮名称:
按钮类型: {{innerBtnObj.type ? btnTypes.filter((b)=> b.type == innerBtnObj.type)[0].name : '默认'}}
{{type.name}}
javascript脚本,在点击按钮时触发,参数:_req用来请求后台的
,_data当前表单的数据,_this当前表单this对象
使用http请求后台接口地址的方法 this.$http.get(url).then(res => {
}) ,使用_req请求后台接口地址的方法 _req(url, data, options).then(res
=> { })
跳转url可以使用通用方法 _this.commonOpenUrl(url)
例如:根据表单某个字段的值,调用后台接口,转化成拼音并赋值到另一个字段
_req(window.context.form+`/base/tools/v1/getPinyin?chinese=${_data.cs111111.zd1}`).then((resp) => {
_data.cs111111.zd2 = resp.data.value
})