|
@@ -5,41 +5,60 @@
|
|
<template slot="searchItem1">
|
|
<template slot="searchItem1">
|
|
<span class="label">分配账户</span>
|
|
<span class="label">分配账户</span>
|
|
<el-input
|
|
<el-input
|
|
- v-model="searchParams.a1"
|
|
+ v-model="searchParams.userName"
|
|
size="small"
|
|
size="small"
|
|
clearable
|
|
clearable
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template slot="searchItem2">
|
|
|
|
+ <span class="label">操作时间</span>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="modifyTimeRange"
|
|
|
|
+ type="daterange"
|
|
|
|
+ format="yyyy-MM-dd"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </template>
|
|
<template slot="searchItem3">
|
|
<template slot="searchItem3">
|
|
- <span class="label">节点类型</span>
|
|
+ <span class="label">到期时间</span>
|
|
- <el-select v-model="searchParams.a2">
|
|
+ <el-date-picker
|
|
- <el-option
|
|
+ v-model="dueTimeRange"
|
|
- v-for="item in list"
|
|
+ type="daterange"
|
|
- :label="item.caption"
|
|
+ format="yyyy-MM-dd"
|
|
- :value="item.code"
|
|
+ value-format="yyyy-MM-dd"
|
|
- :key="item.code"
|
|
+ range-separator="至"
|
|
- ></el-option>
|
|
+ start-placeholder="开始日期"
|
|
- </el-select>
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
</template>
|
|
</template>
|
|
<template slot="searchBtn1">
|
|
<template slot="searchBtn1">
|
|
- <el-button type="primary">查询</el-button>
|
|
+ <el-button type="primary" @click="doSearch">查询</el-button>
|
|
</template>
|
|
</template>
|
|
<template slot="searchBtn2">
|
|
<template slot="searchBtn2">
|
|
- <el-button type="primary">重置</el-button>
|
|
+ <el-button type="primary" @click="reset">重置</el-button>
|
|
</template>
|
|
</template>
|
|
</search-layout>
|
|
</search-layout>
|
|
|
|
|
|
- <div class="btnsPanel">
|
|
+ <!--<div class="btnsPanel">
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-circle-plus-outline"
|
|
icon="el-icon-circle-plus-outline"
|
|
@click="addConfig"
|
|
@click="addConfig"
|
|
>新建配置</el-button
|
|
>新建配置</el-button
|
|
>
|
|
>
|
|
- </div>
|
|
+ </div>-->
|
|
|
|
|
|
|
|
+ <div style="border-top: none; margin: 30px 40px 10px 40px">
|
|
|
|
+ <span>仿真软件已分配未到期节点数量:{{totalSimulation}}</span>
|
|
|
|
+ <span style="margin-left: 20%">动力学软件已分配未到期节点数量:{{totalDynamic}}</span>
|
|
|
|
+ </div>
|
|
<tableList
|
|
<tableList
|
|
ref="table"
|
|
ref="table"
|
|
style="border-top: none; margin: 0 30px"
|
|
style="border-top: none; margin: 0 30px"
|
|
@@ -47,7 +66,6 @@
|
|
:getDataWay="getDataWay"
|
|
:getDataWay="getDataWay"
|
|
:pagination="pagination"
|
|
:pagination="pagination"
|
|
index
|
|
index
|
|
- selection
|
|
|
|
>
|
|
>
|
|
<el-table-column label="操作" slot="cgInfos" align="center">
|
|
<el-table-column label="操作" slot="cgInfos" align="center">
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
@@ -55,10 +73,6 @@
|
|
@click="addMarkDia(scope.row)"
|
|
@click="addMarkDia(scope.row)"
|
|
class="el-icon-edit-outline elIcon"
|
|
class="el-icon-edit-outline elIcon"
|
|
></i>
|
|
></i>
|
|
- <i
|
|
|
|
- @click="addMarkDia(scope.row)"
|
|
|
|
- class="el-icon-video-pause elIcon"
|
|
|
|
- ></i>
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</tableList>
|
|
</tableList>
|
|
@@ -76,26 +90,42 @@ export default {
|
|
return {
|
|
return {
|
|
searchParams: {
|
|
searchParams: {
|
|
//搜索参数
|
|
//搜索参数
|
|
-
|
|
+ userName: "",
|
|
|
|
+ dueTimeStart: "",
|
|
|
|
+ dueTimeEnd: "",
|
|
|
|
+ modifyTimeStart: "",
|
|
|
|
+ modifyTimeEnd: ""
|
|
},
|
|
},
|
|
|
|
+ modifyTimeRange:[],
|
|
|
|
+ dueTimeRange:[],
|
|
list: [],
|
|
list: [],
|
|
|
|
+ totalSimulation:0,
|
|
|
|
+ totalDynamic:0,
|
|
columns: [
|
|
columns: [
|
|
//表格列
|
|
//表格列
|
|
{
|
|
{
|
|
- label: "节点ID",
|
|
+ label: "账户名称",
|
|
- prop: "a1",
|
|
+ prop: "userName",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "节点类型",
|
|
+ label: "独占类型",
|
|
- prop: "a2",
|
|
+ prop: "userType",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "适用类型",
|
|
+ label: "仿真软件license",
|
|
- prop: "a3",
|
|
+ prop: "numSimulationLicense",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: "分配账户",
|
|
+ label: "到期时间",
|
|
- prop: "a4",
|
|
+ prop: "dateSimulationLicense",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "动力学软件license",
|
|
|
|
+ prop: "numDynamicLicense",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "到期时间",
|
|
|
|
+ prop: "dateDynamicLicense",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "操作",
|
|
label: "操作",
|
|
@@ -112,21 +142,62 @@ export default {
|
|
layout: "sizes, total, prev, pager, next, jumper",
|
|
layout: "sizes, total, prev, pager, next, jumper",
|
|
},
|
|
},
|
|
getDataWay: {
|
|
getDataWay: {
|
|
- //dataType: "url",
|
|
+ dataType: "url",
|
|
- dataType: "data",
|
|
|
|
type: "post",
|
|
type: "post",
|
|
- // firstRequest: false,
|
|
+ data: this.$api.systemManagement.getClusterList,
|
|
- // data: this.$api.algorithmsLibrary.selectSharedAlgorithmList,
|
|
|
|
- data:[{a1:'1',a2:'2',a3:'3',a4:'4',a5:'5',a6:'6'}],
|
|
|
|
param: {},
|
|
param: {},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ created(){
|
|
|
|
+ //获取未到期已分配节点数量
|
|
|
|
+ this.$axios({
|
|
|
|
+ method:'POST',
|
|
|
|
+ url:this.$api.systemManagement.getClusterNum,
|
|
|
|
+ data:{}
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ if(res.code=='200'){
|
|
|
|
+ this.totalSimulation=res.info.totalSimulation
|
|
|
|
+ this.totalDynamic=res.info.totalDynamic
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ doSearch(){
|
|
|
|
+ this.searchParams.modifyTimeStart=this.modifyTimeRange[0]||''
|
|
|
|
+ this.searchParams.modifyTimeEnd=this.modifyTimeRange[1]||''
|
|
|
|
+ this.searchParams.dueTimeStart=this.modifyTimeRange[0]||''
|
|
|
|
+ this.searchParams.dueTimeEnd=this.modifyTimeRange[1]||''
|
|
|
|
+ this.refreshList(this.searchParams)
|
|
|
|
+ },
|
|
|
|
+ reset(){
|
|
|
|
+ this.searchParams = {
|
|
|
|
+ userName: "",
|
|
|
|
+ dueTimeStart: "",
|
|
|
|
+ dueTimeEnd: "",
|
|
|
|
+ modifyTimeStart: "",
|
|
|
|
+ modifyTimeEnd: ""
|
|
|
|
+ }
|
|
|
|
+ this.modifyTimeRange=[]
|
|
|
|
+ this.dueTimeRange=[]
|
|
|
|
+ },
|
|
|
|
+ refreshList(param) {
|
|
|
|
+ param
|
|
|
|
+ ? this.$refs["table"].loadData(param)
|
|
|
|
+ : this.$refs["table"].loadData();
|
|
|
|
+ },
|
|
addConfig() {
|
|
addConfig() {
|
|
- this.$router.push({ path: "/clusteringDetail" });
|
|
+ this.$router.push({
|
|
|
|
+ path:'/clusteringDetail'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ addMarkDia(row) {
|
|
|
|
+ let query = {...row}
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path:'/clusteringDetail',
|
|
|
|
+ query
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- addMarkDia() {},
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|