Commit 904162e1 by wangyusheng

Merge branch 'feature/202011' into 'master'

feat: 迭代更新

See merge request !3
parents a31b2bce c7d41fcd
# 0.2.0 (2020-11-09)
### Bug Fixes
* lint fix ([578ced3](http://115.159.76.241/dm4/haoban-operation-4/commits/578ced36494fd16d6d015f8156bea4ce04b930eb))
* 修改 ([0660981](http://115.159.76.241/dm4/haoban-operation-4/commits/06609816ca4f1321cacf7952d4ef063863c2dffe))
* 修改登录 ([658779e](http://115.159.76.241/dm4/haoban-operation-4/commits/658779e275fce051931720c9b58a06bfa559bdd8))
* 修改登录 ([f13eab9](http://115.159.76.241/dm4/haoban-operation-4/commits/f13eab9452bfbb955b302d64ee5cb1aef5976f0c))
* 修改登录 ([9ad2411](http://115.159.76.241/dm4/haoban-operation-4/commits/9ad24114a609ca0fabd4113df1e68d6e1bb890af))
* 修改登录 ([6473a12](http://115.159.76.241/dm4/haoban-operation-4/commits/6473a12b6ec0f50ab53487357946e80eb57e3cc3))
* 修改登录 ([64748dd](http://115.159.76.241/dm4/haoban-operation-4/commits/64748ddb5be06f10fd64595dde704cf2447008ff))
* 修改登录 ([3ea1c42](http://115.159.76.241/dm4/haoban-operation-4/commits/3ea1c42bcb18b6c40a2106bf1c8b77127b9fdbcb))
* 修改登录 ([50ad848](http://115.159.76.241/dm4/haoban-operation-4/commits/50ad8482e63728abd7f52f321d724799985ef6e8))
* 修改登录和增加超管 ([03ccd43](http://115.159.76.241/dm4/haoban-operation-4/commits/03ccd431e3f3e21b24165b306ae7f5c454e53607))
* 修改登录和增加超管 ([1e95eaf](http://115.159.76.241/dm4/haoban-operation-4/commits/1e95eafe442ba4cc98032d63e886d349052e519f))
* 修改登录和增加超管 ([a7b8c98](http://115.159.76.241/dm4/haoban-operation-4/commits/a7b8c9869a41bc953bfc9b25b54a60f9413352ed))
* 修改输入长度 ([c3ee566](http://115.159.76.241/dm4/haoban-operation-4/commits/c3ee566ec94efe3101dbdb94c3868126fff6c4b3))
* 处理颜色 ([7e8500e](http://115.159.76.241/dm4/haoban-operation-4/commits/7e8500ea1a34892da64eeb99ca790f699f824a17))
### Features
* 增加 changelog ([6485668](http://115.159.76.241/dm4/haoban-operation-4/commits/6485668cccd9c97d5b00bd4f4eabfcba069ef347))
* 字典管理 ([7dacc0a](http://115.159.76.241/dm4/haoban-operation-4/commits/7dacc0a195278a474aed95bfddab4dbf3fb2e7c3))
* 新增好办4.0 运营后台前端项目 ([cc9218a](http://115.159.76.241/dm4/haoban-operation-4/commits/cc9218a628d642c45f12cb3e216ba15f8af137f6))
### Reverts
* Revert "fix:跳转到操作项页面打开相应的tab" ([40d827f](http://115.159.76.241/dm4/haoban-operation-4/commits/40d827fda611bce86f227ce713c9ffc164a53c64))
.m-b-20[data-v-218a8428]{margin-bottom:20px}.w-408[data-v-218a8428]{width:408px}
\ No newline at end of file
.w-363[data-v-0c9ecac4]{width:363px}.selected div[data-v-0c9ecac4]{color:#2f54eb}.w-363[data-v-1b4e5972]{width:363px}.selected div[data-v-1b4e5972]{color:#2f54eb}.color-f5222d[data-v-1b4e5972]{color:#f5222d}.show-select-num[data-v-1b4e5972]{width:363px;height:32px;line-height:32px;padding:0 12px;font-size:14px;color:#303133;border-radius:2px;border:1px solid #c4c6cf}.m-b-20[data-v-0b4d69c2]{margin-bottom:20px}.w-408[data-v-0b4d69c2]{width:408px}
\ No newline at end of file
.w-279[data-v-1ed31872]{width:279px}.m-b-20[data-v-1ed31872]{margin-bottom:20px}
\ No newline at end of file
.model-title[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px 0 15px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.model-title[data-v-c8f38f6e]:first-child{margin-top:0}.end-time[data-v-c8f38f6e]{font-size:12px;font-weight:400;color:#909399;line-height:17px}.hb-app[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:789px;min-height:115px;border:1px solid #e4e7ed}.hb-app+.hb-app[data-v-c8f38f6e]{margin-top:10px}.hb-app .hb-app-name[data-v-c8f38f6e]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;width:126px;border-right:1px solid #e4e7ed}.hb-app .hb-app-info[data-v-c8f38f6e],.hb-app .hb-app-name[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hb-app .hb-app-info[data-v-c8f38f6e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:12px 0}.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e]{margin-bottom:10px;font-size:14px;font-weight:400}.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e]:last-child{margin-bottom:0}.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e] .el-form-item__content,.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e] .el-form-item__label{line-height:20px}.store-info[data-v-c8f38f6e]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.store-info .store-logo[data-v-c8f38f6e],.store-info[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.store-info .store-logo[data-v-c8f38f6e]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px;width:40px;height:40px}.store-info .store-logo img[data-v-c8f38f6e]{max-width:100%;max-height:100%;border-radius:2px}.store-info .store-name[data-v-c8f38f6e]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
.enterprise-info[data-v-038527d6]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.enterprise-info[data-v-038527d6],.logo[data-v-038527d6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.logo[data-v-038527d6]{margin-right:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px}.logo img[data-v-038527d6]{max-width:100%;max-height:100%;border-radius:2px}.enterprise-name[data-v-038527d6]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
.model-title[data-v-3ac4e906]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px 0 15px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.model-title[data-v-3ac4e906]:first-child{margin-top:0}.end-time[data-v-3ac4e906]{font-size:12px;font-weight:400;color:#909399;line-height:17px}.hb-app[data-v-3ac4e906]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:789px;min-height:115px;border:1px solid #e4e7ed}.hb-app+.hb-app[data-v-3ac4e906]{margin-top:10px}.hb-app .hb-app-name[data-v-3ac4e906]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;width:126px;border-right:1px solid #e4e7ed}.hb-app .hb-app-info[data-v-3ac4e906],.hb-app .hb-app-name[data-v-3ac4e906]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hb-app .hb-app-info[data-v-3ac4e906]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:12px 0}.hb-app .hb-app-info .hb-app-info-item[data-v-3ac4e906]{margin-bottom:10px;font-size:14px;font-weight:400}.hb-app .hb-app-info .hb-app-info-item[data-v-3ac4e906]:last-child{margin-bottom:0}.hb-app .hb-app-info .hb-app-info-item[data-v-3ac4e906] .el-form-item__content,.hb-app .hb-app-info .hb-app-info-item[data-v-3ac4e906] .el-form-item__label{line-height:20px}.store-info[data-v-3ac4e906]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.store-info .store-logo[data-v-3ac4e906],.store-info[data-v-3ac4e906]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.store-info .store-logo[data-v-3ac4e906]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px;width:40px;height:40px}.store-info .store-logo img[data-v-3ac4e906]{max-width:100%;max-height:100%;border-radius:2px}.store-info .store-name[data-v-3ac4e906]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
.w-440[data-v-2a2a2f5b]{width:440px}.m-l-10[data-v-2fa4498c]{margin-left:10px}.w-130[data-v-2fa4498c]{width:130px}.w-249[data-v-2fa4498c]{width:249px}.w-180[data-v-2fa4498c]{width:180px}.span-dot[data-v-2fa4498c]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-2fa4498c]{background:#52c41a}.span-dot.bg-d9d9d9[data-v-2fa4498c]{background:#d9d9d9}
\ No newline at end of file
.w-279[data-v-55ece3fd]{width:279px}
\ No newline at end of file
.enterprise-info[data-v-b65e48e0]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.enterprise-info[data-v-b65e48e0],.logo[data-v-b65e48e0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.logo[data-v-b65e48e0]{margin-right:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px}.logo img[data-v-b65e48e0]{max-width:100%;max-height:100%;border-radius:2px}.enterprise-name[data-v-b65e48e0]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
......@@ -20,6 +20,21 @@ Created by iconfont
/>
<missing-glyph />
<glyph glyph-name="zhanghao" unicode="&#59125;" d="M223.963429 682.130286c-27.794286 0-50.285714-22.528-50.285715-50.285715v-548.132571c0-27.794286 22.491429-50.285714 50.285715-50.285714h578.377142c27.794286 0 50.285714 22.491429 50.285715 50.285714V631.844571c0 27.757714-22.491429 50.285714-50.285715 50.285715H223.963429zM210.285714 737.901714h603.428572A100.571429 100.571429 0 0 0 914.285714 637.330286V82.285714A100.571429 100.571429 0 0 0 813.714286-18.285714H210.285714A100.571429 100.571429 0 0 0 109.714286 82.285714V637.330286a100.571429 100.571429 0 0 0 100.571428 100.571428zM612.571429 308.553143a125.732571 125.732571 0 1 0 0 251.465143 125.732571 125.732571 0 0 0 0-251.465143z m0 50.285714a75.410286 75.410286 0 1 1 0 150.857143 75.410286 75.410286 0 0 1 0-150.820571zM788.589714 132.571429h-50.285714c0 98.56-58.148571 176.018286-125.732571 176.018285s-125.732571-77.458286-125.732572-176.018285h-50.249143c0 123.721143 76.909714 226.304 175.981715 226.304s176.018286-102.619429 176.018285-226.304zM260.571429 484.571429V534.857143h100.571428v-50.285714zM261.12 333.714286V384h100.571429v-50.285714zM260.571429 182.857143v50.285714h100.571428V182.857143z" horiz-adv-x="1024" />
<glyph glyph-name="SQLServer" unicode="&#58978;" d="M930.816-116.736H248.32c-46.08 0-82.944 37.376-82.944 82.944V648.704c0 46.08 37.376 82.944 82.944 82.944h681.984c46.08 0 82.944-37.376 82.944-82.944V-33.28c0.512-46.08-36.864-83.456-82.432-83.456zM248.32 668.16c-10.752 0-19.456-8.704-19.456-19.456V-33.28c0-10.752 8.704-19.456 19.456-19.456h681.984c10.752 0 19.456 8.704 19.456 19.456V648.704c0 10.752-8.704 19.456-19.456 19.456H248.32zM168.96 39.424c-87.552 0-158.72 71.168-158.72 158.72V804.352c0 46.08 37.376 82.944 82.944 82.944h606.72c87.552 0 158.72-71.168 158.72-158.72h-64c0 52.224-42.496 94.72-94.72 94.72H93.184c-10.752 0-19.456-8.704-19.456-19.456v-606.72c0-52.224 42.496-94.72 94.72-94.72v-62.976zM415.744 325.12c-37.376 24.576-54.784 36.352-54.784 51.2 0 15.36 14.336 15.872 22.528 15.36 8.704-0.512 71.168-0.512 71.168-0.512V440.32h-95.232c-15.872 0-47.104-18.432-55.808-48.128-5.632-20.48 2.56-40.448 4.096-44.544 2.56-6.144 7.168-15.36 19.968-28.16 34.816-35.84 72.704-41.472 77.312-64 0.512-2.048 1.536-7.68-1.536-12.8-4.096-6.656-13.312-9.216-19.456-9.216h-81.408v-51.2s59.392-0.512 94.72 0 64.512 29.696 64.512 64.512-9.216 53.76-46.08 78.336zM606.72 444.928c-71.68 0-130.048-59.904-130.048-133.632 0-54.784 31.744-103.424 81.408-123.904l17.92 43.52c-31.744 13.312-52.736 45.056-52.736 80.896 0 47.616 37.376 86.528 83.456 86.528s83.456-38.912 83.456-86.528c0-35.84-20.992-67.072-51.712-80.384v46.592h-46.592v-152.064h46.592v56.32c58.368 14.848 98.816 67.584 98.816 129.536-0.512 73.216-58.88 133.12-130.56 133.12z m222.72-214.016c-14.336 0-26.112 11.776-26.112 26.112V440.32h-46.592v-183.296c0-39.936 32.768-72.704 72.704-72.704h47.104v46.592H829.44z" horiz-adv-x="1024" />
<glyph glyph-name="lianjie" unicode="&#58975;" d="M587.6736 167.5264l-56.9344-64.2048c-69.4272-78.2336-189.6448-85.4016-267.8784-15.9744s-85.4016 189.6448-15.9744 267.8784l56.9344 64.2048a30.8224 30.8224 0 0 0 43.6224 2.56 30.8224 30.8224 0 0 0 2.56-43.6224l-56.9344-64.2048c-46.8992-52.8384-41.984-133.8368 10.752-180.736 52.8384-46.8992 133.8368-41.984 180.736 10.752l56.9344 64.2048c46.7968 52.8384 41.984 133.8368-10.752 180.736-8.192 7.2704-17.1008 13.4144-26.7264 18.2272a30.81216 30.81216 0 0 0-13.5168 41.472 30.81216 30.81216 0 0 0 41.472 13.5168c14.336-7.2704 27.648-16.384 39.7312-27.136 78.2336-69.2224 85.4016-189.44 15.9744-267.6736zM777.216 381.1328l-56.9344-64.2048a30.8224 30.8224 0 0 0-43.6224-2.56 30.8224 30.8224 0 0 0-2.56 43.6224l56.9344 64.2048c46.8992 52.8384 41.984 133.8368-10.752 180.736s-133.8368 41.984-180.736-10.752l-56.9344-64.2048c-46.8992-52.8384-41.984-133.8368 10.752-180.736 9.4208-8.2944 19.8656-15.1552 31.232-20.3776 15.4624-7.168 22.2208-25.4976 15.1552-40.96a30.89408 30.89408 0 0 0-40.96-15.1552c-16.896 7.7824-32.4608 17.92-46.3872 30.3104-78.2336 69.4272-85.4016 189.6448-15.9744 267.8784l56.9344 64.2048c69.4272 78.2336 189.6448 85.4016 267.8784 15.9744s85.4016-189.7472 15.9744-267.9808z" horiz-adv-x="1024" />
<glyph glyph-name="more" unicode="&#58974;" d="M212.114286 391.314286m-80.457143 0a80.457143 80.457143 0 1 1 160.914286 0 80.457143 80.457143 0 1 1-160.914286 0ZM504.685714 391.314286m-80.457143 0a80.457143 80.457143 0 1 1 160.914286 0 80.457143 80.457143 0 1 1-160.914286 0ZM797.257143 391.314286m-80.457143 0a80.457143 80.457143 0 1 1 160.914286 0 80.457143 80.457143 0 1 1-160.914286 0Z" horiz-adv-x="1024" />
<glyph glyph-name="excel" unicode="&#59543;" d="M102.4 896h819.2c68.2496 0 102.4-34.1504 102.4-102.4v-819.2c0-68.2496-34.1504-102.4-102.4-102.4H102.4c-68.2496 0-102.4 34.1504-102.4 102.4V793.6C0 861.8496 34.1504 896 102.4 896zM592.896 768L153.6 679.9872v-633.2416l439.296-88.064V768z m-225.1264-430.7968l-45.6192-99.5328-52.6848 3.6864 66.6624 121.7024L276.48 495.8208l52.6336 3.6864 35.1232-99.5328h6.9632l38.656 106.9056 56.1152 3.6864-70.144-140.0832 70.1952-143.7696-56.1664 3.6864-42.0864 106.8544zM592.896 675.5328H870.4v-647.424h-277.504zM592.896 536.7808h185.0368v-58.9824H592.896V536.7808z m0-124.2112h185.0368v-58.9824H592.896V412.5696z m0-140.544h185.0368v-58.9824H592.896v58.9824z" horiz-adv-x="1024" />
<glyph glyph-name="qiyeguanli" unicode="&#58972;" d="M974.08 55.68h-36.32V467.68c0 39.2-34.72 72-76.32 72h-90.08c-12.64 0-25.76-12-25.76-24s12.64-24 25.76-24h90.08c9.44 0 19.52-9.28 19.52-18.24v-412.16H717.6V733.76c0 39.04-34.88 71.84-76.32 71.84H234.4c-41.6 0-76.32-32.8-76.32-72v-678.08H115.84c-12.64 0-25.76-12-25.76-24s12.64-24 25.76-24h852.32c12.64 0 25.76 12 25.76 24 0.16 12.16-6.72 24.16-19.84 24.16z m-308.16 0H214.88V733.76c0 8.8 10.08 18.24 19.52 18.24H646.4c10.24 0 18.88-8 19.52-18.24v-678.08zM532.32 433.76H340.64c-12.32 0-24.96-12-24.96-24s12.16-24 24.96-24h191.2c12.16 0 24.96 12 24.96 24s-12.32 24-24.48 24z m0-138.72H340.64c-12.32 0-24.96-12-24.96-24 0-14.08 7.68-29.76 24.96-29.76h191.2c12.16 0 24.96 12 24.96 24 0 13.12-12.32 29.76-24.48 29.76z m0 303.52H340.64c-12.32 0-24.96-12-24.96-24s12.16-24 24.96-24h191.2c12.16 0 24.96 12 24.96 24s-12.32 24-24.48 24z" horiz-adv-x="1096" />
......
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.48.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-448cb576.d0755970.css rel=prefetch><link href=css/chunk-4566970e.f9174fd0.css rel=prefetch><link href=css/chunk-512af800.73a18d33.css rel=prefetch><link href=css/chunk-52075058.debc587f.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=js/chunk-126ea711.df8c9e0f.js rel=prefetch><link href=js/chunk-22af8244.f7b854db.js rel=prefetch><link href=js/chunk-448cb576.a6f1f4e7.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-512af800.a7b7d1df.js rel=prefetch><link href=js/chunk-52075058.d2d7a3ed.js rel=prefetch><link href=js/chunk-ce6e75c2.19df2410.js rel=prefetch><link href=js/chunk-e0354b28.860dd428.js rel=prefetch><link href=css/app.64cc76ee.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.6f4b9fc5.js rel=preload as=script><link href=js/chunk-vendors.1cef5819.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.64cc76ee.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.46.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=js/chunk-vendors.1cef5819.js></script><script src=js/app.6f4b9fc5.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.48.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-011add1e.b77e9228.css rel=prefetch><link href=css/chunk-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-2037ffe3.06fe441d.css rel=prefetch><link href=css/chunk-448cb576.d0755970.css rel=prefetch><link href=css/chunk-4566970e.f9174fd0.css rel=prefetch><link href=css/chunk-48357f40.d927ffcc.css rel=prefetch><link href=css/chunk-6b431e4e.5bc873e8.css rel=prefetch><link href=css/chunk-926f5e98.4faeba06.css rel=prefetch><link href=css/chunk-a47f51de.0b392764.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e7c4557e.4f971e39.css rel=prefetch><link href=js/chunk-011add1e.e395077a.js rel=prefetch><link href=js/chunk-126ea711.1927465d.js rel=prefetch><link href=js/chunk-2037ffe3.c04f2691.js rel=prefetch><link href=js/chunk-22af8244.30e36d46.js rel=prefetch><link href=js/chunk-448cb576.a6f1f4e7.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-48357f40.5bd63a7a.js rel=prefetch><link href=js/chunk-6b431e4e.0d30cc7b.js rel=prefetch><link href=js/chunk-926f5e98.15883eeb.js rel=prefetch><link href=js/chunk-a47f51de.31bf5ea1.js rel=prefetch><link href=js/chunk-ce6e75c2.9409f4b5.js rel=prefetch><link href=js/chunk-e0354b28.47793da0.js rel=prefetch><link href=js/chunk-e7c4557e.1b36022d.js rel=prefetch><link href=css/app.343858c9.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.c6411e2d.js rel=preload as=script><link href=js/chunk-vendors.1cef5819.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.343858c9.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.46.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=js/chunk-vendors.1cef5819.js></script><script src=js/app.c6411e2d.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-011add1e"],{"06ed":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-408",attrs:{placeholder:"请输入操作人/试用人/试用企业/手机号/试用账号",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"试用人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.trialAccountName||"--"))]}}])}),a("el-table-column",{attrs:{label:"企业","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.wxEnterpriseName||"--"))]}}])}),a("el-table-column",{attrs:{label:"用户手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.selfPhoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{label:"试用账号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.trialAccount||"--"))]}}])}),a("el-table-column",{attrs:{label:"账号类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.trialType?"手机号":"企微账号"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"试用开始时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"试用结束时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime))+" "+e._s(t.row.updateTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime))+" "+e._s(t.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.commitName||"--"))]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},r=[],l=a("d157"),u=a("5723"),o=u["a"].getAccountList,i={name:"ProjectSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(l["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={search:e.searchInput,type:1,pageNum:e.currentPage,pageSize:e.pageSize};o(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckProjectId=".concat(e.sqlCheckProjectId))}},watch:{}},s=i,c=(a("1765"),a("2877")),p=Object(c["a"])(s,n,r,!1,null,"218a8428",null);t["default"]=p.exports},1765:function(e,t,a){"use strict";var n=a("c6be"),r=a.n(n);r.a},"28a5":function(e,t,a){"use strict";var n=a("aae3"),r=a("cb7c"),l=a("ebd6"),u=a("0390"),o=a("9def"),i=a("5f1b"),s=a("520a"),c=a("79e5"),p=Math.min,f=[].push,d="split",h="length",g="lastIndex",v=4294967295,m=!c((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,c){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(r,e,t);var l,u,o,i=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?v:t>>>0,m=new RegExp(e.source,c+"g");while(l=s.call(m,r)){if(u=m[g],u>p&&(i.push(r.slice(p,l.index)),l[h]>1&&l.index<r[h]&&f.apply(i,l.slice(1)),o=l[0][h],p=u,i[h]>=d))break;m[g]===l.index&&m[g]++}return p===r[h]?!o&&m.test("")||i.push(""):i.push(r.slice(p)),i[h]>d?i.slice(0,d):i}:"0"[d](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var r=e(this),l=void 0==a?void 0:a[t];return void 0!==l?l.call(a,r,n):b.call(String(r),a,n)},function(e,t){var n=c(b,e,this,t,b!==a);if(n.done)return n.value;var s=r(e),f=String(this),d=l(s,RegExp),h=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(m?"y":"g"),w=new d(m?s:"^(?:"+s.source+")",g),_=void 0===t?v:t>>>0;if(0===_)return[];if(0===f.length)return null===i(w,f)?[f]:[];var S=0,F=0,D=[];while(F<f.length){w.lastIndex=m?F:0;var T,k=i(w,m?f:f.slice(F));if(null===k||(T=p(o(w.lastIndex+(m?0:F)),f.length))===S)F=u(f,F,h);else{if(D.push(f.slice(S,F)),D.length===_)return D;for(var C=1;C<=k.length-1;C++)if(D.push(k[C]),D.length===_)return D;F=S=T}}return D.push(f.slice(S)),D}]}))},5723:function(e,t,a){"use strict";var n=a("71f6"),r={getAccountList:"/trial-list",setAccountStatus:{url:"/trial-end",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseList:"/wx-enterprise-list",saveAccount:{url:"/trial-add",method:"post",useFormData:!0,useIntercept:!1},getAccountDetail:"/trial-detail"};r=Object(n["a"])(r,"/hb-manage-operation-web"),t["a"]=r},c6be:function(e,t,a){},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,r)}),t)}}function r(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22af8244"],{"3a0f":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-form",{ref:"dictData",staticStyle:{"padding-top":"20px"},attrs:{model:t.dictData,rules:t.dictRule,"label-width":"165px"}},[i("el-form-item",{attrs:{label:"字典名称",prop:"dictName"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入内容",maxlength:"20","show-word-limit":""},model:{value:t.dictData.dictName,callback:function(e){t.$set(t.dictData,"dictName","string"===typeof e?e.trim():e)},expression:"dictData.dictName"}})],1),i("el-form-item",{attrs:{label:"key",prop:"dictKey"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入内容",maxlength:"50","show-word-limit":""},model:{value:t.dictData.dictKey,callback:function(e){t.$set(t.dictData,"dictKey","string"===typeof e?e.trim():e)},expression:"dictData.dictKey"}})],1),i("el-form-item",{attrs:{label:"字段描述"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入内容",type:"textarea",maxlength:"50",rows:"4","show-word-limit":""},model:{value:t.dictData.dictDesc,callback:function(e){t.$set(t.dictData,"dictDesc","string"===typeof e?e.trim():e)},expression:"dictData.dictDesc"}})],1),i("el-form-item",{attrs:{label:"内容",prop:"dictContent"}},[i("dm-editor",{attrs:{value:t.dictData.dictContent,width:"575px",height:"326px"},on:{change:function(e){return t.dictData.dictContent=e}}})],1),i("el-form-item",{staticStyle:{"margin-top":"50px"}},[i("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.dictData.dictId?"保存":"确认新建"))])],1)],1)},c=[],d=i("e56e"),n=i("365c"),r=d["a"].saveDict,s=d["a"].dictDetail,o=n["a"].getUserInfo,l={name:"CreateDictionary",data:function(){return{bread:[{name:"业务字典",path:"/dictionary-list"}],loading:!1,dictData:{dictName:"",dictKey:"",dictDesc:"",dictContent:"",dictId:"",optUserId:"",optUserName:""},dictRule:{dictName:[{required:!0,message:"请输入字典名称",trigger:"blur"}],dictKey:[{required:!0,message:"请输入字典key",trigger:"blur"}],dictContent:[{required:!0,message:"请输入内容",trigger:"blur"}]}}},mounted:function(){var t=this.$route.query.dictId;t?(this.getDictDetail(t),this.bread.push({name:"编辑字典"})):this.bread.push({name:"新建字典"}),this.getUserInfo(),this.$emit("updateBread",this.bread)},methods:{getUserInfo:function(){var t=this;o().then((function(e){var i=e.result,a=i.id,c=i.realName;Object.assign(t.dictData,{optUserId:a,optUserName:c})}))},getDictDetail:function(t){var e=this;s({dictId:t}).then((function(t){var i=t.result,a=i.dictName,c=i.dictKey,d=i.dictDesc,n=i.dictContent,r=i.dictId;Object.assign(e.dictData,{dictName:a,dictKey:c,dictDesc:d,dictContent:n,dictId:r})}))},onSave:function(){var t=this;this.$refs.dictData.validate((function(e){if(e){var i=t.dictData,a=i.dictName,c=i.dictKey,d=i.dictDesc,n=i.dictContent,s=i.dictId,o=i.optUserId,l=i.optUserName,u={dictName:a,dictKey:c,dictDesc:d,dictContent:n,optUserId:o,optUserName:l};t.loading=!0,s&&Object.assign(u,{dictId:s}),r(u).then((function(e){t.$message.success(s?"保存成功!":"新建成功!"),t.$router.go(-1)})).finally((function(){return t.loading=!1}))}}))}}},u=l,m=i("2877"),p=Object(m["a"])(u,a,c,!1,null,null,null);e["default"]=p.exports},e56e:function(t,e,i){"use strict";var a=i("71f6"),c={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};c=Object(a["a"])(c,"/hb-manage-operation-web"),e["a"]=c}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22af8244"],{"3a0f":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-form",{ref:"dictData",staticStyle:{"padding-top":"20px"},attrs:{model:t.dictData,rules:t.dictRule,"label-width":"165px"}},[i("el-form-item",{attrs:{label:"字典名称",prop:"dictName"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入内容",maxlength:"20","show-word-limit":""},model:{value:t.dictData.dictName,callback:function(e){t.$set(t.dictData,"dictName","string"===typeof e?e.trim():e)},expression:"dictData.dictName"}})],1),i("el-form-item",{attrs:{label:"key",prop:"dictKey"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入内容",maxlength:"50","show-word-limit":""},model:{value:t.dictData.dictKey,callback:function(e){t.$set(t.dictData,"dictKey","string"===typeof e?e.trim():e)},expression:"dictData.dictKey"}})],1),i("el-form-item",{attrs:{label:"字段描述"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入内容",type:"textarea",maxlength:"50",rows:"4","show-word-limit":""},model:{value:t.dictData.dictDesc,callback:function(e){t.$set(t.dictData,"dictDesc","string"===typeof e?e.trim():e)},expression:"dictData.dictDesc"}})],1),i("el-form-item",{attrs:{label:"内容",prop:"dictContent"}},[i("dm-editor",{attrs:{value:t.dictData.dictContent,width:"575px",height:"326px"},on:{change:function(e){return t.dictData.dictContent=e}}})],1),i("el-form-item",{staticStyle:{"margin-top":"50px"}},[i("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.dictData.dictId?"保存":"确认新建"))])],1)],1)},c=[],d=i("e56e"),n=i("365c"),r=d["a"].saveDict,s=d["a"].dictDetail,o=n["a"].getUserInfo,l={name:"CreateDictionary",data:function(){return{bread:[{name:"业务字典",path:"/dictionary-list"}],loading:!1,dictData:{dictName:"",dictKey:"",dictDesc:"",dictContent:"",dictId:"",optUserId:"",optUserName:""},dictRule:{dictName:[{required:!0,message:"请输入字典名称",trigger:"blur"}],dictKey:[{required:!0,message:"请输入字典key",trigger:"blur"}],dictContent:[{required:!0,message:"请输入内容",trigger:"blur"}]}}},mounted:function(){this.$emit("showTab","/dictionary-list");var t=this.$route.query.dictId;t?(this.getDictDetail(t),this.bread.push({name:"编辑字典"})):this.bread.push({name:"新建字典"}),this.getUserInfo(),this.$emit("updateBread",this.bread)},methods:{getUserInfo:function(){var t=this;o().then((function(e){var i=e.result,a=i.id,c=i.realName;Object.assign(t.dictData,{optUserId:a,optUserName:c})}))},getDictDetail:function(t){var e=this;s({dictId:t}).then((function(t){var i=t.result,a=i.dictName,c=i.dictKey,d=i.dictDesc,n=i.dictContent,r=i.dictId;Object.assign(e.dictData,{dictName:a,dictKey:c,dictDesc:d,dictContent:n,dictId:r})}))},onSave:function(){var t=this;this.$refs.dictData.validate((function(e){if(e){var i=t.dictData,a=i.dictName,c=i.dictKey,d=i.dictDesc,n=i.dictContent,s=i.dictId,o=i.optUserId,l=i.optUserName,m={dictName:a,dictKey:c,dictDesc:d,dictContent:n,optUserId:o,optUserName:l};t.loading=!0,s&&Object.assign(m,{dictId:s}),r(m).then((function(e){t.$message.success(s?"保存成功!":"新建成功!"),t.$router.go(-1)})).finally((function(){return t.loading=!1}))}}))}}},m=l,u=i("2877"),p=Object(u["a"])(m,a,c,!1,null,null,null);e["default"]=p.exports},e56e:function(t,e,i){"use strict";var a=i("71f6"),c={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};c=Object(a["a"])(c,"/hb-manage-operation-web"),e["a"]=c}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48357f40"],{"24e4":function(e,t,a){},"28a5":function(e,t,a){"use strict";var n=a("aae3"),r=a("cb7c"),u=a("ebd6"),i=a("0390"),l=a("9def"),c=a("5f1b"),o=a("520a"),s=a("79e5"),p=Math.min,d=[].push,f="split",g="length",h="lastIndex",v=4294967295,m=!s((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,s){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[g]||2!="ab"[f](/(?:ab)*/)[g]||4!="."[f](/(.?)(.?)/)[g]||"."[f](/()()/)[g]>1||""[f](/.?/)[g]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(r,e,t);var u,i,l,c=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=void 0===t?v:t>>>0,m=new RegExp(e.source,s+"g");while(u=o.call(m,r)){if(i=m[h],i>p&&(c.push(r.slice(p,u.index)),u[g]>1&&u.index<r[g]&&d.apply(c,u.slice(1)),l=u[0][g],p=i,c[g]>=f))break;m[h]===u.index&&m[h]++}return p===r[g]?!l&&m.test("")||c.push(""):c.push(r.slice(p)),c[g]>f?c.slice(0,f):c}:"0"[f](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var r=e(this),u=void 0==a?void 0:a[t];return void 0!==u?u.call(a,r,n):b.call(String(r),a,n)},function(e,t){var n=s(b,e,this,t,b!==a);if(n.done)return n.value;var o=r(e),d=String(this),f=u(o,RegExp),g=o.unicode,h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(m?"y":"g"),F=new f(m?o:"^(?:"+o.source+")",h),D=void 0===t?v:t>>>0;if(0===D)return[];if(0===d.length)return null===c(F,d)?[d]:[];var w=0,S=0,x=[];while(S<d.length){F.lastIndex=m?S:0;var C,I=c(F,m?d:d.slice(S));if(null===I||(C=p(l(F.lastIndex+(m?0:S)),d.length))===w)S=i(d,S,g);else{if(x.push(d.slice(w,S)),x.length===D)return x;for(var _=1;_<=I.length-1;_++)if(x.push(I[_]),x.length===D)return x;S=w=C}}return x.push(d.slice(w)),x}]}))},"4ad3":function(e,t,a){"use strict";var n=a("71f6"),r={getProjectList:"/list-project",getTableList:"/list-table",getSqlList:"/list-sql",addSqlIndex:{url:"/perfect-sql-index",method:"post",useFormData:!0,useIntercept:!1},setPerfect:{url:"/sql-perfect-need",method:"post",useFormData:!0,useIntercept:!1},setStatus:{url:"/sql-online",method:"post",useFormData:!0,useIntercept:!1},exportData:{url:"/exportList",method:"post",useFormData:!0,useIntercept:!1}};r=Object(n["a"])(r,"/sql-check-web"),t["a"]=r},"57bc":function(e,t,a){"use strict";var n=a("24e4"),r=a.n(n);r.a},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,r)}),t)}}function r(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},fe48:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-279",attrs:{placeholder:"请输入项目名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckProjectName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toSqlPage(t.row)}}},[e._v("SQL列表")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},r=[],u=a("d157"),i=a("4ad3"),l=i["a"].getProjectList,c={name:"ProjectSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(u["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={project:e.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};l(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckProjectId=".concat(e.sqlCheckProjectId))}},watch:{}},o=c,s=(a("57bc"),a("2877")),p=Object(s["a"])(o,n,r,!1,null,"1ed31872",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-512af800"],{"34ff":function(e,t,i){},a30a:function(e,t,i){"use strict";var n=i("71f6"),r={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(n["a"])(r,"/hb-manage-operation-web")},bed5:function(e,t,i){"use strict";var n=i("34ff"),r=i.n(n);r.a},d1a4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{padding:"20px"}},[i("h3",{staticClass:"model-title"},[e._v("\n 企业信息\n "),e._e()],1),i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"小程序版本"}},[e._v("免费版")]),i("el-form-item",{attrs:{label:"企业名称"}},[i("span",[e._v(e._s(e.enterpriseDetail.wxEnterpriseName))]),i("el-tag",{staticStyle:{margin:"0 10px"},attrs:{type:"verified"==e.enterpriseDetail.corpType?"":"info",effect:"plain"}},[e._v("\n "+e._s("verified"==e.enterpriseDetail.corpType?"已认证":"未认证")+"\n ")]),e.enterpriseDetail.verifiedEndTime?i("span",{staticClass:"end-time"},[e._v("\n 认证到期 "+e._s(e._f("timeStampToYmd")(e.enterpriseDetail.verifiedEndTime))+"\n ")]):e._e()],1),i("el-form-item",{attrs:{label:"企业ID"}},[e._v(e._s(e.enterpriseDetail.corpId||"--"))]),i("el-form-item",{attrs:{label:"行业类型"}},[e._v(e._s(e.formatCorpIndustry()))]),i("el-form-item",{attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.displayRange)&&e.enterpriseDetail.displayRange.length>0?e.enterpriseDetail.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1),e.enterpriseDetail.secret.secretName?[i("h3",{staticClass:"model-title"},[e._v("好办自建应用")]),i("div",{staticClass:"hb-app"},[i("div",{staticClass:"hb-app-name"},[e._v(e._s(e.enterpriseDetail.secret.secretName))]),i("el-form",{staticClass:"hb-app-info",attrs:{"label-width":"150px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Agentld"}},[e._v(e._s(e.enterpriseDetail.secret.agentId))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Secret"}},[e._v(e._s(e.enterpriseDetail.secret.secretVal))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.secret.displayRange)&&e.enterpriseDetail.secret.displayRange.length>0?e.enterpriseDetail.secret.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1)],1)]:e._e(),i("h3",{staticClass:"model-title"},[e._v("授权信息")]),i("el-table",{attrs:{data:e.enterpriseDetail.enterpriseList}},[i("el-table-column",{attrs:{label:"授权商户"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return i("div",{staticClass:"store-info"},[n.enterpriseLogo?i("div",{staticClass:"store-logo"},[i("img",{attrs:{src:n.enterpriseLogo,alt:""}})]):e._e(),i("span",{staticClass:"store-name"},[e._v(e._s(n.enterpriseName))])])}}])}),i("el-table-column",{attrs:{label:"门店绑定授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[0==n.bindStoreMode?i("span",[e._v("所有门店")]):n.bindStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(n,0)}}},[e._v("\n "+e._s(n.bindCount)+e._s(1==n.bindStoreMode?"个分组":2==n.bindStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])}),i("el-table-column",{attrs:{label:"门店共享授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[0==n.shareStoreMode?i("span",[e._v("所有门店")]):n.shareStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(n,1)}}},[e._v("\n "+e._s(n.shareCount)+e._s(1==n.shareStoreMode?"个分组":2==n.shareStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])})],1),i("el-dialog",{attrs:{visible:e.bindInfo.show,title:"门店授权范围",width:"600px"},on:{"update:visible":function(t){return e.$set(e.bindInfo,"show",t)},closed:e.onBindInfoClose}},[i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:0==e.bindInfo.type?"门店绑定授权范围":"门店共享授权范围"}},[i("el-select",{staticStyle:{width:"392px"},attrs:{disabled:"",multiple:"",value:e.bindInfo.selected}},e._l(e.bindInfo.data,(function(e){return i("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],2)},r=[],s=i("a30a"),a=s["a"].getEnterpriseDetail,l=s["a"].refreshEnterpriseInfo,o=s["a"].storeRangeDetail,p={name:"EnterpriseDetail",data:function(){return{bread:[{path:"/enterprise-list",name:"企业列表"},{name:"查看"}],enterpriseId:"",enterpriseDetail:{displayRange:[],secret:{},enterpriseList:[]},bindInfo:{show:!1,type:0,data:[],selected:[]}}},created:function(){var e=this.$route.query.enterpriseId;if(!e)return this.$router.go(-1);this.enterpriseId=e,this.getEnterpriseDetail(),this.$emit("updateBread",this.bread)},methods:{getEnterpriseDetail:function(){var e=this;a({wxEnterpriseId:this.enterpriseId}).then((function(t){Object.assign(e.enterpriseDetail,t.result)}))},onRefresh:function(){l().then(this.getEnterpriseDetail)},formatCorpIndustry:function(){var e=[];return this.enterpriseDetail.corpIndustry&&e.push(this.enterpriseDetail.corpIndustry),this.enterpriseDetail.corpSubIndustry&&e.push(this.enterpriseDetail.corpSubIndustry),e.length>0?e.join("/"):"--"},getBindDetail:function(e,t){var i=this,n=e.wxEnterpriseId,r=e.enterpriseId,s={wxEnterpriseId:n,enterpriseId:r,operationType:t};this.bindInfo.show=!0,this.bindInfo.type=t,o(s).then((function(e){i.bindInfo.data=e.result||[],i.bindInfo.selected=i.bindInfo.data.map((function(e){return e.id}))}))},onBindInfoClose:function(){this.bindInfo.data=[],this.bindInfo.selected=[]}}},d=p,f=(i("bed5"),i("2877")),c=Object(f["a"])(d,n,r,!1,null,"c8f38f6e",null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52075058"],{"386d":function(e,t,a){"use strict";var r=a("cb7c"),n=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,o){return[function(a){var r=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=o(a,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;n(c,0)||(s.lastIndex=0);var u=i(s,l);return n(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"6a8f":function(e,t,a){},"6cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.tologinBack(r)}}},[e._v("登录")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])]}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),o=i["a"].getEnterpriseList,s={name:"EnterpriseList",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{tologinBack:function(e){var t=localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},a={phoneNumber:t.userMobile,nationCode:"86",accountId:t.id,wxEnterpriseId:e.wxEnterpriseId,accountName:t.realName};window.open("/hb-manage-web/auth/operation-login?wxEnterpriseId=".concat(a.wxEnterpriseId,"&nationCode=").concat(a.nationCode,"&phoneNumber=").concat(a.phoneNumber,"&accountId=").concat(a.accountId,"&accountName=").concat(a.accountName),"_blank","noopener")},getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,s=i.pageSize,l=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:s,pageNum:l};o(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},l=s,c=(a("892d"),a("2877")),u=Object(c["a"])(l,r,n,!1,null,"038527d6",null);t["default"]=u.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"892d":function(e,t,a){"use strict";var r=a("6a8f"),n=a.n(r);n.a},a30a:function(e,t,a){"use strict";var r=a("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b431e4e"],{"32e0":function(e,t,i){"use strict";var r=i("87c4"),n=i.n(r);n.a},"87c4":function(e,t,i){},a30a:function(e,t,i){"use strict";var r=i("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")},d1a4:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{padding:"20px"}},[i("h3",{staticClass:"model-title"},[e._v("\n 企业信息\n "),e._e()],1),i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"小程序版本"}},[e._v("免费版")]),i("el-form-item",{attrs:{label:"企业名称"}},[i("span",[e._v(e._s(e.enterpriseDetail.wxEnterpriseName))]),i("el-tag",{staticStyle:{margin:"0 10px"},attrs:{type:"verified"==e.enterpriseDetail.corpType?"":"info",effect:"plain"}},[e._v("\n "+e._s("verified"==e.enterpriseDetail.corpType?"已认证":"未认证")+"\n ")]),e.enterpriseDetail.verifiedEndTime?i("span",{staticClass:"end-time"},[e._v("\n 认证到期 "+e._s(e._f("timeStampToYmd")(e.enterpriseDetail.verifiedEndTime))+"\n ")]):e._e()],1),i("el-form-item",{attrs:{label:"企业ID"}},[e._v(e._s(e.enterpriseDetail.corpId||"--"))]),i("el-form-item",{attrs:{label:"行业类型"}},[e._v(e._s(e.formatCorpIndustry()))]),i("el-form-item",{attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.displayRange)&&e.enterpriseDetail.displayRange.length>0?e.enterpriseDetail.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1),e.enterpriseDetail.secret.secretName?[i("h3",{staticClass:"model-title"},[e._v("好办自建应用")]),i("div",{staticClass:"hb-app"},[i("div",{staticClass:"hb-app-name"},[e._v(e._s(e.enterpriseDetail.secret.secretName))]),i("el-form",{staticClass:"hb-app-info",attrs:{"label-width":"150px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Agentld"}},[e._v(e._s(e.enterpriseDetail.secret.agentId))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Secret"}},[e._v(e._s(e.enterpriseDetail.secret.secretVal))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.secret.displayRange)&&e.enterpriseDetail.secret.displayRange.length>0?e.enterpriseDetail.secret.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1)],1)]:e._e(),i("h3",{staticClass:"model-title"},[e._v("授权信息")]),i("el-table",{attrs:{data:e.enterpriseDetail.enterpriseList}},[i("el-table-column",{attrs:{label:"授权商户"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return i("div",{staticClass:"store-info"},[r.enterpriseLogo?i("div",{staticClass:"store-logo"},[i("img",{attrs:{src:r.enterpriseLogo,alt:""}})]):e._e(),i("span",{staticClass:"store-name"},[e._v(e._s(r.enterpriseName))])])}}])}),i("el-table-column",{attrs:{label:"门店绑定授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.bindStoreMode?i("span",[e._v("所有门店")]):r.bindStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(r,0)}}},[e._v("\n "+e._s(r.bindCount)+e._s(1==r.bindStoreMode?"个分组":2==r.bindStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])}),i("el-table-column",{attrs:{label:"门店共享授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.shareStoreMode?i("span",[e._v("所有门店")]):r.shareStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(r,1)}}},[e._v("\n "+e._s(r.shareCount)+e._s(1==r.shareStoreMode?"个分组":2==r.shareStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])})],1),i("el-dialog",{attrs:{visible:e.bindInfo.show,title:"门店授权范围",width:"600px"},on:{"update:visible":function(t){return e.$set(e.bindInfo,"show",t)},closed:e.onBindInfoClose}},[i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:0==e.bindInfo.type?"门店绑定授权范围":"门店共享授权范围"}},[i("el-select",{staticStyle:{width:"392px"},attrs:{disabled:"",multiple:"",value:e.bindInfo.selected}},e._l(e.bindInfo.data,(function(e){return i("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],2)},n=[],s=i("a30a"),a=s["a"].getEnterpriseDetail,l=s["a"].refreshEnterpriseInfo,o=s["a"].storeRangeDetail,p={name:"EnterpriseDetail",data:function(){return{bread:[{path:"/enterprise-list",name:"企业列表"},{name:"查看"}],enterpriseId:"",enterpriseDetail:{displayRange:[],secret:{},enterpriseList:[]},bindInfo:{show:!1,type:0,data:[],selected:[]}}},created:function(){var e=this.$route.query.enterpriseId;if(!e)return this.$router.go(-1);this.enterpriseId=e,this.getEnterpriseDetail(),this.$emit("updateBread",this.bread),this.$emit("showTab","/enterprise-list")},methods:{getEnterpriseDetail:function(){var e=this;a({wxEnterpriseId:this.enterpriseId}).then((function(t){Object.assign(e.enterpriseDetail,t.result)}))},onRefresh:function(){l().then(this.getEnterpriseDetail)},formatCorpIndustry:function(){var e=[];return this.enterpriseDetail.corpIndustry&&e.push(this.enterpriseDetail.corpIndustry),this.enterpriseDetail.corpSubIndustry&&e.push(this.enterpriseDetail.corpSubIndustry),e.length>0?e.join("/"):"--"},getBindDetail:function(e,t){var i=this,r=e.wxEnterpriseId,n=e.enterpriseId,s={wxEnterpriseId:r,enterpriseId:n,operationType:t};this.bindInfo.show=!0,this.bindInfo.type=t,o(s).then((function(e){i.bindInfo.data=e.result||[],i.bindInfo.selected=i.bindInfo.data.map((function(e){return e.id}))}))},onBindInfoClose:function(){this.bindInfo.data=[],this.bindInfo.selected=[]}}},d=p,c=(i("32e0"),i("2877")),f=Object(c["a"])(d,r,n,!1,null,"3ac4e906",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a47f51de"],{"28a5":function(e,t,a){"use strict";var n=a("aae3"),r=a("cb7c"),u=a("ebd6"),l=a("0390"),i=a("9def"),s=a("5f1b"),c=a("520a"),o=a("79e5"),p=Math.min,d=[].push,f="split",g="length",h="lastIndex",b=4294967295,v=!o((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,o){var m;return m="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[g]||2!="ab"[f](/(?:ab)*/)[g]||4!="."[f](/(.?)(.?)/)[g]||"."[f](/()()/)[g]>1||""[f](/.?/)[g]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(r,e,t);var u,l,i,s=[],o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=void 0===t?b:t>>>0,v=new RegExp(e.source,o+"g");while(u=c.call(v,r)){if(l=v[h],l>p&&(s.push(r.slice(p,u.index)),u[g]>1&&u.index<r[g]&&d.apply(s,u.slice(1)),i=u[0][g],p=l,s[g]>=f))break;v[h]===u.index&&v[h]++}return p===r[g]?!i&&v.test("")||s.push(""):s.push(r.slice(p)),s[g]>f?s.slice(0,f):s}:"0"[f](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var r=e(this),u=void 0==a?void 0:a[t];return void 0!==u?u.call(a,r,n):m.call(String(r),a,n)},function(e,t){var n=o(m,e,this,t,m!==a);if(n.done)return n.value;var c=r(e),d=String(this),f=u(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),F=new f(v?c:"^(?:"+c.source+")",h),D=void 0===t?b:t>>>0;if(0===D)return[];if(0===d.length)return null===s(F,d)?[d]:[];var w=0,S=0,x=[];while(S<d.length){F.lastIndex=v?S:0;var C,T=s(F,v?d:d.slice(S));if(null===T||(C=p(i(F.lastIndex+(v?0:S)),d.length))===w)S=l(d,S,g);else{if(x.push(d.slice(w,S)),x.length===D)return x;for(var I=1;I<=T.length-1;I++)if(x.push(T[I]),x.length===D)return x;S=w=C}}return x.push(d.slice(w)),x}]}))},"2cf3":function(e,t,a){"use strict";var n=a("8d19"),r=a.n(n);r.a},"4ad3":function(e,t,a){"use strict";var n=a("71f6"),r={getProjectList:"/list-project",getTableList:"/list-table",getSqlList:"/list-sql",addSqlIndex:{url:"/perfect-sql-index",method:"post",useFormData:!0,useIntercept:!1},setPerfect:{url:"/sql-perfect-need",method:"post",useFormData:!0,useIntercept:!1},setStatus:{url:"/sql-online",method:"post",useFormData:!0,useIntercept:!1},exportData:{url:"/exportList",method:"post",useFormData:!0,useIntercept:!1}};r=Object(n["a"])(r,"/sql-check-web"),t["a"]=r},"8d19":function(e,t,a){},"97b0":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-279",attrs:{placeholder:"请输入表名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"表名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckTableName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toSqlPage(t.row)}}},[e._v("SQL列表")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},r=[],u=a("d157"),l=a("4ad3"),i=l["a"].getTableList,s={name:"TableSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(u["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={table:e.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};i(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckTableId=".concat(e.sqlCheckTableId))}},watch:{}},c=s,o=(a("2cf3"),a("2877")),p=Object(o["a"])(c,n,r,!1,null,"55ece3fd",null);t["default"]=p.exports},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,r)}),t)}}function r(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e7c4557e"],{"386d":function(e,t,a){"use strict";var r=a("cb7c"),n=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,o){return[function(a){var r=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=o(a,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;n(c,0)||(s.lastIndex=0);var u=i(s,l);return n(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"6cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.tologinBack(r)}}},[e._v("登录")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])]}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),o=i["a"].getEnterpriseList,s={name:"EnterpriseList",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{tologinBack:function(e){var t=localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},a={phoneNumber:t.userMobile,nationCode:"86",accountId:t.id,wxEnterpriseId:e.wxEnterpriseId,accountName:t.realName};window.open("/hb-manage-web/auth/operation-login?wxEnterpriseId=".concat(a.wxEnterpriseId,"&nationCode=").concat(a.nationCode,"&phoneNumber=").concat(a.phoneNumber,"&accountId=").concat(a.accountId,"&accountName=").concat(a.accountName),"_blank","noopener")},getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,s=i.pageSize,l=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:s,pageNum:l};o(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},l=s,c=(a("a3bf"),a("2877")),u=Object(c["a"])(l,r,n,!1,null,"b65e48e0",null);t["default"]=u.exports},"721c":function(e,t,a){},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a30a:function(e,t,a){"use strict";var r=a("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")},a3bf:function(e,t,a){"use strict";var r=a("721c"),n=a.n(r);n.a}}]);
\ No newline at end of file
{
"name": "haoban-operation-4",
"version": "0.1.0",
"version": "0.2.0",
"private": false,
"scripts": {
"serve": "vue-cli-service serve",
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-30 11:21:59
* @LastEditors: 无尘
* @LastEditTime: 2020-11-11 10:16:48
-->
<template>
<div id="app" class="dm-reset">
<router-view/>
......@@ -9,3 +17,11 @@ export default {
name: 'App'
};
</script>
<style lang='less'>
.common-right {
padding: 20px;
}
.w-274 {
width: 274px;
}
</style>
/*
* @Descripttion: 试用账号 接口路径
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:22:08
* @LastEditors: 无尘
* @LastEditTime: 2020-11-19 10:32:24
*/
import getFetch from './get-fetch';
let api = {
getAccountList: '/trial-list', // 获取试用账号列表
setAccountStatus: {
url: '/trial-end', // 结束试用
method: 'post',
useFormData: true,
useIntercept: false
},
getEnterpriseList: '/wx-enterprise-list', // 获取企业列表数据
saveAccount: {
url: '/trial-add', // 保存账号
method: 'post',
useFormData: true,
useIntercept: false
},
getAccountDetail: '/trial-detail', // 获取账号详情
};
api = getFetch(api, '/hb-manage-operation-web');
export default api;
/*
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-30 11:21:59
* @LastEditors: 无尘
* @LastEditTime: 2020-11-19 15:54:40
*/
import { request } from '@/utils/request.js';
export default function getFetch(api, baseUrl) {
......@@ -7,7 +15,7 @@ export default function getFetch(api, baseUrl) {
let opt = api[key];
if (typeof opt === 'string') opt = { url: opt };
opt.url = `${baseUrl}${opt.url}`;
api[key] = params => request(opt, params);
api[key] = (params, requestConfig) => request(opt, params, requestConfig);
});
return api;
}
/*
* @Descripttion: sql 接口路径
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:22:08
* @LastEditors: 无尘
* @LastEditTime: 2020-11-19 10:31:10
*/
import getFetch from './get-fetch';
let api = {
getProjectList: '/list-project', // 获取项目列表,
getTableList: '/list-table', // 获取表列表,
getSqlList: '/list-sql', // 获取 sql 列表,
addSqlIndex: {
url: '/perfect-sql-index', // 添加索引
method: 'post',
useFormData: true,
useIntercept: false
},
setPerfect: {
url: '/sql-perfect-need', // 完善开关
method: 'post',
useFormData: true,
useIntercept: false
},
setStatus: {
url: '/sql-online', // 上线开关
method: 'post',
useFormData: true,
useIntercept: false
},
exportData: {
url: '/exportList', // 导出
method: 'post',
useFormData: true,
useIntercept: false
}
};
api = getFetch(api, '/sql-check-web');
export default api;
<!--
* @Descripttion: 重复手机号,查看详情
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-16 14:56:07
* @LastEditors: 无尘
* @LastEditTime: 2020-11-19 11:10:14
-->
<!--
<account-detail :edit-obj="editObj"></account-detail>
import accountDetail from '@/components/account/account-detail.vue';
-->
<template>
<el-dialog title="试用账号详情" :visible.sync="dialogVisible" width="680px" :before-close="handleClose" append-to-body>
<div class="">
<el-table class="select-table" ref="" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%'}">
<el-table-column label="试用人" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccountName || '--' }}</template>
</el-table-column>
<el-table-column label="企业" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.wxEnterpriseName || '--' }}</template>
</el-table-column>
<el-table-column label="用户手机号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.selfPhoneNumber || '--' }}</template>
</el-table-column>
<el-table-column label="试用账号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccount || '--' }}</template>
</el-table-column>
<el-table-column prop="" label="试用开始时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column label="有效期" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.effectDate | timeStampToYmd }} {{ !scope.row.effectDate ? '不限' : ''}}</template>
</el-table-column>
</el-table>
</div>
</el-dialog>
</template>
<script>
export default {
name: 'SqlDetail',
components: {},
props: {
editObj: {
type: Object,
default() {
return {};
}
}
},
data() {
return {
dialogVisible: true,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
if (Object.keys(that.editObj).length) {
that.tableData = [ JSON.parse(JSON.stringify(that.editObj)) ];
}
},
// methods
methods: {
/**
* @description: 关闭弹窗
* @author: 无尘
*/
handleClose() {
const that = this;
that.$emit('closeDetail');
},
cancelEdit() {
const that = this;
that.$emit('closeDetail');
}
},
watch: {
editObj(newData) {
const that = this;
if (Object.keys(newData).length) {
that.tableData = [ JSON.parse(JSON.stringify(newData)) ];
}
}
}
};
</script>
<style lang='less' scoped>
.w-363 {
width: 363px;
}
.selected {
div {
color: #2f54eb;
}
}
</style>
<!--
* @Descripttion: 完善索引
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-10 13:46:15
* @LastEditors: 无尘
* @LastEditTime: 2020-11-26 17:00:47
-->
<!--
<index-dialog :sql-check-sql-id="sqlCheckSqlId"></index-dialog>
import indexDialog from '@/components/sql/index-dialog.vue';
-->
<template>
<el-dialog :title="sqlCheckSqlId ? '查看索引' : '完善索引'" :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
<div class="">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="85px" class="demo-ruleForm" @submit.native.prevent>
<el-form-item label="内容" prop="sqlIndex">
<el-input class="w-440" type="textarea" rows="6" v-model="ruleForm.sqlIndex" maxlength="500" show-word-limit></el-input>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="toCancel">取消</el-button>
<el-button type="primary" :loading="loadBtn" @click="submitForm('ruleForm')">确认</el-button>
</div>
</el-dialog>
</template>
<script>
import { _debounce, emojiToStr } from '@/common/js/public';
import fetch from '@/api/sql';
const { addSqlIndex } = fetch;
export default {
name: 'IndexDialog',
components: {},
props: {
sqlCheckSqlId: {
type: String,
default: ''
},
sqlCheckIndex: {
type: String,
default: ''
}
},
data() {
return {
userInfo: localStorage.getItem('haobanOperate') ? JSON.parse(localStorage.getItem('haobanOperate')) : { id: '', userMobile: '', realName: '', },
dialogVisible: true,
loadBtn: false,
ruleForm: {
sqlCheckSqlId: '',
sqlIndex: ''
},
rules: {
sqlIndex: [ { required: true, message: '请输入内容', trigger: 'blur' } ]
},
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.ruleForm.sqlCheckSqlId = that.sqlCheckSqlId ? that.sqlCheckSqlId : '';
that.ruleForm.sqlIndex = that.sqlCheckIndex ? that.sqlCheckIndex : '';
},
// methods
methods: {
/**
* @description: 关闭弹窗
* @author: 无尘
*/
toCancel() {
const that = this;
that.$emit('closeText');
that.$refs['ruleForm'].resetFields();
},
handleClose(done) {
const that = this;
that.$emit('closeText');
that.$refs['ruleForm'].resetFields();
},
/**
* @description: 保存
* @param {String} formName
* @author: 无尘
*/
submitForm: _debounce(function(formName) {
const that = this;
that.$refs[formName].validate(valid => {
if (valid) {
that.postSave();
}
});
}, 300),
postSave() {
const that = this;
that.loadBtn = true;
const data = {
sqlCheckSqlId: that.ruleForm.sqlCheckSqlId,
sqlIndex: emojiToStr(that.ruleForm.sqlIndex),
commitId: that.userInfo.id,
commitName: that.userInfo.realName
};
addSqlIndex(data)
.then(res => {
that.loadBtn = false;
if (res.code == '0000') {
that.$message.success('操作成功');
that.$refs['ruleForm'].resetFields();
that.$emit('submitText');
}else {
that.$message.warning(res.message);
}
})
.catch(error => {
that.loadBtn = false;
});
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.w-440 {
width: 440px;
}
</style>
<!--
* @Descripttion: sql 详情
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-10 13:46:26
* @LastEditors: 无尘
* @LastEditTime: 2020-11-18 16:17:26
-->
<!--
<sql-detail :sql-row="sqlRow"></sql-detail>
import sqlDetail from '@/components/sql/sql-detail.vue';
-->
<template>
<el-dialog title="SQL 详情" :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
<div class="">
<el-form :model="ruleForm" ref="ruleForm" label-width="110px" class="demo-ruleForm" @submit.native.prevent>
<el-form-item label="项目名称" prop="">
{{ruleForm.sqlCheckProjectName || '--'}}
</el-form-item>
<el-form-item label="表名称" prop="">
{{ruleForm.sqlCheckTableName || '--'}}
</el-form-item>
<el-form-item label="SQL" prop="">
<el-input class="w-440" readonly type="textarea" rows="6" v-model="ruleForm.sqlCheckSql" maxlength="500" show-word-limit></el-input>
</el-form-item>
<el-form-item label="索引" prop="">
<el-input class="w-440" readonly type="textarea" rows="6" v-model="ruleForm.sqlCheckIndex" maxlength="500" show-word-limit></el-input>
</el-form-item>
<el-form-item label="完善状态" prop="">
{{ruleForm.sqlCheckIndexType ? '已完善':'未完善'}}
</el-form-item>
<el-form-item label="上线状态" prop="">
{{ruleForm.statusFlag ? '已上线':'未上线'}}
</el-form-item>
</el-form>
</div>
</el-dialog>
</template>
<script>
export default {
name: 'SqlDetail',
components: {},
props: {
sqlRow: {
type: Object,
default() {
return {};
}
}
},
data() {
return {
dialogVisible: true,
loadBtn: false,
ruleForm: {
sqlCheckSqlId: '',
sqlCheckSql: '',
sqlCheckProjectName: '',
sqlCheckTableName: '',
sqlCheckIndexType: '',
statusFlag: ''
}
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
if (Object.keys(that.sqlRow).length) {
that.ruleForm = JSON.parse(JSON.stringify(that.sqlRow));
}
},
// methods
methods: {
/**
* @description: 关闭弹窗
* @author: 无尘
*/
handleClose() {
const that = this;
that.$emit('closeDetail');
that.$refs['ruleForm'].resetFields();
},
},
watch: {
sqlRow(newData) {
const that = this;
if (Object.keys(newData).length) {
that.ruleForm = JSON.parse(JSON.stringify(newData));
}
}
}
};
</script>
<style lang='less' scoped>
</style>
......@@ -7,7 +7,7 @@
:class="['tab-left-list-cell p-l-14', {'active-tab': item.uri === activeTab}]"
:key="item.id"
@click="selectTab(item)">
<!-- <i class="my-icon" :class="['iconfont', item.icon, !!item.onlyIconActive ? 'iconActive' : '']"></i> -->
<i class="my-icon" :class="['iconfont', item.iconUrl]"></i>
{{ item.menuName }}
<i v-if="item.nodeChildren && item.nodeChildren.length" :class="[item.collapsFlag ? 'el-icon-arrow-up' : 'el-icon-arrow-down']"></i>
</li>
......@@ -42,7 +42,14 @@
export default {
name: 'AsideMenu',
props: {
menu: Array
menu: Array,
// 刷新时候传入的选中 menuUrl
activeSelTab: {
type: [ String, Number ],
default() {
return '';
}
},
},
data() {
return {
......@@ -56,6 +63,7 @@ export default {
item.collapsFlag = !item.collapsFlag;
} else {
this.$router.push({ path: item.uri });
this.$emit('resetSelTab');
}
},
},
......@@ -63,9 +71,13 @@ export default {
'$route.path': {
immediate: true,
handler(path) {
this.activeTab = path;
this.activeTab = this.activeSelTab ? this.activeSelTab : path;
}
},
activeSelTab(newData) {
const that = this;
that.activeTab = newData ? newData : that.$route.path;
},
menu: {
immediate: true,
handler(menu) {
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-30 11:21:59
* @LastEditors: 无尘
* @LastEditTime: 2020-11-18 11:18:32
-->
<template>
<div class="layout">
<yw-header @updateAsideMenu="updateAsideMenu"></yw-header>
<aside-menu :menu="menu"></aside-menu>
<aside-menu :menu="menu" :active-sel-tab="activeSelTab" @resetSelTab="resetSelTab"></aside-menu>
<div class="main">
<el-breadcrumb separator-class="el-icon-arrow-right" v-if="breadList.length">
<el-breadcrumb-item v-for="item in breadList" :key="item" :to="{ path: item.path }">{{ item.name }}</el-breadcrumb-item>
......@@ -9,7 +17,7 @@
<keep-alive>
<router-view v-if="$route.meta.keepAlive" :key="$route.fullPath" @updateBread="updateBread"></router-view>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive" :key="$route.fullPath" @updateBread="updateBread"></router-view>
<router-view v-if="!$route.meta.keepAlive" :key="$route.fullPath" @updateBread="updateBread" @showTab="showTab"></router-view>
</div>
</div>
</template>
......@@ -23,7 +31,8 @@ export default {
data() {
return {
menu: [],
breadList: []
breadList: [],
activeSelTab: ''
};
},
methods: {
......@@ -32,6 +41,23 @@ export default {
},
updateBread(val) {
this.breadList = val || [];
},
/**
* @description: 各路由返回 menuUrl
* @param {String} menuUrl
* @author: 无尘
*/
showTab(menuUrl) {
const that = this;
that.activeSelTab = menuUrl;
},
/**
* @description: 点击左侧菜单重置内页传入的tab url
* @author: 无尘
*/
resetSelTab() {
const that = this;
that.activeSelTab = '';
}
},
watch: {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-07-21 09:52:25
* @LastEditTime: 2020-11-13 16:37:01
*/
import Layout from '@/layout/layout.vue';
......@@ -48,6 +48,41 @@ export const routes = [
path: '/create-dictionary',
meta: { title: '新建、编辑字典' },
component: () => import('@/views/dictionary/create-dictionary.vue')
},
{
path: '/project-sql',
meta: {
title: '项目列表'
},
component: () => import('@/views/sql/project-sql.vue')
},
{
path: '/table-sql',
meta: {
title: '表列表'
},
component: () => import('@/views/sql/table-sql.vue')
},
{
path: '/sql-list',
meta: {
title: 'sql列表'
},
component: () => import('@/views/sql/sql-list.vue')
},
{
path: '/current-account',
meta: {
title: '当前试用'
},
component: () => import('@/views/account/current-account.vue')
},
{
path: '/history-account',
meta: {
title: '历史试用'
},
component: () => import('@/views/account/history-account.vue')
}
]
},
......
......@@ -31,6 +31,36 @@
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont">&#xe6f5;</span>
<div class="name">账号</div>
<div class="code-name">&amp;#xe6f5;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe662;</span>
<div class="name">SQL Server</div>
<div class="code-name">&amp;#xe662;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe65f;</span>
<div class="name">链接</div>
<div class="code-name">&amp;#xe65f;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe65e;</span>
<div class="name">more</div>
<div class="code-name">&amp;#xe65e;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe897;</span>
<div class="name">excel</div>
<div class="code-name">&amp;#xe897;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe65c;</span>
<div class="name">企业管理</div>
<div class="code-name">&amp;#xe65c;</div>
......@@ -1023,6 +1053,51 @@
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont iconzhanghao"></span>
<div class="name">
账号
</div>
<div class="code-name">.iconzhanghao
</div>
</li>
<li class="dib">
<span class="icon iconfont iconSQLServer"></span>
<div class="name">
SQL Server
</div>
<div class="code-name">.iconSQLServer
</div>
</li>
<li class="dib">
<span class="icon iconfont iconlianjie"></span>
<div class="name">
链接
</div>
<div class="code-name">.iconlianjie
</div>
</li>
<li class="dib">
<span class="icon iconfont iconmore"></span>
<div class="name">
more
</div>
<div class="code-name">.iconmore
</div>
</li>
<li class="dib">
<span class="icon iconfont iconexcel"></span>
<div class="name">
excel
</div>
<div class="code-name">.iconexcel
</div>
</li>
<li class="dib">
<span class="icon iconfont iconqiyeguanli"></span>
<div class="name">
企业管理
......@@ -2466,6 +2541,46 @@
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconzhanghao"></use>
</svg>
<div class="name">账号</div>
<div class="code-name">#iconzhanghao</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconSQLServer"></use>
</svg>
<div class="name">SQL Server</div>
<div class="code-name">#iconSQLServer</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconlianjie"></use>
</svg>
<div class="name">链接</div>
<div class="code-name">#iconlianjie</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconmore"></use>
</svg>
<div class="name">more</div>
<div class="code-name">#iconmore</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconexcel"></use>
</svg>
<div class="name">excel</div>
<div class="code-name">#iconexcel</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconqiyeguanli"></use>
</svg>
<div class="name">企业管理</div>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,6 +6,41 @@
"description": "",
"glyphs": [
{
"icon_id": "16105752",
"name": "账号",
"font_class": "zhanghao",
"unicode": "e6f5",
"unicode_decimal": 59125
},
{
"icon_id": "14074839",
"name": "SQL Server",
"font_class": "SQLServer",
"unicode": "e662",
"unicode_decimal": 58978
},
{
"icon_id": "12145449",
"name": "链接",
"font_class": "lianjie",
"unicode": "e65f",
"unicode_decimal": 58975
},
{
"icon_id": "9995756",
"name": "more",
"font_class": "more",
"unicode": "e65e",
"unicode_decimal": 58974
},
{
"icon_id": "9458771",
"name": "excel",
"font_class": "excel",
"unicode": "e897",
"unicode_decimal": 59543
},
{
"icon_id": "10122143",
"name": "企业管理",
"font_class": "qiyeguanli",
......
......@@ -20,6 +20,21 @@ Created by iconfont
/>
<missing-glyph />
<glyph glyph-name="zhanghao" unicode="&#59125;" d="M223.963429 682.130286c-27.794286 0-50.285714-22.528-50.285715-50.285715v-548.132571c0-27.794286 22.491429-50.285714 50.285715-50.285714h578.377142c27.794286 0 50.285714 22.491429 50.285715 50.285714V631.844571c0 27.757714-22.491429 50.285714-50.285715 50.285715H223.963429zM210.285714 737.901714h603.428572A100.571429 100.571429 0 0 0 914.285714 637.330286V82.285714A100.571429 100.571429 0 0 0 813.714286-18.285714H210.285714A100.571429 100.571429 0 0 0 109.714286 82.285714V637.330286a100.571429 100.571429 0 0 0 100.571428 100.571428zM612.571429 308.553143a125.732571 125.732571 0 1 0 0 251.465143 125.732571 125.732571 0 0 0 0-251.465143z m0 50.285714a75.410286 75.410286 0 1 1 0 150.857143 75.410286 75.410286 0 0 1 0-150.820571zM788.589714 132.571429h-50.285714c0 98.56-58.148571 176.018286-125.732571 176.018285s-125.732571-77.458286-125.732572-176.018285h-50.249143c0 123.721143 76.909714 226.304 175.981715 226.304s176.018286-102.619429 176.018285-226.304zM260.571429 484.571429V534.857143h100.571428v-50.285714zM261.12 333.714286V384h100.571429v-50.285714zM260.571429 182.857143v50.285714h100.571428V182.857143z" horiz-adv-x="1024" />
<glyph glyph-name="SQLServer" unicode="&#58978;" d="M930.816-116.736H248.32c-46.08 0-82.944 37.376-82.944 82.944V648.704c0 46.08 37.376 82.944 82.944 82.944h681.984c46.08 0 82.944-37.376 82.944-82.944V-33.28c0.512-46.08-36.864-83.456-82.432-83.456zM248.32 668.16c-10.752 0-19.456-8.704-19.456-19.456V-33.28c0-10.752 8.704-19.456 19.456-19.456h681.984c10.752 0 19.456 8.704 19.456 19.456V648.704c0 10.752-8.704 19.456-19.456 19.456H248.32zM168.96 39.424c-87.552 0-158.72 71.168-158.72 158.72V804.352c0 46.08 37.376 82.944 82.944 82.944h606.72c87.552 0 158.72-71.168 158.72-158.72h-64c0 52.224-42.496 94.72-94.72 94.72H93.184c-10.752 0-19.456-8.704-19.456-19.456v-606.72c0-52.224 42.496-94.72 94.72-94.72v-62.976zM415.744 325.12c-37.376 24.576-54.784 36.352-54.784 51.2 0 15.36 14.336 15.872 22.528 15.36 8.704-0.512 71.168-0.512 71.168-0.512V440.32h-95.232c-15.872 0-47.104-18.432-55.808-48.128-5.632-20.48 2.56-40.448 4.096-44.544 2.56-6.144 7.168-15.36 19.968-28.16 34.816-35.84 72.704-41.472 77.312-64 0.512-2.048 1.536-7.68-1.536-12.8-4.096-6.656-13.312-9.216-19.456-9.216h-81.408v-51.2s59.392-0.512 94.72 0 64.512 29.696 64.512 64.512-9.216 53.76-46.08 78.336zM606.72 444.928c-71.68 0-130.048-59.904-130.048-133.632 0-54.784 31.744-103.424 81.408-123.904l17.92 43.52c-31.744 13.312-52.736 45.056-52.736 80.896 0 47.616 37.376 86.528 83.456 86.528s83.456-38.912 83.456-86.528c0-35.84-20.992-67.072-51.712-80.384v46.592h-46.592v-152.064h46.592v56.32c58.368 14.848 98.816 67.584 98.816 129.536-0.512 73.216-58.88 133.12-130.56 133.12z m222.72-214.016c-14.336 0-26.112 11.776-26.112 26.112V440.32h-46.592v-183.296c0-39.936 32.768-72.704 72.704-72.704h47.104v46.592H829.44z" horiz-adv-x="1024" />
<glyph glyph-name="lianjie" unicode="&#58975;" d="M587.6736 167.5264l-56.9344-64.2048c-69.4272-78.2336-189.6448-85.4016-267.8784-15.9744s-85.4016 189.6448-15.9744 267.8784l56.9344 64.2048a30.8224 30.8224 0 0 0 43.6224 2.56 30.8224 30.8224 0 0 0 2.56-43.6224l-56.9344-64.2048c-46.8992-52.8384-41.984-133.8368 10.752-180.736 52.8384-46.8992 133.8368-41.984 180.736 10.752l56.9344 64.2048c46.7968 52.8384 41.984 133.8368-10.752 180.736-8.192 7.2704-17.1008 13.4144-26.7264 18.2272a30.81216 30.81216 0 0 0-13.5168 41.472 30.81216 30.81216 0 0 0 41.472 13.5168c14.336-7.2704 27.648-16.384 39.7312-27.136 78.2336-69.2224 85.4016-189.44 15.9744-267.6736zM777.216 381.1328l-56.9344-64.2048a30.8224 30.8224 0 0 0-43.6224-2.56 30.8224 30.8224 0 0 0-2.56 43.6224l56.9344 64.2048c46.8992 52.8384 41.984 133.8368-10.752 180.736s-133.8368 41.984-180.736-10.752l-56.9344-64.2048c-46.8992-52.8384-41.984-133.8368 10.752-180.736 9.4208-8.2944 19.8656-15.1552 31.232-20.3776 15.4624-7.168 22.2208-25.4976 15.1552-40.96a30.89408 30.89408 0 0 0-40.96-15.1552c-16.896 7.7824-32.4608 17.92-46.3872 30.3104-78.2336 69.4272-85.4016 189.6448-15.9744 267.8784l56.9344 64.2048c69.4272 78.2336 189.6448 85.4016 267.8784 15.9744s85.4016-189.7472 15.9744-267.9808z" horiz-adv-x="1024" />
<glyph glyph-name="more" unicode="&#58974;" d="M212.114286 391.314286m-80.457143 0a80.457143 80.457143 0 1 1 160.914286 0 80.457143 80.457143 0 1 1-160.914286 0ZM504.685714 391.314286m-80.457143 0a80.457143 80.457143 0 1 1 160.914286 0 80.457143 80.457143 0 1 1-160.914286 0ZM797.257143 391.314286m-80.457143 0a80.457143 80.457143 0 1 1 160.914286 0 80.457143 80.457143 0 1 1-160.914286 0Z" horiz-adv-x="1024" />
<glyph glyph-name="excel" unicode="&#59543;" d="M102.4 896h819.2c68.2496 0 102.4-34.1504 102.4-102.4v-819.2c0-68.2496-34.1504-102.4-102.4-102.4H102.4c-68.2496 0-102.4 34.1504-102.4 102.4V793.6C0 861.8496 34.1504 896 102.4 896zM592.896 768L153.6 679.9872v-633.2416l439.296-88.064V768z m-225.1264-430.7968l-45.6192-99.5328-52.6848 3.6864 66.6624 121.7024L276.48 495.8208l52.6336 3.6864 35.1232-99.5328h6.9632l38.656 106.9056 56.1152 3.6864-70.144-140.0832 70.1952-143.7696-56.1664 3.6864-42.0864 106.8544zM592.896 675.5328H870.4v-647.424h-277.504zM592.896 536.7808h185.0368v-58.9824H592.896V536.7808z m0-124.2112h185.0368v-58.9824H592.896V412.5696z m0-140.544h185.0368v-58.9824H592.896v58.9824z" horiz-adv-x="1024" />
<glyph glyph-name="qiyeguanli" unicode="&#58972;" d="M974.08 55.68h-36.32V467.68c0 39.2-34.72 72-76.32 72h-90.08c-12.64 0-25.76-12-25.76-24s12.64-24 25.76-24h90.08c9.44 0 19.52-9.28 19.52-18.24v-412.16H717.6V733.76c0 39.04-34.88 71.84-76.32 71.84H234.4c-41.6 0-76.32-32.8-76.32-72v-678.08H115.84c-12.64 0-25.76-12-25.76-24s12.64-24 25.76-24h852.32c12.64 0 25.76 12 25.76 24 0.16 12.16-6.72 24.16-19.84 24.16z m-308.16 0H214.88V733.76c0 8.8 10.08 18.24 19.52 18.24H646.4c10.24 0 18.88-8 19.52-18.24v-678.08zM532.32 433.76H340.64c-12.32 0-24.96-12-24.96-24s12.16-24 24.96-24h191.2c12.16 0 24.96 12 24.96 24s-12.32 24-24.48 24z m0-138.72H340.64c-12.32 0-24.96-12-24.96-24 0-14.08 7.68-29.76 24.96-29.76h191.2c12.16 0 24.96 12 24.96 24 0 13.12-12.32 29.76-24.48 29.76z m0 303.52H340.64c-12.32 0-24.96-12-24.96-24s12.16-24 24.96-24h191.2c12.16 0 24.96 12 24.96 24s-12.32 24-24.48 24z" horiz-adv-x="1096" />
......
/*
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-30 11:22:00
* @LastEditors: 无尘
* @LastEditTime: 2020-11-19 16:16:22
*/
import axios from 'axios';
import qs from 'qs';
import { Message } from 'element-ui';
......@@ -12,7 +20,7 @@ const BASEURL = isPro ? window.location.origin : 'https://four.gicdev.com';
axios.defaults.baseURL = BASEURL;
const request = (opt, params) => {
const request = (opt, params, config) => {
params = Object.assign({}, params);
opt = Object.assign({}, opt);
let requestConfig = {
......@@ -29,7 +37,7 @@ const request = (opt, params) => {
// 设置headers
headers: {}
};
requestConfig = Object.assign(requestConfig, opt);
requestConfig = Object.assign(requestConfig, opt, config);
if (requestConfig.useFormData) params = qs.stringify(params);
switch (requestConfig.method.toLowerCase()) {
case 'get':
......
<!--
* @Descripttion: 当前试用账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-13 10:59:31
* @LastEditors: 无尘
* @LastEditTime: 2020-11-26 17:00:32
-->
<template>
<div class="common-right">
<div class="m-b-20 flex flex-space-between">
<el-input placeholder="请输入操作人/试用人/试用企业/手机号/试用账号" maxlength="60" prefix-icon="el-icon-search" v-model="searchInput" class="w-408" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
<el-button class="m-l-10" type="primary" @click="editAccount('')">新建账号</el-button>
</div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="试用人" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccountName || '--' }}</template>
</el-table-column>
<el-table-column label="企业" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.wxEnterpriseName || '--' }}</template>
</el-table-column>
<el-table-column label="用户手机号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.selfPhoneNumber || '--' }}</template>
</el-table-column>
<el-table-column label="试用账号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccount || '--' }}</template>
</el-table-column>
<el-table-column label="账号类型" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialType == 1 ? '手机号' : '企微账号' }}</template>
</el-table-column>
<el-table-column prop="" label="试用开始时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column label="有效期" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.effectDate | timeStampToYmd }} {{ !scope.row.effectDate ? '不限' : ''}}</template>
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" @click="editAccount(scope.row)">编辑</el-button>
<el-button type="text" @click="tryEnd(scope.row)">结束试用</el-button>
</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
<edit-account v-if="showEdit" :edit-row="editRow" @closeEdit="closeEdit" @refreshData="refreshData"></edit-account>
</div>
</template>
<script>
import editAccount from '@/components/account/edit-account.vue';
import { _debounce } from '@/common/js/public';
import fetch from '@/api/account';
const { getAccountList, setAccountStatus } = fetch;
import handleFormat from '@/filters/index.js';
export default {
name: 'ProjectSql',
components: { editAccount },
data() {
return {
userInfo: localStorage.getItem('haobanOperate') ? JSON.parse(localStorage.getItem('haobanOperate')) : { id: '', userMobile: '', realName: '', },
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
loading: false,
tableData: [],
showEdit: false,
editRow: {}
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getTableData();
},
// methods
methods: {
/**
* @description: 输入
* @param {Object} e
* @param {String} value
* @author: 无尘
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableData();
}, 500),
/**
* @description: 搜索清除
* @author: 无尘
*/
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 分页---页码变化
* @param {Number} val
* @author: 无尘
*/
handleSizeChange(val) {
const that = this;
that.currentPage = 1;
that.pageSize = val;
that.getTableData();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
* @author: 无尘
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableData();
},
/**
* @description: 获取项目列表
* @author: 无尘
*/
getTableData() {
const that = this;
that.loading = true;
const param = {
search: that.searchInput,
type: 0,
pageNum: that.currentPage,
pageSize: that.pageSize
};
getAccountList(param).then(res => {
that.loading = false;
if (!!res.result.result && !!res.result.result.length) {
res.result.result.forEach(ele => {
ele.effectDate = handleFormat.timeStampToYmd(ele.effectDate);
})
}
that.tableData = res.result.result || [];
that.total = res.result.totalCount || 0;
})
.catch(function(error) {
that.loading = false;
});
},
/**
* @description: 编辑
* @param {Object} row
* @author: 无尘
*/
editAccount(row) {
const that = this;
that.showEdit = true;
that.editRow = !!row ? JSON.parse(JSON.stringify(row)) : {};
},
closeEdit(res) {
const that = this;
that.showEdit = false;
that.editRow = {};
if (!!res) {
that.currentPage = 1;
that.getTableData();
}
},
refreshData() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 结束试用
* @param {Object} row
* @author: 无尘
*/
tryEnd(row) {
const that = this;
that
.$confirm('是否结束试用?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.postEnd(row);
})
.catch(() => {
});
},
postEnd(row) {
const that = this;
const param = {
trialAccountId: row.trialAccountId,
commitId: that.userInfo.id,
commitName: that.userInfo.realName
};
setAccountStatus(param).then(res => {
if (res.code == '0000') {
that.$message({
message: '结束试用成功',
type: 'success'
});
that.currentPage = 1;
that.getTableData();
}else{
that.$message.warning(res.message);
}
})
.catch(function(error) {
});
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.m-b-20 {
margin-bottom: 20px;
}
.w-408 {
width: 408px;
}
</style>
<!--
* @Descripttion: 历史账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-13 10:59:48
* @LastEditors: 无尘
* @LastEditTime: 2020-11-17 09:34:28
-->
<template>
<div class="common-right">
<div class="m-b-20">
<el-input placeholder="请输入操作人/试用人/试用企业/手机号/试用账号" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" class="w-408" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="试用人" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccountName || '--' }}</template>
</el-table-column>
<el-table-column label="企业" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.wxEnterpriseName || '--' }}</template>
</el-table-column>
<el-table-column label="用户手机号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.selfPhoneNumber || '--' }}</template>
</el-table-column>
<el-table-column label="试用账号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccount || '--' }}</template>
</el-table-column>
<el-table-column label="账号类型" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialType == 1 ? '手机号' : '企微账号' }}</template>
</el-table-column>
<el-table-column prop="" label="试用开始时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column label="试用结束时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.updateTime | timeStampToYmd }} {{ !scope.row.updateTime ? '--': '' }}</div>
<div>{{ scope.row.updateTime | timeStampToHms }} {{ !scope.row.updateTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column label="操作人" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.commitName || '--' }}</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
</div>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/account';
const { getAccountList } = fetch;
export default {
name: 'ProjectSql',
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getTableData();
},
// methods
methods: {
/**
* @description: 输入
* @param {Object} e
* @param {String} value
* @author: 无尘
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableData();
}, 500),
/**
* @description: 搜索清除
* @author: 无尘
*/
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 分页---页码变化
* @param {Number} val
* @author: 无尘
*/
handleSizeChange(val) {
const that = this;
that.currentPage = 1;
that.pageSize = val;
that.getTableData();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
* @author: 无尘
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableData();
},
/**
* @description: 获取项目列表
* @author: 无尘
*/
getTableData() {
const that = this;
that.loading = true;
const param = {
search: that.searchInput,
type: 1,
pageNum: that.currentPage,
pageSize: that.pageSize
};
getAccountList(param).then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount || 0;
})
.catch(function(error) {
that.loading = false;
});
},
/**
* @description: 跳转 sql 列表
* @param {Object} row
* @author: 无尘
*/
toSqlPage(row) {
const that = this;
that.$router.push(`/sql-list?sqlCheckProjectId=${row.sqlCheckProjectId}`);
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.m-b-20 {
margin-bottom: 20px;
}
.w-408 {
width: 408px;
}
</style>
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-30 11:22:05
* @LastEditors: 无尘
* @LastEditTime: 2020-11-18 11:25:09
-->
<template>
<el-form :model="dictData" :rules="dictRule" ref="dictData" label-width="165px" style="padding-top: 20px">
<el-form-item label="字典名称" prop="dictName">
......@@ -47,6 +55,7 @@ export default {
};
},
mounted() {
this.$emit('showTab', '/dictionary-list');
const dictId = this.$route.query.dictId;
if (dictId) {
this.getDictDetail(dictId);
......
......@@ -113,6 +113,7 @@ export default {
this.enterpriseId = enterpriseId;
this.getEnterpriseDetail();
this.$emit('updateBread', this.bread);
this.$emit('showTab', '/enterprise-list');
},
methods: {
getEnterpriseDetail() {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-03 10:08:57
* @LastEditors: 无尘
* @LastEditTime: 2020-10-27 16:33:47
* @LastEditTime: 2020-11-09 11:21:22
-->
<template>
<div style="padding: 20px">
......@@ -115,7 +115,7 @@ export default {
wxEnterpriseId: row.wxEnterpriseId,
accountName: userInfo.realName
};
window.open(`/hb-manage-web/auth/operation-login?wxEnterpriseId=${params.wxEnterpriseId}&nationCode=${params.nationCode}&phoneNumber=${params.phoneNumber}&accountId=${params.accountId}&accountName=${params.accountName}`, '_blank','noopener');
window.open(`/hb-manage-web/auth/operation-login?wxEnterpriseId=${params.wxEnterpriseId}&nationCode=${params.nationCode}&phoneNumber=${params.phoneNumber}&accountId=${params.accountId}&accountName=${params.accountName}`, '_blank', 'noopener');
},
// 获取企业列表
getEnterpriseList() {
......
<!--
* @Descripttion: 项目列表
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:15:16
* @LastEditors: 无尘
* @LastEditTime: 2020-11-25 14:35:19
-->
<template>
<div class="common-right">
<div class="m-b-20">
<el-input placeholder="请输入项目名称" maxlength="50" v-model="searchInput" class="w-279" prefix-icon="el-icon-search" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="项目名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
</el-table-column>
<el-table-column prop="" label="创建时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column prop="" label="操作">
<template slot-scope="scope">
<el-button type="text" @click="toSqlPage(scope.row)">SQL列表</el-button>
</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
</div>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/sql';
const { getProjectList } = fetch;
export default {
name: 'ProjectSql',
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getTableData();
},
// methods
methods: {
/**
* @description: 输入
* @param {Object} e
* @param {String} value
* @author: 无尘
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableData();
}, 500),
/**
* @description: 搜索清除
* @author: 无尘
*/
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 分页---页码变化
* @param {Number} val
* @author: 无尘
*/
handleSizeChange(val) {
const that = this;
that.currentPage = 1;
that.pageSize = val;
that.getTableData();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
* @author: 无尘
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableData();
},
/**
* @description: 获取项目列表
* @author: 无尘
*/
getTableData() {
const that = this;
that.loading = true;
const param = {
project: that.searchInput,
pageNum: that.currentPage,
pageSize: that.pageSize
};
getProjectList(param).then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount || 0;
})
.catch(function(error) {
that.loading = false;
});
},
/**
* @description: 跳转 sql 列表
* @param {Object} row
* @author: 无尘
*/
toSqlPage(row) {
const that = this;
that.$router.push(`/sql-list?sqlCheckProjectId=${row.sqlCheckProjectId}`);
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.w-279 {
width: 279px;
}
.m-b-20 {
margin-bottom: 20px;
}
</style>
<!--
* @Descripttion: 表列表
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:15:55
* @LastEditors: 无尘
* @LastEditTime: 2020-11-25 14:34:07
-->
<template>
<div class="common-right">
<div class="m-b-20">
<el-input placeholder="请输入表名称" maxlength="50" v-model="searchInput" class="w-279" prefix-icon="el-icon-search" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%'}">
<el-table-column label="表名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckTableName || '--' }}</template>
</el-table-column>
<el-table-column prop="" label="创建时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column prop="" label="操作">
<template slot-scope="scope">
<el-button type="text" @click="toSqlPage(scope.row)">SQL列表</el-button>
</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
</div>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/sql';
const { getTableList } = fetch;
export default {
name: 'TableSql',
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getTableData();
},
// methods
methods: {
/**
* @description: 输入
* @param {Object} e
* @param {String} value
* @author: 无尘
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableData();
}, 500),
/**
* @description: 搜索清除
* @author: 无尘
*/
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 分页---页码变化
* @param {Number} val
* @author: 无尘
*/
handleSizeChange(val) {
const that = this;
that.currentPage = 1;
that.pageSize = val;
that.getTableData();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
* @author: 无尘
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableData();
},
/**
* @description: 获取表列表
* @author: 无尘
*/
getTableData() {
const that = this;
that.loading = true;
const param = {
table: that.searchInput,
pageNum: that.currentPage,
pageSize: that.pageSize
};
getTableList(param).then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount || 0;
})
.catch(function(error) {
that.loading = false;
});
},
/**
* @description: 跳转 sql 列表
* @param {Object} row
* @author: 无尘
*/
toSqlPage(row) {
const that = this;
that.$router.push(`/sql-list?sqlCheckTableId=${row.sqlCheckTableId}`);
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.w-279 {
width: 279px;
}
</style>
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-08-03 10:09:36
* @LastEditTime: 2020-11-19 17:16:07
*/
const path = require("path");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment