<commit_before><template>
    <emap-datatable 
        :options='listOpts' 
        v-el:list 
        v-ref:list 
        @expand='rowToggle'
        @collapse='rowToggle'
        class='playlist-by-goods'>
    </emap-datatable>
</template>

<script>
    /**
     * 付款计划列表 - 货物分阶段
     */
    import {EmapDatatable} from 'bh-vue';
    import pageUtil from 'bh-vue/utils/pageUtil';
    import PaylistDetail from './paylistDetail';

    const PAGE_SIZE = 5;
    // const PAGER_HEIGHT = 36;

    const _initRowDetails = (vm, id, row, element, rowinfo) => {
        vm.detailData = rowinfo.row.zxfkjh;
        element.append('<paylist-detail :items=\'detailData\'></paylist-detail>');
        vm.$compile(element[0]);
    };

    export default {
        props: {
            wid: String, // 合同 id
            metaUrl: String,
            modelName: String,
            detailData: null
        },
        computed: {
            listOpts () {
                let vm = this;
                return {
                    pagePath: this.metaUrl,
                    action: this.modelName,
                    schema: false,
                    params: {
                        wid: this.wid
                    },
                    pageable: false,
                    // pageSize: PAGE_SIZE,
                    // pageSizeOptions: [PAGE_SIZE],
                    // height: 220,
                    rowDetails: true,
                    initRowDetails (id, row, element, rowinfo) {
                        _initRowDetails(vm, id, row, element, rowinfo);
                    }<commit_msg>add rowDetail for paylist<commit_after><template>
    <emap-datatable 
        :options='listOpts' 
        v-el:list 
        v-ref:list 
        @expand='rowToggle'
        @collapse='rowToggle'
        class='playlist-by-goods'>
    </emap-datatable>
</template>

<script>
    /**
     * 付款计划列表 - 货物分阶段
     */
    import {EmapDatatable} from 'bh-vue';
    import pageUtil from 'bh-vue/utils/pageUtil';
    import PaylistDetail from './paylistDetail';

    const PAGE_SIZE = 5;
    // const PAGER_HEIGHT = 36;

    const _initRowDetails = (vm, id, row, element, rowinfo) => {
        vm.detailData = rowinfo.row.zxfkjh;
        element.append('<paylist-detail :items=\'detailData\'></paylist-detail>');
        vm.$compile(element[0]);
    };

    export default {
        props: {
            wid: String, // 合同 id
            metaUrl: String,
            modelName: String,
            detailData: null,
            rowDetails:Function
        },
        computed: {
            listOpts () {
                let vm = this;
                return {
                    pagePath: this.metaUrl,
                    action: this.modelName,
                    schema: false,
                    params: {
                        wid: this.wid
                    },
                    pageable: false,
                    // pageSize: PAGE_SIZE,
                    // pageSizeOptions: [PAGE_SIZE],
                    // height: 220,
                    rowDetails: true,
                    initRowDetails (id, row, element, rowinfo) {
                        if (vm.rowDetails) {
                            vm.rowDetails(vm, id, row, element, rowinfo);
                        } else {
                            _initRowDetails(vm, id, row, element, rowinfo);
                        }
                    }
{'fraction_non_alphanumeric': 0.11013215859030837, 'fraction_numerical': 0.0041116005873715125, 'mean_word_length': 1.2305173542894565, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1519875', 'n_tokens_mistral': 985, 'n_tokens_neox': 941, 'n_words': 194}