Browse Source

10.23

master
lichong 5 months ago
parent
commit
4d00e83a3f
  1. 2
      front/package.json
  2. 265
      front/src/renderer/src/views/shujufenxi.vue

2
front/package.json

@ -1,6 +1,6 @@
{
"name": "electron",
"version": "1.0.11",
"version": "1.0.12",
"description": "An Electron application with Vue",
"main": "./out/main/index.js",
"author": "lichong",

265
front/src/renderer/src/views/shujufenxi.vue

@ -408,21 +408,7 @@ export default {
_: _,
dayjs: dayjs,
leftTextCopy: "",
leftText: `Ca@微信@微信联系人 10-22 12:55:10
一单一组体彩福彩988987298559591256795195836686845866886159合计56
Ca@微信@微信联系人 10-22 12:55:10
一单一组福988987298559591256795195836686845866886159合计56
Ca@微信@微信联系人 10-22 12:55:10
组六1234.12345.123456.1234567.共10米
组三1234.12345.123456.1234567共20米
双飞12.34.56.共10米
定位0百位2十位1个位共10米
全包对子100
Ca@微信@微信联系人 10-22 12:55:10
毒986共200米`,
leftText: `一单一组体彩福彩988,987,298,559,591,256,795,195,836,686,845,866,886,159,合计112`,
// leftText: `684,784,87612
// 7849616376
// 2143154
@ -447,6 +433,21 @@ Ca@微信@微信联系人 10-22 12:55:10
双飞98共10元
定位324共10元
全包对子共10元
Ca@微信@微信联系人 10-22 12:55:10
一单一组体彩福彩988987298559591256795195836686845866886159合计112
Ca@微信@微信联系人 10-22 12:55:10
一单一组福988987298559591256795195836686845866886159合计56
Ca@微信@微信联系人 10-22 12:55:10
组六1234.12345.123456.1234567.共40米
组三1234.12345.123456.1234567共40米
双飞12.34.56.共30米
定位0百位2十位1个位共30米
全包对子100
Ca@微信@微信联系人 10-22 12:55:10
毒986共200米
`,
// leftText: `684,784,87612
// 7849616376
@ -651,7 +652,7 @@ Ca@微信@微信联系人 10-22 12:55:10
haoma = _.compact(_.split(numbers, ","))
let danxuanList = []
let zuxuanList = []
if (jine % (type.length * haoma.length * 2 * 2) !== 0) {
if (jine % (haoma.length * 2 * 2) !== 0) {
errorText.push(itemTemp)
continue
}
@ -684,7 +685,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yizuliu)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -707,7 +708,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yizusan)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -729,7 +730,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yidu)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -753,7 +754,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yishuangfei)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -777,7 +778,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yidingwei)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -801,7 +802,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yibudingwei)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -825,7 +826,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yifushi)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -846,7 +847,7 @@ Ca@微信@微信联系人 10-22 12:55:10
}
// 1
else if (item.match(this.yiquanbaoduizi)) {
if (jine % (type.length * 10) !== 0) {
if (jine % (10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -866,7 +867,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yidan)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 2) !== 0) {
if (jine % (haoma.length * 2) !== 0) {
errorText.push(itemTemp)
continue
}
@ -890,7 +891,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yizu)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 2) !== 0) {
if (jine % (haoma.length * 2) !== 0) {
errorText.push(itemTemp)
continue
}
@ -979,8 +980,6 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
this.resultTitleti = 0
this.resultTitlefu = 0
let rightTableDataTemptiTempObj = _.groupBy(rightTableDataTemptiTemp, 'name')
let rightTableDataTemptiTempLocal = []
for (let key in rightTableDataTemptiTempObj) {
@ -1000,8 +999,8 @@ Ca@微信@微信联系人 10-22 12:55:10
children: textTemp
})
}
this.rightTableDataTempti = rightTableDataTemptiTempLocal
this.resultTitleti = _.sumBy(rightTableDataTemptiTempLocal, 'jine')
this.rightTableDataTempti = this.rightTableDataTempti.concat(rightTableDataTemptiTempLocal)
this.resultTitleti += _.sumBy(rightTableDataTemptiTempLocal, 'jine')
let rightTableDataTempfuTempObj = _.groupBy(rightTableDataTempfuTemp, 'name')
let rightTableDataTempfuTempLocal = []
for (let key in rightTableDataTempfuTempObj) {
@ -1021,14 +1020,13 @@ Ca@微信@微信联系人 10-22 12:55:10
children: textTemp
})
}
this.resultTitlefu = _.sumBy(rightTableDataTempfuTempLocal, 'jine')
this.rightTableDataTempfu = rightTableDataTempfuTempLocal
this.resultTitlefu += _.sumBy(rightTableDataTempfuTempLocal, 'jine')
this.rightTableDataTempfu = this.rightTableDataTempfu.concat(rightTableDataTempfuTempLocal)
let rightDataObj = _.groupBy(rightDataList, 'name')
this.rightTableDataTemp = rightDataList
let rightObj = {}
let rightTextTemp = `号码---------玩法---------金额\n`
this.rightTableData = []
this.resultTitle = 0
for (let key in rightDataObj) {
let value = rightDataObj[key]
@ -1139,19 +1137,6 @@ Ca@微信@微信联系人 10-22 12:55:10
},
//
midTongji() {
if (!this.changciValue) {
ElMessage.error("请选择场次")
return
}
let checkedList = this.dailishangList.filter(item => item.check)
if (!checkedList.length) {
ElMessage.error("请选择代理人")
return
}
if (!this.leftText) {
ElMessage.error("请填写内容后预测")
return
}
this.checkDailishangRaw = _.find(this.dailishangList, { check: true })
this.selectChangci = _.find(this.changciList, { value: this.changciValue })
// this.tongjiValue = this.leftTongji()
@ -1228,7 +1213,6 @@ Ca@微信@微信联系人 10-22 12:55:10
},
jietu() {
// this.screenshotStatus = true;//
let element = document.getElementById('screenshot1');
// display
@ -1239,17 +1223,25 @@ Ca@微信@微信联系人 10-22 12:55:10
// 使 html2canvas
html2canvas(element).then(canvas => {
// canvas URL
let imgData = canvas.toDataURL('image/png');
// canvas Blob
canvas.toBlob(blob => {
// ClipboardItem
const item = new ClipboardItem({
[blob.type]: blob
});
// a
let a = document.createElement('a');
a.href = imgData;
a.download = `${dayjs().format('YYYYMMDDHHmmss')}.png`;
a.click();
// Blob
navigator.clipboard.write([item]).then(() => {
//
console.log('截图成功');
}).catch(err => {
//
console.error('截图失败:', err);
});
// display
element.style.display = originalDisplay;
// display
element.style.display = originalDisplay;
}, 'image/png'); //
});
},
@ -1347,7 +1339,7 @@ Ca@微信@微信联系人 10-22 12:55:10
haoma = _.compact(_.split(numbers, ","))
let danxuanList = []
let zuxuanList = []
if (jine % (type.length * haoma.length * 2 * 2) !== 0) {
if (jine % (haoma.length * 2 * 2) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1380,7 +1372,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yizuliu)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1403,7 +1395,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yizusan)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1425,7 +1417,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yidu)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1449,7 +1441,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yishuangfei)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1473,7 +1465,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yidingwei)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1497,7 +1489,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yibudingwei)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1521,7 +1513,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yifushi)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 10) !== 0) {
if (jine % (haoma.length * 10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1542,7 +1534,7 @@ Ca@微信@微信联系人 10-22 12:55:10
}
// 1
else if (item.match(this.yiquanbaoduizi)) {
if (jine % (type.length * 10) !== 0) {
if (jine % (10) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1562,7 +1554,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yidan)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 2) !== 0) {
if (jine % (haoma.length * 2) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1586,7 +1578,7 @@ Ca@微信@微信联系人 10-22 12:55:10
let match = item.match(this.yizu)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
if (jine % (type.length * haoma.length * 2) !== 0) {
if (jine % (haoma.length * 2) !== 0) {
errorText.push(itemTemp)
continue
}
@ -1622,6 +1614,20 @@ Ca@微信@微信联系人 10-22 12:55:10
let zhonghaoma = `${selectChangci.first}${selectChangci.second}${selectChangci.third}`
//
// let selectdailifei = Number(checkDailishangRaw.dailifei / 100)
let haomaListTemp = _.cloneDeep(haomaList)
let newhaomaList = []
for (let k = 0; k < haomaListTemp.length; k++) {
let element = haomaListTemp[k];
for (let m = 0; m < element.type.length; m++) {
let typeItem = element.type[m];
newhaomaList.push({
name: element.name,
numbers: element.numbers,
type: typeItem
})
}
}
haomaList = _.cloneDeep(newhaomaList)
let alljine = []
let jinegroupBy = _.groupBy(haomaList, o => `${o.type}:${o.name}`)
for (let key in jinegroupBy) {
@ -1667,7 +1673,17 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
}
// 1
else if (element.key == 'zuxuan') {
@ -1689,7 +1705,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 4
else if (element.key == 'zuliu4') {
@ -1711,7 +1732,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 5
else if (element.key == 'zuliu5') {
@ -1733,7 +1759,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 6
else if (element.key == 'zuliu6') {
@ -1755,7 +1786,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 7
else if (element.key == 'zuliu7') {
@ -1777,7 +1813,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 4
else if (element.key == 'zusan4') {
@ -1799,7 +1840,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 5
else if (element.key == 'zusan5') {
@ -1821,7 +1867,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 6
else if (element.key == 'zusan6') {
@ -1843,7 +1894,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
// 7
else if (element.key == 'zusan7') {
@ -1865,7 +1921,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
//
else if (element.key == 'dudan') {
@ -1887,7 +1948,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
//
else if (element.key == 'dingwei') {
@ -1918,7 +1984,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
//
// else if (element.key == 'budingwei') {
@ -1946,7 +2017,12 @@ Ca@微信@微信联系人 10-22 12:55:10
// }
// }
// }
// alljineLocal[element.key] = dataObj
// if (alljineLocal[element.key]) {
// alljineLocal[element.key].all += dataObj.all
// alljineLocal[element.key].zhong += dataObj.zhong
// } else {
// alljineLocal[element.key] = dataObj
// }
// }
//
else if (element.key == 'shuangfei') {
@ -1974,7 +2050,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
//
else if (element.key == 'fushi') {
@ -2002,7 +2083,12 @@ Ca@微信@微信联系人 10-22 12:55:10
}
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
//
else if (element.key == 'quanbaoduizi') {
@ -2021,12 +2107,17 @@ Ca@微信@微信联系人 10-22 12:55:10
item["pei"] = -Number(item.jine) * Number(formData[element.key])
}
}
alljineLocal[element.key] = dataObj
if (alljineLocal[element.key]) {
alljineLocal[element.key].all += dataObj.all
alljineLocal[element.key].zhong += dataObj.zhong
} else {
alljineLocal[element.key] = dataObj
}
}
}
this.tongjiValue = 0
this.zhongjiangshuTotal = 0
this.zhongjiangshucount = 0
// this.tongjiValue = 0
// this.zhongjiangshuTotal = 0
// this.zhongjiangshucount = 0
for (let key in alljineLocal) {
this.tongjiValue += alljineLocal[key].all
this.zhongjiangshuTotal += alljineLocal[key].zhong
@ -2050,7 +2141,7 @@ Ca@微信@微信联系人 10-22 12:55:10
}
let alljineLocalGroupy = _.groupBy(alljineLocalListTemp, 'value')
let alljineLocalGroupyList = []
this.allhejialljineLocalTemp = 0
// this.allhejialljineLocalTemp = 0
for (let key in alljineLocalGroupy) {
let alljineLocalGroupyItem = {
value: key,

Loading…
Cancel
Save