优化未打卡用户列表
This commit is contained in:
@ -59,4 +59,15 @@ export function updateWxShow(data){
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
//重新生成索引
|
||||
export function regenerateQuestionIndex(){
|
||||
return request({
|
||||
url: '/custom/nutritionQuestion/regenerateNutritionQuestionIndex',
|
||||
method: 'get',
|
||||
params: {}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
@ -70,7 +70,16 @@
|
||||
</el-form>
|
||||
<div style="height: 550px; overflow: auto">
|
||||
<el-table v-loading="loading" :data="notPunchCustomerList">
|
||||
<el-table-column label="客户姓名" align="center" prop="name" />
|
||||
<el-table-column label="客户姓名" align="center" prop="name">
|
||||
<template slot-scope="scope">
|
||||
<div
|
||||
@click="handleOnNameClick(scope.row.name)"
|
||||
class="user_name_style"
|
||||
>
|
||||
{{ scope.row.name }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="营养师" align="center" prop="mainDietitian" :formatter="nutritionistFormat"/>
|
||||
<el-table-column label="售后营养师" align="center" prop="afterDietitian" :formatter="afterDietitianFormat"/>
|
||||
</el-table>
|
||||
@ -199,10 +208,16 @@ export default {
|
||||
afterDietitianFormat(row, column) {
|
||||
return this.selectDictLabel(this.afterSaleIdOptions, row.afterDietitian);
|
||||
},
|
||||
handleOnNameClick(name) {
|
||||
// console.log({ name });
|
||||
this.$router.push(`/customer?cusName=${name}`);
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.user_name_style {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
@ -59,6 +59,14 @@
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
size="mini"
|
||||
@click="regenerateIndex"
|
||||
v-hasPermi="['custom:nutritionQuestion:regenerateIndex']"
|
||||
>重新生成索引</el-button>
|
||||
</el-col>
|
||||
<!--<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
@ -66,7 +74,7 @@
|
||||
@click="handleAskQuestion"
|
||||
v-hasPermi="['custom:askQuestion:list']"
|
||||
>问题解答</el-button>
|
||||
</el-col>
|
||||
</el-col>-->
|
||||
<!--<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
@ -117,6 +125,9 @@
|
||||
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" align="center" prop="createByName">
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
@ -212,7 +223,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listNutritionQuestion, getNutritionQuestion, delNutritionQuestion, addNutritionQuestion, updateNutritionQuestion, exportNutritionQuestion,updateWxShow } from "@/api/custom/nutritionQuestion";
|
||||
import { listNutritionQuestion, getNutritionQuestion, delNutritionQuestion, addNutritionQuestion, updateNutritionQuestion, exportNutritionQuestion,updateWxShow,regenerateQuestionIndex } from "@/api/custom/nutritionQuestion";
|
||||
import Editor from '@/components/Wangeditor';
|
||||
import AutoHideMessage from "@/components/AutoHideMessage";
|
||||
import AskQuestion from "../askQuestion";
|
||||
@ -437,6 +448,14 @@ export default {
|
||||
},
|
||||
onClosedAskQuestion(){
|
||||
console.log(this.$refs.askQuestionListRef.isUpdateFlag);
|
||||
},
|
||||
regenerateIndex(){
|
||||
regenerateQuestionIndex().then(response => {
|
||||
if(response.code == 200){
|
||||
this.msgSuccess("生成成功");
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user