Commit e78e762b by 张立顺

Merge branch 'SAAS+V4.51.1-0415' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.51.1-0415
2 parents 6152ec3b 059cf0ca
......@@ -969,6 +969,9 @@ export default {
}
if (params.showChannel == 3) {
delete params.showMerchant
} else {
delete params.sceneMarketCode
delete params.sceneMarketTag
}
if (params.type == 3) {
params.richTextInfoList = this.treeToArray(this.sectionTreeData)
......
......@@ -81,17 +81,21 @@
<template v-else>周 -</template>
</div>
</div>
<div class="text-box" slot="text" slot-scope="scope">
{{scope.scope[scope.prop] || '-'}}
</div>
<div class="text-box" slot="textarea" slot-scope="scope">
{{scope.scope[scope.prop] || '-'}}
</div>
<div slot="upload" class="upload-box" slot-scope="scope">
<div class="uploade-btn" v-show="!scope.scope['assessmentResult' + trainTmlpSuffix]" @click="handleUpload(scope.scope)">上传</div>
<div class="uploade-btn" v-show="scope.scope['assessmentResult' + trainTmlpSuffix]" @click="handleDelete(scope.scope)">删除</div>
<a v-show="scope.scope['assessmentResult' + trainTmlpSuffix]" class="uploade-btn" :href="scope.scope['assessmentResult' + trainTmlpSuffix]" target="_blank">查看</a>
</div>
<div class="text-box" slot="textarea" slot-scope="scope">
<el-tooltip class="item" effect="dark" :content="scope.scope[scope.prop]" placement="right">
<span>
{{scope.scope[scope.prop] ? (scope.scope[scope.prop].length > 50 ? (scope.scope[scope.prop].slice(0, 50) + '...') : scope.scope[scope.prop]) : '-'}}
</span>
</el-tooltip>
</div>
<div class="text-box" slot="text" slot-scope="scope">
{{scope.scope[scope.prop] || '-'}}
</div>
<div class="text-box" slot="link" slot-scope="scope">
<template v-if="scope.scope[scope.prop]">
<a :href="scope.scope[scope.prop]" target="_blank">查看</a>
......@@ -547,7 +551,6 @@ export default {
},
// 上传文件,转码为base64
importFile(e) {
console.log(e, 'e000')
const size = e.target.files[0].size / 1024 / 1024
const fileTypeKey = {
"application/pdf": "pdf",
......@@ -560,7 +563,7 @@ export default {
"image/png": "image",
"image/jpeg": "image"
}
if (size < 9) {
if (size < 20) {
this.$set(this.fileForm, 'fileName', e.target.files[0].name)
// // 转码base64
const reader = new FileReader()
......@@ -582,7 +585,7 @@ export default {
})
}
} else {
this.notice.errorTips('上传文件不可超过9M')
this.notice.errorTips('上传文件不可超过20M')
}
},
......
......@@ -296,16 +296,16 @@ export default {
params.flightSupervisorPhone = supervisor.staffPhone
params.flightSupervisorUuid = supervisor.uuid
const store = this.storeTableData[0]
params.areaOperatorList = store.areaOperatorList.map(item => {
return {
merchantId: store.merchantId,
merchantName: store.merchantName,
areaOperatorPhone: item.areaOperatorPhone,
areaOperatorName: item.areaOperatorName
}
})
params.merchantName = store.merchantName
if (store.areaOperatorList && store.areaOperatorList.length > 0) {
params.areaOperatorList = store.areaOperatorList.map(item => {
return {
areaOperatorPhone: item.areaOperatorPhone,
areaOperatorName: item.areaOperatorName
}
})
}
delete params.flightSupervisorId
delete params.merchantId
// return console.log('params', params)
teachTaskCreate(params)
.then((res) => {
......
......@@ -23,7 +23,7 @@
<el-form-item label="区域运营:"
class="halfItem"
:title="detailInfo.salesperson">
{{ detailInfo.salesperson ? (detailInfo.salesperson.length > 15 ? (detailInfo.salesperson.slice(0, 15) + '...') : detailInfo.salesperson) : '-' }}
{{ detailInfo.salesperson ? (detailInfo.salesperson.length > 40 ? (detailInfo.salesperson.slice(0, 40) + '...') : detailInfo.salesperson) : '-' }}
</el-form-item>
<el-form-item label="支援类型:"
class="halfItem">
......@@ -163,11 +163,15 @@ export default {
this.detailInfo.salesperson = '-'
}
this.detailInfo.businessTypeShow = this.businessOpt.find(item => item.confId === this.detailInfo.businessType)?.confValue || '-' // 业务类型1
let list = this.detailInfo.saleType.split(',')
list = list.map(item => {
return this.saleTypeOpt.find(i => i.confId === item)?.confValue
}).join(',')
this.detailInfo.saleTypeOptShow = list // 业务类型2
if (this.detailInfo.saleType && this.detailInfo.saleType.indexOf(",") != -1) {
let list = this.detailInfo.saleType.split(',')
list = list.map(item => {
return this.saleTypeOpt.find(i => i.confId === item)?.confValue
}).join(',')
this.detailInfo.saleTypeOptShow = list // 业务类型2
} else {
this.detailInfo.saleTypeOptShow = "-" // 业务类型2
}
this.detailInfo.taskStatusShow = this.taskStatusOpt.find(item => item.confId === this.detailInfo.taskStatus)?.confValue || '-' // 任务状态
this.detailInfo.supportTypeShow = this.supportTypeOpt.find(item => item.confId === this.detailInfo.supportType)?.confValue || '-' // 支援类型
this.detailInfo.supportWayShow = this.supportWayOpt.find(item => item.confId === this.detailInfo.supportWay)?.confValue || '-' // 支援方式
......
......@@ -51,7 +51,11 @@
</el-popover>
</template>
<template v-else>
<span>--</span>
<span v-if="
!scope.scope.areaOperatorList || !scope.scope.areaOperatorList.length
">--</span>
<span
v-else>{{ scope.scope.areaOperatorList[0].areaOperatorName + ' ' + scope.scope.areaOperatorList[0].areaOperatorPhone }}</span>
</template>
</div>
</d2-table>
......@@ -82,14 +86,14 @@ export default {
tableData: [],
showFormData: [{
label: '门店名称',
name: 'merchantIdName',
name: 'merchantName',
type: 'input',
maxlength: 50,
isClear: true,
keyFn: this.keyDowmGetList
}],
searchForm: {
merchantIdName: ''
merchantName: ''
},
baseData: {
},
......
......@@ -61,9 +61,12 @@
slot-scope="scope">
<span>
<el-tooltip class="item"
effect="dark"
:content="scope.scope.situationDescription"
placement="right">
effect="dark">
<template #content>
<p class="tooltip-width">
{{ scope.scope.situationDescription }}
</p>
</template>
<span>
{{ scope.scope.situationDescription ? (scope.scope.situationDescription.length > 15 ? (scope.scope.situationDescription.slice(0, 15) + '...') : scope.scope.situationDescription) : '' }}
</span>
......@@ -487,4 +490,9 @@ export default {
border-top: 1px solid #e5e5e5;
}
}
.tooltip-width {
// min-width: 150px !important; /* 设置最小宽度 */
max-width: 500px !important; /* 设置最大宽度 */
// white-space: normal; /* 允许换行 */
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!