| | |
| | | <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" />
|
| | |
| | | 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(() => {
|