vue 点击传参 页面跳转

<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))  中若有特殊字符会报错比如%&

你可能感兴趣的:(vue 点击传参 页面跳转)