删除提示框文案修改现在不携带编号类数据

This commit is contained in:
zzyuan 2024-04-25 11:28:22 +08:00
parent 10e57c23ae
commit 9df0dae379
41 changed files with 47 additions and 42 deletions

View File

@ -274,7 +274,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const propIds = row.propId || this.ids; const propIds = row.propId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delPropInfo(propIds); return delPropInfo(propIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -409,7 +409,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const unitIds = row.unitId || this.ids; const unitIds = row.unitId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function () { this.$modal.confirm('是否确认删除所选择的数据项?').then(function () {
return delUnit(unitIds); return delUnit(unitIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -314,7 +314,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const proIds = row.proId || this.ids; const proIds = row.proId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delProject(proIds); return delProject(proIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -410,7 +410,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const lotIds = row.lotId || this.ids; const lotIds = row.lotId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function () { this.$modal.confirm('是否确认删除所选择的数据项?').then(function () {
return delProjectLot(lotIds); return delProjectLot(lotIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -313,7 +313,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const pIds = row.id || this.ids; const pIds = row.id || this.ids;
this.$modal this.$modal
.confirm("是否确认删除数据项?") .confirm("是否确认删除所选择的数据项?")
.then(function () { .then(function () {
return delUnitType(pIds); return delUnitType(pIds);
}) })

View File

@ -651,7 +651,7 @@ export default {
agreementId: row.agreementId + '', agreementId: row.agreementId + '',
} }
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function() { .then(function() {
return removeAgreement(param) return removeAgreement(param)
}) })

View File

@ -680,7 +680,7 @@
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function () { .then(function () {
return delType(dictIds) return delType(dictIds)
}) })

View File

@ -703,7 +703,7 @@
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function () { .then(function () {
return delType(dictIds) return delType(dictIds)
}) })

View File

@ -566,7 +566,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const roleIds = row.roleId || this.ids; const roleIds = row.roleId || this.ids;
this.$modal.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delRole(roleIds); return delRole(roleIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -620,7 +620,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function() { .then(function() {
return delType(dictIds) return delType(dictIds)
}) })

View File

@ -576,7 +576,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function() { .then(function() {
return delType(dictIds) return delType(dictIds)
}) })

View File

@ -836,7 +836,7 @@
id: row.id + '', id: row.id + '',
} }
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(() => { .then(() => {
return backApplyDelApi(param) return backApplyDelApi(param)
}) })

View File

@ -827,7 +827,7 @@
id: row.id + '', id: row.id + '',
} }
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(() => { .then(() => {
return backApplyDelApi(param) return backApplyDelApi(param)
}) })

View File

@ -797,7 +797,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function() { .then(function() {
return delType(dictIds) return delType(dictIds)
}) })

View File

@ -600,7 +600,7 @@
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function () { .then(function () {
return delType(dictIds) return delType(dictIds)
}) })

View File

