<fieldset id="app_addNew">
    <legend>新增应用</legend>
    <label>应用名称:<input type="text" v-model="appName" /></label>
    <label>应用说明:<input type="text" v-model="description" /></label>
    <input type="button" value="提交" v-on:click="submit" />
</fieldset>
<script type="text/javascript">
    mydata.app_new = new Vue({
        el: '#app_addNew',
        data: {
            userTicket: myJs.getTicket(),
            appName: "",
            description: "",
        },
        methods: {
            submit() {
                debugger;
                var url = myJs.url.app.AddNewApp;
                myJs.post(url, { appName: this.appName, description: this.description }, function (d) {
                    if (mydata.app_index.rows) mydata.app_index.rows.push(d);
                    $("#app_addNew").html("");
                }, function (s, i, m) {
                    myJs.msg(m);
                });
            },
        },
    });
</script>