<gsb-pagecard>
    <div slot="header">
      <h3>全部合同</h3>
    </div>
    <div slot="content">
        <gsb-grid2
          ref="ecompanycontractallGrid"
          bizCode="ecompanycontractall"
          spaceHeight="100"
          modelName="ecompanycontract"
          listMethod="findAndCountAll"
          deleteMethod="delete"
          initMethod="initNewInstance"
          isDataAuto="true"
          :headStyle="headStyle"
          :colFormatter="onColFormater"
          :isSingleSelect="isSingleSelect"
          @onDlgFormClick="onDlgFormClick"
          @toolbarclick="toolBarClick"
          :btnvisble="btnvisbleMethod"
          @rowclick="onRowClick">
        </gsb-grid2>
        <el-dialog
          title="分配合同"
          :visible.sync="dialogVisible"
          width="30%">
          <span></span>
          <el-select
              v-model="epartner_id"
              filterable
              remote
              clearable
              placeholder="请搜索合伙人"
              :remote-method="getEPartners"
              style="margin-left:25%;width:300px;"
              :loading="epartnerLoading">
              <el-option
                  v-for="item in epartnerList"
                  :key="item.id"
                  :label="item.nickName"
                  :value="item.id">
                  <span style="float: left;width:150px;">{{ item.nickName }}</span>
                  <span style="float: left;width:150px;margin-left: 15px;">{{ item.userName }}</span>
              </el-option>
          </el-select>
          <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="assignContract" >确 定</el-button>
          </span>
        </el-dialog>
    </div>
</gsb-pagecard>
