Browse Source

删除提示信息优化

bing 6 days ago
parent
commit
9e3d33f501

+ 7 - 1
src/views/basics/merchant/ptAccount/index.vue

@@ -181,7 +181,13 @@ const handleSelectionChange = (selection: PtAccountVO[]) => {
181 181
 /** 删除按钮操作 */
182 182
 const handleDelete = async (row?: PtAccountVO) => {
183 183
   const _accountIds = row?.accountId || ids.value;
184
-  await proxy?.$modal.confirm('是否确认删除结算账户编号为"' + _accountIds + '"的数据项?').finally(() => (loading.value = false));
184
+  let msg = '';
185
+  if (row) {
186
+    msg = '是否确认删除账户为"' + row.accountName + '"的数据项?';
187
+  } else {
188
+    msg = '是否确认删除这"' + ids.value.length + '"项数据项?';
189
+  }
190
+  await proxy?.$modal.confirm(msg).finally(() => (loading.value = false));
185 191
   await delPtAccount(_accountIds);
186 192
   await getList();
187 193
   proxy?.$modal.msgSuccess('删除成功');

+ 8 - 2
src/views/basics/merchant/ptOperator/index.vue

@@ -62,7 +62,7 @@
62 62
         </el-row>
63 63
       </template>
64 64
 
65
-      <el-table v-loading="loading" :data="ptOperatorList" max-max-height="calc(100vh - 27rem)" @selection-change="handleSelectionChange">
65
+      <el-table v-loading="loading" :data="ptOperatorList" max-height="calc(100vh - 27rem)" @selection-change="handleSelectionChange">
66 66
         <el-table-column type="selection" width="55" align="center" />
67 67
         <el-table-column v-if="false" label="营业员Id" align="center" prop="operatorId" />
68 68
         <el-table-column v-if="columns[0].visible" label="所属结算账户" align="center" prop="accountName" />
@@ -175,7 +175,13 @@ const handleSelectionChange = (selection: PtOperatorVO[]) => {
175 175
 /** 删除按钮操作 */
176 176
 const handleDelete = async (row?: PtOperatorVO) => {
177 177
   const _operatorIds = row?.operatorId || ids.value;
178
-  await proxy?.$modal.confirm('是否确认删除营业员编号为"' + _operatorIds + '"的数据项?').finally(() => (loading.value = false));
178
+  let msg = '';
179
+  if (row) {
180
+    msg = '是否确认删除营业员名称为"' + row.operatorName + '"的数据项?';
181
+  } else {
182
+    msg = '是否确认删除这"' + ids.value.length + '"项数据项?';
183
+  }
184
+  await proxy?.$modal.confirm(msg).finally(() => (loading.value = false));
179 185
   await delPtOperator(_operatorIds);
180 186
   await getList();
181 187
   proxy?.$modal.msgSuccess('删除成功');

+ 1 - 1
src/views/monitor/operlog/index.vue

@@ -64,7 +64,7 @@
64 64
       <el-table
65 65
         ref="operLogTableRef"
66 66
         v-loading="loading"
67
-        max-max-height="calc(100vh - 27rem)"
67
+        max-height="calc(100vh - 27rem)"
68 68
         :data="operlogList"
69 69
         :default-sort="defaultSort"
70 70
         @selection-change="handleSelectionChange"