数据权限

caozong
zcx 1 year ago
parent fc2404a5b8
commit 052fcd60b8
  1. 10
      src/views/sch/coach/count/detail.vue
  2. 2
      src/views/system/employee/index.vue
  3. 2
      src/views/zs/clue/components/InvitationFormDialog.vue
  4. 12
      src/views/zs/clue/components/SearchForm.vue
  5. 4
      src/views/zs/clue/index.vue

@ -23,10 +23,16 @@
</el-form>
<el-table v-loading="loading" :data="coachList">
<el-table-column type="index" width="55" align="center" />
<el-table-column type="index" width="50" align="center" />
<el-table-column label="学员姓名" align="center" prop="name" />
<el-table-column label="联系方式" align="center" prop="phone" />
<el-table-column label="到场状态" align="center" prop="arrivalStatus" />
<el-table-column label="到场状态" align="center" prop="arrivalStatus" >
<template scope="scope">
<el-tag v-if="scope.row.arrivalStatus == 1">未到场</el-tag>
<el-tag v-if="scope.row.arrivalStatus == 2">到场未成交</el-tag>
<el-tag v-if="scope.row.arrivalStatus == 3">到场已成交</el-tag>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
</el-table>
</div>

@ -170,7 +170,7 @@
<el-form-item label="数据权限" prop="openId">
<el-radio-group v-model="form.dataScope">
<el-radio :label="1">全部数据</el-radio>
<el-radio :label="2">部门数据</el-radio>
<!-- <el-radio :label="2">部门数据</el-radio> -->
<el-radio :label="3">个人数据</el-radio>
</el-radio-group>
</el-form-item>

@ -27,7 +27,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button plain @click="(visible = false)">取消</el-button>
<el-button v-jclick type="primary" :disabled="!canSubmit" @click="dialogFormSubmit()">确定</el-button>
<el-button v-jclick type="primary" :disabled="!canSubmit || dialogForm.invitationId != undefined" @click="dialogFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template>

@ -7,6 +7,9 @@
<el-form-item label="意向状态:" label-width="90px">
<DMRadio v-model="searchForm.intentionState" :list="intentionOptions" all-text="全部" @change="$emit('search')" />
</el-form-item>
<el-form-item label="反馈状态:" label-width="90px">
<DMRadio v-model="searchForm.feedbackStatus" :list="feedbackTagOptions" all-text="全部" @change="$emit('search')" />
</el-form-item>
<el-row>
<el-form-item label="姓名/联系方式">
<el-input v-model="searchForm.name" placeholder="姓名/联系方式" clearable style="width: 200px" />
@ -70,7 +73,14 @@ export default {
],
intentionOptions: [],
createDateRange: [],
nextDateRange: []
nextDateRange: [],
feedbackTagOptions: [
{ value: 0, label: '待邀约' },
{ value: 1, label: '待分发' },
{ value: 2, label: '待跟进' },
{ value: 3, label: '待到场' },
{ value: 4, label: '已到场' }
],
};
},
watch: {

@ -39,7 +39,7 @@
<template slot-scope="scope">
<!-- <el-button v-if="(admin == 'true' || scope.row.followUser2.indexOf(userId) != -1 ) && scope.row.source == '抖音直播'" v-hasPermi="['zs:clue:edit']" type="text" style="color: red;" @click.native.stop="handleDYAddandUpdate(scope.row)">编辑</el-button> -->
<el-button v-if="(admin == 'true' || scope.row.followUser2.indexOf(userId) != -1 )" v-hasPermi="['zs:clue:edit']" type="text" style="color: red;" @click.native.stop="handleAddandUpdate(scope.row)">编辑</el-button>
<el-button v-if="(admin == 'true' || scope.row.followUser2.indexOf(userId) != -1 )" v-hasPermi="['zs:clue:distribute']" type="text" @click.native.stop="handleDistribute(scope.row)">分发</el-button>
<el-button v-hasPermi="['zs:clue:distribute']" type="text" @click.native.stop="handleDistribute(scope.row)">分发</el-button>
<el-button v-if="(admin == 'true' || scope.row.followUser2.indexOf(userId) != -1 )" v-hasPermi="['zs:clue:invitation']" type="text" @click.native.stop="handleInvitation(scope.row)">邀约</el-button>
<el-button v-if="(admin == 'true' || scope.row.followUser2.indexOf(userId) != -1 ) && scope.row.state" v-hasPermi="['zs:clue:sign']" type="text" style="color: #26a69a" @click.native.stop="handleSign(scope.row)">已登记</el-button>
<el-button v-if="(admin == 'true' || scope.row.followUser2.indexOf(userId) != -1 ) && !scope.row.state" v-hasPermi="['zs:clue:sign']" type="text" @click.native.stop="handleSign(scope.row)">未登记</el-button>
@ -141,7 +141,7 @@ export default {
0: '待邀约',
1: '待分发',
2: '待跟进',
3: '已跟进',
3: '待到场',
4: '已到场',
5: '退单'
},

Loading…
Cancel
Save