cloud-web-corejs 1.0.54-dev.606 → 1.0.54-dev.608

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.606",
4
+ "version": "1.0.54-dev.608",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -48,4 +48,7 @@ export default {
48
48
  .d-txt {
49
49
  white-space: pre-line;
50
50
  }
51
+ .el-icon-warning {
52
+ z-index: 5;
53
+ }
51
54
  </style>
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <a href="javascript:void(0);" class="a-link" @click="openHistoryDialog">
3
+ <el-tooltip
4
+ :enterable="false"
5
+ effect="dark"
6
+ :content="$t1('查看历史版本')"
7
+ placement="top"
8
+ popper-class="tooltip-skin"
9
+ >
10
+ <i class="el-icon-set-up">
11
+ <ftHistoryDialog
12
+ v-if="historyDialogVisible"
13
+ :visiable.sync="historyDialogVisible"
14
+ :objType="objType"
15
+ :objCode="objCode"
16
+ :relationCode="relationCode"
17
+ @reverCallback="reverCallback"
18
+ />
19
+ </i>
20
+ </el-tooltip>
21
+ </a>
22
+ </template>
23
+ <script>
24
+ export default {
25
+ name: "historyLink",
26
+ props: {
27
+ objType: {
28
+ type: String,
29
+ default: null,
30
+ },
31
+ objCode: {
32
+ type: String,
33
+ default: null,
34
+ },
35
+ relationCode: {
36
+ type: String,
37
+ default: null,
38
+ },
39
+ },
40
+ components: {
41
+ ftHistoryDialog: () =>
42
+ import("@base/views/bd/setting/formVersion/ftHistoryDialog.vue"),
43
+ },
44
+ data() {
45
+ return {
46
+ historyDialogVisible: false,
47
+ };
48
+ },
49
+ methods: {
50
+ openHistoryDialog() {
51
+ this.historyDialogVisible = true;
52
+ },
53
+ reverCallback() {
54
+ this.$emit("reverCallback");
55
+ },
56
+ },
57
+ };
58
+ </script>
@@ -98,6 +98,25 @@
98
98
  :readonly="true"
99
99
  ></projectTagView>
100
100
  </template>
101
+ <template #operation="{ row }">
102
+ <a href="javascript:void(0);" class="a-link" @click="openEditDialog(row)">
103
+ <el-tooltip
104
+ :enterable="false"
105
+ effect="dark"
106
+ :content="$t1('查看')"
107
+ placement="top"
108
+ popper-class="tooltip-skin"
109
+ >
110
+ <i class="el-icon-edit" />
111
+ </el-tooltip>
112
+ </a>
113
+ <formVersionButton
114
+ objType="FormScript"
115
+ :objCode="row.scriptCode"
116
+ :relationCode="row.formCode"
117
+ @reverCallback="searchEvent"
118
+ ></formVersionButton>
119
+ </template>
101
120
  </vxe-grid>
102
121
  </div>
103
122
  </el-tab-pane>
@@ -2,43 +2,112 @@
2
2
  <div id="containt">
3
3
  <x-tabs ref="xTabs" v-model="activeName" class="tab-box">
4
4
  <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
- @reload="$reloadHandle" :formCode="formCode" :scriptType="scriptType"></editView>
5
+ <editView
6
+ v-if="showEdit"
7
+ visible-key="showEdit"
8
+ :_dataId.sync="dataId"
9
+ :parent-target="_self"
10
+ @reload="$reloadHandle"
11
+ :formCode="formCode"
12
+ :scriptType="scriptType"
13
+ ></editView>
7
14
  </el-tab-pane>
8
15
  <el-tab-pane :label="$t1('列表')" name="second">
9
16
  <div class="grid-height">
10
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
- @custom="$vxeTableUtil.customHandle">
17
+ <vxe-grid
18
+ ref="table-m1"
19
+ v-bind="vxeOption"
20
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
21
+ @custom="$vxeTableUtil.customHandle"
22
+ >
12
23
  <template #form>
13
- <tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
24
+ <tableForm
25
+ :formData.sync="formData"
26
+ @searchEvent="searchEvent"
27
+ @resetEvent="resetEvent"
28
+ >
14
29
  <template #buttonLeft>
15
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
16
- v-if="isDev">{{ $t1('新增') }}
30
+ <vxe-button
31
+ status="primary"
32
+ class="button-sty"
33
+ icon="el-icon-plus"
34
+ @click="openEditDialog"
35
+ v-if="isDev"
36
+ >{{ $t1("新增") }}
17
37
  </vxe-button>
18
- <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">{{ $t1('导入发布') }}
38
+ <vxe-button
39
+ status="success"
40
+ class="button-sty"
41
+ icon="el-icon-download"
42
+ @click="jsonImport"
43
+ >{{ $t1("导入发布") }}
19
44
  </vxe-button>
20
- <vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
21
- v-if="isDev">{{ $t1('导出发布') }}
45
+ <vxe-button
46
+ status="success"
47
+ class="button-sty"
48
+ icon="el-icon-upload2"
49
+ @click="jsonExport"
50
+ v-if="isDev"
51
+ >{{ $t1("导出发布") }}
22
52
  </vxe-button>
23
53
  </template>
24
54
  <template #buttonRight>
25
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
26
- plain>{{$t1('重置')}}
55
+ <vxe-button
56
+ icon="el-icon-brush"
57
+ class="button-sty"
58
+ @click="resetEvent"
59
+ type="text"
60
+ status="primary"
61
+ plain
62
+ >{{ $t1("重置") }}
27
63
  </vxe-button>
28
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
64
+ <vxe-button
65
+ status="warning"
66
+ icon="el-icon-search"
67
+ class="button-sty"
68
+ @click="searchEvent"
69
+ >{{ $t1("搜索") }}
29
70
  </vxe-button>
30
71
  </template>
31
72
  </tableForm>
32
73
  </template>
74
+ <template #operation="{ row }">
75
+ <a href="javascript:void(0);" class="a-link" @click="openEditDialog(row)">
76
+ <el-tooltip
77
+ :enterable="false"
78
+ effect="dark"
79
+ :content="$t1('查看')"
80
+ placement="top"
81
+ popper-class="tooltip-skin"
82
+ >
83
+ <i class="el-icon-edit" />
84
+ </el-tooltip>
85
+ </a>
86
+ <formVersionButton
87
+ objType="FormScript"
88
+ :objCode="row.scriptCode"
89
+ :relationCode="row.formCode"
90
+ @reverCallback="searchEvent"
91
+ ></formVersionButton>
92
+ </template>
33
93
  </vxe-grid>
34
94
  </div>
35
95
  </el-tab-pane>
36
- <template #editTab="{tab,index,reloadTabContent}">
37
- <el-tab-pane :key="tab.data.id" :label.sync="tab.data.scriptName" :name="tab.data.id+''"
38
- :closable="true">
39
- <editView v-if="tab.showContent" :_dataId="tab.dataId" :formCode="formCode" :scriptType="scriptType"
40
- :parent-target="_self"
41
- @reload="reloadTabContent"></editView>
96
+ <template #editTab="{ tab, index, reloadTabContent }">
97
+ <el-tab-pane
98
+ :key="tab.data.id"
99
+ :label.sync="tab.data.scriptName"
100
+ :name="tab.data.id + ''"
101
+ :closable="true"
102
+ >
103
+ <editView
104
+ v-if="tab.showContent"
105
+ :_dataId="tab.dataId"
106
+ :formCode="formCode"
107
+ :scriptType="scriptType"
108
+ :parent-target="_self"
109
+ @reload="reloadTabContent"
110
+ ></editView>
42
111
  </el-tab-pane>
43
112
  </template>
44
113
  </x-tabs>
@@ -49,7 +118,7 @@
49
118
  import mixin from "./mixins/list";
50
119
 
51
120
  export default {
52
- name: 'form_script:list',
53
- mixins: [mixin]
121
+ name: "form_script:list",
122
+ mixins: [mixin],
54
123
  };
55
124
  </script>
@@ -139,6 +139,25 @@
139
139
  :readonly="true"
140
140
  ></projectTagView>
141
141
  </template>
142
+ <template #operation="{ row }">
143
+ <a href="javascript:void(0);" class="a-link" @click="openEditDialog(row)">
144
+ <el-tooltip
145
+ :enterable="false"
146
+ effect="dark"
147
+ :content="$t1('查看')"
148
+ placement="top"
149
+ popper-class="tooltip-skin"
150
+ >
151
+ <i class="el-icon-edit" />
152
+ </el-tooltip>
153
+ </a>
154
+ <formVersionButton
155
+ objType="FormScript"
156
+ :objCode="row.scriptCode"
157
+ :relationCode="row.formCode"
158
+ @reverCallback="searchEvent"
159
+ ></formVersionButton>
160
+ </template>
142
161
  </vxe-grid>
143
162
  </div>
144
163
  </div>