Commit 8ed32a5a by 张立顺

fix bug

1 parent 7959fc72
...@@ -246,15 +246,13 @@ ...@@ -246,15 +246,13 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label-width="120px" label="完成标准:" prop="finishCriteria"> <el-form-item label-width="120px" label="完成标准:" prop="finishCriteria">
<el-checkbox :disabled="disabledFn" v-model="formData.extendConfig.finishCriteria" :true-label="1" <el-checkbox v-model="formData.extendConfig.finishCriteria" :true-label="1" :false-label="0">
:false-label="0">
完成学习(含考核) 完成学习(含考核)
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
<el-form-item label-width="120px" label="惩罚方式:" prop="punishType" <el-form-item label-width="120px" label="惩罚方式:" prop="punishType"
v-if="formData.extendConfig.finishCriteria == 1"> v-if="formData.extendConfig.finishCriteria == 1">
<el-checkbox :disabled="disabledFn" v-model="formData.extendConfig.punishType" :true-label="1" <el-checkbox v-model="formData.extendConfig.punishType" :true-label="1" :false-label="0">
:false-label="0">
禁止录单 禁止录单
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
...@@ -289,7 +287,7 @@ ...@@ -289,7 +287,7 @@
<el-dialog :visible.sync="lookImgVisible"> <el-dialog :visible.sync="lookImgVisible">
<img width="100%" :src="dialogObj.url" alt="图片" /> <img width="100%" :src="dialogObj.url" alt="图片" />
</el-dialog> </el-dialog>
<component v-if="groupVisible" :is="getEmpType.componentName" :relateStoreVisible="groupVisible" <component v-if="groupVisible" :is="getEmpType.componentName" :config="{}" :relateStoreVisible="groupVisible"
:dialogVisible="groupVisible" :activeBtnIndex="activeBtnIndex" ref="selectTagForm" :dialogVisible="groupVisible" :activeBtnIndex="activeBtnIndex" ref="selectTagForm"
:selectedList="defaultSelectList" @tagSelected="handleDialogConfirm" @closeDialogFn="closeGroupDialog" :selectedList="defaultSelectList" @tagSelected="handleDialogConfirm" @closeDialogFn="closeGroupDialog"
@handleRelateStoreClose="closeGroupDialog" @handleRelateStoreConfirm="confirmGroup" @handleRelateStoreClose="closeGroupDialog" @handleRelateStoreConfirm="confirmGroup"
...@@ -524,7 +522,8 @@ export default { ...@@ -524,7 +522,8 @@ export default {
relateStoreVisible: false, relateStoreVisible: false,
uploading: false, uploading: false,
storeSearchForm: { storeSearchForm: {
keyword: "" keyword: "",
configList: []
}, },
storeSelected: [], storeSelected: [],
merchantVisible: false, merchantVisible: false,
...@@ -827,10 +826,19 @@ export default { ...@@ -827,10 +826,19 @@ export default {
return `${currentDate.getHours()}:${currentDate.getMinutes()}:00 - 23:59:59` return `${currentDate.getHours()}:${currentDate.getMinutes()}:00 - 23:59:59`
}, },
handleDeleteCustomer(idx, pIdx, index) { handleDeleteCustomer(idx, pIdx, index) {
console.log(idx, pIdx, index)
if (this.empTypeList[index].selectStaffValue[pIdx]?.labelList) {
this.empTypeList[index].selectStaffValue[pIdx].labelList.splice(idx, 1) this.empTypeList[index].selectStaffValue[pIdx].labelList.splice(idx, 1)
if (this.empTypeList[index].selectStaffValue[pIdx].labelList.length == 0) { if (this.empTypeList[index].selectStaffValue[pIdx].labelList.length == 0) {
this.empTypeList[index].selectStaffValue.splice(pIdx, 1) this.empTypeList[index].selectStaffValue.splice(pIdx, 1)
} }
} else {
this.empTypeList[index].selectStaffValue[pIdx].child.splice(idx, 1)
if (this.empTypeList[index].selectStaffValue[pIdx].child.length == 0) {
this.empTypeList[index].selectStaffValue.splice(pIdx, 1)
}
}
this.refreshEmpTypeList() this.refreshEmpTypeList()
this.customerLoading = true this.customerLoading = true
this.getCustomerByTagList("filtrate") this.getCustomerByTagList("filtrate")
...@@ -861,6 +869,7 @@ export default { ...@@ -861,6 +869,7 @@ export default {
} }
// params.labelInfoList = params.labelInfoList || [] // params.labelInfoList = params.labelInfoList || []
this.configList = params.configList || [] this.configList = params.configList || []
this.storeSearchForm.configList = params.configList || []
console.log(params, "params") console.log(params, "params")
// params.labelInfoList.length && // params.labelInfoList.length &&
contentManagerTaskListStaffPage(params) contentManagerTaskListStaffPage(params)
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
tree: { tree: {
6: [{ id: 6, name: '运营模式', child: [{ id: 0, name: '非直营' }, { id: 1, name: '直营' }] }], 6: [{ id: 6, name: '运营模式', child: [{ id: 0, name: '非直营' }, { id: 1, name: '直营' }] }],
7: [{ id: 7, name: '展业场景', child: [{ id: 0, name: '售前' }, { id: 1, name: '售后' }, { id: 2, name: '存量电销' }] }], 7: [{ id: 7, name: '展业场景', child: [{ id: 0, name: '售前' }, { id: 1, name: '售后' }, { id: 2, name: '存量电销' }] }],
9: [{ id: 9, name: '业务类型 ', child: [{ id: 0, name: '轻改' }, { id: 1, name: '权益' }, { id: 2, name: '权益' }] }], 9: [{ id: 9, name: '业务类型 ', child: [{ id: 0, name: '轻改' }, { id: 1, name: '权益' }, { id: 2, name: '延保' }] }],
10: [{ id: 0, name: '短课程学习', child: [{ id: 0, name: '进行中' }, { id: 1, name: '已改善' }, { id: 2, name: '未改善' }] }, { id: 1, name: '长课程学习', child: [{ id: 0, name: '进行中' }, { id: 3, name: '已结束' }] }] 10: [{ id: 0, name: '短课程学习', child: [{ id: 0, name: '进行中' }, { id: 1, name: '已改善' }, { id: 2, name: '未改善' }] }, { id: 1, name: '长课程学习', child: [{ id: 0, name: '进行中' }, { id: 3, name: '已结束' }] }]
} }
} }
......
<template> <template>
<d2-dialog title="选择品牌" :appendToBody="true" :is-visible="dialogVisible" class="brand-dialog" width="50%" <d2-dialog title="选择区域" :appendToBody="true" :is-visible="dialogVisible" class="brand-dialog" width="50%"
@closeDialog="handleClose" @confirmDialog="handleConfirm"> @closeDialog="handleClose" @confirmDialog="handleConfirm">
<el-form :inline="true" size="mini" class="demo-form-inline"> <el-form :inline="true" size="mini" class="demo-form-inline">
<el-form-item label="品牌名称:"> <el-form-item label="区域名称:">
<el-input v-model="filterText" placeholder="请输入" clearable></el-input> <el-input v-model="filterText" placeholder="请输入" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
</el-form> </el-form>
<div class="content"> <div class="content">
<div class="tree-box"> <div class="tree-box">
<div class="title">预选品牌</div> <div class="title">预选区域</div>
<el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps" <el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps"
show-checkbox @check-change="handleNodeClick"></el-tree> show-checkbox @check-change="handleNodeClick"></el-tree>
</div> </div>
<div class="check-box"> <div class="check-box">
<div class="title">已选品牌 <div class="title">已选区域
<el-button type="text" @click="resetChecked">清空</el-button> <el-button type="text" @click="resetChecked">清空</el-button>
</div> </div>
<template v-if="checkList.length == 0"> <template v-if="checkList.length == 0">
......
<!-- 关联门店弹窗 --> <!-- 关联门店弹窗 -->
<template> <template>
<d2-dialog :title="title" :isShowFooter="false" :noCancel="true" :is-visible.sync="relateStoreVisible" width="50%" <d2-dialog :title="title" :noCancel="true" :is-visible.sync="relateStoreVisible" width="50%" btn-ok-label="确定"
btn-ok-label="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
class="relateStore">
<slot /> <slot />
<el-row class="tableCon"> <el-row class="tableCon">
<div class="tableBox"> <div class="tableBox">
<!-- height="300px" --> <!-- height="300px" -->
<el-table ref="seletingTable" :data="selectingData" class="table" border <el-table ref="seletingTable" :data="selectingData" class="table" border
v-loading="$store.state.d2admin.loading.value"> v-loading="$store.state.d2admin.loading.value" height="300px">
<el-table-column label="序号" type="index" align="center" width="60"> <el-table-column label="序号" type="index" align="center" width="60">
<template slot-scope="scope">{{ <template slot-scope="scope">{{ scope.$index + 1 }}</template>
(pageNum - 1) * pageSize + scope.$index + 1
}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="staffName" label="员工名称" align="center"> <el-table-column prop="staffName" label="员工名称" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="staffPhone" label="手机号" align="center"> <el-table-column prop="staffPhone" label="手机号" align="center">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum" <!-- <el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum"
:page-size="pageSize" layout="total, prev, pager, next" :total="total" /> :page-size="pageSize" layout="total, prev, pager, next" :total="total" /> -->
</div> </div>
</el-row> </el-row>
</d2-dialog> </d2-dialog>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="statusSituation"> <div class="statusSituation">
<div class="left"> <div class="left">
<span><span class="label">开始时间:</span>{{ staticData.actualSendTime }}</span> <span><span class="label">开始时间:</span>{{ staticData.actualSendTime }}</span>
<span><span class="label">完成时间:</span>{{ staticData.extentConfig.deadline }}</span> <span><span class="label">完成时间:</span>{{ staticData.extendConfig.deadline }}</span>
</div> </div>
<div class="person count"> <div class="person count">
<div class="label">学习人数</div> <div class="label">学习人数</div>
...@@ -157,7 +157,12 @@ export default { ...@@ -157,7 +157,12 @@ export default {
] ]
}, },
staticData: {} staticData: {
extendStatus: 1,
extendConfig: {
deadline: ''
}
}
} }
}, },
computed: { computed: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!