Commit b0da43fe by 前端

Merge branch 'v3.21.0' of http://192.168.3.233:8090/saas/outbound into v3.21.0_10

2 parents 8f8074b6 fe717744
......@@ -304,7 +304,8 @@ export default {
height: 100%;
}
}
/deep/.activity-img ,/deep/.muti-imgs{
/deep/.activity-img,
/deep/.muti-imgs {
margin-bottom: 30px;
&::before {
// content: '图片大小10M以内';
......@@ -317,6 +318,7 @@ export default {
line-height: 20px;
bottom: -30px;
width: 200px;
cursor: auto;
}
}
.tabs {
......
......@@ -395,19 +395,18 @@ export default {
for (let i = 0; i < childrenDepth; i++) {
const label = levels[i],
value = label,
existingOption = currentLevel.find((option) => option.label === label)
existingOption = currentLevel && currentLevel.find((option) => option.label === label)
if (existingOption) {
if (i === childrenDepth - 1) {
continue
}
currentLevel = existingOption.children
if (i === childrenDepth - 1) continue
if (existingOption.children) currentLevel = existingOption.children
} else {
const newOption = { label, value, children: [] }
if (label && value) currentLevel.push(newOption)
if (i === childrenDepth - 1) {
delete newOption.children
if (label && value) {
const newOption = { label, value }
if (levels[i + 1]) newOption.children = []
currentLevel.push(newOption)
if (i === childrenDepth - 1) delete newOption.children
currentLevel = newOption.children
}
currentLevel = newOption.children
}
}
})
......
......@@ -14,9 +14,7 @@
<el-button
type="default"
plain
@click="$router.push({
path: '/questionnaire/add'
})"
@click="edit"
>新建问卷</el-button>
<el-button
type="default"
......@@ -50,7 +48,7 @@
<div
class="download-img "
@click="download(scope.scope.qrcode)"
>下载小程序码</div>
>下载二维码</div>
<div
slot="reference"
class="qr"
......@@ -217,6 +215,14 @@ export default {
},
download (url) {
util.downloadIamge(url)
},
edit (row) {
this.$router.push({
path: '/questionnaire/add',
query: {
$title: row.id ? '编辑问卷' : '新建问卷'
}
})
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!