Commit c4a55e24 authored by munan's avatar munan

系统设置

parent 05638514
...@@ -43,7 +43,7 @@ export function updateBusStudentInfo(data) { ...@@ -43,7 +43,7 @@ export function updateBusStudentInfo(data) {
const businessId = data.businessId const businessId = data.businessId
data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/busstudentinfo/update/' + businessId, url: '/busstudentinfo/update/' + businessId ,
method: 'put', method: 'put',
data data
}) })
......
...@@ -407,6 +407,7 @@ export default { ...@@ -407,6 +407,7 @@ export default {
}) })
} else { } else {
addBusStudentInfo(this.form).then(response => { addBusStudentInfo(this.form).then(response => {
console.log(this.form)
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess('新增成功') this.msgSuccess('新增成功')
this.open = false this.open = false
......
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-if="themeType == '8'" class="tableTitle">系统设置列表</div>
<div class="search"> <div class="search">
<el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true"> <el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="系统名称" prop="systemName"> <el-form-item label="系统名称" prop="systemName">
...@@ -105,9 +106,8 @@ ...@@ -105,9 +106,8 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<div class="placeholder" />
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="mb12 font-small-bold">系统设置列表</div> <div v-if="themeType !== '8'" class="tableTitle">系统设置列表</div>
<el-table v-loading="loading" border :data="sysSettingsList" > <el-table v-loading="loading" border :data="sysSettingsList" >
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column label="系统名称" prop="systemName" :show-overflow-tooltip="true"> <el-table-column label="系统名称" prop="systemName" :show-overflow-tooltip="true">
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</el-table-column> </el-table-column>
<el-table-column label="系统版本" prop="systemVersion" :show-overflow-tooltip="true" > <el-table-column label="系统版本" prop="systemVersion" :show-overflow-tooltip="true" >
<template slot-scope="scope" > <template slot-scope="scope" >
{{ scope.row.systemVersion || '-' }} {{ scope.row.systemVersion || '23H2' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="系统license" prop="systemLicense" :show-overflow-tooltip="true"> <el-table-column label="系统license" prop="systemLicense" :show-overflow-tooltip="true">
...@@ -143,27 +143,27 @@ ...@@ -143,27 +143,27 @@
</el-table-column> </el-table-column>
<el-table-column label="系统编码" prop="systemSn" :show-overflow-tooltip="true"> <el-table-column label="系统编码" prop="systemSn" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.systemSn || '-' }} {{ scope.row.systemSn || 'GB2312' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="过期时间" prop="systemExpire" :show-overflow-tooltip="true"> <el-table-column label="过期时间" prop="systemExpire" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.systemExpire | transformDateByFormat('YYYY-MM-DD') }}</span> <span>{{ scope.row.systemExpire | transformDateByFormat('2024-08-01 18:00:00') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="授权服务器数量" prop="systemAuthHost" :show-overflow-tooltip="true"> <el-table-column label="授权服务器数量" prop="systemAuthHost" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.systemAuthHost || '-' }} {{ scope.row.systemAuthHost || '1' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="授权数量" prop="systemAuthGpu" :show-overflow-tooltip="true"> <el-table-column label="授权数量" prop="systemAuthGpu" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.systemAuthGpu || '-' }} {{ scope.row.systemAuthGpu || '1' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="网卡编码" prop="systemRj49" :show-overflow-tooltip="true"> <el-table-column label="网卡编码" prop="systemRj49" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.systemRj49 || '-' }} {{ scope.row.systemRj49 || 'e01' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="120" label="状态" prop="flag"> <el-table-column width="120" label="状态" prop="flag">
...@@ -177,11 +177,6 @@ ...@@ -177,11 +177,6 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.remarks || '-' }}
</template>
</el-table-column>
<el-table-column label="操作" class-name="small-padding fixed-width" width="200px"> <el-table-column label="操作" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -229,18 +224,18 @@ ...@@ -229,18 +224,18 @@
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="系统版本" prop="systemVersion"> <el-form-item label="系统版本" prop="systemVersion">
<el-input v-model.trim="form.systemVersion" show-word-limit :maxlength="50" placeholder="23H2" disabled/> <el-input v-model.trim="form.systemVersion" show-word-limit :maxlength="50" placeholder="23H2" readonly/>
</el-form-item> </el-form-item>
<el-form-item label="系统编码" prop="systemSn"> <el-form-item label="系统编码" prop="systemSn">
<el-input v-model.trim="form.systemSn" show-word-limit :maxlength="32" placeholder="GB2312" disabled /> <el-input v-model.trim="form.systemSn" show-word-limit :maxlength="32" placeholder="GB2312" readonly/>
</el-form-item> </el-form-item>
<el-form-item label="过期时间" prop="systemExpire" > <el-form-item label="过期时间" prop="systemExpire" >
<el-date-picker <el-date-picker
v-model="form.systemExpire" v-model="form.systemExpire"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd hh:mm:ss"
type="date" type="date"
placeholder="2024.08.01" placeholder="2024.08.01 18:00:00"
disabled="2024.08.01"> readonly>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="授权服务器数量" prop="systemAuthHost"> <el-form-item label="授权服务器数量" prop="systemAuthHost">
...@@ -250,7 +245,7 @@ ...@@ -250,7 +245,7 @@
<el-input-number v-model.trim="form.systemAuthGpu" controls-position="right" :min="0" disabled/> <el-input-number v-model.trim="form.systemAuthGpu" controls-position="right" :min="0" disabled/>
</el-form-item> </el-form-item>
<el-form-item label="网卡编码" prop="systemRj49"> <el-form-item label="网卡编码" prop="systemRj49">
<el-input v-model.trim="form.systemRj49" show-word-limit :maxlength="32" placeholder="e01 " disabled /> <el-input v-model.trim="form.systemRj49" show-word-limit :maxlength="32" placeholder="e01 " readonly/>
</el-form-item> </el-form-item>
<el-form-item label="状态"> <el-form-item label="状态">
<el-radio-group v-model="form.flag"> <el-radio-group v-model="form.flag">
...@@ -326,6 +321,7 @@ export default { ...@@ -326,6 +321,7 @@ export default {
form: {}, form: {},
// 表单校验 // 表单校验
rules: { rules: {
systemName:[{type: 'string',required: true,message: "系统名称必填", trigger: 'blur'}],
} }
} }
}, },
......
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