vue 点击传参 页面跳转
trv-for="value in options">td>{{ $index }}td>td>{{ value.approveNumber }}td>td>{{ value.businessType }}td>td>{{ value.title }}td>td>{{ new Date(parseInt(value.ctime)).toLoca
·
<tr v-for="value in options"> <td>{{ $index }}</td> <td>{{ value.approveNumber }}</td> <td>{{ value.businessType }}</td> <td>{{ value.title }}</td> <td>{{ new Date(parseInt(value.ctime)).toLocaleString().replace(/:\d{1,2}$/,' ') }}</td> <td v-if="value.status ==0">正在审批</td> <td v-if="value.status ==1">审批通过</td> <td v-else>审批未通过</td> <td>{{ value.name }}</td> <td οnclick='{{ getEditUri(value) }}'> <span class="btn btn-primary">查看</span> </td>
var mycreateapprove = new Vue({ el : '#mycreateapprove', data : { options : {} }, methods : { getEditUri: function(approveInfo){ //alert(approveInfo.content +","+approveInfo.id + ","+ approveInfo.approveNumber +"," +approveInfo.title + "," +approveInfo.syb +"," +approveInfo.name) var str = JSON.stringify(approveInfo); return "$.jump(\'createApprove.html?op=1&myApprove=" + encodeURI(encodeURI(str)) + "\')"; // window.location.href = "./createApprove.html?op=1&myApprove=" + encodeURI(encodeURI(str)); } } });页面只读 和隐藏$("#title").attr("readonly","true"); $("#remark").attr("readonly","true"); $("#title_error_div").hide();encodeURI(encodeURI(str)) 中若有特殊字符会报错比如%&
更多推荐
已为社区贡献3条内容
所有评论(0)