Commit eee15d58 by 杨明

fixed

1 parent 35b63cd0
...@@ -1494,6 +1494,43 @@ ...@@ -1494,6 +1494,43 @@
} }
} }
}, },
"@vue/compiler-sfc": {
"version": "2.7.10",
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.10.tgz",
"integrity": "sha512-55Shns6WPxlYsz4WX7q9ZJBL77sKE1ZAYNYStLs6GbhIOMrNtjMvzcob6gu3cGlfpCR4bT7NXgyJ3tly2+Hx8Q==",
"requires": {
"@babel/parser": "^7.18.4",
"postcss": "^8.4.14",
"source-map": "^0.6.1"
},
"dependencies": {
"@babel/parser": {
"version": "7.18.13",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.13.tgz",
"integrity": "sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg=="
},
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
},
"postcss": {
"version": "8.4.16",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz",
"integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==",
"requires": {
"nanoid": "^3.3.4",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
}
}
},
"@vue/component-compiler-utils": { "@vue/component-compiler-utils": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.0.tgz",
...@@ -3779,6 +3816,11 @@ ...@@ -3779,6 +3816,11 @@
"css-tree": "1.0.0-alpha.37" "css-tree": "1.0.0-alpha.37"
} }
}, },
"csstype": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
},
"current-script-polyfill": { "current-script-polyfill": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz", "resolved": "https://registry.npmjs.org/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz",
...@@ -3812,7 +3854,7 @@ ...@@ -3812,7 +3854,7 @@
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
"integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=", "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",
"dev": true "dev": true
}, },
"debug": { "debug": {
...@@ -4315,6 +4357,19 @@ ...@@ -4315,6 +4357,19 @@
"integrity": "sha512-QrvAIyfIVMxakBzfnoamzSuVP4xs6UpaPmshuz7PogSzC31K0us46gqYPf/UjjP+mYC+i02LROg8UgxF814oig==", "integrity": "sha512-QrvAIyfIVMxakBzfnoamzSuVP4xs6UpaPmshuz7PogSzC31K0us46gqYPf/UjjP+mYC+i02LROg8UgxF814oig==",
"dev": true "dev": true
}, },
"element-ui": {
"version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz",
"integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
},
"elliptic": { "elliptic": {
"version": "6.5.2", "version": "6.5.2",
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz",
...@@ -6052,9 +6107,9 @@ ...@@ -6052,9 +6107,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.4.8", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.4.8.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-tAIAWdOnHRuyzqz28UnuHQBv/+qWEfTBbEUwB8lwXpyO3eP7ytZwdmqnDOZ8KDaMuzJPfYgNc/aqczrGtyAdNg==", "integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
...@@ -6067,19 +6122,6 @@ ...@@ -6067,19 +6122,6 @@
"version": "3.24.1", "version": "3.24.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.24.1.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.24.1.tgz",
"integrity": "sha512-0QTBSYSUZ6Gq21utGzkfITDylE8jWC9Ne1D2MrhvlsZBI1x39OdDIVbzSqtgMndIy6BlHxBXpMGqzZmnztg2rg==" "integrity": "sha512-0QTBSYSUZ6Gq21utGzkfITDylE8jWC9Ne1D2MrhvlsZBI1x39OdDIVbzSqtgMndIy6BlHxBXpMGqzZmnztg2rg=="
},
"element-ui": {
"version": "2.15.9",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz",
"integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
} }
} }
}, },
...@@ -7961,6 +8003,11 @@ ...@@ -7961,6 +8003,11 @@
"integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==",
"dev": true "dev": true
}, },
"nanoid": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
"integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw=="
},
"nanomatch": { "nanomatch": {
"version": "1.2.13", "version": "1.2.13",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
...@@ -10810,6 +10857,11 @@ ...@@ -10810,6 +10857,11 @@
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
"dev": true "dev": true
}, },
"source-map-js": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="
},
"source-map-resolve": { "source-map-resolve": {
"version": "0.5.3", "version": "0.5.3",
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
...@@ -11915,9 +11967,13 @@ ...@@ -11915,9 +11967,13 @@
"dev": true "dev": true
}, },
"vue": { "vue": {
"version": "2.6.11", "version": "2.7.10",
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz", "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.10.tgz",
"integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==" "integrity": "sha512-HmFC70qarSHPXcKtW8U8fgIkF6JGvjEmDiVInTkKZP0gIlEPhlVlcJJLkdGIDiNkIeA2zJPQTWJUI4iWe+AVfg==",
"requires": {
"@vue/compiler-sfc": "2.7.10",
"csstype": "^3.1.0"
}
}, },
"vue-cli-plugin-element": { "vue-cli-plugin-element": {
"version": "1.0.1", "version": "1.0.1",
...@@ -11982,13 +12038,13 @@ ...@@ -11982,13 +12038,13 @@
} }
}, },
"vue-template-compiler": { "vue-template-compiler": {
"version": "2.6.11", "version": "2.7.10",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.11.tgz", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.10.tgz",
"integrity": "sha512-KIq15bvQDrcCjpGjrAhx4mUlyyHfdmTaoNfeoATHLAiWB+MU3cx4lOzMwrnUh9cCxy0Lt1T11hAFY6TQgroUAA==", "integrity": "sha512-QO+8R9YRq1Gudm8ZMdo/lImZLJVUIAM8c07Vp84ojdDAf8HmPJc7XB556PcXV218k2AkKznsRz6xB5uOjAC4EQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"de-indent": "^1.0.2", "de-indent": "^1.0.2",
"he": "^1.1.0" "he": "^1.2.0"
} }
}, },
"vue-template-es2015-compiler": { "vue-template-es2015-compiler": {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"core-js": "^3.4.4", "core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.8", "glsx-components": "^1.5.2",
"glsx-table": "^1.0.9" "glsx-table": "^1.0.9"
}, },
"devDependencies": { "devDependencies": {
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"prettier": "^1.19.1", "prettier": "^1.19.1",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.7.10"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
......
/* /*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-01-11 18:42:34
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-08-29 15:18:21
* @FilePath: \scrm-micro-home\src\api\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/*
所有模块都定义在 modules 所有模块都定义在 modules
|-modules |-modules
|----demo.js |----demo.js
......
...@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616d28231072f92988f059fb/home/config') return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
return new Http().get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -111,8 +111,7 @@ ...@@ -111,8 +111,7 @@
</div> </div>
</div> </div>
</div> </div>
<GLDialog mode="small" okText="去关联" @onOk="jumpStore" @onCancel="dialogVisible=false" content="您需先创建门店并且门店关联企业微信后,方可正常使用!" :visible.sync="dialogVisible"> <GLDialog mode="small" okText="去关联" @onOk="jumpStore" @onCancel="dialogVisible = false" content="您需先创建门店并且门店关联企业微信后,方可正常使用!" :visible.sync="dialogVisible"></GLDialog>
</GLDialog>
</div> </div>
</template> </template>
...@@ -178,14 +177,16 @@ export default { ...@@ -178,14 +177,16 @@ export default {
dataEndDateStr dataEndDateStr
}) })
.then(res => { .then(res => {
this.outputRank = res if (res) {
this.totalOutputValueMax = 0 this.outputRank = res
this.averageValue = res ? res[0].averageValue : 0 this.totalOutputValueMax = 0
this.outputRank.forEach(item => { this.averageValue = res.length ? res[0].averageValue : 0
if (item.totalOutputValue >= this.totalOutputValueMax) { this.outputRank.forEach(item => {
this.totalOutputValueMax = item.totalOutputValue ? item.totalOutputValue : 1 if (item.totalOutputValue >= this.totalOutputValueMax) {
} this.totalOutputValueMax = item.totalOutputValue ? item.totalOutputValue : 1
}) }
})
}
}) })
}, },
//排名 //排名
...@@ -195,27 +196,28 @@ export default { ...@@ -195,27 +196,28 @@ export default {
sortType: this.radioStore sortType: this.radioStore
}) })
.then(res => { .then(res => {
this.custSortList = res.custSortList ? res.custSortList : [] if (res) {
this.custAvergCount = res.custAvergCount this.custSortList = res.custSortList ? res.custSortList : []
let modelStatus this.custAvergCount = res.custAvergCount
if (this.$globalState.session.merchantModel == 1 && this.$globalState.session.accountLevel == 1 && sessionStorage.getItem('wxAcess')) { let modelStatus
modelStatus = true if (this.$globalState.session.merchantModel == 1 && this.$globalState.session.accountLevel == 1 && sessionStorage.getItem('wxAcess')) {
} modelStatus = true
if (this.$globalState.session.merchantModel == 2 && this.$globalState.session.accountLevel == 4 && sessionStorage.getItem('wxAcess')) {
modelStatus = true
}
if (this.custSortList.length == 0 && !sessionStorage.getItem('firstStatus') && modelStatus) {
this.dialogVisible = true
sessionStorage.setItem('firstStatus', 1)
return
}
this.custSortMax = 0
this.custSortList.forEach(item => {
if (item.custCount >= this.custSortMax) {
this.custSortMax = item.custCount ? item.custCount : 1
} }
}) if (this.$globalState.session.merchantModel == 2 && this.$globalState.session.accountLevel == 4 && sessionStorage.getItem('wxAcess')) {
console.log(this.custSortMax) modelStatus = true
}
if (this.custSortList.length == 0 && !sessionStorage.getItem('firstStatus') && modelStatus) {
this.dialogVisible = true
sessionStorage.setItem('firstStatus', 1)
return
}
this.custSortMax = 0
this.custSortList.forEach(item => {
if (item.custCount >= this.custSortMax) {
this.custSortMax = item.custCount ? item.custCount : 1
}
})
}
}) })
} }
}, },
...@@ -227,7 +229,7 @@ export default { ...@@ -227,7 +229,7 @@ export default {
this.getOutput() this.getOutput()
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.dialog-panel { .dialog-panel {
...@@ -242,9 +244,9 @@ export default { ...@@ -242,9 +244,9 @@ export default {
} }
} }
.summary-ranking-panel { .summary-ranking-panel {
/deep/ .btn-three { /deep/ .btn-three {
display: none; display: none;
} }
display: flex; display: flex;
.summary-ranking-box { .summary-ranking-box {
width: 50%; width: 50%;
...@@ -407,4 +409,4 @@ export default { ...@@ -407,4 +409,4 @@ export default {
height: 32px; height: 32px;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-tab-pane label="任务记录" :name="2"></el-tab-pane> <el-tab-pane label="任务记录" :name="2"></el-tab-pane>
</el-tabs> </el-tabs>
<ai-tabel :activeIndex="activeIndex" ref="AiForm"></ai-tabel> <ai-tabel :activeIndex="activeIndex" ref="AiForm"></ai-tabel>
<GLDialog title="创建任务" okText="创建" v-loading="loading" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible"> <GLDialog title="创建任务" okText="创建" class="gl-form-page gl-form-min" v-loading="loading" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible">
<el-form ref="addForm" class="code-body-form" label-width="120px"> <el-form ref="addForm" class="code-body-form" label-width="120px">
<div class="el-form-item is-required el-form-item--small"> <div class="el-form-item is-required el-form-item--small">
<label for="remark" class="el-form-item__label" style="width: 120px;">任务名称:</label> <label for="remark" class="el-form-item__label" style="width: 120px;">任务名称:</label>
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
}, },
methods: { methods: {
handleImport() { handleImport() {
util.openUrl(this.ImportResult.errUrl) util.openUrl(this.ImportResult.errUrl.replace(/https?:/, ''))
}, },
handleAdd() { handleAdd() {
this.staffInfo = [] this.staffInfo = []
......
...@@ -98,7 +98,8 @@ export default { ...@@ -98,7 +98,8 @@ export default {
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdTime' prop: 'createdTime',
minWidth: 180
}, },
{ {
label: '操作', label: '操作',
...@@ -141,7 +142,7 @@ export default { ...@@ -141,7 +142,7 @@ export default {
{ {
label: '提交时间', label: '提交时间',
prop: 'submitTime', prop: 'submitTime',
width: 170 width: 180
}, },
{ {
label: '操作', label: '操作',
......
...@@ -182,15 +182,15 @@ ...@@ -182,15 +182,15 @@
</div> </div>
</div> </div>
</div> </div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible"> <GLDialog title="提示" class="gl-form-min gl-form-page" @onOk="handleSure" @onCancel="dialogVisible = false" :visible.sync="dialogVisible">
<el-form ref="addForm" :model="addForm" class="code-body-form" label-width="120px" :rules="addRules"> <el-form ref="addForm" :model="addForm" class="code-body-form" label-width="120px" :rules="addRules">
<el-form-item label="号码备注" prop="remark" size="small" class="form-w40"> <el-form-item label="号码备注:" prop="remark" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.remark" placeholder="请输入号码备注" maxlength="6"></el-input> <el-input size="small" v-model.trim="addForm.remark" placeholder="请输入号码备注" maxlength="6"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系方式" prop="contactInformation" size="small" class="form-w40"> <el-form-item label="联系方式:" prop="contactInformation" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.contactInformation" placeholder="请输入联系方式" maxlength="15"></el-input> <el-input size="small" v-model.trim="addForm.contactInformation" placeholder="请输入联系方式" maxlength="15"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="同步到卡片" prop="configName" size="small" class="form-w40"> <el-form-item label="同步到卡片:" prop="configName" size="small" class="form-w40">
<el-switch v-model="addForm.isShow" :active-value="0" :inactive-value="-1"></el-switch> <el-switch v-model="addForm.isShow" :active-value="0" :inactive-value="-1"></el-switch>
</el-form-item> </el-form-item>
</el-form> </el-form>
......
...@@ -120,14 +120,16 @@ export default { ...@@ -120,14 +120,16 @@ export default {
this.loading = true this.loading = true
this.$apis.home.viewData({}).then(res => { this.$apis.home.viewData({}).then(res => {
this.loading = false this.loading = false
const { purchaseCustomerCount, waitMatchCustomerAddCount, purchaseCustomerAddCount, purchaseCustomerAddPercent, waitMatchPercent, entmicroAddCustomerCount, customerCount } = res if (res) {
this.purchaseCustomerCount = purchaseCustomerCount const { purchaseCustomerCount, waitMatchCustomerAddCount, purchaseCustomerAddCount, purchaseCustomerAddPercent, waitMatchPercent, entmicroAddCustomerCount, customerCount } = res
this.waitMatchCustomerAddCount = waitMatchCustomerAddCount this.purchaseCustomerCount = purchaseCustomerCount
this.purchaseCustomerAddCount = purchaseCustomerAddCount this.waitMatchCustomerAddCount = waitMatchCustomerAddCount
this.purchaseCustomerAddPercent = (purchaseCustomerAddPercent * 100).toFixed(2) this.purchaseCustomerAddCount = purchaseCustomerAddCount
this.waitMatchPercent = waitMatchPercent.toFixed(2) this.purchaseCustomerAddPercent = (purchaseCustomerAddPercent * 100).toFixed(2)
this.entmicroAddCustomerCount = entmicroAddCustomerCount this.waitMatchPercent = waitMatchPercent.toFixed(2)
this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0 this.entmicroAddCustomerCount = entmicroAddCustomerCount
this.entmicroAddCustomerCountPercent = customerCount ? ((100 * this.entmicroAddCustomerCount) / customerCount).toFixed(2) : 0
}
}) })
} }
}, },
......
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
//折线图 //折线图
async getChart() { async getChart() {
this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then(res => { this.$apis.home.getChart({ day: 30, date: this.summaryTime }).then(res => {
const { custAddList, custEntmicroAdds, custLoseList } = res const { custAddList, custEntmicroAdds, custLoseList } = res ? res : { custAddList: [], custEntmicroAdds: [], custLoseList: [] }
let custAddListData = custAddList.map(item => { let custAddListData = custAddList.map(item => {
return item.customerCount return item.customerCount
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!