{{ $t('look') }}
@@ -145,6 +148,10 @@ export default {
look (id) {
this.$parent.selectComponent = 'TopicDetail'
this.$router.push({ path: '/analysis-topic-latest-topic', query: { id: id } })
+ },
+ btKeyUptopicContent(e){
+ e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
+ this.dataForm.topicContent = e.target.value
}
}
}
diff --git a/src/views/modules/analysis/user/gridopening.vue b/src/views/modules/analysis/user/gridopening.vue
index b0d448f..6126f4c 100644
--- a/src/views/modules/analysis/user/gridopening.vue
+++ b/src/views/modules/analysis/user/gridopening.vue
@@ -4,27 +4,19 @@
+ @keyup.enter.native="getDataListSearch()">
+ clearable
+ style="width:200px">
-
- 提交时间
-
-
+ placeholder="排序规则"
+ style="width:200px">
+
+
+
+
+
+
+
+
+
- {{ $t('query') }}
+ {{ $t('query') }}
- {{ $t('export') }}
总计
@@ -59,79 +75,85 @@
border
@selection-change="dataListSelectionChangeHandle"
style="width: 100%;">
-
-
- {{scope.$index+1}}
-
+
+
+ {{scope.$index+1}}
+
-
-
-
-
-
+ min-width="325px"
+ align="center"
+ show-overflow-tooltip>
+
+
@@ -140,7 +162,7 @@
@@ -157,7 +179,7 @@
ref="addOrUpdate"
@refreshDataList="getDataList">
-
@@ -244,7 +267,7 @@
确定
+ @click= "changeDialog()">确定
@@ -265,8 +288,11 @@ export default {
exportURL: '/analysis/user/export/grid0pining'
},
dataForm: {
- category: '1'
+ category: '1',
+ startTime:'',
+ endTime:''
},
+ isAble:false,
time: '',
options: [],
deptIdList: [],
@@ -285,7 +311,23 @@ export default {
onLineState: ''
},
totalList: [],
- totalVisible: false
+ totalVisible: false,
+ pickerBeginDateBefore: {
+ disabledDate: (time) => {
+ let beginDateVal = this.dataForm.endTime
+ if (beginDateVal) {
+ return time.getTime() > new Date(beginDateVal + ' 00:00:00').getTime()
+ }
+ }
+ },
+ pickerBeginDateAfter: {
+ disabledDate: (time) => {
+ let EndDateVal = this.dataForm.startTime
+ if (EndDateVal) {
+ return time.getTime() < new Date(EndDateVal + ' 00:00:00').getTime()
+ }
+ }
+ }
}
},
created () {
@@ -303,6 +345,10 @@ export default {
// this.getListCategory()
},
methods: {
+ changeDialog(){
+ this.totalVisible = false
+ this.isAble = false
+ },
initTime () {
const end = new Date()
const start = new Date()
@@ -404,13 +450,9 @@ export default {
this.dataForm.dept = choosenItem.name
this.dataForm.deptId = choosenItem.id
},
- setRegistTime () {
- console.log(this.time[0])
- this.dataForm.startTime = this.time[0]
- this.dataForm.endTime = this.time[1]
- },
// 获取总计
getAllCount () {
+ this.isAble = true
this.$http.get(`/analysis/user/pageGridDataToal`, {
params: {
order: this.order,
@@ -421,6 +463,7 @@ export default {
}
}).then(({ data: res }) => {
if (res.code !== 0) {
+ this.isAble = false
return this.$message.error(res.msg)
}
this.totalList = []
diff --git a/src/views/modules/analysis/user/metausergridopining.vue b/src/views/modules/analysis/user/metausergridopining.vue
index a3f3d86..0edf955 100644
--- a/src/views/modules/analysis/user/metausergridopining.vue
+++ b/src/views/modules/analysis/user/metausergridopining.vue
@@ -4,7 +4,7 @@