flat: 暂存
This commit is contained in:
@@ -196,7 +196,7 @@ export default {
|
|||||||
if(!this.rowData) return
|
if(!this.rowData) return
|
||||||
this.getLeftServeList()
|
this.getLeftServeList()
|
||||||
this.getLeftUserList()
|
this.getLeftUserList()
|
||||||
this.getRightListPolicy()
|
// this.getRightListPolicy()
|
||||||
},
|
},
|
||||||
onPageInit() {
|
onPageInit() {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
@@ -224,6 +224,7 @@ export default {
|
|||||||
this.rightTabs = type
|
this.rightTabs = type
|
||||||
this.rightDataSelections = []
|
this.rightDataSelections = []
|
||||||
type === 0 && this.getRightListPolicy()
|
type === 0 && this.getRightListPolicy()
|
||||||
|
type === 1 && this.getRightSearch()
|
||||||
},
|
},
|
||||||
searchInputChange: debounce(function (val) {
|
searchInputChange: debounce(function (val) {
|
||||||
this.getRightSearch()
|
this.getRightSearch()
|
||||||
@@ -298,26 +299,35 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getRightSearch() {
|
async getRightSearch() {
|
||||||
let params = {keywords: this.searchInput}
|
let params = {keywords: this.searchInput || '1'}
|
||||||
|
const createTime = Date.now() + 5000
|
||||||
this.rightLoading = true
|
this.rightLoading = true
|
||||||
let resData = await getSearchAll(params)
|
let resData = await getSearchAll(params)
|
||||||
this.rightLoading = false
|
|
||||||
if(resData.data.code === 200){
|
if(resData.data.code === 200){
|
||||||
|
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
|
||||||
|
setTimeout(() => {
|
||||||
|
this.rightLoading = false
|
||||||
this.rightDataList = resData.data.data
|
this.rightDataList = resData.data.data
|
||||||
console.log(resData.data)
|
}, timed)
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getRightListPolicy() {
|
async getRightListPolicy() {
|
||||||
let params = {ids: this.rowData.policyIds}
|
let params = {ids: this.rowData.policyIds}
|
||||||
|
const createTime = Date.now() + 5000
|
||||||
this.rightLoading = true
|
this.rightLoading = true
|
||||||
let resData = await getListByids(params)
|
let resData = await getListByids(params)
|
||||||
this.rightLoading = false
|
|
||||||
if(resData.data.code === 200){
|
if(resData.data.code === 200){
|
||||||
|
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
|
||||||
|
setTimeout(() => {
|
||||||
|
this.rightLoading = false
|
||||||
this.rightDataList = resData.data.data
|
this.rightDataList = resData.data.data
|
||||||
|
}, timed)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getLeftUserList(type) {
|
async getLeftUserList(type) {
|
||||||
const {current, size} = this.leftPages
|
const {current, size} = this.leftPages
|
||||||
|
const createTime = Date.now() + 5000
|
||||||
let params = {
|
let params = {
|
||||||
...this.formInline,
|
...this.formInline,
|
||||||
current, size,
|
current, size,
|
||||||
@@ -327,11 +337,15 @@ export default {
|
|||||||
// params.labels = '未分组'
|
// params.labels = '未分组'
|
||||||
this.leftLoading = true
|
this.leftLoading = true
|
||||||
let resData = await getListAllByLabels(params)
|
let resData = await getListAllByLabels(params)
|
||||||
this.leftLoading = false
|
|
||||||
if ( resData.data.code === 200 ) {
|
if ( resData.data.code === 200 ) {
|
||||||
|
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
|
||||||
|
setTimeout(() => {
|
||||||
const { records, total, size, current } = resData.data.data
|
const { records, total, size, current } = resData.data.data
|
||||||
this.leftUserDataList = records
|
this.leftUserDataList = records
|
||||||
this.leftPages = { total, size, current }
|
this.leftPages = { total, size, current }
|
||||||
|
this.leftLoading = false
|
||||||
|
}, timed)
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getLeftServeList() {
|
async getLeftServeList() {
|
||||||
@@ -363,9 +377,12 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.content-right{
|
.content-right{
|
||||||
|
//修改动画的大小 给文字加粗效果
|
||||||
|
|
||||||
.right-search{
|
.right-search{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.leftInput{
|
.leftInput{
|
||||||
width: 500px;
|
width: 500px;
|
||||||
@@ -373,7 +390,7 @@ export default {
|
|||||||
width: 160px !important;
|
width: 160px !important;
|
||||||
}
|
}
|
||||||
.el-input__inner{
|
.el-input__inner{
|
||||||
width: 200px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
.input-search{
|
.input-search{
|
||||||
margin-right: -15px;
|
margin-right: -15px;
|
||||||
@@ -382,6 +399,15 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/deep/.el-loading-spinner{
|
||||||
|
font-size: 80px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
/deep/.el-loading-spinner .circular{
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
.content-footer{
|
.content-footer{
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: 'http://10.165.0.173:8000',
|
// target: 'http://10.165.0.173:8000',
|
||||||
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||||
// target: "http://192.168.3.104:8000", // 本地
|
// target: "http://192.168.3.104:8000", // 本地
|
||||||
// target: 'http://192.168.1.106:8000',
|
// target: 'http://192.168.1.106:8000',
|
||||||
// target: 'http://192.168.3.173:8000',
|
// target: 'http://192.168.3.173:8000',
|
||||||
target: 'http://10.165.0.173:8000',
|
// target: 'http://10.165.0.173:8000',
|
||||||
// target: 'http://198.168.3.120:8000',
|
// target: 'http://198.168.3.120:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user