Commit b08fee79 by v_vjyjiang

d

parent 3267a90f
......@@ -20,6 +20,12 @@ class TreeArchService extends ServiceBase {
upobj.sysArchJSON = JSON.stringify(sysArchJSON)
upobj.save({ transaction: t })
//节点删除,判断是否有子,如果有不能删除
if (!p.olddata) {//表示当卡删除节点动作
let at = await self.db.models.article.findOne({ where: { archpath: p.curdata.orgpath }, transaction: t })
// if (at) {
// }
}
if (p.olddata && p.olddata.orgpath != p.curdata.orgpath) {//如果路径编码修改了
let ats = await self.db.models.article.findAll({ where: { archpath: p.olddata.orgpath }, transaction: t })
for (let at of ats) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment