11
This commit is contained in:
@@ -113,7 +113,7 @@
|
|||||||
<el-table-column label="参数名称" align="center" prop="configName" :show-overflow-tooltip="true" />
|
<el-table-column label="参数名称" align="center" prop="configName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="参数键名" align="center" prop="configKey" :show-overflow-tooltip="true" />
|
<el-table-column label="参数键名" align="center" prop="configKey" :show-overflow-tooltip="true" />
|
||||||
<!-- <el-table-column label="参数键值" align="center" prop="configValue" />-->
|
<!-- <el-table-column label="参数键值" align="center" prop="configValue" />-->
|
||||||
<el-table-column label="系统内置" align="center" prop="configType" :formatter="typeFormat" />
|
<!-- <el-table-column label="系统内置" align="center" prop="configType" :formatter="typeFormat" />-->
|
||||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -189,7 +189,43 @@
|
|||||||
plain>取 消</el-button>
|
plain>取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 添加或修改参数配置对话框 -->
|
<el-dialog :title="editBgTitle" :visible.sync="editBgShow" width="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="formEdit" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="参数名称" prop="configName">
|
||||||
|
<el-input v-model="formEdit.configName" placeholder="请输入参数名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="参数键名" prop="configKey">
|
||||||
|
<el-input v-model="formEdit.configKey" placeholder="请输入参数键名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="背景图片" prop="configValue">
|
||||||
|
|
||||||
|
<UploadFile v-model="formEdit.configValue"
|
||||||
|
file-type="image"
|
||||||
|
:v-public="true"
|
||||||
|
:v-data="false"/>
|
||||||
|
<!--<el-input v-model="formEdit.configValue" placeholder="请输入参数键值" />-->
|
||||||
|
</el-form-item>
|
||||||
|
<!--<el-form-item label="系统内置" prop="configType">-->
|
||||||
|
<!-- <el-radio-group v-model="formEdit.configType">-->
|
||||||
|
<!-- <el-radio-->
|
||||||
|
<!-- v-for="dict in typeOptions"-->
|
||||||
|
<!-- :key="dict.dictValue"-->
|
||||||
|
<!-- :label="dict.dictValue"-->
|
||||||
|
<!-- >{{dict.dictLabel}}</el-radio>-->
|
||||||
|
<!-- </el-radio-group>-->
|
||||||
|
<!--</el-form-item>-->
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="formEdit.remark" type="textarea" placeholder="请输入内容" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary"
|
||||||
|
plain @click="submitFormEdit">确 定</el-button>
|
||||||
|
<el-button @click="cancelStaEdit"
|
||||||
|
plain>取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 修改邮件配置 -->
|
||||||
<el-dialog title="修改邮件配置" :visible.sync="editMailShow" width="600px" append-to-body>
|
<el-dialog title="修改邮件配置" :visible.sync="editMailShow" width="600px" append-to-body>
|
||||||
<el-form ref="form" :model="formEdit" :rules="rules" label-width="120px">
|
<el-form ref="form" :model="formEdit" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="参数名称" prop="configName">
|
<el-form-item label="参数名称" prop="configName">
|
||||||
@@ -239,8 +275,8 @@
|
|||||||
plain>取 消</el-button>
|
plain>取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 添加或修改参数配置对话框 -->
|
<!-- 修改统计配置 -->
|
||||||
<el-dialog title="修改邮件配置" :visible.sync="editStatisticShow" width="600px" append-to-body>
|
<el-dialog title="修改统计配置" :visible.sync="editStatisticShow" width="600px" append-to-body>
|
||||||
<el-form ref="form" :model="formEdit" :rules="rules" label-width="120px">
|
<el-form ref="form" :model="formEdit" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="参数名称" prop="configName">
|
<el-form-item label="参数名称" prop="configName">
|
||||||
<el-input v-model="formEdit.configName" disabled placeholder="请输入参数名称" />
|
<el-input v-model="formEdit.configName" disabled placeholder="请输入参数名称" />
|
||||||
@@ -266,15 +302,6 @@
|
|||||||
<el-form-item label="重大项目">
|
<el-form-item label="重大项目">
|
||||||
<el-input-number :min="0" type="number" v-model="statisticConfig.majorProjects" placeholder="请输入参数键值" />
|
<el-input-number :min="0" type="number" v-model="statisticConfig.majorProjects" placeholder="请输入参数键值" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="系统内置" prop="configType">-->
|
|
||||||
<!-- <el-radio-group v-model="formEdit.configType">-->
|
|
||||||
<!-- <el-radio-->
|
|
||||||
<!-- v-for="dict in typeOptions"-->
|
|
||||||
<!-- :key="dict.dictValue"-->
|
|
||||||
<!-- :label="dict.dictValue"-->
|
|
||||||
<!-- >{{dict.dictLabel}}</el-radio>-->
|
|
||||||
<!-- </el-radio-group>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input v-model="formEdit.remark" type="textarea" placeholder="请输入内容" />
|
<el-input v-model="formEdit.remark" type="textarea" placeholder="请输入内容" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -296,9 +323,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listConfig, getConfig, delConfig, addConfig, updateConfig, exportConfig, clearCache } from "@/api/system/config";
|
import { listConfig, getConfig, delConfig, addConfig, updateConfig, exportConfig, clearCache } from "@/api/system/config";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
import UploadFile from '@/views/utils/uploadFile'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Config",
|
name: "Config",
|
||||||
|
components: {UploadFile},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userId:store.getters.userId,
|
userId:store.getters.userId,
|
||||||
@@ -314,6 +343,8 @@ export default {
|
|||||||
showSearch: true,
|
showSearch: true,
|
||||||
editMailShow:false,
|
editMailShow:false,
|
||||||
editStatisticShow:false,
|
editStatisticShow:false,
|
||||||
|
editBgShow:false,
|
||||||
|
editBgTitle:"",
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
// 参数表格数据
|
// 参数表格数据
|
||||||
@@ -434,6 +465,12 @@ export default {
|
|||||||
}else if (this.formEdit.configKey == 'statistic'){
|
}else if (this.formEdit.configKey == 'statistic'){
|
||||||
this.editStatisticShow = true
|
this.editStatisticShow = true
|
||||||
this.statisticConfig = JSON.parse(this.formEdit.configValue)
|
this.statisticConfig = JSON.parse(this.formEdit.configValue)
|
||||||
|
}else if (this.formEdit.configKey == 'sist_bg' ){
|
||||||
|
this.editBgShow = true
|
||||||
|
this.editBgTitle = "修改信息网站首页背景"
|
||||||
|
}else if(this.formEdit.configKey == 'lab_bg'){
|
||||||
|
this.editBgShow = true
|
||||||
|
this.editBgTitle = "修改实验室首页背景"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -447,6 +484,7 @@ export default {
|
|||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
this.editMailShow = false;
|
this.editMailShow = false;
|
||||||
this.editStatisticShow = false;
|
this.editStatisticShow = false;
|
||||||
|
this.editBgShow = false
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -454,8 +492,8 @@ export default {
|
|||||||
this.editMailShow = false;
|
this.editMailShow = false;
|
||||||
},
|
},
|
||||||
cancelStaEdit(){
|
cancelStaEdit(){
|
||||||
console.log(JSON.stringify(this.statisticConfig))
|
|
||||||
this.editStatisticShow = false;
|
this.editStatisticShow = false;
|
||||||
|
this.editBgShow = false;
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user