fix():移除多余代码
parent
99d6c5c20d
commit
59c1602b4d
|
@ -37,7 +37,7 @@ export function addConfig(data) {
|
||||||
// 修改参数配置
|
// 修改参数配置
|
||||||
export function updateConfig(data) {
|
export function updateConfig(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/config',
|
url: '/system/config/'+data.configId,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|
|
@ -244,7 +244,7 @@ function resetQuery() {
|
||||||
/** 多选框选中数据 */
|
/** 多选框选中数据 */
|
||||||
function handleSelectionChange(selection) {
|
function handleSelectionChange(selection) {
|
||||||
ids.value = selection.map(item => item.configId);
|
ids.value = selection.map(item => item.configId);
|
||||||
single.value = selection.length != 1;
|
single.value = selection.length !== 1;
|
||||||
multiple.value = !selection.length;
|
multiple.value = !selection.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ function handleUpdate(row) {
|
||||||
function submitForm() {
|
function submitForm() {
|
||||||
proxy.$refs["configRef"].validate(valid => {
|
proxy.$refs["configRef"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (form.value.configId != undefined) {
|
if (form.value.configId !== undefined) {
|
||||||
updateConfig(form.value).then(response => {
|
updateConfig(form.value).then(response => {
|
||||||
proxy.$modal.msgSuccess("修改成功");
|
proxy.$modal.msgSuccess("修改成功");
|
||||||
open.value = false;
|
open.value = false;
|
||||||
|
|
Loading…
Reference in New Issue