| | |
| | | * @description 拼接搜索条件 |
| | | * @param {Array} searches 搜索条件 |
| | | * @return {String} searchText 拼接结果 |
| | | * ---过滤条件(未使用)--- |
| | | * greaterorequal: ' >= ' |
| | | * lessorequal: ' <= ' |
| | | * like: ' LIKE ' |
| | | * less: ' < ' |
| | | * greater: ' > ' |
| | | * equal: ' = ' |
| | | * notlike: ' notlike ' |
| | | * in: ' in ' |
| | | * notin: ' notin ' |
| | | * leftlike/startwith |
| | | * rightlike/endwith |
| | | * rightnotlike/endnotwith |
| | | * leftnotlike/startnotwith |
| | | */ |
| | | static jointsearchkey (searches) { |
| | | if (!searches || searches.length === 0) return '' |
| | |
| | | }) |
| | | return searchText |
| | | } |
| | | |
| | | /** |
| | | * @description 获取图片真实路径 |
| | | * @return {String} url 图片路径 |
| | | */ |
| | | static getrealurl (url) { |
| | | if (!url) return '' |
| | | let baseurl = '' |
| | | if (process.env.NODE_ENV === 'production') { |
| | | baseurl = document.location.origin + '/' |
| | | } else { |
| | | baseurl = 'http://qingqiumarket.cn/MKWMS/' |
| | | } |
| | | let realurl = url.match(/^http/) || url.match(/^\/\//) ? url : baseurl + url |
| | | return realurl |
| | | } |
| | | } |