a07128bd by 任超

style:申请业务规则配置

1 parent 8d88fef4
......@@ -5,4 +5,4 @@ NODE_ENV=development
VUE_APP_BASE_API = '/bdcdj'
# 开发环境
VUE_APP_API_BASE_URL = 'http://192.168.2.88:8018'
VUE_APP_API_BASE_URL = 'http://192.168.2.44:8018'
......
......@@ -197,7 +197,22 @@ export default {
}
},
handleMinus (index, row) {
this.tableData.splice(index, 1)
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.tableData.splice(index, 1)
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
// 上移下移
moveUpward (index, row) {
......@@ -210,4 +225,5 @@ export default {
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
......
......@@ -208,7 +208,7 @@ export default {
})
},
itemShowFalse () {
this.tableData.forEach((item, index) => {
this.tableData.length > 0 && this.tableData.forEach((item, index) => {
item.nodecodeShow = true
item.nodenameShow = false
item.djyyShow = false
......@@ -219,29 +219,54 @@ export default {
let container = this.$el.querySelector('.el-table__body-wrapper');
container.scrollTop = container.scrollHeight;
})
let code = this.tableData.slice(-1)[0].nodecode
let codeQ = code.slice(0, 6)
let len = ''
if (this.tableData.length + 1 < 9) {
len = 0 + String(this.tableData.length + 1)
if (this.djqx.length > 0) {
let code = this.tableData.slice(-1)[0].nodecode
let codeQ = code.slice(0, 6)
let len = ''
if (this.tableData.length + 1 < 9) {
len = 0 + String(this.tableData.length + 1)
} else {
len = this.tableData.length + 1
}
this.tableData.push(
{
nodecode: codeQ + len,
nodename: '',
enabled: '1',
djyy: '',
sfqydjyymb: '0'
}
)
} else {
len = this.tableData.length + 1
this.tableData.push(
{
nodename: '',
enabled: '1',
djyy: '',
sfqydjyymb: '0'
}
)
}
this.tableData.push(
{
nodecode: codeQ + len,
nodename: '',
enabled: '1',
djyy: '',
sfqydjyymb: '0'
}
)
this.addIndexes()
this.key++
},
handleMinus (index, row) {
this.tableData.splice(index, 1)
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.tableData.splice(index, 1)
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
nodecodeBlur (index, row) {
let list = _.cloneDeep(this.tableData).filter(item => item.bsmSqyw != row.bsmSqyw)
......@@ -257,12 +282,10 @@ export default {
moveUpward (index, row) {
upward(index, this.tableData)
this.key++
console.log(this.tableData);
},
moveDown (index, row) {
down(index, this.tableData)
this.key++
console.log(this.tableData);
}
}
}
......