shanbinzhang 4 月之前
父节点
当前提交
b5459c6f1b
共有 1 个文件被更改,包括 4 次插入9 次删除
  1. 4 9
      src/views/dataEntry_manage/chartSetting.vue

+ 4 - 9
src/views/dataEntry_manage/chartSetting.vue

@@ -1128,17 +1128,12 @@ export default {
       sessionStorage.removeItem('beforeOptions');
       //详情时判断是否是本人添加图表 若不是不用做保存校验 新增时要进入保存校验逻辑
       if (
-        (this.selected_chartid &&
-          (this.role === 'admin' ||
-            this.chartInfo.SysUserId === this.roleId)) ||
-        !this.chartInfo.SysUserId
+        this.selected_chartid &&
+        this.chartInfo.HaveOperaAuth &&
+        (this.role==='admin' || this.chartInfo.SysUserId===this.roleId || !this.chartInfo.SysUserId)
       ) {
         let arr = sessionStorage.getItem('defaultArr');
-        if (
-          arr &&
-          this.selected_chartid &&
-          arr !== JSON.stringify(this.tableData)
-        ) {
+        if (arr && arr !== JSON.stringify(this.tableData)) {
           this.$confirm('您还未保存此图表,是否确认保存?', '提示', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',