|
@@ -70,6 +70,15 @@
|
|
|
<span>暂无数据</span>
|
|
<span>暂无数据</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ style="text-align: center"
|
|
|
|
|
+ background
|
|
|
|
|
+ layout="prev, pager, next"
|
|
|
|
|
+ :total="pages" @prev-click='upData'
|
|
|
|
|
+ @next-click="downData" @current-change="current_page">
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
<div class="launch">
|
|
<div class="launch">
|
|
|
<el-button type="primary" @click="launchLeave">发起留言</el-button>
|
|
<el-button type="primary" @click="launchLeave">发起留言</el-button>
|
|
@@ -92,25 +101,44 @@
|
|
|
activeNames: '', //折叠面板选中效果
|
|
activeNames: '', //折叠面板选中效果
|
|
|
activity: '1', //活动列表选中状态
|
|
activity: '1', //活动列表选中状态
|
|
|
options: [{
|
|
options: [{
|
|
|
- value: 'week',
|
|
|
|
|
- label: '最近一周'
|
|
|
|
|
- }, {
|
|
|
|
|
- value: 'oneMonth',
|
|
|
|
|
- label: '最近一个月'
|
|
|
|
|
- }, {
|
|
|
|
|
- value: 'threeMonth',
|
|
|
|
|
- label: '最近三个月'
|
|
|
|
|
|
|
+ value: 'week',
|
|
|
|
|
+ label: '最近一周'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ value: 'oneMonth',
|
|
|
|
|
+ label: '最近一个月'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ value: 'threeMonth',
|
|
|
|
|
+ label: '最近三个月'
|
|
|
}],
|
|
}],
|
|
|
problemType: '', //类
|
|
problemType: '', //类
|
|
|
knowLedgeBase: '', //知识库问答数据
|
|
knowLedgeBase: '', //知识库问答数据
|
|
|
problemName: '账号',//类名
|
|
problemName: '账号',//类名
|
|
|
- noBase: true , //无数据状态
|
|
|
|
|
- imgs:[],
|
|
|
|
|
|
|
+ noBase: true, //无数据状态
|
|
|
|
|
+ imgs: [],
|
|
|
url: 'http://kfadmin.bocai186.com', // 域名地址
|
|
url: 'http://kfadmin.bocai186.com', // 域名地址
|
|
|
// url: 'http://192.168.2.187:8090', // 域名地址
|
|
// url: 'http://192.168.2.187:8090', // 域名地址
|
|
|
|
|
+ pages: 0,
|
|
|
|
|
+ optionCont: "",
|
|
|
|
|
+ ledgedata: {}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ /******************上一页*****************/
|
|
|
|
|
+ upData(e) {
|
|
|
|
|
+ this.getLeave(e)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /*********************下一页******************/
|
|
|
|
|
+ downData(e) {
|
|
|
|
|
+ this.getLeave(e)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /*******************选择页数******************/
|
|
|
|
|
+ current_page(e) {
|
|
|
|
|
+ this.getLeave(e)
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 返回传值到父组件
|
|
// 返回传值到父组件
|
|
|
back() {
|
|
back() {
|
|
|
this.$emit('value', 10)
|
|
this.$emit('value', 10)
|
|
@@ -130,42 +158,47 @@
|
|
|
this.seltValue = value;
|
|
this.seltValue = value;
|
|
|
},
|
|
},
|
|
|
// 获取数据
|
|
// 获取数据
|
|
|
- getLeave(data) {
|
|
|
|
|
- this.$axios.post('/api/index/Message/index', data).then(res => {
|
|
|
|
|
|
|
+ getLeave(page, size = 5) {
|
|
|
|
|
+ this.ledgedata = {
|
|
|
|
|
+ time: this.optionCont,
|
|
|
|
|
+ key: this.crux,
|
|
|
|
|
+ type: this.problemName,
|
|
|
|
|
+ pageSize: size,
|
|
|
|
|
+ pageNumber: page,
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$axios.post('/api/index/Message/index', this.ledgedata).then(res => {
|
|
|
if (res.data.status === 1) {
|
|
if (res.data.status === 1) {
|
|
|
- // console.log('======获取数据=========', res.data.data);
|
|
|
|
|
|
|
+ console.log('======获取数据=========', res.data.data);
|
|
|
let _img;
|
|
let _img;
|
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
|
_img = res.data.data[i].images.split(",");
|
|
_img = res.data.data[i].images.split(",");
|
|
|
this.imgs.push(_img)
|
|
this.imgs.push(_img)
|
|
|
}
|
|
}
|
|
|
- // console.log(this.imgs,'123123');
|
|
|
|
|
|
|
|
|
|
- this.knowLedgeBase = res.data.data;
|
|
|
|
|
|
|
+ this.knowLedgeBase = res.data.data.list;
|
|
|
|
|
+ this.pages = res.data.data.total;
|
|
|
|
|
+
|
|
|
|
|
+ this.knowLedgeBase.length > 0 ? this.noBase = true : this.noBase = false;
|
|
|
|
|
|
|
|
- if(this.knowLedgeBase.length > 0) {
|
|
|
|
|
- this.noBase = true;
|
|
|
|
|
- } else {
|
|
|
|
|
- this.noBase = false;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 查询数据
|
|
// 查询数据
|
|
|
search() {
|
|
search() {
|
|
|
- let optionCont = '';
|
|
|
|
|
|
|
+ this.optionCont = '';
|
|
|
if (this.seltValue == '') {
|
|
if (this.seltValue == '') {
|
|
|
- optionCont = this.selt.value;
|
|
|
|
|
|
|
+ this.optionCont = this.selt.value;
|
|
|
} else {
|
|
} else {
|
|
|
- optionCont = this.seltValue;
|
|
|
|
|
|
|
+ this.optionCont = this.seltValue;
|
|
|
}
|
|
}
|
|
|
let data = {
|
|
let data = {
|
|
|
- time: optionCont,
|
|
|
|
|
|
|
+ time: this.optionCont,
|
|
|
key: this.crux,
|
|
key: this.crux,
|
|
|
type: this.problemName
|
|
type: this.problemName
|
|
|
}
|
|
}
|
|
|
- this.getLeave(data)
|
|
|
|
|
|
|
+ this.getLeave()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -179,14 +212,8 @@
|
|
|
} else {
|
|
} else {
|
|
|
optionCont = this.seltValue;
|
|
optionCont = this.seltValue;
|
|
|
}
|
|
}
|
|
|
- let data = {
|
|
|
|
|
- time: optionCont,
|
|
|
|
|
- key: this.crux,
|
|
|
|
|
- type: this.problemName
|
|
|
|
|
- }
|
|
|
|
|
- // console.log('1213',this.problemType)
|
|
|
|
|
- // 获取留言数据
|
|
|
|
|
- this.getLeave(data)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.getLeave(1)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -194,12 +221,14 @@
|
|
|
</script>
|
|
</script>
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
.title {
|
|
.title {
|
|
|
- float: left; width: 300px;
|
|
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ width: 300px;
|
|
|
overflow-y: hidden;
|
|
overflow-y: hidden;
|
|
|
word-break: keep-all;
|
|
word-break: keep-all;
|
|
|
- white-space:nowrap;
|
|
|
|
|
- text-overflow:ellipsis;
|
|
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.imgs {
|
|
.imgs {
|
|
|
margin: 20px 0;
|
|
margin: 20px 0;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -211,10 +240,12 @@
|
|
|
width: 100px;
|
|
width: 100px;
|
|
|
height: 100px;
|
|
height: 100px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.imgs li img {
|
|
.imgs li img {
|
|
|
width: 100px;
|
|
width: 100px;
|
|
|
height: 100px;
|
|
height: 100px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.text {
|
|
.text {
|
|
|
background: #f5f5f5;
|
|
background: #f5f5f5;
|
|
|
border: 1px solid #eee;
|
|
border: 1px solid #eee;
|
|
@@ -225,6 +256,7 @@
|
|
|
margin-right: 15px;
|
|
margin-right: 15px;
|
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.chatBox {
|
|
.chatBox {
|
|
|
width: 700px;
|
|
width: 700px;
|
|
|
}
|
|
}
|