diff --git a/jshERP-web/src/components/AvatarList/List.vue b/jshERP-web/src/components/AvatarList/List.vue index fb3412c8b..da24d51f1 100644 --- a/jshERP-web/src/components/AvatarList/List.vue +++ b/jshERP-web/src/components/AvatarList/List.vue @@ -1,100 +1,91 @@ - - - \ No newline at end of file diff --git a/jshERP-web/src/components/Ellipsis/Ellipsis.vue b/jshERP-web/src/components/Ellipsis/Ellipsis.vue index 0001a3b21..1938af1c5 100644 --- a/jshERP-web/src/components/Ellipsis/Ellipsis.vue +++ b/jshERP-web/src/components/Ellipsis/Ellipsis.vue @@ -1,49 +1,36 @@ - \ No newline at end of file diff --git a/jshERP-web/src/components/_util/Area.js b/jshERP-web/src/components/_util/Area.js deleted file mode 100644 index 89cba1fbb..000000000 --- a/jshERP-web/src/components/_util/Area.js +++ /dev/null @@ -1,79 +0,0 @@ -import { pcaa } from 'area-data' - -/** - * 省市区 - */ -export default class Area { - /** - * 构造器 - * @param express - */ - constructor() { - let arr = [] - const province = pcaa['86'] - Object.keys(province).map(key=>{ - arr.push({id:key, text:province[key], pid:'86'}); - const city = pcaa[key]; - Object.keys(city).map(key2=>{ - arr.push({id:key2, text:city[key2], pid:key}); - const qu = pcaa[key2]; - Object.keys(qu).map(key3=>{ - arr.push({id:key3, text:qu[key3], pid:key2}); - }) - }) - }) - this.all = arr; - } - - get pca(){ - return this.all; - } - - getCode(text){ - if(!text || text.length==0){ - return '' - } - for(let item of this.all){ - if(item.text === text){ - return item.id; - } - } - } - - getText(code){ - if(!code || code.length==0){ - return '' - } - let arr = [] - this.getAreaBycode(code,arr); - return arr.join('/') - } - - getRealCode(code){ - let arr = [] - this.getPcode(code, arr) - return arr; - } - - getPcode(id, arr){ - for(let item of this.all){ - if(item.id === id){ - arr.unshift(id) - if(item.pid != '86'){ - this.getPcode(item.pid,arr) - } - } - } - } - - getAreaBycode(code,arr){ - //console.log("this.all.length",this.all) - for(let item of this.all){ - if(item.id === code){ - arr.unshift(item.text); - this.getAreaBycode(item.pid,arr) - } - } - } - -} \ No newline at end of file diff --git a/jshERP-web/src/components/_util/StringUtil.js b/jshERP-web/src/components/_util/StringUtil.js deleted file mode 100644 index 3f525982a..000000000 --- a/jshERP-web/src/components/_util/StringUtil.js +++ /dev/null @@ -1,35 +0,0 @@ -/** - * 获取字符串的长度ascii长度为1 中文长度为2 - * @param str - * @returns {number} - */ -export const getStrFullLength = (str = '') => - str.split('').reduce((pre, cur) => { - const charCode = cur.charCodeAt(0) - if (charCode >= 0 && charCode <= 128) { - return pre + 1 - } - return pre + 2 - }, 0) - -/** - * 给定一个字符串和一个长度,将此字符串按指定长度截取 - * @param str - * @param maxLength - * @returns {string} - */ -export const cutStrByFullLength = (str = '', maxLength) => { - let showLength = 0 - return str.split('').reduce((pre, cur) => { - const charCode = cur.charCodeAt(0) - if (charCode >= 0 && charCode <= 128) { - showLength += 1 - } else { - showLength += 2 - } - if (showLength <= maxLength) { - return pre + cur - } - return pre - }, '') -} \ No newline at end of file diff --git a/jshERP-web/src/components/_util/util.js b/jshERP-web/src/components/_util/util.js deleted file mode 100644 index 98752a94c..000000000 --- a/jshERP-web/src/components/_util/util.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * components util - */ - -/** - * 清理空值,对象 - * @param children - * @returns {*[]} - */ -export function filterEmpty (children = []) { - return children.filter(c => c.tag || (c.text && c.text.trim() !== '')) -} \ No newline at end of file diff --git a/jshERP-web/src/components/jeecg/JAreaLinkage.vue b/jshERP-web/src/components/jeecg/JAreaLinkage.vue index 47ff97ffb..c170bed6e 100644 --- a/jshERP-web/src/components/jeecg/JAreaLinkage.vue +++ b/jshERP-web/src/components/jeecg/JAreaLinkage.vue @@ -1,156 +1,155 @@ - - - - - \ No newline at end of file diff --git a/jshERP-web/vue.config.js b/jshERP-web/vue.config.js index 3cbb56ea8..2f2a38222 100644 --- a/jshERP-web/vue.config.js +++ b/jshERP-web/vue.config.js @@ -70,13 +70,6 @@ module.exports = { deleteOriginalAssets: false // 删除源文件 })) } - // 配置 webpack 识别 markdown 为普通的文件 - // config.module - // .rule('markdown') - // .test(/\.md$/) - // .use() - // .loader('file-loader') - // .end() }, css: { loaderOptions: {