- {{ $dateFormat(new Date(selectIndex === 'INLAND_STAND' ? scope.row.SSRQ : (selectIndex === 'INLAND_LAWS' ? scope.row.XCXSSRQLAWS : scope.row.putTime)), "yyyy-MM-dd") }}
+
+ {{ dateFormat2(selectIndex === 'INLAND_STAND' ? scope.row.SSRQ : (selectIndex === 'INLAND_LAWS' ? scope.row.XCXSSRQLAWS : scope.row.putTime)) | ellipsis }}
@@ -1213,12 +1222,22 @@
import "../../../assets/zTree/js/jquery.ztree.excheck.js";
import "../../../assets/zTree/js/jquery.ztree.exedit.js";
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
+ import {dateFormat} from '@/common/date'
export default {
name: "advancedSearch",
components: {
TreeSelectNew
},
+ filters: {
+ ellipsis (value) {
+ if (!value) return ''
+ if (value.length > 10) {
+ return value.slice(0,11) + '...'
+ }
+ return value
+ }
+ },
data() {
return {
pickerOptions: {
@@ -1570,6 +1589,23 @@
};
},
methods: {
+ //时间处理
+ dateFormat2(str){
+ if(str === undefined || str === null || str === ''){
+ return ""
+ }else {
+ if(str.indexOf(",") !== -1){
+ const arr = str.split(",")
+ const arr1 = str.split(",")
+ arr.forEach( date =>{
+ arr1.push(dateFormat(date.trim()))
+ })
+ return arr1.toString()
+ }
+
+ }
+ return dateFormat(str)
+ },
getAddFormFieldList (isEdit) {
this.$http.get('lawss/sarStandAttrDetails/list', {}, {
_this: this