Commit ed43ee12 by ext.wangyuman1

Merge branch 'vue3-master' of https://e.coding.net/linkwechat/linkwechat-front/l…

…inkwechat into bs-dev-wangyuman
2 parents 81d36165 eb6b80db
Showing 85 changed files with 265 additions and 247 deletions
......@@ -25,7 +25,7 @@
"crypto-js": "^4.1.1",
"driver.js": "^0.9.8",
"echarts": "^5.4.2",
"element-plus": "^2.3.6",
"element-plus": "^2.3.7",
"fabric": "^5.3.0",
"file-saver": "^2.0.5",
"fuse.js": "^6.6.2",
......
......@@ -32,20 +32,29 @@
--top-nav-heght: 64px; /* 顶部导航条高度 */
--font-black: #1d2129; /* 通用字体黑色 */
--black-: #000;
--black-d2: rgba(0, 0, 0, 0.2); /* 黑色 #ddd*/
--black-d3: rgba(0, 0, 0, 0.3); /* 黑色 #ccc*/
--black-d4: rgba(0, 0, 0, 0.4); /* 黑色 #aaa*/
--black-d5: rgba(0, 0, 0, 0.5); /* 黑色 */
--black-d6: rgba(0, 0, 0, 0.6); /* 黑色 */
--black-d7: rgba(0, 0, 0, 0.7); /* 黑色 */
--black-d8: rgba(0, 0, 0, 0.8); /* 黑色 */
--black-d9: rgba(0, 0, 0, 0.9); /* 黑色 */
--font-black-2: rgba(0, 0, 0, 0.8); /* #333*/
--font-black-3: rgba(0, 0, 0, 0.7); /* #444*/
--font-black-4: rgba(0, 0, 0, 0.6); /* #666 */
--font-black-5: rgba(0, 0, 0, 0.5); /* #777*/
--font-black-6: rgba(0, 0, 0, 0.4); /* #999*/
--font-black-7: rgba(0, 0, 0, 0.3); /* #ababab #aaa*/
--font-black-8: rgba(0, 0, 0, 0.2); /* #c4c4c4 #ccc*/
--font-black-9: rgba(0, 0, 0, 0.1); /* #dcdcdc #ddd*/
--font-white: #fff; /* 通用字体白色 */
/* 背景色,暗黑模式下为黑色 */
--bg-white: #fff;
--bg-black: #000; /* 通用背景黑色 */
--bg-black-2: rgba(0, 0, 0, 0.8); /* #333*/
--bg-black-3: rgba(0, 0, 0, 0.7); /* #444*/
--bg-black-4: rgba(0, 0, 0, 0.6); /* #666 */
--bg-black-5: rgba(0, 0, 0, 0.5); /* #777*/
--bg-black-6: rgba(0, 0, 0, 0.4); /* #999*/
--bg-black-7: rgba(0, 0, 0, 0.3); /* #ababab #aaa*/
--bg-black-8: rgba(0, 0, 0, 0.2); /* #c4c4c4 #ccc*/
--bg-black-9: rgba(0, 0, 0, 0.1); /* #dcdcdc #ddd*/
}
/* 暗黑模式 */
......
......@@ -120,7 +120,7 @@ export default {
line-height: 1.15;
}
.el-icon-warning {
color: #999;
color: var(--font-black-6);
}
.icon-arrow {
position: absolute;
......
......@@ -86,11 +86,11 @@ export default {
</a>
<div v-else-if="message.msgType === 'voice'">
<voice :amrUrl="JSON.parse(message.contact)['attachment']"></voice>
<span style="font-size: 12px; color: #999">语音消息</span>
<span style="font-size: 12px; color: var(--font-black-6)">语音消息</span>
</div>
<div v-else-if="message.msgType === 'meeting_voice_call'">
<voice :amrUrl="JSON.parse(message.contact)['attachment']"></voice>
<span style="font-size: 12px; color: #999" v-if="JSON.parse(message.contact)['endtime']">
<span style="font-size: 12px; color: var(--font-black-6)" v-if="JSON.parse(message.contact)['endtime']">
语音通话-结束时间:{{ setDate(JSON.parse(message.contact)['endtime']) }}
</span>
</div>
......@@ -177,7 +177,7 @@ export default {
.message {
@extend .mes;
color: #333;
color: var(--font-black);
margin-left: 10px;
background: var(--bg-white);
border-top-left-radius: 0;
......@@ -229,7 +229,7 @@ export default {
padding: 10px;
line-height: 1.5;
// text-indent: 10px;
color: #333;
color: var(--font-black);
z-index: -1;
.card--link-title {
font-size: 15px;
......@@ -247,7 +247,7 @@ export default {
}
.card--link-desc {
font-size: 13px;
color: #666;
color: var(--font-black-4);
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
......@@ -263,7 +263,7 @@ export default {
border-top: 1px solid #efefef;
text-align: left;
padding: 10px;
color: #333;
color: var(--font-black);
font-weight: bold;
width: 100%;
}
......
......@@ -242,7 +242,7 @@ export default {
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
font-size: 16px;
font-weight: 600;
// color: #333333;
......@@ -308,7 +308,7 @@ export default {
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
......@@ -320,7 +320,7 @@ export default {
.active {
// border-left: 2px solid var(--color);
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
border-radius: 2px;
}
......@@ -369,7 +369,7 @@ export default {
// }
.sub-des {
// color: #aaa;
// color: var(--font-black-7);
color: var(--color);
font-size: 12px;
}
......
......@@ -462,7 +462,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -201,7 +201,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -383,7 +383,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -13,7 +13,9 @@
<el-alert type="warning" show-icon v-if="type === '11'">
<template #title>
<div style="display: flex">
<div style="color: #333">小程序必须已经绑定关联到企业微信,否则将无法在欢迎语、群发、话术中正常发送。</div>
<div style="color: var(--font-black)">
小程序必须已经绑定关联到企业微信,否则将无法在欢迎语、群发、话术中正常发送。
</div>
<a href="https://www.yuque.com/linkwechat/help/gy4ghv" target="_blank" style="color: var(--color)">
如何关联绑定?
</a>
......@@ -564,7 +566,7 @@ export default {
<style lang="scss" scoped>
.tip {
color: #999;
color: var(--font-black-6);
font-size: 12px;
}
::v-deep .ql-editor {
......
......@@ -74,7 +74,7 @@ export default {
<style lang="scss" scoped>
.time {
font-size: 12px;
color: #aaa;
color: var(--font-black-7);
padding: 10px 0 5px;
text-align: center;
}
......
......@@ -130,7 +130,7 @@ export default {
.bottom {
padding: 15px 0 20px;
line-height: 1;
color: #999;
color: var(--font-black-6);
text-align: center;
}
}
......
......@@ -220,7 +220,7 @@ export default {
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
font-size: 16px;
font-weight: 600;
// color: #333333;
......@@ -286,7 +286,7 @@ export default {
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
......@@ -298,7 +298,7 @@ export default {
.active {
// border-left: 2px solid var(--color);
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
border-radius: 2px;
}
......
......@@ -263,7 +263,7 @@ export default {
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
font-size: 16px;
font-weight: 600;
// color: #333333;
......@@ -329,7 +329,7 @@ export default {
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
......@@ -341,7 +341,7 @@ export default {
.active {
// border-left: 2px solid var(--color);
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
border-radius: 2px;
}
......
......@@ -728,7 +728,7 @@ export default {
}
.tip {
margin-top: 10px;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.img-item {
......
......@@ -120,7 +120,7 @@ export default {
margin-left: 20px;
.no-redirect {
color: #999;
color: var(--font-black-6);
cursor: text;
}
}
......
......@@ -261,7 +261,7 @@ export default {
border-radius: 4px;
font-size: 12px;
font-weight: 400;
color: #333;
color: var(--font-black);
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
li {
margin: 0;
......
......@@ -72,7 +72,7 @@ export default {
}
.el-icon-s-operation {
color: #333;
color: var(--font-black);
font-size: 20px;
}
}
......
......@@ -77,7 +77,7 @@ export default {
.login-nav--wrap {
.nav-li {
color: #aaa;
color: var(--font-black-7);
margin-left: 20px;
}
}
......
......@@ -150,7 +150,7 @@ div:focus {
font-weight: 400;
margin: 0 5px;
font-size: 12px;
color: #999;
color: var(--font-black-6);
}
// & + .g-card {
// border-radius: 0 0 var(--border-radius-big) var(--border-radius-big);
......@@ -219,7 +219,7 @@ div:focus {
}
&tip-color {
color: #999;
color: var(--font-black-6);
}
// 粘性底部
&footer-sticky {
......@@ -251,7 +251,7 @@ div:focus {
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
font-size: 14px;
font-weight: 600;
// color: #333333;
......@@ -315,7 +315,7 @@ div:focus {
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
......@@ -327,7 +327,7 @@ div:focus {
.active {
// border-left: 2px solid #3c88f0;
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
border-radius: 2px;
}
......
......@@ -138,7 +138,7 @@ export default {
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
font-size: 16px;
font-weight: 600;
// color: #333333;
......@@ -204,7 +204,7 @@ export default {
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
......@@ -216,7 +216,7 @@ export default {
.active {
// border-left: 2px solid var(--color);
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
border-radius: 2px;
}
......
......@@ -334,7 +334,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -260,7 +260,7 @@ export default {
</template>
<style lang="scss" scoped>
.tip {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
line-height: 20px;
}
......
......@@ -388,7 +388,7 @@ export default {
<style lang="scss" scoped>
.el-icon-s-custom {
font-size: 16px;
color: #999;
color: var(--font-black-6);
&.man {
color: #13a2e8;
}
......@@ -397,7 +397,7 @@ export default {
}
}
.tip {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
line-height: 20px;
}
......
......@@ -162,7 +162,7 @@ export default {
line-height: 26px;
}
.tip {
color: #999;
color: var(--font-black-6);
}
.welcome-input {
display: table;
......
......@@ -260,7 +260,7 @@ export default {
line-height: 26px;
}
.tip {
color: #999;
color: var(--font-black-6);
}
.welcome-input {
display: table;
......
......@@ -548,7 +548,7 @@ export default {
}
.title {
font-size: 16px;
color: #333;
color: var(--font-black);
font-weight: 600;
max-width: 500px;
word-break: break-all;
......
......@@ -139,7 +139,7 @@ export default {
.content {
width: 95%;
overflow: hidden;
color: #aaa;
color: var(--font-black-7);
font-size: 13px;
.name {
margin-right: 6px;
......
......@@ -262,7 +262,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -652,7 +652,9 @@ export default {
<el-alert type="warning" show-icon v-if="type === '11'">
<template #title>
<div style="display: flex">
<div style="color: #333">小程序必须已经绑定关联到企业微信,否则将无法在欢迎语、群发、话术中正常发送。</div>
<div style="color: var(--font-black)">
小程序必须已经绑定关联到企业微信,否则将无法在欢迎语、群发、话术中正常发送。
</div>
<a href="https://www.yuque.com/linkwechat/help/gy4ghv" target="_blank" style="color: var(--color)">
如何关联绑定?
</a>
......@@ -920,7 +922,7 @@ export default {
<style lang="scss" scoped>
.tip {
color: #999;
color: var(--font-black-6);
font-size: 12px;
}
......@@ -958,7 +960,7 @@ export default {
}
.sub-des {
// color: #aaa;
// color: var(--font-black-7);
color: var(--color);
font-size: 12px;
}
......
......@@ -195,7 +195,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -544,7 +544,7 @@ export default {
}
.sub-des {
// color: #aaa;
// color: var(--font-black-7);
color: var(--color);
font-size: 12px;
}
......
......@@ -435,7 +435,7 @@ export default {
margin: 30px auto;
text-align: center;
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
line-height: 60px;
}
......
......@@ -41,7 +41,7 @@ export default {
margin: 20px 0;
}
.content {
color: #333;
color: var(--font-black);
font-size: 12px;
line-height: 16px;
}
......
......@@ -102,7 +102,7 @@ export default {
}
.title {
font-size: 16px;
color: #333;
color: var(--font-black);
font-weight: 600;
}
.data-content {
......
......@@ -638,7 +638,7 @@ export default {
}
.title {
font-size: 16px;
color: #333;
color: var(--font-black);
font-weight: 600;
max-width: 500px;
word-break: break-all;
......
......@@ -214,7 +214,7 @@ export default {
background: white;
overflow-y: scroll;
border-bottom: 1px solid #efefef;
color: #999;
color: var(--font-black-6);
text-align: center;
::-webkit-scrollbar {
......
......@@ -94,7 +94,7 @@ export default {
}
.gray {
color: #999;
color: var(--font-black-6);
}
.padt10 {
padding-top: 10px;
......
......@@ -59,7 +59,7 @@ export default {
}
.gray {
color: #999;
color: var(--font-black-6);
}
.list {
padding: 10px;
......
......@@ -244,7 +244,7 @@ export default {
height: calc(100vh - 320px);
overflow-y: auto;
overflow-x: hidden;
color: #999;
color: var(--font-black-6);
text-align: center;
.customer-li {
padding: 10px;
......@@ -269,7 +269,7 @@ export default {
.el-icon-Avatar {
font-size: 16px;
margin-left: 4px;
color: #999;
color: var(--font-black-6);
&.man {
color: #13a2e8;
}
......
......@@ -210,7 +210,7 @@ export default {
background: white;
overflow-y: scroll;
border-bottom: 1px solid #efefef;
color: #999;
color: var(--font-black-6);
text-align: center;
::-webkit-scrollbar {
......
......@@ -285,13 +285,13 @@ export default {
}
.prompt-title {
margin-left: 10px;
color: #999;
color: var(--font-black-6);
}
.tag-place {
color: var(--color);
}
.sub-title {
font-size: 13px;
color: #999;
color: var(--font-black-6);
}
</style>
......@@ -654,7 +654,7 @@ export default {
.el-icon-Avatar {
font-size: 16px;
// margin-left: 4px;
color: #999;
color: var(--font-black-6);
&.man {
color: #13a2e8;
}
......
......@@ -124,7 +124,7 @@ export default {
.title {
font-weight: 700;
font-size: 12px;
color: #333;
color: var(--font-black);
line-height: 18px;
width: 100%;
white-space: nowrap;
......
......@@ -496,7 +496,7 @@ export default {
.el-col {
box-shadow: 0px 1px 0px 0px #f1f1f1;
&:first-child {
color: #999;
color: var(--font-black-6);
}
}
&::before {
......
......@@ -186,7 +186,7 @@ export default {
.info-wrap {
margin-left: 20px;
.info {
color: #aaa;
color: var(--font-black-7);
line-height: 32px;
}
}
......@@ -194,7 +194,7 @@ export default {
.el-icon-s-custom {
font-size: 16px;
margin-left: 4px;
color: #999;
color: var(--font-black-6);
&.man {
color: #13a2e8;
}
......
......@@ -234,17 +234,17 @@ export default {
.info-wrap {
margin-left: 20px;
.info {
color: #666;
color: var(--font-black-4);
}
}
.overview {
justify-content: space-around;
line-height: 30px;
.key {
color: #999;
color: var(--font-black-6);
}
.value {
color: #333;
color: var(--font-black);
font-weight: 600;
font-size: 16px;
}
......
......@@ -316,7 +316,7 @@ export default {
.el-icon-s-custom {
font-size: 16px;
margin-left: 4px;
color: #999;
color: var(--font-black-6);
&.man {
color: #13a2e8;
}
......
......@@ -205,7 +205,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.imgsize {
......
......@@ -251,7 +251,7 @@ export default {
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
font-size: 16px;
font-weight: 600;
// color: #333333;
......@@ -317,7 +317,7 @@ export default {
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
......@@ -329,7 +329,7 @@ export default {
.active {
// border-left: 2px solid var(--color);
color: rgba(0, 0, 0, 0.9);
color: var(--font-black);
background: #f5f8fe;
border-radius: 2px;
}
......@@ -378,7 +378,7 @@ export default {
// }
.sub-des {
// color: #aaa;
// color: var(--font-black-7);
color: var(--color);
font-size: 12px;
}
......
......@@ -396,7 +396,7 @@ export default {
}
}
.tip {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
.green-text {
......
......@@ -350,7 +350,7 @@ export default {
font-size: 10px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #aaa;
color: var(--font-black-7);
}
::v-deep .image-uploader {
.uploader-icon {
......
......@@ -259,7 +259,7 @@ export default {
margin: 30px auto;
text-align: center;
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
line-height: 60px;
}
......
......@@ -648,7 +648,7 @@ export default {
}
this.pageDataAll = JSON.parse(data.styles)
}
this.baseFormUrl4 = window.lwConfig.DOMAIN + '/#/formsDetail?id=true&formId=' + this.formId
this.baseFormUrl4 = window.lwConfig.DOMAIN + '/formsDetail?id=true&formId=' + this.formId
this.creatQrCode()
// this.$forceUpdate()
......@@ -735,7 +735,7 @@ export default {
// }
var qrcode = QRCode.toDataURL(
this.$refs.qrCodeUrl,
window.lwConfig.DOMAIN + '/#/formsDetail?id=q&formId=' + that.formId, // 需要转换为二维码的内容
window.lwConfig.DOMAIN + '/formsDetail?id=q&formId=' + that.formId, // 需要转换为二维码的内容
{
width: 150,
margin: 4,
......@@ -1517,7 +1517,7 @@ export default {
height: 90px; // line-height: 90px;
font-size: 18px;
font-weight: 500;
color: #333;
color: var(--font-black);
padding: 0 20px;
background: var(--bg-white);
border-top-left-radius: 4px;
......@@ -1543,7 +1543,7 @@ export default {
}
.tip {
color: #999;
color: var(--font-black-6);
}
.welcome-input {
......
......@@ -61,13 +61,7 @@ const layouts = {
: ''
}></div>
<div class={element.formCodeId == '1' && !element.src ? 'nullC' : ''}>
<render
key={element.renderKey}
conf={element}
onInput={(event) => {
element.defaultValue = event
}}
/>
<render key={element.renderKey} conf={element} />
</div>
</div>
<div class={element.formCodeId == 4 ? 'elementInputNum' : 'nullC'}>
......@@ -259,7 +253,7 @@ $selectedColor: #f6f7ff;
}
}
::v-deep .no-image {
color: #666;
color: var(--font-black-4);
line-height: 80px;
}
.el-image {
......
......@@ -398,9 +398,9 @@
"
label="选项尺寸">
<el-radio-group v-model="activeData.size">
<el-radio-button label="medium">中等</el-radio-button>
<el-radio-button label="large">较大</el-radio-button>
<el-radio-button label="default">中等</el-radio-button>
<el-radio-button label="small">较小</el-radio-button>
<el-radio-button label="mini">迷你</el-radio-button>
</el-radio-group>
</el-form-item>
<!-- <el-form-item v-if="activeData['show-word-limit'] !== undefined" label="输入统计">
......@@ -495,9 +495,9 @@
</el-form-item>
<el-form-item label="表单尺寸">
<el-radio-group v-model="formConf.size">
<el-radio-button label="medium">中等</el-radio-button>
<el-radio-button label="large">较大</el-radio-button>
<el-radio-button label="default">中等</el-radio-button>
<el-radio-button label="small">较小</el-radio-button>
<el-radio-button label="mini">迷你</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item label="标签对齐">
......@@ -537,7 +537,11 @@ import TreeNodeDialog from './TreeNodeDialog'
import { isNumberStr } from '@/utils/index'
import IconsDialog from './IconsDialog'
import draggable from 'vuedraggable'
import { inputComponents, selectComponents, layoutComponents } from './generator/config'
import {
inputComponents,
// selectComponents,
layoutComponents,
} from './generator/config'
const dateTimeFormat = {
date: 'YYYY-MM-DD',
......@@ -652,8 +656,7 @@ export default {
watch: {
'activeData.maxZ': {
handler: function (neww, oldd) {
console.log('activeData', this.activeData.options)
if (this.activeData.options.length > neww) {
if (this.activeData.options?.length > neww) {
if (neww > this.activeData.max) {
this.activeData.max = neww
} else {
......@@ -697,18 +700,18 @@ export default {
}
return []
},
tagList() {
return [
{
label: '输入型组件',
options: inputComponents,
},
{
label: '选择型组件',
options: selectComponents,
},
]
},
// tagList() {
// return [
// {
// label: '输入型组件',
// options: inputComponents,
// },
// {
// label: '选择型组件',
// options: selectComponents,
// },
// ]
// },
},
methods: {
numberChange(val, max) {
......@@ -924,7 +927,7 @@ export default {
line-height: 32px;
font-size: 22px;
padding: 0 4px;
color: #777;
color: var(--font-black-5);
}
.option-drag {
cursor: move;
......
<template>
<div :style="Ifcontainer ? '' : 'background:#666;display: flex;justify-content: center;height: 100%;padding: 30px;'">
<div
:style="
Ifcontainer
? 'height: 100%;'
: 'background:#666;display: flex;justify-content: center;height: 100%;padding: 30px;'
">
<div
:class="Ifcontainer ? 'container' : 'container containerPC'"
data-title="调查问卷"
......
......@@ -46,9 +46,9 @@ function vModel(self, dataObject, defaultValue) {
// }
// console.log('dataObject.props', dataObject.props)
dataObject['model-value'] = defaultValue
dataObject.onInput = (val) => {
self.$emit('input', val)
dataObject['modelValue'] = self.conf.defaultValue
dataObject['onUpdate:modelValue'] = (val) => {
self.conf.defaultValue = val
}
}
......@@ -165,6 +165,13 @@ export default {
}
Object.assign(dataObject, confClone)
for (const key in dataObject._props) {
if (Object.hasOwnProperty.call(dataObject._props, key)) {
dataObject[key] = dataObject._props[key];
}
}
delete dataObject._props
// Object.keys(confClone).forEach((key) => {
// const val = confClone[key]
// if (key === 'style') {
......
......@@ -708,7 +708,7 @@ $selectedColor: #f6f7ff;
color: #222;
margin: 6px 2px;
.svg-icon {
color: #666;
color: var(--font-black-4);
font-size: 18px;
}
}
......@@ -721,7 +721,7 @@ $selectedColor: #f6f7ff;
border: 1px dashed $selectedColor;
border-radius: 3px;
.svg-icon {
color: #777;
color: var(--font-black-5);
font-size: 15px;
}
&:hover {
......
......@@ -98,7 +98,7 @@ export default {
selectInfoToSurvey(this.formId).then((response) => {
this.loading = false
that.baseFormUrl4 = window.lwConfig.DOMAIN + '/#/formsDetail?id=true&formId=' + that.formId
that.baseFormUrl4 = window.lwConfig.DOMAIN + '/formsDetail?id=true&formId=' + that.formId
if (response.data.channelsName) {
that.ChannelsList = response.data.channelsName.split(',')
that.channelsPathList = response.data.channelsPath.split(',')
......
......@@ -239,7 +239,7 @@ export default {
<style lang="scss" scoped>
.title {
font-size: 16px;
color: #333;
color: var(--font-black);
font-weight: 600;
}
.header_content {
......
......@@ -235,7 +235,7 @@ export default {
height: 90px; // line-height: 90px;
font-size: 18px;
font-weight: 500;
color: #333;
color: var(--font-black);
padding: 0 20px;
background: var(--bg-white);
border-top-left-radius: 4px;
......
......@@ -451,7 +451,7 @@ export default {
}
.avatar-uploader-icon {
font-size: 58px;
color: #ddd;
color: var(--font-black-9);
}
.img-wrap {
height: 340px;
......
......@@ -116,7 +116,7 @@ export default {
<style lang="scss" scoped>
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -289,7 +289,7 @@ export default {
<style lang="scss" scoped>
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -168,7 +168,7 @@ export default {
.my-title {
}
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -4,29 +4,27 @@
<div class="g-card">
<div class="my-title">自建应用</div>
<el-form-item label="消息应用ID:" prop="agentId">
<el-input style="width: 40%;" v-model="form.agentId" placeholder="请输入消息应用ID"></el-input>
<el-input style="width: 40%" v-model="form.agentId" placeholder="请输入消息应用ID"></el-input>
<div class="tips">用于接收应用消息,在企微后台->应用工具->自建应用中配置并获取</div>
</el-form-item>
<el-form-item label="消息应用Secret:" prop="agentSecret">
<div>
<el-input
style="width: 40%;"
style="width: 40%"
:disabled="!agentSecretEditState"
:type="agentSecretEditState ? 'text' : 'password'"
v-model="form.agentSecret"
placeholder="请输入消息应用Secret"
></el-input>
<el-button style="margin-left: 20px;" plain v-if="agentSecretEditState" @click="cancelEditAgentSecret">
placeholder="请输入消息应用Secret"></el-input>
<el-button style="margin-left: 20px" plain v-if="agentSecretEditState" @click="cancelEditAgentSecret">
取消
</el-button>
<el-button type="primary" plain v-if="agentSecretEditState" @click="submitEditAgentSecret">保存</el-button>
<el-button
type="primary"
style="margin-left: 20px;"
style="margin-left: 20px"
plain
v-if="!agentSecretEditState"
@click="editAgentSecret"
>
@click="editAgentSecret">
修改
</el-button>
</div>
......@@ -38,30 +36,28 @@
<el-form-item label="会话存档Secret:" prop="chatSecret">
<div>
<el-input
style="width: 40%;"
style="width: 40%"
:disabled="!chatSecretEditState"
:type="chatSecretEditState ? 'text' : 'password'"
v-model="form.chatSecret"
placeholder="请输入会话存档Secret"
></el-input>
<el-button style="margin-left: 20px;" plain v-if="chatSecretEditState" @click="cancelEditChatSecret">
placeholder="请输入会话存档Secret"></el-input>
<el-button style="margin-left: 20px" plain v-if="chatSecretEditState" @click="cancelEditChatSecret">
取消
</el-button>
<el-button type="primary" plain v-if="chatSecretEditState" @click="submitEditChatSecret">保存</el-button>
<el-button
type="primary"
style="margin-left: 20px;"
style="margin-left: 20px"
plain
v-if="!chatSecretEditState"
@click="editChatSecret"
>
@click="editChatSecret">
修改
</el-button>
</div>
<div class="tips">用于同步企微会话,在企微后台->管理工具->会话存档中获取</div>
</el-form-item>
<el-form-item label="消息加密私钥:" prop="financePrivateKey">
<el-input style="width: 40%;" v-model="form.financePrivateKey" placeholder="请输入消息加密私钥"></el-input>
<el-input style="width: 40%" v-model="form.financePrivateKey" placeholder="请输入消息加密私钥"></el-input>
<div class="tips">用于同步企微会话,在企微后台->管理工具->会话存档中获取</div>
</el-form-item>
</div>
......@@ -72,88 +68,88 @@
</div>
</template>
<script>
export default {
name: 'enterprise-wechat-part2',
data() {
return {
agentSecretCopy: '',
agentSecretEditState: false,
chatSecretCopy: '',
chatSecretEditState: false,
form: {},
rules: {
agentId: [{ required: true, message: '必填项', trigger: 'blur' }],
agentSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
chatSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
financePrivateKey: [{ required: true, message: '必填项', trigger: 'blur' }]
// seasRedirectUrl: [{ required: true, message: '必填项', trigger: 'blur' }],
// sopTagRedirectUrl: [{ required: true, message: '必填项', trigger: 'blur' }]
}
}
export default {
name: 'enterprise-wechat-part2',
data() {
return {
agentSecretCopy: '',
agentSecretEditState: false,
chatSecretCopy: '',
chatSecretEditState: false,
form: {},
rules: {
agentId: [{ required: true, message: '必填项', trigger: 'blur' }],
agentSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
chatSecret: [{ required: true, message: '必填项', trigger: 'blur' }],
financePrivateKey: [{ required: true, message: '必填项', trigger: 'blur' }],
// seasRedirectUrl: [{ required: true, message: '必填项', trigger: 'blur' }],
// sopTagRedirectUrl: [{ required: true, message: '必填项', trigger: 'blur' }]
},
}
},
watch: {
data: 'setData',
},
props: {
data: {
type: Object,
default: {},
},
watch: {
data: 'setData'
},
methods: {
editAgentSecret() {
this.agentSecretEditState = true
this.agentSecretCopy = JSON.parse(JSON.stringify(this.form.agentSecret))
this.form.agentSecret = ''
},
props: {
data: {
type: Object,
default: {}
}
cancelEditAgentSecret() {
this.agentSecretEditState = false
this.form.agentSecret = JSON.parse(JSON.stringify(this.agentSecretCopy))
},
methods: {
editAgentSecret() {
this.agentSecretEditState = true
this.agentSecretCopy = JSON.parse(JSON.stringify(this.form.agentSecret))
this.form.agentSecret = ''
},
cancelEditAgentSecret() {
submitEditAgentSecret() {
if (this.form.agentSecret) {
this.$emit('submit', this.form)
this.agentSecretEditState = false
this.form.agentSecret = JSON.parse(JSON.stringify(this.agentSecretCopy))
},
submitEditAgentSecret() {
if (this.form.agentSecret) {
this.$emit('submit', this.form)
this.agentSecretEditState = false
}
},
editChatSecret() {
this.chatSecretEditState = true
this.chatSecretCopy = JSON.parse(JSON.stringify(this.form.chatSecret))
this.form.chatSecret = ''
},
cancelEditChatSecret() {
}
},
editChatSecret() {
this.chatSecretEditState = true
this.chatSecretCopy = JSON.parse(JSON.stringify(this.form.chatSecret))
this.form.chatSecret = ''
},
cancelEditChatSecret() {
this.chatSecretEditState = false
this.form.chatSecret = JSON.parse(JSON.stringify(this.chatSecretCopy))
},
submitEditChatSecret() {
if (this.form.chatSecret) {
this.$emit('submit', this.form)
this.chatSecretEditState = false
this.form.chatSecret = JSON.parse(JSON.stringify(this.chatSecretCopy))
},
submitEditChatSecret() {
if (this.form.chatSecret) {
this.$emit('submit', this.form)
this.chatSecretEditState = false
}
},
}
},
submit() {
this.$refs['form'].validate((validate) => {
if (validate) {
this.$emit('submit', this.form)
}
})
},
setData() {
if (Object.keys(this.data).length) {
this.form = this.data
submit() {
this.$refs['form'].validate((validate) => {
if (validate) {
this.$emit('submit', this.form)
}
})
},
setData() {
if (Object.keys(this.data).length) {
this.form = this.data
}
},
mounted() {},
created() {}
}
},
mounted() {},
created() {},
}
</script>
<style lang="scss" scoped>
.my-title {
}
.tips {
color: #aaa;
font-size: 12px;
}
.my-title {
}
.tips {
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -97,7 +97,7 @@ export default {
.my-title {
}
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -40,7 +40,7 @@
<img style="height: 60px; width: 60px" src="../../assets/image/success.png" />
</div>
<upload class="image-uploader" v-model:fileUrl="form.certP12Url" :format="mat" type="3">
<span style="font-size: 14px; color: #333; margin-left: 20px; break-word: no-warp">
<span style="font-size: 14px; color: var(--font-black); margin-left: 20px; break-word: no-warp">
{{ form.certP12Url ? '重新上传' : '上传' }}
</span>
</upload>
......@@ -117,7 +117,7 @@ export default {
.my-title {
}
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -106,7 +106,7 @@ export default {
.my-title {
}
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -88,7 +88,7 @@ export default {
.my-title {
}
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -262,7 +262,7 @@ div#driver-highlighted-element-stage {
// visibility: hidden;
// }
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
</style>
......@@ -634,7 +634,7 @@ export default {
height: 90px; // line-height: 90px;
font-size: 18px;
font-weight: 500;
color: #333;
color: var(--font-black);
padding: 0 20px;
background: var(--bg-white);
border-top-left-radius: 4px;
......@@ -652,7 +652,7 @@ export default {
.small-tip {
font-size: 12px;
color: #999;
color: var(--font-black-6);
margin-left: 12px;
}
......
......@@ -429,7 +429,7 @@ export default {
display: flex;
align-items: flex-end;
font-size: 12px;
color: #999;
color: var(--font-black-6);
}
}
.total_list {
......@@ -464,7 +464,7 @@ export default {
height: 90px; // line-height: 90px;
font-size: 18px;
font-weight: 500;
color: #333;
color: var(--font-black);
padding: 0 20px;
background: var(--bg-white);
border-top-left-radius: 4px;
......
......@@ -491,7 +491,7 @@ export default {
line-height: 36px;
font-size: 18px;
font-weight: 500;
color: #333;
color: var(--font-black);
font-weight: bold;
}
......
......@@ -162,7 +162,7 @@ export default {
<el-button text class="copy-btn" :data-clipboard-text="data.shortUrl">复制链接</el-button>
<el-button text @click="download()">下载二维码</el-button>
<!-- <div style="font-size: 12px; color: #aaa">
<!-- <div style="font-size: 12px; color: var(--font-black-7)">
此链接适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景,
<a
href="https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-scheme/generateScheme.html">
......
......@@ -254,7 +254,7 @@ export default {
<style lang="scss" scoped>
.tips {
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
}
::v-deep.qrCode {
......
......@@ -369,6 +369,6 @@ export default {
// }
// .avatar-uploader-icon {
// font-size: 28px;
// color: #ddd;
// color: var(--font-black-9);
// }
</style>
......@@ -213,7 +213,7 @@ export default {
font-size: 16px;
}
.desc {
color: #ddd;
color: var(--font-black-9);
height: 40px;
overflow: hidden;
text-overflow: ellipsis;
......
......@@ -221,7 +221,7 @@ export default {
// }
.desc {
text-align: center;
color: #aaa;
color: var(--font-black-7);
font-size: 12px;
margin: -22px 0 50px;
}
......
......@@ -477,7 +477,7 @@ export default {
.code-user {
width: 50px;
height: 50px;
color: #999;
color: var(--font-black-6);
}
.noBack {
color: #ed4014;
......@@ -501,7 +501,7 @@ export default {
}
.my-label {
font-size: 14px;
color: #aaa;
color: var(--font-black-7);
}
.my-content {
font-size: 14px;
......@@ -510,7 +510,7 @@ export default {
.el-icon-s-custom {
font-size: 16px;
// margin-left: 4px;
color: #999;
color: var(--font-black-6);
&.man {
color: #13a2e8;
}
......
......@@ -540,16 +540,16 @@ export default {
justify-content: flex-end;
span {
font-size: 12px;
color: #999;
color: var(--font-black-6);
}
}
.numStyle {
font-size: 48px;
color: #333;
color: var(--font-black);
font-weight: 700;
}
.titleColor {
color: #aaa;
color: var(--font-black-7);
}
.el-tag:nth-of-type(2) {
margin-right: 10px;
......
......@@ -225,7 +225,7 @@ export default {
bottom: 20px;
}
.el-icon-QuestionFilled {
color: #aaa;
color: var(--font-black-7);
}
.auth-desc-img {
height: 400px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!