Commit 36ff6239 by wangzhihui

需求开发

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