Commit 08cc2d7f authored by 李苏's avatar 李苏 💬

调整

parent e82f9354
...@@ -196,6 +196,7 @@ ...@@ -196,6 +196,7 @@
changeQueryParams(queryParams){ changeQueryParams(queryParams){
let str=queryParams.rqInfos let str=queryParams.rqInfos
let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格 let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格
trimmedStr=trimmedStr.replace(/,/s, ',')
let arr = trimmedStr.split(","); let arr = trimmedStr.split(",");
queryParams.rqInfos=arr queryParams.rqInfos=arr
console.log(queryParams.rqInfos) console.log(queryParams.rqInfos)
......
<template> <template>
<BasePage :power='power' class="min_full" :config="config"> <BasePage ref="basepage" :power='power' class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="start(ctx.basePage)" size='mini' type="primary">开始</el-button> <el-button @click="start(ctx.basePage)" size='mini' type="primary">开始</el-button>
<el-button @click="close(ctx.basePage)" size='mini' type="primary">关闭</el-button> <el-button @click="close(ctx.basePage)" size='mini' type="primary">关闭</el-button>
<div style="float:right;line-height: 28px;font-size: 12px;" > 自动刷新:<el-switch
v-model="doQuery"
active-color="#13ce66"
inactive-color="#eee">
</el-switch></div>
</template> </template>
</BasePage> </BasePage>
...@@ -15,8 +20,24 @@ ...@@ -15,8 +20,24 @@
<script> <script>
export default { export default {
watch:{
doQuery(val){
// console.log(this.timer,this)
if(val){
this.timer=setInterval(()=>{
this.$refs.basepage.refresh()
},20000)
}else{
clearInterval(this.timer)
}
}
},
beforeDestroy(){
clearInterval(this.timer)
},
data() { data() {
return { return {
doQuery:false,
power: { power: {
add: false, add: false,
copy: false, copy: false,
...@@ -214,9 +235,9 @@ ...@@ -214,9 +235,9 @@
[ [
{ {
label: '状态', label: '状态',
prop: 'zt', prop: 'zts',
span: 6, span: 6,
type: 'RelSelect', type: 'RelMulSelect',
typeConfig: { typeConfig: {
src: 'lxyl/wcs/lkrw/init/zt' src: 'lxyl/wcs/lkrw/init/zt'
} }
......
...@@ -243,9 +243,9 @@ ...@@ -243,9 +243,9 @@
}, },
{ {
"label": "状态", "label": "状态",
"prop": "zt", "prop": "zts",
"span": 6, "span": 6,
"type": "RelSelect", "type": "RelMulSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "lxyl/wcs/wcsTask/init/zt", "src": "lxyl/wcs/wcsTask/init/zt",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment