| | |
| | | v-model="queryParams.configName"
|
| | | placeholder="请输入参数名称"
|
| | | clearable
|
| | | size="small"
|
| | | style="width: 240px"
|
| | | @keyup.enter="handleQuery"
|
| | | />
|
| | |
| | | v-model="queryParams.configKey"
|
| | | placeholder="请输入参数键名"
|
| | | clearable
|
| | | size="small"
|
| | | style="width: 240px"
|
| | | @keyup.enter="handleQuery"
|
| | | />
|
| | | </el-form-item>
|
| | | <el-form-item label="系统内置" prop="configType">
|
| | | <el-select v-model="queryParams.configType" placeholder="系统内置" clearable size="small">
|
| | | <el-select v-model="queryParams.configType" placeholder="系统内置" clearable>
|
| | | <el-option
|
| | | v-for="dict in sys_yes_no"
|
| | | :key="dict.value"
|
| | |
| | | />
|
| | | </el-select>
|
| | | </el-form-item>
|
| | | <el-form-item label="创建时间">
|
| | | <el-form-item label="创建时间" style="width: 308px;">
|
| | | <el-date-picker
|
| | | v-model="dateRange"
|
| | | size="small"
|
| | | style="width: 240px"
|
| | | value-format="YYYY-MM-DD"
|
| | | type="daterange"
|
| | | range-separator="-"
|
| | |
| | | ></el-date-picker>
|
| | | </el-form-item>
|
| | | <el-form-item>
|
| | | <el-button type="primary" icon="Search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="Refresh" size="mini" @click="resetQuery">重置</el-button>
|
| | | <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
| | | </el-form-item>
|
| | | </el-form>
|
| | |
|
| | |
| | | type="primary"
|
| | | plain
|
| | | icon="Plus"
|
| | | size="mini"
|
| | | @click="handleAdd"
|
| | | v-hasPermi="['system:config:add']"
|
| | | >新增</el-button>
|
| | |
| | | type="success"
|
| | | plain
|
| | | icon="Edit"
|
| | | size="mini"
|
| | | :disabled="single"
|
| | | @click="handleUpdate"
|
| | | v-hasPermi="['system:config:edit']"
|
| | |
| | | type="danger"
|
| | | plain
|
| | | icon="Delete"
|
| | | size="mini"
|
| | | :disabled="multiple"
|
| | | @click="handleDelete"
|
| | | v-hasPermi="['system:config:remove']"
|
| | |
| | | type="warning"
|
| | | plain
|
| | | icon="Download"
|
| | | size="mini"
|
| | | @click="handleExport"
|
| | | v-hasPermi="['system:config:export']"
|
| | | >导出</el-button>
|
| | |
| | | type="danger"
|
| | | plain
|
| | | icon="Refresh"
|
| | | size="mini"
|
| | | @click="handleRefreshCache"
|
| | | v-hasPermi="['system:config:remove']"
|
| | | >刷新缓存</el-button>
|
| | |
| | | <el-table-column label="参数主键" align="center" prop="configId" />
|
| | | <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="configValue" />
|
| | | <el-table-column label="参数键值" align="center" prop="configValue" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="系统内置" align="center" prop="configType">
|
| | | <template #default="scope">
|
| | | <dict-tag :options="sys_yes_no" :value="scope.row.configType" />
|
| | |
| | | </el-table-column>
|
| | | <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-button
|
| | | size="mini"
|
| | | type="text"
|
| | | icon="Edit"
|
| | | @click="handleUpdate(scope.row)"
|
| | | v-hasPermi="['system:config:edit']"
|
| | | >修改</el-button>
|
| | | <el-button
|
| | | size="mini"
|
| | | type="text"
|
| | | icon="Delete"
|
| | | @click="handleDelete(scope.row)"
|
| | | v-hasPermi="['system:config:remove']"
|
| | | >删除</el-button>
|
| | | <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:config:edit']" >修改</el-button>
|
| | | <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:config:remove']">删除</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | <el-input v-model="form.configKey" placeholder="请输入参数键名" />
|
| | | </el-form-item>
|
| | | <el-form-item label="参数键值" prop="configValue">
|
| | | <el-input v-model="form.configValue" placeholder="请输入参数键值" />
|
| | | <el-input v-model="form.configValue" type="textarea" placeholder="请输入参数键值" />
|
| | | </el-form-item>
|
| | | <el-form-item label="系统内置" prop="configType">
|
| | | <el-radio-group v-model="form.configType">
|
| | | <el-radio
|
| | | v-for="dict in sys_yes_no"
|
| | | :key="dict.value"
|
| | | :label="dict.value"
|
| | | :value="dict.value"
|
| | | >{{ dict.label }}</el-radio>
|
| | | </el-radio-group>
|
| | | </el-form-item>
|
| | |
| | | loading.value = false;
|
| | | });
|
| | | }
|
| | |
|
| | | /** 取消按钮 */
|
| | | function cancel() {
|
| | | open.value = false;
|
| | | reset();
|
| | | }
|
| | |
|
| | | /** 表单重置 */
|
| | | function reset() {
|
| | | form.value = {
|
| | |
| | | };
|
| | | proxy.resetForm("configRef");
|
| | | }
|
| | |
|
| | | /** 搜索按钮操作 */
|
| | | function handleQuery() {
|
| | | queryParams.value.pageNum = 1;
|
| | | getList();
|
| | | }
|
| | |
|
| | | /** 重置按钮操作 */
|
| | | function resetQuery() {
|
| | | dateRange.value = [];
|
| | | proxy.resetForm("queryRef");
|
| | | handleQuery();
|
| | | }
|
| | |
|
| | | /** 多选框选中数据 */
|
| | | function handleSelectionChange(selection) {
|
| | | ids.value = selection.map(item => item.configId);
|
| | | single.value = selection.length != 1;
|
| | | multiple.value = !selection.length;
|
| | | }
|
| | |
|
| | | /** 新增按钮操作 */
|
| | | function handleAdd() {
|
| | | reset();
|
| | | open.value = true;
|
| | | title.value = "添加参数";
|
| | | }
|
| | |
|
| | | /** 修改按钮操作 */
|
| | | function handleUpdate(row) {
|
| | | reset();
|
| | |
| | | title.value = "修改参数";
|
| | | });
|
| | | }
|
| | |
|
| | | /** 提交按钮 */
|
| | | function submitForm() {
|
| | | proxy.$refs["configRef"].validate(valid => {
|
| | |
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | /** 删除按钮操作 */
|
| | | function handleDelete(row) {
|
| | | const configIds = row.configId || ids.value;
|
| | |
| | | proxy.$modal.msgSuccess("删除成功");
|
| | | }).catch(() => {});
|
| | | }
|
| | |
|
| | | /** 导出按钮操作 */
|
| | | function handleExport() {
|
| | | proxy.download("system/config/export", {
|
| | | ...queryParams.value
|
| | | }, `config_${new Date().getTime()}.xlsx`);
|
| | | }
|
| | |
|
| | | /** 刷新缓存按钮操作 */
|
| | | function handleRefreshCache() {
|
| | | refreshCache().then(() => {
|