diff --git a/core/frontend/src/lang/en.js b/core/frontend/src/lang/en.js
index 1b6da1b9cd..0d8ff92580 100644
--- a/core/frontend/src/lang/en.js
+++ b/core/frontend/src/lang/en.js
@@ -602,7 +602,14 @@ export default {
datasource: 'Datasource',
table: 'Table',
creator: 'Creator',
- createTime: 'Create Time'
+ createTime: 'Create Time',
+ operation: 'Operation',
+ operator: 'Operator',
+ operate_time: 'Operate Time',
+ modify: 'Modify',
+ show: 'Show',
+ delete: 'Delete',
+ show_data: 'Show Data'
},
data: {
confirm_delete: 'Confirm delete?'
@@ -611,7 +618,8 @@ export default {
confirm_enable: 'Confirm enable task?',
confirm_disable: 'Confirm disable task?'
},
- on_the_left: 'Please select a form on the left'
+ on_the_left: 'Please select a form on the left',
+ search_by_commit_name: 'Search by operator name'
},
detabs: {
custom_sort: 'Custom Sort',
diff --git a/core/frontend/src/lang/tw.js b/core/frontend/src/lang/tw.js
index eaf4026aaa..1029715311 100644
--- a/core/frontend/src/lang/tw.js
+++ b/core/frontend/src/lang/tw.js
@@ -602,7 +602,14 @@ export default {
datasource: '數據源',
table: '數據庫表',
creator: '創建人',
- createTime: '創建時間'
+ createTime: '創建時間',
+ operation: '操作',
+ operator: '操作人',
+ operate_time: '操作時間',
+ modify: '修改',
+ show: '查看',
+ delete: '刪除',
+ show_data: '查看數據'
},
data: {
confirm_delete: '確認刪除?'
@@ -611,7 +618,9 @@ export default {
confirm_enable: '確認啟動任務?(單次任務會新建下發任務)',
confirm_disable: '確認停止任務?'
},
- on_the_left: '請在左側選擇表單'
+ on_the_left: '請在左側選擇表單',
+ search_by_commit_name: '根據操作人名稱搜索'
+
},
detabs: {
custom_sort: '自定義排序',
diff --git a/core/frontend/src/lang/zh.js b/core/frontend/src/lang/zh.js
index cafbb8d4d4..150b50dacc 100644
--- a/core/frontend/src/lang/zh.js
+++ b/core/frontend/src/lang/zh.js
@@ -601,7 +601,14 @@ export default {
datasource: '数据源',
table: '数据库表',
creator: '创建人',
- createTime: '创建时间'
+ createTime: '创建时间',
+ operation: '操作',
+ operator: '操作人',
+ operate_time: '操作时间',
+ modify: '修改',
+ show: '查看',
+ delete: '删除',
+ show_data: '查看数据'
},
data: {
confirm_delete: '确认删除?'
@@ -610,7 +617,8 @@ export default {
confirm_enable: '确认启动任务?(单次任务会新建下发任务)',
confirm_disable: '确认停止任务?'
},
- on_the_left: '请在左侧选择表单'
+ on_the_left: '请在左侧选择表单',
+ search_by_commit_name: '根据操作人名称搜索'
},
detabs: {
custom_sort: '自定义排序',
diff --git a/core/frontend/src/views/dataFilling/form/ViewTable.vue b/core/frontend/src/views/dataFilling/form/ViewTable.vue
index d6eb477ec5..512aeecd32 100644
--- a/core/frontend/src/views/dataFilling/form/ViewTable.vue
+++ b/core/frontend/src/views/dataFilling/form/ViewTable.vue
@@ -181,7 +181,7 @@
@@ -190,19 +190,19 @@
type="text"
@click="updateRow(scope.row.data)"
>
- 修改
+ {{ $t('data_fill.form.modify') }}
- 查看
+ {{ $t('data_fill.form.show') }}
- 删除
+ {{ $t('data_fill.form.delete') }}
@@ -223,15 +223,16 @@
:offset="16"
>
@@ -251,7 +252,7 @@
@@ -271,7 +272,7 @@
{{ scope.row.commitByName ? scope.row.commitByName: scope.row.commitBy }}
@@ -280,7 +281,7 @@
{{ new Date(scope.row.commitTime).format("yyyy-MM-dd hh:mm:ss") }}
@@ -288,7 +289,7 @@
@@ -297,7 +298,7 @@
type="text"
@click="showData(scope.row)"
>
- 查看数据
+ {{ $t('data_fill.form.show_data') }}
@@ -325,7 +326,7 @@
:offset="8"
>
@@ -400,7 +402,7 @@
@@ -602,13 +604,31 @@ export default {
this.tasks = []
}
this.initTable(this.param.id)
+ },
+ tabActive: function(newVal, oldVal) {
+ this.resetPage()
+ if (newVal === 'record') {
+ this.searchTableRecordData()
+ } else if (newVal === 'task') {
+ this.searchFormTaskData()
+ } else {
+ this.searchTableData()
+ }
}
},
mounted() {
this.initTable(this.param.id)
},
methods: {
-
+ entryKey(type) {
+ if (type === 'record') {
+ this.$refs.search2.focus()
+ this.$refs.search2.blur()
+ } else if (type === 'task') {
+ this.$refs.search3.focus()
+ this.$refs.search3.blur()
+ }
+ },
initTable(id) {
this.resetPage()
this.searchTableData()
@@ -712,6 +732,7 @@ export default {
resetPage() {
this.operateName = ''
+ this.taskName = ''
this.paginationConfig = {
currentPage: 1,
pageSize: 10,
@@ -734,12 +755,12 @@ export default {
/* if (this.tabActive === 'dataPreview') {
this.initTable(this.param.id)
}*/
- if (this.tabActive === 'record') {
+ /* if (this.tabActive === 'record') {
this.searchTableRecordData()
}
if (this.tabActive === 'task') {
this.searchFormTaskData()
- }
+ }*/
},
showData(row) {
diff --git a/core/frontend/src/views/dataFilling/myTask/index.vue b/core/frontend/src/views/dataFilling/myTask/index.vue
index ce052c3e50..f2dd7071cb 100644
--- a/core/frontend/src/views/dataFilling/myTask/index.vue
+++ b/core/frontend/src/views/dataFilling/myTask/index.vue
@@ -54,8 +54,8 @@ export default {
},
watch: {
currentKey: {
- handler(newVal, oldVla) {
- if (newVal !== oldVla) {
+ handler(newVal, oldVal) {
+ if (newVal !== oldVal) {
this.myTaskName = ''
this.finishedTaskName = ''
this.expiredTaskName = ''
@@ -436,7 +436,7 @@ export default {
@@ -520,7 +520,7 @@ export default {