diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
index 964678a..0900244 100644
--- a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
+++ b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
@@ -167,8 +167,9 @@
},
mounted() {
list().then((res) => {
- const str = res[26].detail;
- const str2 = res[27].detail;
+ console.log(res)
+ const str = res[25].detail;
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
this.modelList = this.dealAry(str);
});
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
index 964678a..0900244 100644
--- a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
+++ b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
@@ -167,8 +167,9 @@
},
mounted() {
list().then((res) => {
- const str = res[26].detail;
- const str2 = res[27].detail;
+ console.log(res)
+ const str = res[25].detail;
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
this.modelList = this.dealAry(str);
});
diff --git a/src/views/distributor/distributorList.vue b/src/views/distributor/distributorList.vue
index c899612..1695565 100644
--- a/src/views/distributor/distributorList.vue
+++ b/src/views/distributor/distributorList.vue
@@ -5,11 +5,11 @@
@@ -18,21 +18,14 @@
导出
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
index 964678a..0900244 100644
--- a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
+++ b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
@@ -167,8 +167,9 @@
},
mounted() {
list().then((res) => {
- const str = res[26].detail;
- const str2 = res[27].detail;
+ console.log(res)
+ const str = res[25].detail;
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
this.modelList = this.dealAry(str);
});
diff --git a/src/views/distributor/distributorList.vue b/src/views/distributor/distributorList.vue
index c899612..1695565 100644
--- a/src/views/distributor/distributorList.vue
+++ b/src/views/distributor/distributorList.vue
@@ -5,11 +5,11 @@
@@ -18,21 +18,14 @@
导出
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/login/index_2.vue b/src/views/login/index_2.vue
index ef21e99..5ef08a2 100644
--- a/src/views/login/index_2.vue
+++ b/src/views/login/index_2.vue
@@ -52,8 +52,8 @@
-
-
+
登录
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
index 964678a..0900244 100644
--- a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
+++ b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
@@ -167,8 +167,9 @@
},
mounted() {
list().then((res) => {
- const str = res[26].detail;
- const str2 = res[27].detail;
+ console.log(res)
+ const str = res[25].detail;
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
this.modelList = this.dealAry(str);
});
diff --git a/src/views/distributor/distributorList.vue b/src/views/distributor/distributorList.vue
index c899612..1695565 100644
--- a/src/views/distributor/distributorList.vue
+++ b/src/views/distributor/distributorList.vue
@@ -5,11 +5,11 @@
@@ -18,21 +18,14 @@
导出
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/login/index_2.vue b/src/views/login/index_2.vue
index ef21e99..5ef08a2 100644
--- a/src/views/login/index_2.vue
+++ b/src/views/login/index_2.vue
@@ -52,8 +52,8 @@
-
-
+
登录
diff --git a/src/views/move/hotAndNews.vue b/src/views/move/hotAndNews.vue
index 488c26d..6b18471 100644
--- a/src/views/move/hotAndNews.vue
+++ b/src/views/move/hotAndNews.vue
@@ -5,76 +5,35 @@
-
+
查询
-
+
重置
-
+
新增
-
+
删除
-
+
@@ -83,13 +42,8 @@
-
+
@@ -108,22 +62,10 @@
-
+
-
+
@@ -157,7 +99,8 @@
},
mounted() {
list().then((res) => {
- const str2 = res[27].detail;
+ console.log(res)
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
});
},
@@ -196,11 +139,12 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (offset - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
+ res.rows = res.rows.map((item, index) => {
+ return {
...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(3, item.recommendContent.length - 7)
}
})
this.tableData = res;
@@ -217,13 +161,14 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (1 - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
- ...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
- }
- })
+ res.rows = res.rows.map((item, index) => {
+ return {
+ ...item,
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(2, item.recommendContent.length - 3)
+ }
+ })
this.tableData = res;
});
},
@@ -242,14 +187,14 @@
ids.push(ele.id);
});
batchDelete({ ids: ids }).then((res) => {
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
})
- .catch(() => {});
+ .catch(() => { });
} else {
this.$message.error("请选择需要删除的数据");
}
@@ -264,11 +209,11 @@
const id = row.id;
bdelete({ id: id }).then((res) => {
// 删除成功跟新数据
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
});
},
@@ -282,25 +227,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 0px 0px 30px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -311,6 +262,7 @@
}
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
index 964678a..0900244 100644
--- a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
+++ b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
@@ -167,8 +167,9 @@
},
mounted() {
list().then((res) => {
- const str = res[26].detail;
- const str2 = res[27].detail;
+ console.log(res)
+ const str = res[25].detail;
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
this.modelList = this.dealAry(str);
});
diff --git a/src/views/distributor/distributorList.vue b/src/views/distributor/distributorList.vue
index c899612..1695565 100644
--- a/src/views/distributor/distributorList.vue
+++ b/src/views/distributor/distributorList.vue
@@ -5,11 +5,11 @@
@@ -18,21 +18,14 @@
导出
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/login/index_2.vue b/src/views/login/index_2.vue
index ef21e99..5ef08a2 100644
--- a/src/views/login/index_2.vue
+++ b/src/views/login/index_2.vue
@@ -52,8 +52,8 @@
-
-
+
登录
diff --git a/src/views/move/hotAndNews.vue b/src/views/move/hotAndNews.vue
index 488c26d..6b18471 100644
--- a/src/views/move/hotAndNews.vue
+++ b/src/views/move/hotAndNews.vue
@@ -5,76 +5,35 @@
-
+
查询
-
+
重置
-
+
新增
-
+
删除
-
+
@@ -83,13 +42,8 @@
-
+
@@ -108,22 +62,10 @@
-
+
-
+
@@ -157,7 +99,8 @@
},
mounted() {
list().then((res) => {
- const str2 = res[27].detail;
+ console.log(res)
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
});
},
@@ -196,11 +139,12 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (offset - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
+ res.rows = res.rows.map((item, index) => {
+ return {
...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(3, item.recommendContent.length - 7)
}
})
this.tableData = res;
@@ -217,13 +161,14 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (1 - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
- ...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
- }
- })
+ res.rows = res.rows.map((item, index) => {
+ return {
+ ...item,
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(2, item.recommendContent.length - 3)
+ }
+ })
this.tableData = res;
});
},
@@ -242,14 +187,14 @@
ids.push(ele.id);
});
batchDelete({ ids: ids }).then((res) => {
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
})
- .catch(() => {});
+ .catch(() => { });
} else {
this.$message.error("请选择需要删除的数据");
}
@@ -264,11 +209,11 @@
const id = row.id;
bdelete({ id: id }).then((res) => {
// 删除成功跟新数据
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
});
},
@@ -282,25 +227,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 0px 0px 30px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -311,6 +262,7 @@
}
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/move/message.vue b/src/views/move/message.vue
index 94f52ad..8e27eac 100644
--- a/src/views/move/message.vue
+++ b/src/views/move/message.vue
@@ -190,7 +190,7 @@
editCategory(row){
console.log(row)
this.isShowAdd = true
- this.title = '消息推送编辑'
+ this.title = '消息推送详情'
this.$refs.addMessage.init(row)
},
// 批量删除
diff --git a/dist.zip b/dist.zip
index ecbaf13..792169b 100644
--- a/dist.zip
+++ b/dist.zip
Binary files differ
diff --git a/src/api/system/area.js b/src/api/system/area.js
index fcb9dd2..343579b 100644
--- a/src/api/system/area.js
+++ b/src/api/system/area.js
@@ -2,6 +2,7 @@
* 区域管理接口
*/
import request from '@/utils/request'
+
// 区域查询
export function getAreaListPage(params) {
return request({
@@ -43,7 +44,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: 'ext/dict/code/levelType',
+ url: 'sys/dict/code/levelType',
method: 'get'
})
}
diff --git a/src/components/echart/lineChart/gradientLineChart.vue b/src/components/echart/lineChart/gradientLineChart.vue
index 945f9af..140d4b0 100644
--- a/src/components/echart/lineChart/gradientLineChart.vue
+++ b/src/components/echart/lineChart/gradientLineChart.vue
@@ -98,7 +98,36 @@
label: {
fontSize: '16'
}
- }
+ },
+ position: function (point, params, dom, rect, size) {
+ // 提示框 限制在chart 图中
+ var x = 0; // x坐标位置
+ var y = 0; // y坐标位置
+
+ var pointX = point[0];
+ var pointY = point[1];
+
+ // 提示框大小
+ var boxWidth = size.contentSize[0];
+ var boxHeight = size.contentSize[1];
+
+ // boxWidth > pointX 说明鼠标左边放不下提示框
+ if (boxWidth > pointX) {
+ x = 25;
+ } else {
+ // 左边放的下
+ x = pointX - boxWidth;
+ }
+
+ if (boxHeight > pointY) {
+ y = 5;
+ } else {
+ // 上边放得下
+ y = pointY - boxHeight;
+ }
+ dom.style.transform = 'translateZ(0)' // 提示框被遮挡时可以设置
+ return [x, y];
+ },
},
xAxis: [
{
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 754c1dd..0e31049 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -141,7 +141,7 @@
{
paramName: '',
paramOrder: 0,
- paramRequire: '0'
+ paramRequire: 0
}
]
},
diff --git a/src/components/mycomponent/dialog/categoryInfoDialog.vue b/src/components/mycomponent/dialog/categoryInfoDialog.vue
index 08a9d09..66b5f95 100644
--- a/src/components/mycomponent/dialog/categoryInfoDialog.vue
+++ b/src/components/mycomponent/dialog/categoryInfoDialog.vue
@@ -23,7 +23,7 @@
参数{{ index+1 }}:
参数名称:{{ param.paramName }}
排序:{{ param.paramOrder }}
- 必填:{{ param.paramRequire?'是':'否' }}
+ 必填:{{ param.paramRequire === '0' ? '否' :'是' }}
diff --git a/src/components/mycomponent/dialog/deviceInfoDialog.vue b/src/components/mycomponent/dialog/deviceInfoDialog.vue
index 30149bc..0449f01 100644
--- a/src/components/mycomponent/dialog/deviceInfoDialog.vue
+++ b/src/components/mycomponent/dialog/deviceInfoDialog.vue
@@ -685,7 +685,7 @@
// 数据处理
this.rowInfo.deviceActive = this.dealstate(this.rowInfo.deviceActive)
this.rowInfo.deviceBindUser = this.dealstate(this.rowInfo.deviceBindUser)
-
+ this.rowInfo.deviceStatus = this.dealstate(this.rowInfo.deviceStatus)
this.rowInfo.businessExt.switchStatus = this.dealwitch(this.rowInfo.businessExt.switchStatus)
this.rowInfo.businessExt.oilPouringReminder = this.dealwitch(this.rowInfo.businessExt.oilPouringReminder)
})
diff --git a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
index 964678a..0900244 100644
--- a/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
+++ b/src/components/mycomponent/dialog/move/hotandNewsDialog.vue
@@ -167,8 +167,9 @@
},
mounted() {
list().then((res) => {
- const str = res[26].detail;
- const str2 = res[27].detail;
+ console.log(res)
+ const str = res[25].detail;
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
this.modelList = this.dealAry(str);
});
diff --git a/src/views/distributor/distributorList.vue b/src/views/distributor/distributorList.vue
index c899612..1695565 100644
--- a/src/views/distributor/distributorList.vue
+++ b/src/views/distributor/distributorList.vue
@@ -5,11 +5,11 @@
@@ -18,21 +18,14 @@
导出
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/login/index_2.vue b/src/views/login/index_2.vue
index ef21e99..5ef08a2 100644
--- a/src/views/login/index_2.vue
+++ b/src/views/login/index_2.vue
@@ -52,8 +52,8 @@
-
-
+
登录
diff --git a/src/views/move/hotAndNews.vue b/src/views/move/hotAndNews.vue
index 488c26d..6b18471 100644
--- a/src/views/move/hotAndNews.vue
+++ b/src/views/move/hotAndNews.vue
@@ -5,76 +5,35 @@
-
+
查询
-
+
重置
-
+
新增
-
+
删除
-
+
@@ -83,13 +42,8 @@
-
+
@@ -108,22 +62,10 @@
-
+
-
+
@@ -157,7 +99,8 @@
},
mounted() {
list().then((res) => {
- const str2 = res[27].detail;
+ console.log(res)
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
});
},
@@ -196,11 +139,12 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (offset - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
+ res.rows = res.rows.map((item, index) => {
+ return {
...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(3, item.recommendContent.length - 7)
}
})
this.tableData = res;
@@ -217,13 +161,14 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (1 - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
- ...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
- }
- })
+ res.rows = res.rows.map((item, index) => {
+ return {
+ ...item,
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(2, item.recommendContent.length - 3)
+ }
+ })
this.tableData = res;
});
},
@@ -242,14 +187,14 @@
ids.push(ele.id);
});
batchDelete({ ids: ids }).then((res) => {
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
})
- .catch(() => {});
+ .catch(() => { });
} else {
this.$message.error("请选择需要删除的数据");
}
@@ -264,11 +209,11 @@
const id = row.id;
bdelete({ id: id }).then((res) => {
// 删除成功跟新数据
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
});
},
@@ -282,25 +227,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 0px 0px 30px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -311,6 +262,7 @@
}
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/move/message.vue b/src/views/move/message.vue
index 94f52ad..8e27eac 100644
--- a/src/views/move/message.vue
+++ b/src/views/move/message.vue
@@ -190,7 +190,7 @@
editCategory(row){
console.log(row)
this.isShowAdd = true
- this.title = '消息推送编辑'
+ this.title = '消息推送详情'
this.$refs.addMessage.init(row)
},
// 批量删除
diff --git a/src/views/product/brandList.vue b/src/views/product/brandList.vue
index 652300f..d20a139 100644
--- a/src/views/product/brandList.vue
+++ b/src/views/product/brandList.vue
@@ -16,7 +16,7 @@
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/login/index_2.vue b/src/views/login/index_2.vue
index ef21e99..5ef08a2 100644
--- a/src/views/login/index_2.vue
+++ b/src/views/login/index_2.vue
@@ -52,8 +52,8 @@
-
-
+
登录
diff --git a/src/views/move/hotAndNews.vue b/src/views/move/hotAndNews.vue
index 488c26d..6b18471 100644
--- a/src/views/move/hotAndNews.vue
+++ b/src/views/move/hotAndNews.vue
@@ -5,76 +5,35 @@
-
+
查询
-
+
重置
-
+
新增
-
+
删除
-
+
@@ -83,13 +42,8 @@
-
+
@@ -108,22 +62,10 @@
-
+
-
+
@@ -157,7 +99,8 @@
},
mounted() {
list().then((res) => {
- const str2 = res[27].detail;
+ console.log(res)
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
});
},
@@ -196,11 +139,12 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (offset - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
+ res.rows = res.rows.map((item, index) => {
+ return {
...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(3, item.recommendContent.length - 7)
}
})
this.tableData = res;
@@ -217,13 +161,14 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (1 - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
- ...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
- }
- })
+ res.rows = res.rows.map((item, index) => {
+ return {
+ ...item,
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(2, item.recommendContent.length - 3)
+ }
+ })
this.tableData = res;
});
},
@@ -242,14 +187,14 @@
ids.push(ele.id);
});
batchDelete({ ids: ids }).then((res) => {
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
})
- .catch(() => {});
+ .catch(() => { });
} else {
this.$message.error("请选择需要删除的数据");
}
@@ -264,11 +209,11 @@
const id = row.id;
bdelete({ id: id }).then((res) => {
// 删除成功跟新数据
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
});
},
@@ -282,25 +227,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 0px 0px 30px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -311,6 +262,7 @@
}
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/move/message.vue b/src/views/move/message.vue
index 94f52ad..8e27eac 100644
--- a/src/views/move/message.vue
+++ b/src/views/move/message.vue
@@ -190,7 +190,7 @@
editCategory(row){
console.log(row)
this.isShowAdd = true
- this.title = '消息推送编辑'
+ this.title = '消息推送详情'
this.$refs.addMessage.init(row)
},
// 批量删除
diff --git a/src/views/product/brandList.vue b/src/views/product/brandList.vue
index 652300f..d20a139 100644
--- a/src/views/product/brandList.vue
+++ b/src/views/product/brandList.vue
@@ -16,7 +16,7 @@
-
+
-
-
+
+
{{ (offset - 1) * limit + scope.$index + 1 }}
@@ -42,7 +35,10 @@
- {{ scope.row.companyProvince }} / {{ scope.row.companyCity }} / {{ scope.row.companyArea }} / {{ scope.row.companyAddress }}
+ {{ (scope.row.companyProvince === scope.row.companyCity ?
+ scope.row.companyCity +'/'+ scope.row.companyArea +'/'+ scope.row.companyAddress :
+ scope.row.companyProvince +'/'+ scope.row.companyCity +'/'+ scope.row.companyArea+'/'+ scope.row.companyAddress)
+ }}
@@ -55,7 +51,8 @@
-
+
@@ -91,16 +88,16 @@
// 获取指定页面
getListPage(limit = 10, offset = 1) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
this.tableData = res
})
},
- search(limit, offset){
+ search(limit, offset) {
listPage(`limit=${limit}&offset=${offset}`, this.selectInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * limit)
})
@@ -128,7 +125,18 @@
});
listPage(`limit=100000000&offset=1`, {})
.then((res) => {
- outToExcel(res.rows);
+ res.rows = res.rows.map((item, index) => {
+ return {
+ 序号: index + 1,
+ 经销商编号: item.distributorCode,
+ 经销商名称: item.distributorName,
+ 单位性质: item.companyNatureName,
+ 企业类型: item.companyTypeName,
+ 详细地址: item.companyProvince === item.companyCity ? (item.companyProvince + item.companyCity + item.companyArea+ item.companyAddress) : (item.companyCity + item.companyArea+item.companyAddress)
+ }
+
+ })
+ outToExcel(res.rows, '经销商列表');
loading.close(); // 关闭加载动画
this.$message({
message: "导出成功",
@@ -153,25 +161,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 10px 20px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -183,6 +197,7 @@
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/login/index_2.vue b/src/views/login/index_2.vue
index ef21e99..5ef08a2 100644
--- a/src/views/login/index_2.vue
+++ b/src/views/login/index_2.vue
@@ -52,8 +52,8 @@
-
-
+
登录
diff --git a/src/views/move/hotAndNews.vue b/src/views/move/hotAndNews.vue
index 488c26d..6b18471 100644
--- a/src/views/move/hotAndNews.vue
+++ b/src/views/move/hotAndNews.vue
@@ -5,76 +5,35 @@
-
+
查询
-
+
重置
-
+
新增
-
+
删除
-
+
@@ -83,13 +42,8 @@
-
+
@@ -108,22 +62,10 @@
-
+
-
+
@@ -157,7 +99,8 @@
},
mounted() {
list().then((res) => {
- const str2 = res[27].detail;
+ console.log(res)
+ const str2 = res[26].detail;
this.typeList = this.dealAry(str2);
});
},
@@ -196,11 +139,12 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (offset - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
+ res.rows = res.rows.map((item, index) => {
+ return {
...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(3, item.recommendContent.length - 7)
}
})
this.tableData = res;
@@ -217,13 +161,14 @@
res.rows.forEach((item, index) => {
item.index = index + 1 + (1 - 1) * 10;
});
- res.rows = res.rows.map((item, index) =>{
- return{
- ...item,
- recommendPicture: "http://111.198.10.15:21403/static/" + item.recommendPicture,
- publishTime:item.publishTime.split(' ')[0]
- }
- })
+ res.rows = res.rows.map((item, index) => {
+ return {
+ ...item,
+ recommendPicture: item.recommendPicture ? "http://111.198.10.15:21403/static/" + item.recommendPicture : '',
+ publishTime: item.publishTime.split(' ')[0],
+ recommendContent: item.recommendContent.substr(2, item.recommendContent.length - 3)
+ }
+ })
this.tableData = res;
});
},
@@ -242,14 +187,14 @@
ids.push(ele.id);
});
batchDelete({ ids: ids }).then((res) => {
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
})
- .catch(() => {});
+ .catch(() => { });
} else {
this.$message.error("请选择需要删除的数据");
}
@@ -264,11 +209,11 @@
const id = row.id;
bdelete({ id: id }).then((res) => {
// 删除成功跟新数据
- this.$message({
- message: "删除成功",
- type: "success",
- });
- this.refresh();
+ this.$message({
+ message: "删除成功",
+ type: "success",
+ });
+ this.refresh();
});
});
},
@@ -282,25 +227,31 @@
width: 100%;
min-height: 700px;
overflow: auto;
+
.productData {
width: 100%;
display: flex;
justify-content: center;
+
.middle {
margin: 0 30px;
}
}
+
.productFun {
margin: 0px 0px 30px;
display: flex;
justify-content: space-between;
+
.productInput {
display: flex;
align-items: center;
+
.inputBox {
margin: 0 50px 0 10px;
}
}
+
.productBtn {
.btnItem {
margin-right: 10px;
@@ -311,6 +262,7 @@
}
}
}
+
.footer {
display: flex;
justify-content: space-between;
diff --git a/src/views/move/message.vue b/src/views/move/message.vue
index 94f52ad..8e27eac 100644
--- a/src/views/move/message.vue
+++ b/src/views/move/message.vue
@@ -190,7 +190,7 @@
editCategory(row){
console.log(row)
this.isShowAdd = true
- this.title = '消息推送编辑'
+ this.title = '消息推送详情'
this.$refs.addMessage.init(row)
},
// 批量删除
diff --git a/src/views/product/brandList.vue b/src/views/product/brandList.vue
index 652300f..d20a139 100644
--- a/src/views/product/brandList.vue
+++ b/src/views/product/brandList.vue
@@ -16,7 +16,7 @@
@@ -177,6 +120,7 @@
import { SelectList } from '../../api/product/brand'
import { exportFile } from '@/utils/exportutils'
import { export_json_to_excel } from "../../utils/Export2Excel";
+import { outToExcel } from '../../utils/myUtils/exportToExcel'
export default {
components: {
DataInfoItem,
@@ -242,7 +186,7 @@
getListPage(limit, offset) {
this.loading = true
d_listPage(`limit=${limit}&offset=${offset}`, this.queryInfo).then(res => {
- // 得到相关数据
+ // 得到相关数据
res.rows.forEach((item, index) => {
item.index = (index + 1) + ((offset - 1) * 10)
})
@@ -305,86 +249,72 @@
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
- d_listExport(this.selectInfo).then(res => {
- loading.close() // 关闭加载动画
- const blob = new Blob([res.data])
- let fileName = '设备列表.xlsx'
- fileName = fileName.replace(/-|:| /g, '')
- exportFile(blob, fileName)
- })
- // d_listPage("offset=1", {}).then((res) => {
- // console.log(res.rows, "全部数据");
- // 对数据进行加工
- // res.rows = res.rows.map((item) => {
- // return {
- // 产品名称: item.productName,
- // 产品品牌: item.brandName,
- // 产品型号: item.productCode,
- // 产品品类: item.categoryStr,
- // 产品颜色: item.productColor,
- // 产品材质: item.productMaterialQuality,
- // 产品状态: item.productStatus,
- // 产品版本: item.productEdition,
- // 规格: item.productPackageSize,
- // 重量: item.productWeight,
- // 国际69码: item.internationalCode,
- // 更新时间: item.updateTime,
- // };
- // });
- // this.ExportTable = res.rows;
- // const header = Object.keys(res.rows[0]);
- // console.log(header);
- // const data = res.rows.map((user, index) => {
- // const userArr = [];
- // console.log(user, index);
- // for (const key in res.rows[0]) {
- // // console.log(res.rows[key]);
- // const item = user[key];
- // userArr.push(item);
- // }
- // return userArr;
- // });
- // console.log(data);
- // // //把定义好的header和data放进export_json_to_excel的函数里作为参数
- // export_json_to_excel({
- // header,
- // data,
- // filename: "设备列表",
- // });
- // });
+ d_listPage(`limit=100000000&offset=1`, {})
+ .then((res) => {
+ res.rows = res.rows.map((item,index) => {
+ return {
+ 序号:index + 1,
+ SN码:item.snCode,
+ 设备品牌:item.brandName,
+ 设备型号:item.productCode,
+ 生产日期:item.createTime,
+ 设备状态:item.deviceStatus == '1' ? '在线' : '离线' ,
+ 激活时间:item.deviceActiveTime,
+ 是否激活:item.deviceActive == '1' ? '是' : '否',
+ 是否用户绑定设备: item.deviceBindUser == '1' ? '是' : '否'
+ }
+ })
+ outToExcel(res.rows, '设备列表')
+ loading.close() // 关闭加载动画
+ this.$message({
+ message: '导出成功',
+ type: 'success'
+ })
+ }).catch(error => {
+ loading.close() // 关闭加载动画
+ this.$message({
+ message: error.message,
+ type: 'error'
+ })
+ })
}
}
}