Commit 231ed719 by 张立顺

fix bug

1 parent d3a9d951
......@@ -237,6 +237,18 @@ export const routerName = {
parentId: "91305",
label: "统计",
handle: "goStatisticsPage",
// attr
ruleObj: {
attr: "contentType",
rule: {
0: "统计",
1: "统计",
2: "统计",
3: "统计",
4: "统计",
5: "详情"
}
},
addRoutePath: [
{
authId: "9130506",
......
......@@ -90,8 +90,7 @@ export default {
findStaffTagCoursePage({
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize,
// isFlag: true
pageSize: this.pageSize
}).then((res) => {
this.selectingData = res.list
this.total = res.total
......
......@@ -24,7 +24,7 @@
<el-checkbox-group class="tag-group" v-model="item.tagChecked"
@change="handleCheckedChange(item.tagChecked, index)" v-if="item.checked">
<el-checkbox v-for="(itm, idx) in item.labelList" :label="itm" :key="idx">{{ itm.name || itm.labelName
}}</el-checkbox>
}}</el-checkbox>
</el-checkbox-group>
</div>
</div>
......@@ -116,7 +116,7 @@ export default {
tree: {
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: '存量电销' }] }],
9: [{ id: 9, name: '业务类型 ', child: [{ id: 0, name: '非直营' }, { id: 1, 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: '已结束' }] }]
}
}
......
......@@ -90,8 +90,7 @@ export default {
findStaffTagCoursePage({
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize,
isFlag: true
pageSize: this.pageSize
}).then((res) => {
this.selectingData = res.list
this.total = res.total
......
......@@ -26,9 +26,13 @@
</div>
</template>
<template slot="courseList" scope="scope">
<div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index">
{{ item }}
</div>
<el-tooltip v-for="(item, index) in scope.scope.courseList.split(',')" :key="index" class="item" effect="dark"
:content="item" placement="top">
<div class="one-line-ellipsis">
{{ item }}
</div>
</el-tooltip>
</template>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
......@@ -100,19 +104,12 @@ export default {
{
label: "标签",
prop: "tagList",
minWidth: 260,
addHtml: "tagName",
// formatter: (cellValue) => {
// if (cellValue.tagList) {
// // 使用逗号分割,然后用换行符连接
// return cellValue.tagList.split(',').join('</br>')
// }
// }
},
{
label: "课程列表",
minWidth: 144,
prop: "courseList"
// minWidth: 144,
addHtml: "courseList"
},
// {
// label: "销售姓名",
......@@ -156,7 +153,7 @@ export default {
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
width: 140
},
{
label: "最后更新时间",
......@@ -165,7 +162,7 @@ export default {
? Util.dateFormate(cellValue.updatedDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
width: 140
}
]
}
......@@ -179,27 +176,6 @@ export default {
beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
// if (this.searchForm?.searchdate?.length) {
// let [searchStartDate, searchEndDate] = this.searchForm.searchdate
// this.searchFormSearch.startTime = Util.dateFormate(
// searchStartDate,
// "YYYY-MM-DD"
// )
// this.searchFormSearch.endTime = Util.dateFormate(
// searchEndDate,
// "YYYY-MM-DD"
// )
// const date1 = dayjs(searchStartDate),
// date2 = dayjs(searchEndDate),
// day = date2.diff(date1, "day") + 1
// if (day > 30) {
// reject(
// `${type == 1 ? "查询" : "导出"
// }的时间跨度最大为30天,请重新选择日期范围`
// )
// }
// }
// delete this.searchFormSearch.searchdate
resolve()
})
},
......
......@@ -22,7 +22,7 @@
<div class="el-input-tag input-tag-wrapper">
<!-- <div v-for="(subItem, subIdx) in formData.courseIds" :key="subIdx"> -->
<el-tag v-for="(k, n) in formData.courseIds" :key="n" class="customer-tag" size="small" type="info"
:closable="true" :disable-transitions="false" @close="handleDeleteCustomer(n, subItem, 'courseIds')">
:closable="true" :disable-transitions="false" @close="handleDeleteCustomer(n, 'courseIds')">
<span>{{ k.catalogName + ":" + k.courseTitle }}</span>
</el-tag>
</div>
......@@ -72,6 +72,20 @@ export default {
}
},
data() {
// var validatorTagIds = (rule, value, callback) => {
// if (this.storeSearchForm?.configList && this.storeSearchForm.configList.length > 0) {
// callback()
// } else {
// callback(new Error("请选择员工"))
// }
// }
// var validatorForm = (rule, value, callback) => {
// if (this.storeSearchForm?.configList && this.storeSearchForm.configList.length > 0) {
// callback()
// } else {
// callback(new Error("请选择员工"))
// }
// }
return {
savecourserelation,
updatecourserelation,
......@@ -86,7 +100,7 @@ export default {
},
rules: {
tagIds: [
{ required: true, message: "请选择员工标签对象", trigger: "change" }
{ required: true, message: "请选择员工标签对象", trigger: "change" },
],
courseIds: [
{ required: true, message: "请选择课程列表对象", trigger: "change" }
......@@ -130,7 +144,7 @@ export default {
selectTagDialog(type) {
this.$refs.selectTagForm.init(
{
type,
type: true,
item: JSON.parse(JSON.stringify(this.formData.tagIds))
}
)
......@@ -152,6 +166,9 @@ export default {
},
handleDelete(idx, pIdx) {
this.formData.tagIds[pIdx].labelList.splice(idx, 1)
if (this.formData.tagIds[pIdx].labelList.length == 0) {
this.formData.tagIds.splice(pIdx, 1)
}
},
handleAddConfirm() {
this.$refs.channelForm.validate(valid => {
......@@ -180,7 +197,6 @@ export default {
})
},
handleClose() {
// this.$emit("closeDialogFn")
this.show = false
}
}
......
......@@ -166,14 +166,11 @@ export default {
console.log("selectItem", selectItem)
this.loading = true
findAllLabel({
// labelTreeReq: {
currentPage: 1,
pageNum: 1,
pageSize: 999999,
tagName: this.tagName
// }
tagName: this.tagName,
isFlag: this.type
}).then((res) => {
console.log(res, "res")
res = res.filter(item => item.groupAtt != 3)
if (selectItem && selectItem.length > 0) {
this.labelTreeRets = res.map((item) => {
return {
......@@ -271,6 +268,7 @@ export default {
handleClose() {
this.labelTreeRetSelect = []
this.dialogVisible = false
this.$emit("closeDialogFn")
},
remove(items, idx) {
items.tagChecked.splice(idx, 1)
......
......@@ -103,11 +103,12 @@ export default {
name: "staffPhone",
type: "input",
isClear: true,
maxlength: 20
maxlength: 11,
inputType: "number"
},
{
label: "学习任务",
name: "taskTitle",
name: "title",
type: "input",
isClear: true,
maxlength: 20
......
......@@ -33,7 +33,7 @@
</div>
<div class="numberOfCompletedPersons count">
<div class="label">学习完成人数</div>
<span class="end">{{ staticData.finishStudyCount }}</span>人
<span class="end">{{ staticData.finishStudyCount || 0 }}</span>人
</div>
<div class="time">数据同步时间:{{ staticData.updatedDate }}</div>
</div>
......@@ -103,8 +103,9 @@ export default {
label: "员工手机号",
name: "staffPhone",
type: "input",
maxlength: "20",
isClear: true
isClear: true,
maxlength: 11,
inputType: "number"
},
{
label: "课程名称",
......
......@@ -70,8 +70,9 @@ export default {
label: "员工手机号",
name: "phoneNumber",
type: "input",
maxlength: "20",
isClear: true
isClear: true,
maxlength: 11,
inputType: "number"
}
],
getListApi: studyStaffPage,
......
......@@ -26,7 +26,8 @@
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130502']" />
</span>
<span style="margin-right: 10px" v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2">
<span style="margin-right: 10px"
v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2 || scope.scope.contentType == 5">
<auth-button :data="scope.scope" :show-btn-ids="['9130503']" />
</span>
<span style="margin-right: 10px" v-if="scope.scope.sendStatus == 3">
......
......@@ -2,7 +2,7 @@
<template>
<div class="performance-list-wrap">
<div class="title">
问界原厂权益销售重要通知
{{ title }}
<el-button size="small" @click="black">返回</el-button>
</div>
<div class="header" slot="header">
......@@ -39,6 +39,11 @@ export default {
tabName: "readStatistics"
}
},
computed: {
title() {
return this.$route.query.title
}
},
mounted() {
if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane
......
<template>
<d2-container class="point-list">
<div class="header" slot="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'150px'"
:form-data="showFormData"
/>
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'150px'"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
......@@ -16,20 +11,12 @@
</div>
</div>
<div class="d2-container-content">
<d2-table-header
:title="'积分明细列表'"
:title-class-name="'tableHeaderTitle'"
>
<auth-button category="Button" :show-btn-ids="['9140202']" />
<d2-table-header :title="'积分明细列表'" :title-class-name="'tableHeaderTitle'">
<auth-button category="Button" :show-btn-ids="['9140202']" />
</d2-table-header>
<d2-table
ref="pointTable"
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<d2-table ref="pointTable" :search-form="searchFormSearch" :table-params="tableParams" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px">
......@@ -40,8 +27,8 @@
</div>
</d2-container>
</template>
<script>
import { getScorePage, getShopMerchantList,exportScore } from "@api/point"
<script>
import { getScorePage, getShopMerchantList, exportScore } from "@api/point"
import { Util, deepClone } from "@/common/util"
export default {
data() {
......@@ -50,12 +37,12 @@ export default {
staffName: "",
staffPhone: "",
merchantId: "",
rewardTime:[],
reviewTime:[],
successTime:[]
rewardTime: [],
reviewTime: [],
successTime: []
},
searchFormSearch:{
searchFormSearch: {
},
getListApi: getScorePage,
showFormData: [
......@@ -172,7 +159,7 @@ export default {
this.$router.push({
name: "pointDetail",
query: {
staffId:data.staffId
staffId: data.staffId
}
})
},
......@@ -182,7 +169,7 @@ export default {
if (
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
......@@ -201,7 +188,7 @@ export default {
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.rewardTime&&this.searchFormSearch.rewardTime.length) {
if (this.searchFormSearch.rewardTime && this.searchFormSearch.rewardTime.length) {
this.searchFormSearch.rewardBeginTime =
Util.dateFormate(
this.searchFormSearch.rewardTime[0],
......@@ -213,7 +200,7 @@ export default {
"YYYY-MM-DD"
) + " 23:59:59"
}
if (this.searchFormSearch.reviewTime&&this.searchFormSearch.reviewTime.length) {
if (this.searchFormSearch.reviewTime && this.searchFormSearch.reviewTime.length) {
this.searchFormSearch.reviewBeginTime =
Util.dateFormate(
this.searchFormSearch.reviewTime[0],
......@@ -225,7 +212,7 @@ export default {
"YYYY-MM-DD"
) + " 23:59:59"
}
if (this.searchFormSearch.successTime&&this.searchFormSearch.successTime.length) {
if (this.searchFormSearch.successTime && this.searchFormSearch.successTime.length) {
this.searchFormSearch.successBeginTime =
Util.dateFormate(
this.searchFormSearch.successTime[0],
......@@ -251,11 +238,11 @@ export default {
staffName: "",
staffPhone: "",
merchantId: "",
rewardTime:[],
reviewTime:[],
successTime:[]
rewardTime: [],
reviewTime: [],
successTime: []
}
this.searchFormSearch={}
this.searchFormSearch = {}
this.$refs.pointTable.refreshTable(true, true)
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!