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 { ...@@ -304,7 +304,8 @@ export default {
height: 100%; height: 100%;
} }
} }
/deep/.activity-img ,/deep/.muti-imgs{ /deep/.activity-img,
/deep/.muti-imgs {
margin-bottom: 30px; margin-bottom: 30px;
&::before { &::before {
// content: '图片大小10M以内'; // content: '图片大小10M以内';
...@@ -317,6 +318,7 @@ export default { ...@@ -317,6 +318,7 @@ export default {
line-height: 20px; line-height: 20px;
bottom: -30px; bottom: -30px;
width: 200px; width: 200px;
cursor: auto;
} }
} }
.tabs { .tabs {
......
...@@ -395,21 +395,20 @@ export default { ...@@ -395,21 +395,20 @@ export default {
for (let i = 0; i < childrenDepth; i++) { for (let i = 0; i < childrenDepth; i++) {
const label = levels[i], const label = levels[i],
value = label, value = label,
existingOption = currentLevel.find((option) => option.label === label) existingOption = currentLevel && currentLevel.find((option) => option.label === label)
if (existingOption) { if (existingOption) {
if (i === childrenDepth - 1) { if (i === childrenDepth - 1) continue
continue if (existingOption.children) currentLevel = existingOption.children
}
currentLevel = existingOption.children
} else { } else {
const newOption = { label, value, children: [] } if (label && value) {
if (label && value) currentLevel.push(newOption) const newOption = { label, value }
if (i === childrenDepth - 1) { if (levels[i + 1]) newOption.children = []
delete newOption.children currentLevel.push(newOption)
} if (i === childrenDepth - 1) delete newOption.children
currentLevel = newOption.children currentLevel = newOption.children
} }
} }
}
}) })
return result return result
} }
......
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
<el-button <el-button
type="default" type="default"
plain plain
@click="$router.push({ @click="edit"
path: '/questionnaire/add'
})"
>新建问卷</el-button> >新建问卷</el-button>
<el-button <el-button
type="default" type="default"
...@@ -50,7 +48,7 @@ ...@@ -50,7 +48,7 @@
<div <div
class="download-img " class="download-img "
@click="download(scope.scope.qrcode)" @click="download(scope.scope.qrcode)"
>下载小程序码</div> >下载二维码</div>
<div <div
slot="reference" slot="reference"
class="qr" class="qr"
...@@ -217,6 +215,14 @@ export default { ...@@ -217,6 +215,14 @@ export default {
}, },
download (url) { download (url) {
util.downloadIamge(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!