| | |
| | | <el-form-item label="工号" prop="code"> |
| | | <el-input v-model="searchForm.code" style="width: 150px" placeholder="请输入工号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="战区" prop="fieldIdList"> |
| | | <el-form-item label="战区" prop="zhanquIds"> |
| | | <el-select |
| | | v-model="searchForm.fieldIdList" |
| | | v-model="searchForm.zhanquIds" |
| | | style="width: 150px" |
| | | placeholder="战区" |
| | | clearable |
| | | multiple |
| | | @change="search" |
| | | > |
| | | <el-option |
| | | v-for="item in cateList" |
| | | v-for="item in cateList.filter(item=>{return item.type==0})" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="商业化类型" prop="busTypeIdList"> |
| | | <el-form-item label="商业化类型" prop="bustypeIds"> |
| | | <el-select |
| | | v-model="searchForm.busTypeIdList" |
| | | v-model="searchForm.bustypeIds" |
| | | style="width: 150px" |
| | | placeholder="商业化类型" |
| | | clearable |
| | | multiple |
| | | @change="search" |
| | | > |
| | | <el-option |
| | | v-for="item in cateList1" |
| | | v-for="item in cateList.filter(item=>{return item.type==1})" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="擅长领域" prop="levelIdList"> |
| | | <el-form-item label="擅长领域" prop="fieldIdList"> |
| | | <el-select |
| | | v-model="searchForm.levelIdList" |
| | | v-model="searchForm.fieldIdList" |
| | | style="width: 150px" |
| | | placeholder="擅长领域" |
| | | clearable |
| | |
| | | @change="search" |
| | | > |
| | | <el-option |
| | | v-for="item in cateList2" |
| | | v-for="item in cateList.filter(item=>{return item.type==2})" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="老师等级" prop="levelIdList"> |
| | | <el-form-item label="老师等级" prop="levelId"> |
| | | <el-select |
| | | v-model="searchForm.levelIdList" |
| | | v-model="searchForm.levelId" |
| | | style="width: 150px" |
| | | placeholder="老师等级" |
| | | clearable |
| | | multiple |
| | | @change="search" |
| | | > |
| | | <el-option |
| | | v-for="item in cateList3" |
| | | v-for="item in cateList.filter(item=>{return item.type==3})" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="caseNum" label="标杆案例" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.caseNum">{{row.caseNum}}个</span> |
| | | <span >{{row.caseNum || 0}}个</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="busTypeNames" label="商业化类型" min-width="200px"></el-table-column> |
| | | <el-table-column prop="areaNames" label="服务战区" min-width="200px"></el-table-column> |
| | | <el-table-column prop="fieldNames" label="擅长领域" min-width="200px"></el-table-column> |
| | | <el-table-column label="状态"> |
| | | <el-table-column prop="busTypeNames" label="商业化类型" min-width="200px"> |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.typeList && row.typeList.length"> |
| | | <div style="display:inline-block;" v-for="(item,index) in row.typeList">{{item.name||''}} <span v-if="index < row.typeList.length-1" style="display:inline-block;padding: 0px 3px;">/</span></div> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="areaNames" label="服务战区" min-width="200px"> |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.zqList && row.zqList.length"> |
| | | <div style="display:inline-block;" v-for="(item,index) in row.zqList">{{item.name||''}} <span v-if="index < row.zqList.length-1" style="display:inline-block;padding: 0px 3px;">/</span></div> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="fieldNames" label="擅长领域" min-width="200px"> |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.fieldList && row.fieldList.length"> |
| | | <div style="display:inline-block;" v-for="(item,index) in row.fieldList">{{item.name||''}} <span v-if="index < row.fieldList.length-1" style="display:inline-block;padding: 0px 3px;">/</span></div> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="fee" label="费用标准(元/周)" min-width="130px"></el-table-column> |
| | | <el-table-column prop="updateUserName" label="操作人" min-width="100px"></el-table-column> |
| | | <el-table-column prop="updateTime" label="最近操作时间" min-width="150px"></el-table-column> |
| | | <el-table-column label="状态" fixed="right"> |
| | | <template slot-scope="{row}"> |
| | | <el-switch @change="changeStatus($event, row)" v-model="row.status" active-color="#13ce66" |
| | | inactive-color="#ff4949" :active-value="0" :inactive-value="1"> |
| | | inactive-color="#ff4949" :active-value="0" :inactive-value="1"> |
| | | </el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="updateUserName" label="操作人" min-width="100px"></el-table-column> |
| | | <el-table-column prop="updateTime" label="最近操作时间" min-width="150px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:member:update', 'business:member:delete'])" |
| | | label="操作" |
| | |
| | | // 搜索 |
| | | searchForm: { |
| | | name: '', |
| | | queryFlag:1, |
| | | code: '', |
| | | status: null, |
| | | levelIdList:[], |
| | | levelId:null, |
| | | fieldIdList: [], |
| | | busTypeIdList:[], |
| | | zhanquIds:null, |
| | | bustypeIds:null, |
| | | type: 0 |
| | | }, |
| | | cateList:[], |
| | | cateList1:[], |
| | | cateList2:[], |
| | | cateList3:[], |
| | | cateList:[] |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | }) |
| | | this.search() |
| | | cateList({ |
| | | type: 0 , //战区 |
| | | }).then(res => { |
| | | this.cateList = res |
| | | }) |
| | | cateList({ |
| | | type: 1 , //商业化 |
| | | }).then(res => { |
| | | this.cateList1 = res |
| | | }) |
| | | cateList({ |
| | | type: 2 , //擅长领用 |
| | | }).then(res => { |
| | | this.cateList2 = res |
| | | }) |
| | | cateList({ |
| | | type: 3 , //等级 |
| | | }).then(res => { |
| | | this.cateList3 = res |
| | | }) |
| | | |
| | | }, |
| | | methods: { |
| | | changeStatus (e, row) { |
| | |
| | | this.api.updateStatus({ id: row.id, status: e }) |
| | | .then(res => { |
| | | this.$tip.apiSuccess(res || '操作成功') |
| | | this.search() |
| | | this.handlePageChange() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |