Browse Source

Merge branch 'gn_fix' into debug

shanbinzhang 4 months ago
parent
commit
cbacc52d3a
1 changed files with 4 additions and 9 deletions
  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: '取消',