c2785dc2 by xukangle

fix : loading效果

1 parent 80b9d247
...@@ -501,6 +501,7 @@ const saveUpdate = async () => { ...@@ -501,6 +501,7 @@ const saveUpdate = async () => {
501 }); 501 });
502 saveLoading.value = false; 502 saveLoading.value = false;
503 } else { 503 } else {
504 saveLoading.value = false;
504 proxy.$ElMessage.error(res.msg); 505 proxy.$ElMessage.error(res.msg);
505 } 506 }
506 } 507 }
......
...@@ -140,7 +140,7 @@ const tableInfo = ref({ ...@@ -140,7 +140,7 @@ const tableInfo = ref({
140 console.log(scope); 140 console.log(scope);
141 filterDataGradeEdit(scope.row.dataGrade); 141 filterDataGradeEdit(scope.row.dataGrade);
142 newCreateGradeStandardDialogInfo.value.visible = true; 142 newCreateGradeStandardDialogInfo.value.visible = true;
143 newCreateGradeStandardDialogInfo.value.title = '编辑分类'; 143 newCreateGradeStandardDialogInfo.value.title = '编辑标准';
144 newCreateGradeFormItems.value.forEach(item => { 144 newCreateGradeFormItems.value.forEach(item => {
145 item.default = scope.row[item.field]; 145 item.default = scope.row[item.field];
146 }) 146 })
...@@ -268,7 +268,7 @@ const newCreateGradeFormRules = ref({ ...@@ -268,7 +268,7 @@ const newCreateGradeFormRules = ref({
268 const newCreateGradeStandardDialogInfo = ref({ 268 const newCreateGradeStandardDialogInfo = ref({
269 visible: false, 269 visible: false,
270 size: 860, 270 size: 860,
271 title: "添加分类", 271 title: "新增标准",
272 type: "", 272 type: "",
273 formInfo: { 273 formInfo: {
274 id: "grade-form", 274 id: "grade-form",
...@@ -281,9 +281,8 @@ const newCreateGradeStandardDialogInfo = ref({ ...@@ -281,9 +281,8 @@ const newCreateGradeStandardDialogInfo = ref({
281 newCreateGradeStandardDialogInfo.value.visible = false; 281 newCreateGradeStandardDialogInfo.value.visible = false;
282 }, 282 },
283 submit: async (btn, info) => { 283 submit: async (btn, info) => {
284 console.log(info, guid);
285 newCreateGradeStandardDialogInfo.value.submitBtnLoading = true; 284 newCreateGradeStandardDialogInfo.value.submitBtnLoading = true;
286 if (newCreateGradeStandardDialogInfo.value.title === '编辑分类') { 285 if (newCreateGradeStandardDialogInfo.value.title === '编辑标准') {
287 const params = { 286 const params = {
288 ...info, 287 ...info,
289 guid: editClassifyGradeGuid.value, 288 guid: editClassifyGradeGuid.value,
...@@ -294,7 +293,7 @@ const newCreateGradeStandardDialogInfo = ref({ ...@@ -294,7 +293,7 @@ const newCreateGradeStandardDialogInfo = ref({
294 if (res.code == proxy.$passCode) { 293 if (res.code == proxy.$passCode) {
295 proxy.$ElMessage({ 294 proxy.$ElMessage({
296 type: 'success', 295 type: 'success',
297 message: '修改分类成功' 296 message: '编辑标准成功'
298 }) 297 })
299 getGradeListData(); 298 getGradeListData();
300 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false; 299 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false;
...@@ -312,7 +311,7 @@ const newCreateGradeStandardDialogInfo = ref({ ...@@ -312,7 +311,7 @@ const newCreateGradeStandardDialogInfo = ref({
312 if (res.code == proxy.$passCode) { 311 if (res.code == proxy.$passCode) {
313 proxy.$ElMessage({ 312 proxy.$ElMessage({
314 type: 'success', 313 type: 'success',
315 message: '新增分类成功' 314 message: '新增标准成功'
316 }) 315 })
317 getGradeListData(); 316 getGradeListData();
318 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false; 317 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false;
...@@ -369,6 +368,7 @@ const saveUpdate = async () => { ...@@ -369,6 +368,7 @@ const saveUpdate = async () => {
369 }); 368 });
370 saveLoading.value = false; 369 saveLoading.value = false;
371 } else { 370 } else {
371 saveLoading.value = false;
372 proxy.$ElMessage.error(res.msg); 372 proxy.$ElMessage.error(res.msg);
373 } 373 }
374 } 374 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!