Commit 71f77149 by wangzhihui

```

refactor(api): 调整预警管理API文件格式化

调整了src/api/earlyWarningManager.js文件中的代码格式,
包括修正分号使用、函数参数格式、字符串引号统一等,
同时新增了一个获取区域运营执行人员列表的API函数。
```
1 parent e7b7faba
export default {
props: {
visible: {
type: Boolean,
default: false
},
chooseData: {
type: Array,
default: () => []
}
},
inject: [
'deepClone',
'GET_POSITION_TYPE_LIST',
'GET_PARAMS_INFO',
'GET_MERCHANT_LIST',
'GET_BIZ',
'DEL_PARAMS_MERCHANT_LIST'
],
computed: {
dialogShow: {
get () {
return this.visible
},
set (val) {
this.chooseList = []
this.close()
}
},
count () {
return this.chooseList.length
},
positionTypeList () {
return this.GET_POSITION_TYPE_LIST && this.GET_POSITION_TYPE_LIST()
},
paramsInfo () {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO()
},
merchantList () {
return this.GET_MERCHANT_LIST && this.GET_MERCHANT_LIST()
},
biz () {
return this.GET_BIZ && this.GET_BIZ()
},
delMerchantList(){
return this.DEL_PARAMS_MERCHANT_LIST && this.DEL_PARAMS_MERCHANT_LIST()
}
},
watch: {
visible: {
handler (val) {
if (val) {
this.searchForm = this.$options.data.call(this).searchForm
let multipleTable = this.multipleTable()
if (multipleTable) multipleTable.page.currentPage = 1
this.chooseList = this.deepClone(this.chooseData)
this.viewKey = Date.now()
}
},
immediate: true,
deep: true
},
},
props: {
visible: {
type: Boolean,
default: false,
},
chooseData: {
type: Array,
default: () => [],
},
},
inject: [
"deepClone",
"GET_POSITION_TYPE_LIST",
"GET_PARAMS_INFO",
"GET_MERCHANT_LIST",
"GET_BIZ",
"DEL_PARAMS_MERCHANT_LIST",
],
computed: {
dialogShow: {
get() {
return this.visible;
},
set(val) {
this.chooseList = [];
this.close();
},
},
count() {
return this.chooseList.length;
},
positionTypeList() {
return this.GET_POSITION_TYPE_LIST && this.GET_POSITION_TYPE_LIST();
},
paramsInfo() {
return this.GET_PARAMS_INFO && this.GET_PARAMS_INFO();
},
merchantList() {
return this.GET_MERCHANT_LIST && this.GET_MERCHANT_LIST();
},
biz() {
return this.GET_BIZ && this.GET_BIZ();
},
delMerchantList() {
return this.DEL_PARAMS_MERCHANT_LIST && this.DEL_PARAMS_MERCHANT_LIST();
},
},
watch: {
visible: {
handler(val) {
if (val) {
this.searchForm = this.$options.data.call(this).searchForm;
let multipleTable = this.multipleTable();
if (multipleTable)
multipleTable.page.currentPage = 1;
this.chooseList = this.deepClone(this.chooseData);
this.viewKey = Date.now();
}
},
immediate: true,
deep: true,
},
},
mounted () {
},
data () {
return {
viewKey: Date.now(),
config: {
appendToBody: true,
isShowFooter: true,
cancel_name: "取消",
confirm_name: "确定",
},
searchFormSearch: {},
chooseList: [],
}
},
methods: {
getParams () {
const params = this.deepClone(this.searchForm)
return params
},
beforeSearchFn () {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams()
resolve()
})
},
close () {
this.$emit('dialogClose')
},
remove (i, index) {
this.chooseList.splice(index, 1)
let tableData = this.multipleTable().data
tableData.map(j => {
if (i[this.targetId] === j[this.targetId]) {
this.multipleTable().tableRef.toggleRowSelection(j, false)
}
})
},
async submit () {
this.$emit('choose', this.chooseList)
this.close()
},
handleReset () {
this.searchForm = this.$options.data.call(this).searchForm
this.multipleTable().page.currentPage = 1
this.handleSearch()
},
handleSearch () {
this.multipleTable().page.currentPage = 1
this.multipleTable().refreshTable()
},
setTableFinishFun (data) {
this.$nextTick(() => {
let { chooseList, targetId } = this
chooseList.map(item => {
let index = data.findIndex(i => i[targetId] === item[targetId])
if (index > -1) this.multipleTable().tableRef.toggleRowSelection(data[index], true)
})
})
},
selectionTable (list) {
this.$nextTick(() => {
let { targetId, chooseList } = this
if (this.formatTag) list = list.map(e => {
return this.formatTag(e)
})
// 合并列表后基于 targetId 去重
const mergedList = [...chooseList, ...list]
this.chooseList = [...new Map(
mergedList.map(item => [item[targetId], item])
).values()]
})
},
selectRow (list, row) {
let { targetId } = this,
index = list.findIndex(i => i[targetId] === row[targetId])
if (index == -1) {
let delIndex = this.chooseList.findIndex(i => i[targetId] === row[targetId])
if (delIndex > -1) this.chooseList.splice(delIndex, 1)
}
},
selectAll (list) {
if (!list.length) {
let tableData = this.multipleTable().data,
{ targetId } = this
// 使用 Set 存储 tableData 中的所有 targetId
const tableDataIds = new Set(tableData.map(item => item[targetId]));
// 保留 chooseList 中不在 tableData 的项目
this.chooseList = this.chooseList.filter(item =>
!tableDataIds.has(item[targetId])
);
}
},
multipleTable () {
return this.$refs.multipleTable
},
clearChooseList () {
this.chooseList = []
this.multipleTable().clearMutiSelect()
}
}
mounted() {
},
data() {
return {
viewKey: Date.now(),
config: {
appendToBody: true,
isShowFooter: true,
cancel_name: "取消",
confirm_name: "确定",
},
searchFormSearch: {},
chooseList: [],
};
},
methods: {
getParams() {
const params = this.deepClone(this.searchForm);
return params;
},
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = this.getParams();
resolve();
});
},
close() {
this.$emit("dialogClose");
},
remove(i, index) {
this.chooseList.splice(index, 1);
let tableData = this.multipleTable().data;
tableData.map((j) => {
if (i[this.targetId] === j[this.targetId]) {
this.multipleTable().tableRef.toggleRowSelection(j, false);
}
});
},
async submit() {
this.$emit("choose", this.chooseList);
this.close();
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm;
this.multipleTable().page.currentPage = 1;
this.handleSearch();
},
handleSearch() {
this.multipleTable().page.currentPage = 1;
this.multipleTable().refreshTable();
},
setTableFinishFun(data) {
this.$nextTick(() => {
let { chooseList, targetId } = this;
chooseList.map((item) => {
let index = data.findIndex(i => i[targetId] === item[targetId]);
if (index > -1)
this.multipleTable().tableRef.toggleRowSelection(data[index], true);
});
});
},
selectionTable(list) {
this.$nextTick(() => {
let { targetId, chooseList } = this;
if (this.formatTag) {
list = list.map((e) => {
return this.formatTag(e);
});
}
// 合并列表后基于 targetId 去重
const mergedList = [...chooseList, ...list];
this.chooseList = [...new Map(
mergedList.map(item => [item[targetId], item]),
).values()];
});
},
selectRow(list, row) {
let { targetId } = this;
let index = list.findIndex(i => i[targetId] === row[targetId]);
if (index == -1) {
let delIndex = this.chooseList.findIndex(i => i[targetId] === row[targetId]);
if (delIndex > -1)
this.chooseList.splice(delIndex, 1);
}
},
selectAll(list) {
if (!list.length) {
let tableData = this.multipleTable().data;
let { targetId } = this;
// 使用 Set 存储 tableData 中的所有 targetId
const tableDataIds = new Set(tableData.map(item => item[targetId]));
// 保留 chooseList 中不在 tableData 的项目
this.chooseList = this.chooseList.filter(item =>
!tableDataIds.has(item[targetId]),
);
}
},
multipleTable() {
return this.$refs.multipleTable;
},
clearChooseList() {
this.chooseList = [];
this.multipleTable().clearMutiSelect();
},
},
}
\ No newline at end of file
};
\ No newline at end of file
......@@ -22,10 +22,11 @@
<el-select v-model="formData.taskType"
placeholder="请选择任务类型"
style="width: 100%;">
<el-option label="人员更换评估" value="人员更换评估"></el-option>
<el-option label="商务政策更新评估" value="商务政策更新评估"></el-option>
<el-option label="多品类拓张" value="多品类拓张"></el-option>
<el-option label="流量问题改善" value="流量问题改善"></el-option>
<el-option v-for="(label, value) in taskTypeOptions"
:key="value"
:label="label"
:value="Number(value)">
</el-option>
</el-select>
</el-form-item>
......@@ -52,13 +53,15 @@
</el-form-item>
<el-form-item label="执行人员:" prop="executorUuid">
<el-radio-group v-model="formData.executorUuid">
<el-radio v-for="item in executorList"
:key="item.staffUuid"
:label="item.staffUuid">
{{ item.staffName }}
</el-radio>
</el-radio-group>
<el-select v-model="formData.executorUuid"
placeholder="请选择执行人员"
style="width: 100%;">
<el-option v-for="item in executorList"
:key="item.directorUserId"
:label="item.directorName"
:value="item.directorUserId">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="任务说明:" prop="description">
......@@ -77,7 +80,8 @@
@click="close">
取消
</el-button>
<el-button size="small"
<el-button :loading="loading"
size="small"
type="primary"
@click="confirm">
确定
......@@ -95,7 +99,7 @@
</template>
<script>
import { getStrategyStaffList } from "@/api/earlyWarningManager";
import { batchCreateStrategy, getStrategyShopMerchantOperators, getStrategyStaffList } from "@/api/earlyWarningManager";
import MultipleStaff from "../AddStrategy/MultipleStaff.vue";
export default {
......@@ -124,6 +128,13 @@ export default {
},
data() {
return {
loading: false,
taskTypeOptions: {
9: "人员更换评估",
10: "商务政策更新评估",
11: "多品类拓张",
12: "流量问题改善",
},
formData: {
taskType: "",
taskTitle: "",
......@@ -187,37 +198,24 @@ export default {
this.$refs.form.clearValidate();
}
});
this.loadAllStaffs();
this.loadExecutors();
},
close() {
this.dialogShow = false;
},
loadAllStaffs() {
const params = {
positionTypeList: this.positionTypeList,
sceneType: 0,
staffName: "",
merchantIdList: this.paramsInfo ? this.paramsInfo.merchantIds : [],
};
getStrategyStaffList({ ...params, pageSize: 9999, pageNum: 1 }).then((res) => {
if (res && res.list) {
this.formData.staffList = res.list;
}
});
},
loadExecutors() {
// 9: 区域运营
const params = {
positionTypeList: [9],
sceneType: 0,
staffName: "",
merchantIdList: this.paramsInfo ? this.paramsInfo.merchantIds : [],
merchantId: this.paramsInfo ? this.paramsInfo.merchantIds[0] : "",
businessType: this.biz,
};
getStrategyStaffList({ ...params, pageSize: 9999, pageNum: 1 }).then((res) => {
if (res && res.list) {
this.executorList = res.list;
getStrategyShopMerchantOperators(params).then((res) => {
if (res && res.length) {
this.executorList = res;
} else {
this.executorList = [];
}
}).catch(() => {
this.executorList = [];
});
},
openStaffDialog() {
......@@ -231,27 +229,74 @@ export default {
this.$refs.form.validateField("staffList");
},
confirm() {
this.$refs.form.validate((valid) => {
if (valid) {
const executor = this.executorList.find(item => item.staffUuid === this.formData.executorUuid);
// TODO: 调用后端接口提交
const submitData = {
merchantId: this.paramsInfo.merchantIds[0],
merchantName: this.merchantName,
biz: this.biz,
taskType: this.formData.taskType,
taskTitle: this.formData.taskTitle,
staffList: this.formData.staffList,
executor,
description: this.formData.description,
};
console.log("提交协同任务:", submitData);
try {
this.loading = true;
let { paramsInfo, merchantName, formData, biz } = this;
let { taskType, taskTitle, staffList, executorUuid, description } = formData;
this.$refs.form.validate(async (valid) => {
if (valid) {
const executor = this.executorList.find(item => item.directorUserId === executorUuid);
let params = {
strategyInfo: {
strategyType: taskType,
biz,
title: taskTitle,
description,
},
merchantList: [
{
merchantId: paramsInfo.merchantIds[0],
merchantName,
},
],
};
let allStaffs = [];
if (staffList && staffList.length) {
if (staffList.length > 100) {
this.loading = false;
this.$message.error("最多只能选择100个问题人员");
return;
}
allStaffs = staffList.map(e => ({
userUuid: e.staffUuid,
userName: e.staffName,
userPhone: e.phoneNumber,
userPosition: 0, // 问题人员
}));
}
if (executor) {
allStaffs.push({
userUuid: executor.directorUserId,
userName: executor.directorName,
userPhone: executor.directorPhone,
userPosition: biz === 2 ? 8 : 9, // 执行人员:轻改=8,权益、延保=9
});
}
this.$message.success("操作成功");
this.$emit("refresh");
this.dialogShow = false;
}
});
if (allStaffs.length) {
params.staffList = allStaffs;
}
console.log(params);
const data = await batchCreateStrategy(params);
this.loading = false;
if (data) {
this.$emit("refresh");
this.$message.success("操作成功");
this.close();
} else {
this.$message.error("操作失败");
}
} else {
this.loading = false;
}
});
} catch (error) {
console.log(error, "===");
this.loading = false;
if (error)
this.$message.error(error);
console.log(error);
}
},
},
};
......
......@@ -49,7 +49,8 @@
@click="close">
取消
</el-button>
<el-button size="small"
<el-button :loading="loading"
size="small"
type="primary"
@click="confirm">
确定
......@@ -67,7 +68,7 @@
</template>
<script>
import { getStrategyStaffList } from "@/api/earlyWarningManager";
import { batchCreateStrategy } from "@/api/earlyWarningManager";
import MultipleStaff from "../AddStrategy/MultipleStaff.vue";
export default {
......@@ -96,6 +97,7 @@ export default {
},
data() {
return {
loading: false,
formData: {
staffList: [],
description: "",
......@@ -146,24 +148,10 @@ export default {
this.$refs.form.clearValidate();
}
});
this.loadAllStaffs();
},
close() {
this.dialogShow = false;
},
loadAllStaffs() {
const params = {
positionTypeList: this.positionTypeList,
sceneType: 0,
staffName: "",
merchantIdList: this.paramsInfo ? this.paramsInfo.merchantIds : [],
};
getStrategyStaffList({ ...params, pageSize: 9999, pageNum: 1 }).then((res) => {
if (res && res.list) {
this.formData.staffList = res.list;
}
});
},
openStaffDialog() {
this.staffTagVisible = true;
},
......@@ -175,23 +163,61 @@ export default {
this.$refs.form.validateField("staffList");
},
confirm() {
this.$refs.form.validate((valid) => {
if (valid) {
// TODO: 调用后端接口提交
const submitData = {
merchantId: this.paramsInfo.merchantIds[0],
merchantName: this.merchantName,
biz: this.biz,
staffList: this.formData.staffList,
description: this.formData.description,
};
console.log("提交带教申请:", submitData);
this.$message.success("操作成功");
this.$emit("refresh");
this.dialogShow = false;
}
});
try {
this.loading = true;
const { paramsInfo, merchantName, formData, biz } = this;
const { staffList, description } = formData;
this.$refs.form.validate(async (valid) => {
if (valid) {
const params = {
strategyInfo: {
strategyType: 8,
biz,
description,
},
merchantList: [
{
merchantId: paramsInfo.merchantIds[0],
merchantName,
},
],
};
if (staffList && staffList.length) {
if (staffList.length > 100) {
this.loading = false;
this.$message.error("最多只能选择100个人员");
return;
}
params.staffList = staffList.map((e) => {
return {
userUuid: e.staffUuid,
userName: e.staffName,
userPhone: e.phoneNumber,
userPosition: e.positionType,
};
});
}
console.log(params);
const data = await batchCreateStrategy(params);
this.loading = false;
if (data) {
this.$emit("refresh");
this.$message.success("操作成功");
this.close();
} else {
this.$message.error("操作失败");
}
} else {
this.loading = false;
}
});
} catch (error) {
console.log(error, "===");
this.loading = false;
if (error)
this.$message.error(error);
console.log(error);
}
},
},
};
......
import dayjs from "dayjs"
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-04-01 09:57:49
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-06-01 15:21:51
* @FilePath: \dj-car-life-system\src\views\earlyWarningManager\strategyCentre\storeSignboard\components\StrategyList\contant.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import dayjs from "dayjs";
const STRATEGYTYPEOPTIONS = {
0: '学习',
1: '优秀案例分享',
2: '带教',
3: '任务下发',
4: '销售精英到店提拉',
5: '强力促销',
6: '最终盘点与低客单产品购入',
7: '留言'
}
0: "学习",
1: "优秀案例分享",
2: "带教",
3: "任务下发",
4: "销售精英到店提拉",
5: "强力促销",
6: "最终盘点与低客单产品购入",
7: "留言",
8: "带教申请",
9: "人员更换评估",
10: "商务政策更新评估",
11: "多品类拓张",
12: "流量问题改善",
};
const DATE_RANGE = {
label: '执行周期',
format: (val) => {
let { startDate, endDate } = val
return `${dayjs(startDate).format('YYYY-MM-DD')}至 ${dayjs(endDate).format('YYYY-MM-DD')}`
}
}
const STAFF_FORMAT = (label) => {
return {
label,
format: (val) => {
let { staffList } = val
return staffList.map(item => item.userName).join('/') || '-'
}
}
label: "执行周期",
format: (val) => {
let { startDate, endDate } = val;
return `${dayjs(startDate).format("YYYY-MM-DD")}至 ${dayjs(endDate).format("YYYY-MM-DD")}`;
},
};
function STAFF_FORMAT(label) {
return {
label,
format: (val) => {
let { staffList } = val;
return staffList.map(item => item.userName).join("/") || "-";
},
};
}
const STRATEGY_01 = [
STAFF_FORMAT('学习人员'),
{
label: '学习内容',
className: 'two-line-ellipsis',
format: (val) => {
let { courseList, recordingList, strategyType } = val
return strategyType == 1 ?
recordingList.map(item => `《${item.receptionStaffName}${item.receptionDate}》`).join('\t') :
courseList.map(item => `《${item.courseName}》`).join('\t')
}
},
DATE_RANGE
]
STAFF_FORMAT("学习人员"),
{
label: "学习内容",
className: "two-line-ellipsis",
format: (val) => {
let { courseList, recordingList, strategyType } = val;
return strategyType == 1
? recordingList.map(item => `《${item.receptionStaffName}${item.receptionDate}》`).join("\t")
: courseList.map(item => `《${item.courseName}》`).join("\t");
},
},
DATE_RANGE,
];
const STRATEGY_2456 = [
{
...STAFF_FORMAT('执行人'),
hide: (val) => {
let { strategyType } = val
return [5, 6].includes(strategyType)
},
},
DATE_RANGE
]
{
...STAFF_FORMAT("执行人"),
hide: (val) => {
let { strategyType } = val;
return [5, 6].includes(strategyType);
},
},
DATE_RANGE,
];
const STRATEGY_3 = [
{
label: '标题',
key: 'title',
},
STAFF_FORMAT('处理人'),
{
label: '执行时间',
format: (val) => {
let { startDate, createdDate } = val
return `${dayjs(startDate ? startDate : createdDate).format('YYYY-MM-DD HH:mm:ss')}`
}
},
]
{
label: "标题",
key: "title",
},
STAFF_FORMAT("处理人"),
{
label: "执行时间",
format: (val) => {
let { startDate, createdDate } = val;
return `${dayjs(startDate || createdDate).format("YYYY-MM-DD HH:mm:ss")}`;
},
},
];
const STRATEGY_7 = [
{
label: '留言人',
key: 'createdBy',
},
STAFF_FORMAT('处理人')
]
{
label: "留言人",
key: "createdBy",
},
STAFF_FORMAT("处理人"),
];
const STRATEGY_8 = [
STAFF_FORMAT("需带教人员"),
];
const STRATEGY_9_10_11_12 = [
STAFF_FORMAT("问题人员"),
STAFF_FORMAT("执行人员"),
];
export {
STRATEGYTYPEOPTIONS,
STRATEGY_01,
STRATEGY_2456,
STRATEGY_3,
STRATEGY_7,
STRATEGY_01,
STRATEGY_3,
STRATEGY_7,
STRATEGY_8,
STRATEGY_9_10_11_12,
STRATEGY_2456,
STRATEGYTYPEOPTIONS,
}
\ No newline at end of file
};
\ No newline at end of file
......@@ -50,6 +50,8 @@
:item="currentItem"
@openReceptionDialog="$emit('openReceptionDialog', $event)">
</StrategyDetail>
<AddStrategy :dialogVisible.sync="addStrategyVisible" @refresh="init"></AddStrategy>
</AddStrategy>
<TeachingDetail :item="currentItem"
:visibleSync.sync="teachingDetailVisible">
</TeachingDetail>
......@@ -150,7 +152,7 @@ export default {
list.map((e) => {
e.showDel = dayjs().diff(dayjs(e.startDate), "s") < 0;
e.createdDateText = dayjs(e.createdDate).format("YYYY-MM-DD");
e.createdDateText = dayjs(e.createdDate).format("YYYY-MM-DD HH:mm:ss");
e.descriptionText = e.description ? e.description.replace(/<\/?br\s*\/?>|\\n|\n/g, "<br>") : "-";
});
if (this.pageNum == 1) {
......
......@@ -64,6 +64,8 @@
</template>
<script>
import { queryStrategyTaskDetailById } from "@/api/earlyWarningManager";
export default {
name: "TeachingDetail",
props: {
......@@ -103,42 +105,66 @@ export default {
close() {
this.dialogShow = false;
},
initData() {
// 模拟数据,等后端接口提供后替换为实际数据
this.detailData = [
async initData() {
if (!this.item.id)
return;
try {
const res = await queryStrategyTaskDetailById({ id: this.item.id });
if (res) {
this.formatDetailData(res);
}
} catch (error) {
console.error(error);
}
},
formatDetailData(data) {
const staffList = data.staffList || [];
const targetStaffs = staffList.filter(e => e.userPosition === 0).map(e => e.userName).join("/");
const detailData = [
{
title: "申请信息",
config: [
{ subtitle: "需带教人员:", value: "张三/李四", fullRow: true },
{ subtitle: "申请说明:", value: "安排课程学习,进一步跟进驻店人员学习情况及业务情况。安排课程学习,进一步跟进驻店人员学习情况及业务情况。安排课程学习,进一步跟进驻店人员学习情况及业务情况。", fullRow: true },
{ subtitle: "操作人:", value: "杨佳", fullRow: false },
{ subtitle: "操作时间:", value: "2025-10-01 12:34:23", fullRow: false },
],
},
{
title: "审批信息",
config: [
{ subtitle: "状态:", value: "张三/李四", fullRow: true },
{ subtitle: "驳回:", value: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", fullRow: true },
{ subtitle: "审批人:", value: "通过", fullRow: false },
{ subtitle: "审批时间:", value: "2025-10-01 12:34:23", fullRow: false },
{ subtitle: "需带教人员:", value: targetStaffs || "-", fullRow: true },
{ subtitle: "申请说明:", value: data.description || "-", fullRow: true },
{ subtitle: "操作人:", value: data.createdBy || "-", fullRow: false },
{ subtitle: "操作时间:", value: data.createdDate || "-", fullRow: false },
],
},
{
];
const mentoringAppDetail = data.mentoringApplicationDetail || {};
const approvalInfo = mentoringAppDetail.approvalInfo || {};
detailData.push({
title: "审批信息",
config: [
{ subtitle: "状态:", value: approvalInfo.approvalStatus || "-", fullRow: true },
...(approvalInfo.approvalStatus === "驳回" && approvalInfo.rejectReason ? [{ subtitle: "驳回:", value: approvalInfo.rejectReason || "-", fullRow: true }] : []),
{ subtitle: "审批人:", value: approvalInfo.approverName || "-", fullRow: false },
{ subtitle: "审批时间:", value: approvalInfo.approvalTime || "-", fullRow: false },
],
});
const taskDetail = mentoringAppDetail.taskDetail;
if (taskDetail) {
detailData.push({
title: "带教信息",
config: [
{ subtitle: "状态:", value: "执行中", fullRow: false },
{ subtitle: "指定区域督导:", value: "杨佳", fullRow: false },
{ subtitle: "带教场景:", value: "XXXXXXXXXXXXXXXXXX", fullRow: false },
{ subtitle: "带教时间:", value: "2025-10-01 12:34:23", fullRow: false },
{ subtitle: "带教方式:", value: "XXXXXXXXXXXXXXXXXX", fullRow: false },
{ subtitle: "带教主题:", value: "XXXXXXXXXXXXXXXXXX", fullRow: false },
{ subtitle: "推送课程:", value: "XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXX", fullRow: true },
{ subtitle: "带教内容摘要:", value: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", fullRow: true },
{ subtitle: "带教招聘佐证:", value: ["https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg"], isImage: true, fullRow: true },
{ subtitle: "状态:", value: taskDetail.taskStatus || "-", fullRow: false },
{ subtitle: "指定区域督导:", value: taskDetail.supervisorName || "-", fullRow: false },
{ subtitle: "带教场景:", value: taskDetail.mentoringScene || "-", fullRow: false },
{ subtitle: "带教时间:", value: taskDetail.mentoringTime || "-", fullRow: false },
{ subtitle: "带教方式:", value: taskDetail.mentoringMethod || "-", fullRow: false },
{ subtitle: "带教主题:", value: taskDetail.mentoringTopic || "-", fullRow: false },
{ subtitle: "推送课程:", value: taskDetail.pushCourses || "-", fullRow: true },
{ subtitle: "带教内容摘要:", value: taskDetail.contentSummary || "-", fullRow: true },
{ subtitle: "带教招聘佐证:", value: taskDetail.evidenceImages || [], isImage: true, fullRow: true },
],
},
];
});
}
this.detailData = detailData;
},
},
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!