Commit 32a11f19 by xinla

优化

1 parent 64060128
...@@ -73,11 +73,11 @@ ...@@ -73,11 +73,11 @@
trigger="hover" trigger="hover"
:content="'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'" :content="'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'"
placement="top-start" placement="top-start"
:disabled="talkList.length < maxlength"> :disabled="talkList?.length < maxlength">
<template #reference> <template #reference>
<el-dropdown <el-dropdown
@command="moveGroup" @command="moveGroup"
:disabled="talkList.length > maxlength || talkList.length === maxlength"> :disabled="talkList?.length > maxlength || talkList?.length === maxlength">
<el-button type="primary" v-show="!(moduleType === 4 && otherType === 3)"> <el-button type="primary" v-show="!(moduleType === 4 && otherType === 3)">
+ {{ '新建' + fontType }} + {{ '新建' + fontType }}
</el-button> </el-button>
...@@ -119,17 +119,17 @@ ...@@ -119,17 +119,17 @@
trigger="hover" trigger="hover"
:content="'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'" :content="'最多添加' + maxlength + '个' + fontType + ',如需修改请删除已有' + fontType + '后重新尝试'"
placement="top-start" placement="top-start"
:disabled="talkList.length < maxlength"> :disabled="talkList?.length < maxlength">
<template #reference> <template #reference>
<div class="ml20"> <div class="ml20">
<el-button @click="choseCenter" :disabled="talkList.length >= maxlength">从素材中心选择</el-button> <el-button @click="choseCenter" :disabled="talkList?.length >= maxlength">从素材中心选择</el-button>
</div> </div>
</template> </template>
</el-popover> </el-popover>
</div> </div>
</div> </div>
</div> </div>
<div class="g-card" style="margin-top: 10px" v-if="talkList.length"> <div class="g-card" style="margin-top: 10px" v-if="talkList?.length">
<DragTable <DragTable
:tableData2="talkList" :tableData2="talkList"
@setData="setData" @setData="setData"
...@@ -141,13 +141,13 @@ ...@@ -141,13 +141,13 @@
class="g-card mt20 g-pad20" class="g-card mt20 g-pad20"
style="text-align: left" style="text-align: left"
v-if=" v-if="
((talkList.length && moduleType === 2) || ((talkList?.length && moduleType === 2) ||
(otherType !== 3 && moduleType !== 2) || (otherType !== 3 && moduleType !== 2) ||
(otherType === 3 && moduleType !== 2)) && (otherType === 3 && moduleType !== 2)) &&
!detail !detail
"> ">
<!-- 话术中心,有列表才显示 --> <!-- 话术中心,有列表才显示 -->
<template v-if="talkList.length && moduleType === 2"> <template v-if="talkList?.length && moduleType === 2">
<el-button @click="getCancel">取消</el-button> <el-button @click="getCancel">取消</el-button>
<el-button type="primary" v-loading="talkLoading" @click="tackSubmit">确定</el-button> <el-button type="primary" v-loading="talkLoading" @click="tackSubmit">确定</el-button>
</template> </template>
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
</el-dialog> </el-dialog>
<MaterialCenter <MaterialCenter
v-model:choseDialog="choseDialog" v-model:choseDialog="choseDialog"
:talkListLength="talkList.length" :talkListLength="talkList?.length"
@itemArry="getItemArry" @itemArry="getItemArry"
pad20 pad20
:templateType="templateType" :templateType="templateType"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!