|
@@ -9,53 +9,68 @@
|
|
|
class="flexBox"
|
|
|
>
|
|
|
<div class="formItemBox">
|
|
|
- <el-form-item label="节点名称:" prop="a1">
|
|
|
+ <el-form-item label="账户名称:" prop="userName">
|
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
|
- maxlength="30"
|
|
|
- v-autoTrim="{ obj: form, key: 'a1' }"
|
|
|
- v-model="form.a1"
|
|
|
+ readOnly
|
|
|
+ v-autoTrim="{ obj: form, key: 'userName' }"
|
|
|
+ v-model="form.userName"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="节点地址:" prop="a2">
|
|
|
- <el-input
|
|
|
- placeholder="请输入"
|
|
|
- maxlength="100"
|
|
|
- v-autoTrim="{ obj: form, key: 'a2' }"
|
|
|
- v-model="form.a2"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
+ <el-form-item label="独占类型:" prop="userType">
|
|
|
+ <el-select v-model="form.userType" readOnly>
|
|
|
+ <el-option
|
|
|
+ v-for="item in userTypeList"
|
|
|
+ :label="item.caption"
|
|
|
+ :value="item.code"
|
|
|
+ :key="item.code"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="节点类型:" prop="a3">
|
|
|
+ <el-form-item label="仿真软件license数量:" prop="numSimulationLicense">
|
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
|
- maxlength="100"
|
|
|
- v-autoTrim="{ obj: form, key: 'a3' }"
|
|
|
- v-model="form.a3"
|
|
|
+ maxlength="20"
|
|
|
+ v-autoTrim="{ obj: form, key: 'numSimulationLicense' }"
|
|
|
+ v-model="form.numSimulationLicense"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="适用类型:" prop="a4">
|
|
|
+ <el-form-item label="到期时间:" prop="dateSimulationLicense">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.dateSimulationLicense"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="动力学软件license数量:" prop="numDynamicLicense">
|
|
|
<el-input
|
|
|
placeholder="请输入"
|
|
|
- maxlength="100"
|
|
|
- v-autoTrim="{ obj: form, key: 'a4' }"
|
|
|
- v-model="form.a4"
|
|
|
+ maxlength="20"
|
|
|
+ v-autoTrim="{ obj: form, key: 'numDynamicLicense' }"
|
|
|
+ v-model="form.numDynamicLicense"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="到期时间:" prop="dateDynamicLicense">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.dateDynamicLicense"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
- <div class="title">公有</div>
|
|
|
+ <div class="title">历史记录</div>
|
|
|
<tableList
|
|
|
ref="table"
|
|
|
style="width:60%;min-width: 900px;margin: auto;"
|
|
|
:columns="columns"
|
|
|
:getDataWay="getDataWay"
|
|
|
- :checkedData="checkedData"
|
|
|
index
|
|
|
- selection
|
|
|
>
|
|
|
</tableList>
|
|
|
<div class="btns">
|
|
@@ -73,60 +88,92 @@ export default {
|
|
|
components: {tableList},
|
|
|
data() {
|
|
|
return {
|
|
|
+ userTypeList: [],
|
|
|
getDataWay:{
|
|
|
- //dataType: "url",
|
|
|
- dataType: "data",
|
|
|
+ dataType: "url",
|
|
|
type: "post",
|
|
|
- // firstRequest: false,
|
|
|
- // data: this.$api.algorithmsLibrary.selectSharedAlgorithmList,
|
|
|
- data:[{a1:'1',a2:'2',a3:'3',a4:'4'}],
|
|
|
- param: {},
|
|
|
+ firstRequest: false,
|
|
|
+ data: this.$api.systemManagement.getClusterHistory,
|
|
|
+ param: {
|
|
|
+ //userId: this.$route.query.userId
|
|
|
+ },
|
|
|
},
|
|
|
columns: [
|
|
|
//表格列
|
|
|
{
|
|
|
- label: "账户名",
|
|
|
- prop: "a1",
|
|
|
+ label: "仿真软件license",
|
|
|
+ prop: "numSimulationLicense",
|
|
|
},
|
|
|
{
|
|
|
- label: "账户类型",
|
|
|
- prop: "a2",
|
|
|
+ label: "到期时间",
|
|
|
+ prop: "dateSimulationLicense",
|
|
|
},
|
|
|
{
|
|
|
- label: "联系人",
|
|
|
- prop: "a3",
|
|
|
+ label: "动力学软件license",
|
|
|
+ prop: "numDynamicLicnese",
|
|
|
},
|
|
|
{
|
|
|
- label: "联系方式",
|
|
|
- prop: "a4",
|
|
|
+ label: "到期时间",
|
|
|
+ prop: "dateDynamicLicense",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "操作时间",
|
|
|
+ prop: "modifyTime"
|
|
|
+ }
|
|
|
],
|
|
|
form: {
|
|
|
- a1:'',
|
|
|
- a2:'',
|
|
|
- a3:'',
|
|
|
- a4:''
|
|
|
+ userName:"",
|
|
|
+ id: "",
|
|
|
+ userId: "",
|
|
|
+ numSimulationLicense: "",
|
|
|
+ dateSimulationLicense: "",
|
|
|
+ numDynamicLicense: "",
|
|
|
+ dateDynamicLicense: ""
|
|
|
},
|
|
|
-
|
|
|
rules: {
|
|
|
+ numSimulationLicense: [{ required: true, message: "请输入", trigger: "blur" }],
|
|
|
+ dateSimulationLicense: [{ required: true, message: "请选择", trigger: "blur" }],
|
|
|
+ numDynamicLicense: [{ required: true, message: "请输入", trigger: "blur" }],
|
|
|
+ dateDynamicLicense: [{ required: true, message: "请选择", trigger: "blur" }]
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+ created(){
|
|
|
+ if(this.$route.query.userId){
|
|
|
+ this.form = {...this.$route.query}
|
|
|
+ this.getDataWay.param = {
|
|
|
+ userId: this.$route.query.userId
|
|
|
+ }
|
|
|
+ this.$refs.table.loadData()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async mounted() {
|
|
|
+ await this.$dicsListsInit({
|
|
|
+ userTypeList: "useType"
|
|
|
+ });
|
|
|
+ },
|
|
|
computed: {},
|
|
|
-
|
|
|
methods: {
|
|
|
save(){
|
|
|
-
|
|
|
+ this.$axios({
|
|
|
+ method:"POST",
|
|
|
+ url:this.$api.systemManagement.saveCluster,
|
|
|
+ data:{
|
|
|
+ ...this.form
|
|
|
+ }
|
|
|
+ }).then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ this.$router.history.go(-1)
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message || "保存失败");
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
cancel(){
|
|
|
-
|
|
|
+ this.$router.history.go(-1)
|
|
|
},
|
|
|
},
|
|
|
-
|
|
|
- mounted() {
|
|
|
-
|
|
|
- },
|
|
|
};
|
|
|
</script>
|
|
|
|