bufix 0705 zentao
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
@operate-event="handleOperate"
|
||||
:current-page="page"
|
||||
:current-size="size"
|
||||
:refresh-layout-key="refreshLayoutKey"
|
||||
/>
|
||||
:refresh-layout-key="refreshLayoutKey" />
|
||||
|
||||
<el-pagination
|
||||
class="mt-5 flex justify-end"
|
||||
@@ -23,8 +22,7 @@
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="size"
|
||||
:total="totalPage"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
></el-pagination>
|
||||
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
||||
|
||||
<DialogJustForm
|
||||
ref="edit-dialog"
|
||||
@@ -32,24 +30,21 @@
|
||||
v-if="!!dialogConfigs"
|
||||
:dialog-visible.sync="dialogVisible"
|
||||
:configs="dialogConfigs"
|
||||
@refreshDataList="getList"
|
||||
/>
|
||||
@refreshDataList="getList" />
|
||||
<DialogJustForm
|
||||
ref="car-payload-add-dialog"
|
||||
key="car-payload-add-dialog"
|
||||
v-if="!!carPayloadAddConfigs"
|
||||
:dialog-visible.sync="carPayloadAddVisible"
|
||||
:configs="carPayloadAddConfigs"
|
||||
@refreshDataList="getList"
|
||||
/>
|
||||
@refreshDataList="getList" />
|
||||
<DialogCarPayload
|
||||
ref="car-payload-dialog"
|
||||
key="car-payload-dialog"
|
||||
v-if="!!carPayloadDialogConfigs"
|
||||
:dialog-visible.sync="carPayloadDialogVisible"
|
||||
:configs="carPayloadDialogConfigs"
|
||||
@refreshDataList="getList"
|
||||
/>
|
||||
@refreshDataList="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -143,7 +138,7 @@ export default {
|
||||
dataList: [],
|
||||
tableLoading: false,
|
||||
refreshLayoutKey: null,
|
||||
cachedSearchCondition: {}
|
||||
cachedSearchCondition: {},
|
||||
};
|
||||
},
|
||||
inject: ["urls"],
|
||||
@@ -234,6 +229,7 @@ export default {
|
||||
if (deleteConfig && "promptField" in deleteConfig) {
|
||||
promptName = data[deleteConfig.promptField];
|
||||
}
|
||||
let currenPageListLength = this.dataList.length;
|
||||
// 确认是否删除
|
||||
return this.$confirm(`确定要删除记录 "${promptName}" 吗?`, "提示", {
|
||||
confirmButtonText: "确认",
|
||||
@@ -252,8 +248,9 @@ export default {
|
||||
}).then(({ data: res }) => {
|
||||
if (res.code === 0) {
|
||||
this.$message.success("删除成功!");
|
||||
this.page = 1;
|
||||
this.size = 10;
|
||||
// this.page = 1;
|
||||
// this.size = 10;let currenPageListLength = this.dataList.length;
|
||||
if (currenPageListLength == 1) this.page = this.page > 1 ? this.page - 1 : 1;
|
||||
this.getList();
|
||||
} else {
|
||||
this.$message({
|
||||
|
||||
Reference in New Issue
Block a user