@ -482,7 +482,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids; const dictIds = row.dictId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function () { this.$modal.confirm('是否确认删除所选择的数据项?').then(function () {
return delType(dictIds); return delType(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -419,7 +419,7 @@
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除字典编号为"' + dictIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delType(dictIds) return delType(dictIds)

View File

@ -273,7 +273,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids; const dictIds = row.dictId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delType(dictIds); return delType(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -393,7 +393,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const taskId = row.taskId || this.ids const taskId = row.taskId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function() { .then(function() {
return delPurchaseAccessory(taskId) return delPurchaseAccessory(taskId)
}) })

View File

@ -565,7 +565,7 @@ export default {
handleDelete(row) { handleDelete(row) {
console.log(row.id) console.log(row.id)
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(() => { .then(() => {
this.equipmentList.forEach((item, index) => { this.equipmentList.forEach((item, index) => {
if (item.id == row.id) { if (item.id == row.id) {

View File

@ -655,7 +655,7 @@
// console.log(row) // console.log(row)
const taskIds = row.taskId || this.ids const taskIds = row.taskId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function () { .then(function () {
return purchaseCheckInfoRemove(taskIds) return purchaseCheckInfoRemove(taskIds)
}) })

View File

@ -845,7 +845,7 @@
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除字典编号为"' + dictIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delType(dictIds) return delType(dictIds)

View File

@ -414,7 +414,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids; const dictIds = row.dictId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delType(dictIds); return delType(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -622,7 +622,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const roleIds = row.roleId || this.ids; const roleIds = row.roleId || this.ids;
this.$modal.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delRole(roleIds); return delRole(roleIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -345,7 +345,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids; const dictIds = row.dictId || this.ids;
this.$modal.confirm('是否确认删除字典编号为"' + dictIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delType(dictIds); return delType(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -485,7 +485,7 @@ export default {
handleDelete(row) { handleDelete(row) {
console.log(row.id) console.log(row.id)
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(() => { .then(() => {
this.equipmentList.forEach((item, index) => { this.equipmentList.forEach((item, index) => {
if (item.id == row.id) { if (item.id == row.id) {

View File

@ -749,7 +749,7 @@
handleDelete(row) { handleDelete(row) {
const maIds = row.maId const maIds = row.maId
this.$modal this.$modal
.confirm('是否确认删除编号为"' + maIds + '"的数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function () { .then(function () {
return delMachine(maIds) return delMachine(maIds)
}) })

View File

@ -276,7 +276,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids; const dictIds = row.dictId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delType(dictIds); return delType(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -318,7 +318,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const supplierIds = row.supplierId || this.ids; const supplierIds = row.supplierId || this.ids;
this.$modal.confirm('是否确认删除数据项?').then(function () { this.$modal.confirm('是否确认删除所选择的数据项?').then(function () {
return delSupplier(supplierIds); return delSupplier(supplierIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -590,7 +590,7 @@
const dictIds = row.dictId || this.ids const dictIds = row.dictId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除字典编号为"' + dictIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delType(dictIds) return delType(dictIds)

View File

@ -903,7 +903,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.dictId || this.ids; const dictIds = row.dictId || this.ids;
this.$modal.confirm('是否确认删除字典编号为"' + dictIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认所选择的数据项?').then(function() {
return delType(dictIds); return delType(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -319,7 +319,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const configIds = row.configId || this.ids; const configIds = row.configId || this.ids;
this.$modal.confirm('是否确认删除参数编号为"' + configIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delConfig(configIds); return delConfig(configIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -393,7 +393,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除字典编码为"' + dictCodes + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delDictData(dictCodes); return delDictData(dictCodes);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -321,7 +321,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const dictIds = row.pId || this.ids; const dictIds = row.pId || this.ids;
this.$modal.confirm('是否确认删除字典编号为"' + dictIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delDictData(dictIds); return delDictData(dictIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();

View File

@ -281,7 +281,7 @@
const infoIds = row.infoId || this.ids const infoIds = row.infoId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除访问编号为"' + infoIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delLogininfor(infoIds) return delLogininfor(infoIds)

View File

@ -422,7 +422,7 @@
const noticeIds = row.noticeId || this.ids const noticeIds = row.noticeId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除公告编号为"' + noticeIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delNotice(noticeIds) return delNotice(noticeIds)

View File

@ -420,7 +420,7 @@
const operIds = row.operId || this.ids const operIds = row.operId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除日志编号为"' + operIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delOperlog(operIds) return delOperlog(operIds)

View File

@ -379,7 +379,7 @@
const postIds = row.postId || this.ids const postIds = row.postId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除岗位编号为"' + postIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delPost(postIds) return delPost(postIds)

View File

@ -764,7 +764,7 @@
const roleIds = row.roleId || this.ids const roleIds = row.roleId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除角色编号为"' + roleIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delRole(roleIds) return delRole(roleIds)

View File

@ -70,7 +70,12 @@
<el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50" align="center" /> <el-table-column type="selection" width="50" align="center" />
<el-table-column label="序号" align="center" type="index" width="50" /> <!-- <el-table-column label="序号" align="center" type="index" width="50" /> -->
<el-table-column label="序号" align="center" width="80" type="index">
<template scope="scope">
<span>{{ (queryParams.pageNum - 1) * 10 + scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column label="用户名称" align="center" key="userName" prop="userName" <el-table-column label="用户名称" align="center" key="userName" prop="userName"
v-if="columns[1].visible" :show-overflow-tooltip="true" /> v-if="columns[1].visible" :show-overflow-tooltip="true" />
<el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" <el-table-column label="用户昵称" align="center" key="nickName" prop="nickName"
@ -580,7 +585,7 @@ export default {
const userIds = row.userId || this.ids const userIds = row.userId || this.ids
this.$modal this.$modal
.confirm( .confirm(
'是否确认删除用户编号为"' + userIds + '"的数据项?', '是否确认删除所选择的数据项?',
) )
.then(function () { .then(function () {
return delUser(userIds) return delUser(userIds)

View File

@ -325,7 +325,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const tableIds = row.tableId || this.ids; const tableIds = row.tableId || this.ids;
this.$modal.confirm('是否确认删除表编号为"' + tableIds + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delTable(tableIds); return delTable(tableIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();