|
@@ -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('删除成功');
|