|
|
@ -10,7 +10,7 @@ |
|
|
|
<el-form label-width="80px"> |
|
|
|
<el-form label-width="80px"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-form-item label="实验时间" class="userRadio"> |
|
|
|
<el-form-item label="实验时间" class="userRadio"> |
|
|
|
<el-radio-group v-model="form.month" @change="getData"> |
|
|
|
<el-radio-group v-model="form.month" @change="initData"> |
|
|
|
<el-radio v-for="(item,index) in dateList" :key="index" :label="item.id" border>{{item.name}}</el-radio> |
|
|
|
<el-radio v-for="(item,index) in dateList" :key="index" :label="item.id" border>{{item.name}}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
<el-date-picker v-model="date" align="right" unlink-panels type="daterange" style="margin-left: 10px;" |
|
|
|
<el-date-picker v-model="date" align="right" unlink-panels type="daterange" style="margin-left: 10px;" |
|
|
@ -20,17 +20,17 @@ |
|
|
|
<div class="flex-between no-mb"> |
|
|
|
<div class="flex-between no-mb"> |
|
|
|
<div class="flex-center"> |
|
|
|
<div class="flex-center"> |
|
|
|
<el-form-item label="发布类型"> |
|
|
|
<el-form-item label="发布类型"> |
|
|
|
<el-select v-model="form.type" clearable placeholder="请选择发布类型" @change="getData"> |
|
|
|
<el-select v-model="form.type" clearable placeholder="请选择发布类型" @change="initData"> |
|
|
|
<el-option v-for="(item,index) in typeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
<el-option v-for="(item,index) in typeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="实验状态"> |
|
|
|
<el-form-item label="实验状态"> |
|
|
|
<el-select v-model="form.status" clearable placeholder="请选择实验状态" @change="getData"> |
|
|
|
<el-select v-model="form.status" clearable placeholder="请选择实验状态" @change="initData"> |
|
|
|
<el-option v-for="(item,index) in statusList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
<el-option v-for="(item,index) in statusList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="系统" label-width="60px"> |
|
|
|
<el-form-item label="系统" label-width="60px"> |
|
|
|
<el-select v-model="systemId" placeholder="请选择" @change="getData"> |
|
|
|
<el-select v-model="systemId" placeholder="请选择" @change="initData"> |
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
<el-option label="不限" value=""></el-option> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="item in systemList" |
|
|
|
v-for="item in systemList" |
|
|
@ -276,12 +276,12 @@ export default { |
|
|
|
this.form.startTime = '' |
|
|
|
this.form.startTime = '' |
|
|
|
this.form.stopTime = '' |
|
|
|
this.form.stopTime = '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.getData() |
|
|
|
this.initData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
keyword: function(val) { |
|
|
|
keyword: function(val) { |
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.getData() |
|
|
|
this.initData() |
|
|
|
},500) |
|
|
|
},500) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -295,10 +295,6 @@ export default { |
|
|
|
this.timer = setInterval(this.getData,1000) |
|
|
|
this.timer = setInterval(this.getData,1000) |
|
|
|
this.$once('hook:beforeDestroy',() => { |
|
|
|
this.$once('hook:beforeDestroy',() => { |
|
|
|
clearInterval(this.timer) |
|
|
|
clearInterval(this.timer) |
|
|
|
// this.timerList.forEach((n,k) => { |
|
|
|
|
|
|
|
// clearInterval(n) |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// this.timerList = [] |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
@ -320,6 +316,10 @@ export default { |
|
|
|
this.totals = res.list.totalCount |
|
|
|
this.totals = res.list.totalCount |
|
|
|
}).catch(res => {}); |
|
|
|
}).catch(res => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
initData(){ |
|
|
|
|
|
|
|
this.pageNo = 1 |
|
|
|
|
|
|
|
this.getData() |
|
|
|
|
|
|
|
}, |
|
|
|
permission(){ |
|
|
|
permission(){ |
|
|
|
this.$router.push('/permission') |
|
|
|
this.$router.push('/permission') |
|
|
|
}, |
|
|
|
}, |
|
|
|