From 00062ed2e07d3d705abd1baa10ee483617f10dfb Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 09 六月 2023 18:44:57 +0800 Subject: [PATCH] 提交get请求中文编码问题,表名常量类,表别名枚举类 --- Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue b/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue index b6354df..a1afbc7 100644 --- a/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue +++ b/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue @@ -52,7 +52,8 @@ <div class="grid-content"> <el-select placeholder="璇烽�夋嫨" v-model="searchFormArrays[index].condition"> <el-option - v-for="condition in item.fieldType=='text' ? searchConditions:switchSearchConditions" + v-for="condition in item.fieldType==='text' || item.fieldType==='combox' ? + item.fieldType==='text' ? searchConditions:switchSearchConditions:dateConditions" :key="condition.value" :label="condition.label" :value="condition.value"> @@ -71,7 +72,12 @@ :value="option.itemValue"> </el-option> </el-select> - <el-switch v-else-if="item.fieldType==='truefalse'" v-model="searchFormArrays[index].fieldValue"></el-switch> + <el-switch v-else-if="item.fieldType==='truefalse'" v-model="searchFormArrays[index].fieldValue"></el-switch> + <el-date-picker v-else-if="item.fieldType==='date'" + v-model="searchFormArrays[index].fieldValue" + type="date" + placeholder="閫夋嫨鏃ユ湡"> + </el-date-picker> </div> </el-col> <el-col :span="2"> @@ -106,7 +112,7 @@ // 瀵硅瘽妗嗘樉绀烘帶鍒� isShowDialog: this.visible, initOptions: [], - // 瀛楁鏄緭鍏ユ绫诲瀷鐨勬潯浠舵暟缁� + // 瀛楁绫诲瀷鏄緭鍏ユ绫诲瀷鐨勬潯浠舵暟缁� searchConditions: [ { value: "_equal", @@ -120,15 +126,9 @@ },{ value: "_notlike", label: "涓嶅寘鍚�", - },{ - value: "_ge", //澶т簬锛岄粯璁や负澶т簬绛変簬 - label: "澶т簬", - },{ - value: "_le", //灏忎簬锛岄粯璁や负灏忎簬绛変簬 - label: "灏忎簬", - }, + } ], - // 瀛楁鏄崟閫夋垨涓嬫媺妗嗙被鍨嬬殑鏉′欢鏁扮粍 + // 瀛楁绫诲瀷鏄崟閫夋垨涓嬫媺妗嗙被鍨嬬殑鏉′欢鏁扮粍 switchSearchConditions: [ { value: "_equal", @@ -137,6 +137,22 @@ value: "_notequal", label: "涓嶇瓑浜�", } + ], + // 瀛楁绫诲瀷鏄棩鏈� + dateConditions: [ + { + value: "_equal", + label: "绛変簬", + },{ + value: "_notequal", + label: "涓嶇瓑浜�", + },{ + value: "_ge", //澶т簬锛岄粯璁や负澶т簬绛変簬 + label: "澶т簬", + },{ + value: "_le", //灏忎簬锛岄粯璁や负灏忎簬绛変簬 + label: "灏忎簬", + }, ], searchFormArrays: [], fieldValue: '', @@ -236,7 +252,7 @@ const searchConditions = this.searchFormArrays; for(let index = 0; index < searchConditions.length; index++) { //console.log(condtionParam['conditionMap['+searchConditions[index].queryField+']']+'' == 'undefined'); - if(searchConditions[index].fieldValue.trim() != '' || searchConditions[index].fieldValue+''==='false') { + if(searchConditions[index].fieldValue+'' != '' || searchConditions[index].fieldValue+''==='false') { // 瀛樺湪鐩稿悓鐨勬煡璇㈡潯浠� if(condtionParam['conditionMap['+searchConditions[index].queryField+']']+'' != 'undefined' ) { this.$message.warning("瀛樺湪閲嶅鏌ヨ鏉′欢锛岃浠旂粏鏍稿!"); @@ -247,7 +263,7 @@ condtionParam['conditionMap['+searchConditions[index].queryField+searchConditions[index].condition+']'] = searchConditions[index].fieldValue; } } - // 鏌ヨ鏉′欢娌℃湁鍑虹幇閲嶅灞炴�э紝骞朵笖杩囨护鎺変簡绌哄�硷紝浼犻�掔粰鐖剁粍浠� + // 鏌ヨ鏉′欢娌℃湁鍑虹幇閲嶅灞炴�э紝骞朵笖杩囨护鎺変簡绌哄�硷紝灏变紶閫掔粰鐖剁粍浠� // console.log(condtionParam); this.$emit('echoContion',condtionParam) this.isShowDialog = false; @@ -316,6 +332,9 @@ line-height: 40px; height: 40px; } + .grid-content > .el-date-editor.el-input, .el-date-editor.el-input__inner{ + width: 100%; + } </style> \ No newline at end of file -- Gitblit v1.9.3