Commit 36ff6239 by wangzhihui

需求开发

1 parent a06f0cbd
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-01 15:03:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-04-01 10:42:02
* @LastEditTime: 2025-04-08 10:33:45
*/
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
......@@ -932,39 +932,39 @@ export const routerName = {
},
component: _import("residentManage/sceneClueManagement/detailView")
},
91219: {
91220: {
path: "/verbalTrickManagement",
name: "verbalTrickManagement",
meta: {
title: "话术管理",
authId: "91219",
authId: "91220",
parentId: "912",
cache: false
},
auth: [
{
authId: "9121901",
parentId: "91219",
authId: "9122001",
parentId: "91220",
label: "明细",
handle: "handleDetail",
addRoutePath: [
{
authId: "912190101",
authId: "912200101",
name: "详情",
parentId: "91219"
parentId: "91220"
}
]
}
],
component: _import("residentManage/verbalTrickManagement/index")
},
912190101: {
912200101: {
path: "/inVerbalConfigView",
name: "inVerbalConfigView",
meta: {
title: "明细",
authId: "912190101",
parentId: "91219",
authId: "912200101",
parentId: "91220",
activePath: "/inVerbalConfigView"
},
component: _import("residentManage/verbalTrickManagement/detailView")
......
......@@ -51,7 +51,7 @@ export default {
label: "提报日期",
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
? Util.dateFormate(cellValue.createdDate, "YYYY/MM/DD HH:mm:ss")
: "-"
}
},
......@@ -140,9 +140,11 @@ export default {
</script>
<style scoped lang="scss">
.detail-view {
min-width: 1200px;
min-height: 706px;
background-color: #fff;
padding-bottom: 20px;
overflow: scroll;
.title {
height: 50px;
padding: 13.5px 20px;
......
......@@ -10,7 +10,7 @@
<el-form class="edit-sub-block" label-width="110px" :inline="true">
<el-row :gutter="20">
<template v-for="(item, index) in configData">
<el-col :span="12" :key="index">
<el-col :span="item.col ? item.col : 12" :key="index">
<el-form-item :label="item.title">
<slot
v-if="item.addHtml"
......@@ -18,6 +18,10 @@
:scope="scope.row"
/>
<div v-else>
<div
v-if="item.className"
:class="[item.className(detailInfo)]"
></div>
{{ detailInfo[item.key] ? detailInfo[item.key] : "-" }}
</div>
</el-form-item></el-col
......@@ -28,7 +32,7 @@
</div>
<div class="operate-wrap">
<div class="title">操作记录</div>
<div class="operate-list">
<div class="operate-list" v-if="operateData.length>0">
<div
v-for="(item, index) in operateData"
:key="index"
......@@ -46,6 +50,7 @@
</div>
</div>
</div>
<div v-else class="empty">暂无记录</div>
</div>
</div>
</baseDialog>
......@@ -107,7 +112,15 @@ export default {
},
{
title: "状态:",
key: "pushStatus"
key: "pushStatusName",
className: (cellValue) => {
return {
1: "yellowSpot",
2: "greenSpot",
3: "ashSpot",
0: "ashSpot"
}[cellValue.pushStatus]
}
},
{
title: "更新时间:",
......@@ -120,7 +133,8 @@ export default {
},
{
title: "话术内容:",
key: "sourceContent"
key: "sourceContent",
col: 24
}
],
dialogConfig: {
......@@ -146,12 +160,12 @@ export default {
getRecordDetail({ id: this.id }).then((res) => {
if (res) {
res.scene = res.scene == 1 ? "精品" : "延保"
res.pushStatus = res.pushStatus == 1 ? "已推送" : "未推送"
res.pushStatusName = res.pushStatus == 1 ? "已推送" : "未推送"
res.pushTime = res.pushTime
? Util.dateFormate(res.pushTime, "YYYY-MM-DD HH:mm:ss")
? Util.dateFormate(res.pushTime, "YYYY/MM/DD HH:mm:ss")
: "--"
res.inputTime = res.inputTime
? Util.dateFormate(res.inputTime, "YYYY-MM-DD HH:mm:ss")
? Util.dateFormate(res.inputTime, "YYYY/MM/DD HH:mm:ss")
: "--"
this.detailInfo = res
......@@ -215,7 +229,7 @@ export default {
border-bottom: 1px solid #e5e5e5;
}
.operate-list {
margin:20px;
margin: 20px;
.operate-item {
.header {
display: flex;
......@@ -229,8 +243,8 @@ export default {
.type {
color: #666666;
font-size: 14px;
line-height:20px;
margin:0 12px 0 16px;
line-height: 20px;
margin: 0 12px 0 16px;
}
.result {
color: #2cca74;
......@@ -247,13 +261,19 @@ export default {
font-size: 12px;
border-left: 2px solid #e4e8ee;
margin-left: 4px;
span{
margin-left:16px;
span {
margin-left: 16px;
}
}
}
}
}
.empty {
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
}
</style>
\ No newline at end of file
......@@ -28,6 +28,7 @@
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
:layout="'total,prev, pager, next'"
>
</d2-table>
</baseDialog>
......@@ -58,13 +59,7 @@ export default {
}
}
},
watch: {
id(val) {
if (val) this.getDetail()
}
},
mounted() {
this.getDetail()
},
data() {
return {
......@@ -82,13 +77,14 @@ export default {
label: "手机号",
name: "staffPhone",
type: "input",
placeholder: "请输入手机号(至少4位)",
placeholder: "请输入",
maxlength: "11",
isClear: true
},
{
label: "员工名称",
name: "staffName",
placeholder: "请输入",
type: "input",
maxlength: "40",
isClear: true
......@@ -96,6 +92,7 @@ export default {
{
label: "门店名称",
name: "merchantName",
placeholder: "请输入",
type: "input",
isClear: true
},
......@@ -181,22 +178,6 @@ export default {
handleDetailClose() {
this.dialogShow = false
},
getDetail() {
getRecordDetail({ id: this.id }).then((res) => {
if (res) {
res.scene = res.scene == 1 ? "精品" : "延保"
res.pushStatus = res.pushStatus == 1 ? "已推送" : "未推送"
res.pushTime = res.pushTime
? Util.dateFormate(res.pushTime, "YYYY-MM-DD HH:mm:ss")
: "--"
res.inputTime = res.inputTime
? Util.dateFormate(res.inputTime, "YYYY-MM-DD HH:mm:ss")
: "--"
this.detailInfo = res
}
})
},
beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm)
......
......@@ -28,7 +28,7 @@
>
<div slot="auth-button" slot-scope="scope">
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9121901']" />
<auth-button :data="scope.scope" :show-btn-ids="['9122001']" />
</span>
</div>
</d2-table>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!