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

调整

parent e82f9354
......@@ -196,6 +196,7 @@
changeQueryParams(queryParams){
let str=queryParams.rqInfos
let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格
trimmedStr=trimmedStr.replace(/,/s, ',')
let arr = trimmedStr.split(",");
queryParams.rqInfos=arr
console.log(queryParams.rqInfos)
......
<template>
<BasePage :power='power' class="min_full" :config="config">
<BasePage ref="basepage" :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -7,6 +7,11 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="start(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>
</BasePage>
......@@ -15,8 +20,24 @@
<script>
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() {
return {
doQuery:false,
power: {
add: false,
copy: false,
......@@ -214,9 +235,9 @@
[
{
label: '状态',
prop: 'zt',
prop: 'zts',
span: 6,
type: 'RelSelect',
type: 'RelMulSelect',
typeConfig: {
src: 'lxyl/wcs/lkrw/init/zt'
}
......
......@@ -243,9 +243,9 @@
},
{
"label": "状态",
"prop": "zt",
"prop": "zts",
"span": 6,
"type": "RelSelect",
"type": "RelMulSelect",
"value": "",
"typeConfig": {
"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