cloud-web-corejs-haier 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import userDialog from "../../../views/user/user/dialog";
2
- import positionDialog from "../../../views/user/position/dialog";
3
- import saleOrgDialog from "../../../views/user/sale_org/dialog";
4
- import roleDialog from "../../../views/user/role/dialog";
1
+ import userDialog from "@base/views/user/user/dialog";
2
+ import positionDialog from "@base/views/user/position/dialog";
3
+ import saleOrgDialog from "@base/views/user/sale_org/dialog";
4
+ import roleDialog from "@base/views/user/role/dialog";
5
5
 
6
6
  let modules = {};
7
7
  modules = {
@@ -9,17 +9,20 @@ modules = {
9
9
  _dataId: [String, Number],
10
10
  fileObjId: Number,
11
11
  treeNodeArr: Array,
12
- currentRow: Object
12
+ currentRow: Object,
13
13
  },
14
14
  components: {
15
- userDialog, positionDialog, saleOrgDialog, roleDialog
15
+ userDialog,
16
+ positionDialog,
17
+ saleOrgDialog,
18
+ roleDialog,
16
19
  },
17
- inject: ['current_prefix'],
20
+ inject: ["current_prefix", "getFileStoreArea"],
18
21
  data() {
19
22
  return {
20
23
  isEdit: false,
21
- tabIndex: 'first',
22
- dataId: '',
24
+ tabIndex: "first",
25
+ dataId: "",
23
26
  showDialog: true,
24
27
  fileObjAuth: {
25
28
  saleOrgName: null,
@@ -37,37 +40,41 @@ modules = {
37
40
  deleteAuth: 1,
38
41
  deleteDirAuth: 1,
39
42
  historyAuth: 1,
40
- shareAuth: 1
43
+ shareAuth: 1,
44
+ downWatermarkAuth: 0,
45
+ authAuth: 1,
41
46
  },
42
47
  showUserDialog: false,
43
48
  showPositionDialog: false,
44
49
  showSaleOrgDialog: false,
45
- showRoleDialog: false
50
+ showRoleDialog: false,
46
51
  };
47
52
  },
48
53
  created() {
49
54
  if (this.currentRow) {
50
- this.fileObjAuth = this.$baseLodash.cloneDeep(this.currentRow)
55
+ this.fileObjAuth = this.$baseLodash.cloneDeep(this.currentRow);
51
56
  }
52
- ;
53
57
  },
54
58
  computed: {
55
59
  title() {
56
- let prevTitle = this.currentRow ? this.$t2('查看', 'system.button.check') : this.$t2('新增', 'system.button.add')
57
- let title = prevTitle + this.$t2('文件权限', 'components.fileLibrary.fileAuth')
60
+ let prevTitle = this.currentRow
61
+ ? this.$t2("查看", "system.button.check")
62
+ : this.$t2("新增", "system.button.add");
63
+ let title =
64
+ prevTitle + this.$t2("文件权限", "components.fileLibrary.fileAuth");
58
65
  return title;
59
- }
60
- },
61
- mounted() {
62
-
66
+ },
67
+ fileStoreArea() {
68
+ return this.getFileStoreArea();
69
+ },
63
70
  },
71
+ mounted() {},
64
72
  methods: {
65
-
66
73
  saveData() {
67
- this.$refs.editForm.$baseValidate(valid => {
74
+ this.$refs.editForm.$baseValidate((valid) => {
68
75
  if (valid) {
69
- this.$emit("confirm", this.fileObjAuth);
70
- this.handleClose()
76
+ this.$emit("confirm", this.fileObjAuth);
77
+ this.handleClose();
71
78
  }
72
79
  });
73
80
  },
@@ -101,8 +108,8 @@ modules = {
101
108
  },
102
109
  handleClose() {
103
110
  this.showDialog = false;
104
- this.$emit("update:visiable", false)
105
- }
106
- }
111
+ this.$emit("update:visiable", false);
112
+ },
113
+ },
107
114
  };
108
115
  export default modules;
@@ -1,7 +1,7 @@
1
- import userDialog from "../../../views/user/user/dialog";
2
- import positionDialog from "../../../views/user/position/dialog";
3
- import saleOrgDialog from "../../../views/user/sale_org/dialog";
4
- import roleDialog from "../../../views/user/role/dialog";
1
+ import userDialog from "@base/views/user/user/dialog";
2
+ import positionDialog from "@base/views/user/position/dialog";
3
+ import saleOrgDialog from "@base/views/user/sale_org/dialog";
4
+ import roleDialog from "@base/views/user/role/dialog";
5
5
 
6
6
  let modules = {};
7
7
  modules = {
@@ -13,7 +13,7 @@ modules = {
13
13
  components: {
14
14
  userDialog, positionDialog, saleOrgDialog, roleDialog
15
15
  },
16
- inject: ['current_prefix'],
16
+ inject: ['current_prefix', 'getFileStoreArea'],
17
17
  data() {
18
18
  return {
19
19
  isEdit: false,