cloud-web-corejs 1.0.54-dev.300 → 1.0.54-dev.302

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.300",
4
+ "version": "1.0.54-dev.302",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -727,7 +727,7 @@ modules = {
727
727
  return
728
728
  }
729
729
 
730
- this.rules.splice(0, this.rules.length) //清空已有
730
+ this.rules && this.rules.splice(0, this.rules.length) //清空已有
731
731
  },
732
732
 
733
733
  getValidateDefaultMsg(labelCode, vldName) {
@@ -3611,7 +3611,7 @@ export const businessFields = [
3611
3611
  icon: "uploadbox",
3612
3612
  commonFlag: !0,
3613
3613
  columnFlag: true,
3614
- formItemFlag: !0,
3614
+ formItemFlag: !1,
3615
3615
  options: {
3616
3616
  name: "",
3617
3617
  // label: "暂存",
@@ -28,14 +28,14 @@ modules = {
28
28
  },
29
29
  getFormEntityData(reqFormData) {
30
30
  let formRef = this.getFormRef ? this.getFormRef() : this;
31
- let formConfig = this.formConfig;
31
+ let formConfig = formRef.formConfig;
32
32
  let entity = formConfig.entity;
33
33
  if (!reqFormData) reqFormData = this.getReqFormData();
34
34
  return reqFormData.data[entity];
35
35
  },
36
36
  getReqFormData() {
37
37
  let formRef = this.getFormRef ? this.getFormRef() : this;
38
- let formConfig = this.formConfig;
38
+ let formConfig = formRef.formConfig;
39
39
  let entity = formConfig.entity;
40
40
  if (!entity) return
41
41
  let dataId = formRef?.dataId;
@@ -64,7 +64,7 @@ modules = {
64
64
  },
65
65
  saveDefaultHandle(option) {
66
66
  let formRef = this.getFormRef ? this.getFormRef() : this;
67
- let formConfig = this.formConfig;
67
+ let formConfig = formRef.formConfig;
68
68
  let entity = formConfig.entity;
69
69
  if (!entity) return
70
70
  let dataId = formRef?.dataId;
@@ -20,7 +20,7 @@
20
20
  <table class="table-detail">
21
21
  <tbody>
22
22
  <tr>
23
- <!-- <th>
23
+ <th>
24
24
  <em class="f-red">*</em>
25
25
  {{ $t1('岗位名称') }}
26
26
  </th>
@@ -40,7 +40,7 @@
40
40
  <el-form-item v-else prop="code" :rules="[{ required: true, trigger: 'blur' }]">
41
41
  <el-input type="text" autocomplete="off" v-model="position.code" clearable/>
42
42
  </el-form-item>
43
- </td> -->
43
+ </td>
44
44
  <th>{{ $t1('设置') }}</th>
45
45
  <td>
46
46
  <el-checkbox :label="$t1('是否启用')" v-model="position.enabled"></el-checkbox>