c03e57b7 by fanguang Committed by lihua

fix

1 parent 77830361
......@@ -155,9 +155,9 @@ const tableSelectionChange = (val, tId) => {
};
const tablePageChange = (info) => {
console.log('pageChange')
const toChange = checkSave()
const changeCont = () => {
console.log('info', info)
page.value.curr = Number(info.curr)
page.value.limit = Number(info.limit)
toSearch({})
......@@ -233,26 +233,23 @@ const tableBtnClick = (scope, btn) => {
} else if (type == 'save') {
saveData(scope)
} else if (type == 'cancel') {
console.log('cancel')
if (row.guid != undefined) {
// row = orginData.value[(page.value.curr - 1) * page.value.limit + scope.$index]
row = JSON.parse(JSON.stringify(orginData.value[scope.$index]))
row.STATE = ''
row.STATUS = ''
tableData.value[scope.$index] = row
console.log('1111')
} else {
tableData.value.splice(scope.$index, 1)
orginData.value.splice(scope.$index, 1)
// orginData.value.splice((page.value.curr - 1) * page.value.limit + scope.$index, 1)
// if (scope.$index == 0) {
// page.value.curr = (page.value.curr - 1 > 1) ? page.value.curr - 1 : 1
// }
// chunkData()
console.log('2222')
}
tableInfo.value.page.rows = tableData.value.length
// saveDisabled.value = true
console.log(tableData.value)
let haveState = tableData.value.some(item => item.STATE)
saveDisabled.value = !haveState
console.log('3333')
} else if (type == 'remove') {
open("是否确定删除所选数据?", "warning");
}
......
......@@ -984,7 +984,8 @@ const open = (msg, type, isBatch = false) => {
tableInfo.value.loading = true
deleteStandardCode(guids).then((res: any) => {
if (res.code == proxy.$passCode) {
getFirstPageData()
initTree().then(() => getFirstPageData())
// getFirstPageData()
ElMessage({
type: "success",
message: "删除成功",
......
......@@ -514,3 +514,17 @@ const viewGraph = () => {
}
}
</style>
<style lang="scss">
.tree_panel .el-tree .el-tree-node__content {
position: relative;
.list-item-text {
width: calc(100% - 58px)!important;
}
.tags-list-right {
position: absolute;
right: 0;
}
}
</style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!