<div class="modal fade" tabindex="-1" role="dialog" id="addFeatureModal">
    <div class="modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row text-primary">
                        <label class="col-1"></label>
                        <label class="col-2">运算规则</label>
                        <label class="col-2">特征类型</label>
                        <label class="col-2">特征逻辑</label>
                        <label class="col-4">特征内容</label>
                        <label class="col-1"></label>
                    </div>
                    <div class="row" v-for="(feature,i) in (thisOperationItemIndex===-1 ? model.operation.features : (model.operation.items[thisOperationItemIndex] ? model.operation.items[thisOperationItemIndex].features : []))">
                        <div class="col-1">
                            <span class="fa fa-minus-square pull-right mt-1"
                                  v-if="(thisOperationItemIndex===-1 ? model.operation.features : (model.operation.items[thisOperationItemIndex] ? model.operation.items[thisOperationItemIndex].features : [])).length > 1"
                                  style="cursor: pointer" @click="delFeature(i)"></span>
                        </div>
                        <label class="col-2">
                            <select class="form-control form-control-sm" v-if="i != 0" v-model="feature.calculation">
                                <option value="并且">并且</option>
                                <option value="或">或</option>
                            </select>
                        </label>
                        <label class="col-2">
                            <select class="form-control form-control-sm" v-model="feature.type">
                                <option v-for="t in pool.feature_type" :value="t">@{{ t }}</option>
                            </select>
                        </label>
                        <label class="col-2">
                            <select class="form-control form-control-sm" v-model="feature.logic">
                                <option v-for="l in pool.logic" :value="l">@{{ l }}</option>
                            </select>
                        </label>
                        <label class="col-4">
                            <input class="form-control form-control-sm" v-model="feature.describe">
                        </label>
                        <div class="col-1">
                            <span v-if="i == ((thisOperationItemIndex===-1 ? model.operation.features : (model.operation.items[thisOperationItemIndex] ? model.operation.items[thisOperationItemIndex].features : [])).length-1)"
                                  class="fa fa-plus-square pull-right mt-1" style="cursor: pointer" @click="addFeature()"></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" @click="submitFeature()">提交</button>
            </div>
        </div>
    </div>
</div>
