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

Logo

前往低代码交流专区

更多推荐