Infsea.vue 3.28 KB
Newer Older
1
<template>
2
    <c-content class="eibs-tab" :height="200">
3

4 5 6 7 8
        <c-infsearch-group :needToggle="false" @handleSearch="handleSearch" @handleReset="handleReset">
            <template slot="keepShow">
                <c-row>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
9
                            <c-col :span="19" :offset="1">
10 11 12 13 14 15 16 17
                                <el-form-item label="User-ID" prop="cod">
                                    <c-input v-model="model.cod" maxlength="8" placeholder="请输入User-ID"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
18
                            <c-col :span="19" :offset="1">
19 20 21 22 23 24 25 26 27
                                <el-form-item label="Name" prop="seanam">
                                    <c-input v-model="model.seanam" maxlength="40" placeholder="请输入User Name"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
            </template>
        </c-infsearch-group>
28

29 30 31 32 33
        <c-row class="infrow" style="margin-top:20px;">
            <c-col>
                <c-button size="small" type="primary">导Excel</c-button>
                <c-button size="small" type="primary">Display</c-button>
                <c-button size="small" type="primary">Use</c-button>
34 35 36
            </c-col>
        </c-row>

37 38 39 40 41 42 43 44 45 46
        <el-row class="infrow" style="margin-top:20px;">
            <c-istream-table :list="stmData.data" :columns="stmData.columns">
                <el-table-column prop="op" label="OP" width="100">
                    <template slot-scope="scope">
                        <a href="javascript:void(0)" @click="continueEdit(scope.row)">操作</a>
                    </template>
                </el-table-column>
            </c-istream-table>
        </el-row>

47 48 49 50
    </c-content>
</template>
<script>
    import Api from "~/service/Api"
wangren committed
51
    import commonProcess from "~/mixin/commonProcess";
52 53 54 55 56 57
    import CodeTable from "~/config/CodeTable"
    import Event from "~/model/Infusr/Event"

    export default {
        inject: ['root'],
        props: ["model", "codes"],
wangren committed
58
        mixins: [commonProcess],
59 60 61 62
        data() {
            return {
                stmData: {
                    columns: [
lixingliang committed
63 64 65 66 67 68
                        "1 1 \"UserID\" 0 ",
                        "2 2 \"Name\" 0",
                        "3 3 \"Profile\" 0",
                        "4 4 \"Entity\" 0",
                        "5 5 \"UserGroup\" 0",
                        "6 6 \"Phone\" 0",
69 70 71
                    ],
                    data: [

72
                    ]
73 74
                },

75 76
            }
        },
77 78 79 80 81 82 83 84 85 86 87 88 89
        methods: {
            ...Event,
            handleSearch(callback) {
                setTimeout(() => {
                    this.$notify.info({ title: '提示', message: '模拟post请求控制按钮状态' });
                    // 执行子组件回调函数控制按钮状态
                    callback()
                }, 1000)
            },
            handleReset() {

            }
        },
90 91 92 93 94 95 96 97
        created: function () {

        }
    }
</script>
<style>

</style>