Commit 08206c9f by 李伟康

commit 客户档案&标签

1 parent f83a1691
...@@ -332,8 +332,8 @@ export const routerName = { ...@@ -332,8 +332,8 @@ export const routerName = {
component: _import("contentManager/customerFile/index") component: _import("contentManager/customerFile/index")
}, },
9131701:{ 9131701:{
path: "/contentDetails", path: "/customerFileDetails",
name: "contentDetails", name: "customerFileDetails",
meta: { meta: {
title: "话术管理", title: "话术管理",
authId: "9131701", authId: "9131701",
...@@ -341,6 +341,6 @@ export const routerName = { ...@@ -341,6 +341,6 @@ export const routerName = {
cache: false cache: false
}, },
auth: [], auth: [],
component: _import("contentManager/customerFile/contentDetails") component: _import("contentManager/customerFile/customerFileDetails")
} }
} }
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
> >
<el-form-item <el-form-item
prop="headings" prop="headings"
label="段落标题" label="段落标题:"
:style="{ 'margin-bottom': '22px' }" :style="{ 'margin-bottom': '22px' }"
> >
<el-input <el-input
...@@ -580,7 +580,7 @@ ...@@ -580,7 +580,7 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
prop="content" prop="content"
label="段落内容" label="段落内容:"
:style="{ 'margin-bottom': '22px' }" :style="{ 'margin-bottom': '22px' }"
> >
<el-input <el-input
...@@ -647,7 +647,7 @@ ...@@ -647,7 +647,7 @@
<p class="photo-top-tips">支持mp3,大小不超过200M</p> <p class="photo-top-tips">支持mp3,大小不超过200M</p>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="上传多张图片" label="上传多张图片:"
:style="{ 'margin-bottom': '22px' }" :style="{ 'margin-bottom': '22px' }"
> >
<glsx-preview <glsx-preview
......
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
label: '查看时长', label: '查看时长',
minWidth: 220, minWidth: 220,
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.solutionBrowsingDurationCount ? secondsToMinutesAndSeconds(cellValue.solutionBrowsingDurationCount) : `0分钟0秒` return cellValue.solutionBrowsingDurationCount ? secondsToMinutesAndSeconds(cellValue.solutionBrowsingDurationCount) : `0秒`
} }
}, },
] ]
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
this.$router.push({ this.$router.push({
name: "contentAdd", name: "contentAdd",
params: { params: {
scene: query.scene, scene: Number(query.scene),
showChannel: 2, showChannel: 2,
type: 3, type: 3,
receptionSceneInfoList: [{ receptionSceneInfoList: [{
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</div> </div>
</template> </template>
<template v-else> <template v-else>
<span>{{ scope.scope.customerTagName || '--' }}</span> <span>{{ scope.scope.customerTagName || '-' }}</span>
</template> </template>
</template> </template>
<template <template
...@@ -392,7 +392,7 @@ export default { ...@@ -392,7 +392,7 @@ export default {
}, },
jumpDetail (row) { jumpDetail (row) {
this.$router.push({ this.$router.push({
name: "contentDetails", name: "customerFileDetails",
query: { query: {
id: row.id, id: row.id,
receptionSceneName: row.receptionSceneName, receptionSceneName: row.receptionSceneName,
...@@ -425,6 +425,7 @@ export default { ...@@ -425,6 +425,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 10px; padding: 0 10px;
justify-content: center;
.tag { .tag {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
<div <div
v-if="item.addHtml" v-if="item.addHtml"
:key="tableKey" :key="tableKey"
class="label-name"
> >
<template v-if="scope.row.level == 2 && scope.row.isEdit"> <template v-if="scope.row.level == 2 && scope.row.isEdit">
<el-input <el-input
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
:maxlength="item.maxlength" :maxlength="item.maxlength"
:placeholder="item.placeholder" :placeholder="item.placeholder"
:ref="`${scope.row.id}`" :ref="`${scope.row.id}`"
size="small" size="mini"
:class="scope.row.className" :class="scope.row.className"
></el-input> ></el-input>
</template> </template>
...@@ -231,17 +232,17 @@ export default { ...@@ -231,17 +232,17 @@ export default {
label: '序号', label: '序号',
prop: 'num', prop: 'num',
type: 'ownSerialNum', type: 'ownSerialNum',
width: 60, minWidth: 60,
}, { }, {
label: '一级分类', label: '一级分类',
addHtml: 'labelName', addHtml: 'labelName',
minWidth: 220, minWidth: 300,
maxlength: 30, maxlength: 30,
placeholder: '请输入' placeholder: '请输入'
}, { }, {
label: '业务类型', label: '业务类型',
minWidth: 220, minWidth: 180,
formatter: (cellValue) => { formatter: (cellValue) => {
return SCENE_OPTIONS.find(e => e.id == cellValue.scene)?.label || '-' return SCENE_OPTIONS.find(e => e.id == cellValue.scene)?.label || '-'
}, },
...@@ -250,13 +251,13 @@ export default { ...@@ -250,13 +251,13 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-' return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-'
}, },
minWidth: 220 minWidth: 200
}, { }, {
label: '生效时间', label: '生效时间',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.status == -1 ? '-' : cellValue.effectiveTime ? Util.dateFormate(cellValue.effectiveTime, 'YYYY-MM-DD HH:mm:ss') : '-' return cellValue.status == -1 ? '-' : cellValue.effectiveTime ? Util.dateFormate(cellValue.effectiveTime, 'YYYY-MM-DD HH:mm:ss') : '-'
}, },
minWidth: 220 minWidth: 200
} }
] ]
}, },
...@@ -284,7 +285,6 @@ export default { ...@@ -284,7 +285,6 @@ export default {
...this.page, ...this.page,
...this.searchForm ...this.searchForm
}) })
console.log(list)
list?.map((e, index) => e.num = this.indexNum(index)) list?.map((e, index) => e.num = this.indexNum(index))
this.tableTotal = total || 0 this.tableTotal = total || 0
this.tableData = list || [] this.tableData = list || []
...@@ -319,13 +319,13 @@ export default { ...@@ -319,13 +319,13 @@ export default {
parentId: row.id, parentId: row.id,
editId: childrenId editId: childrenId
} }
if (item.nextList && item.nextList.length) item.nextList.unshift(childrenItem) if (item.nextList && item.nextList.length) item.nextList.unshift(childrenItem)
else item.nextList = [childrenItem] else item.nextList = [childrenItem]
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.table.toggleRowExpansion(row, true) this.$refs.table.toggleRowExpansion(row, true)
setTimeout(() => { setTimeout(() => {
this.$refs[childrenId][0].focus() this.$refs[childrenId][0].focus()
this.$refs.table.setCurrentRow(childrenItem)
}, 100) }, 100)
}) })
}, },
...@@ -430,4 +430,7 @@ export default { ...@@ -430,4 +430,7 @@ export default {
border-color: red; border-color: red;
} }
} }
.label-name{
padding: 4px 10px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!