Merge branch 'master' of ssh://192.168.5.5:29418/web/SRM
New file |
| | |
| | | # 所有环境默认 |
| | | |
| | | # 页面 title 前缀 |
| | | VUE_APP_TITLE=Basic |
| | | NODE_ENV=development |
| | | VUE_APP_BATH_PATH='http://192.168.20.119:9084' |
| | | # 网络请求公用地址 |
| | | VUE_APP_API=/api/ |
| | | |
| | | # 仓库地址 |
| | | VUE_APP_REPO="" |
| | | |
| | | # 国际化配置 |
| | | VUE_APP_I18N_LOCALE=zh-chs |
| | | VUE_APP_I18N_FALLBACK_LOCALE=en |
| | | |
| | | # element 颜色 |
| | | VUE_APP_ELEMENT_COLOR=#2A78FB |
New file |
| | |
| | | # 开发环境 |
| | | # 指定构建模式 |
| | | NODE_ENV=development |
| | | |
| | | # 页面 title 前缀 |
| | | VUE_APP_TITLE=Basic |
| | | VUE_APP_BATH_PATH='http://192.168.20.119:9084' |
| | | |
New file |
| | |
| | | # 构建预览页面 |
| | | |
| | | # 指定构建模式 |
| | | NODE_ENV=production |
| | | |
| | | # 标记当前构建方式 |
| | | VUE_APP_BUILD_MODE=PREVIEW |
| | | VUE_APP_BATH_PATH='http://www.fai365.com:9084 |
| | | VUE_APP_SCOURCE_LINK=TRUE |
| | | |
| | | # 部署路径 |
| | | VUE_APP_PUBLIC_PATH=/ |
| | |
| | | return { |
| | | dialogWidth: "20%", |
| | | editConfig: this.editDropdownConfig, |
| | | tableData: [] |
| | | tableData: [], |
| | | isName: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | console.log(res.data) |
| | | this.tableData = res.data.data.list |
| | | this.tableData = res.data.list |
| | | }) |
| | | }, |
| | | // 所属行业 |
| | |
| | | name: "" |
| | | }) |
| | | }, |
| | | // 判断添加name是否为空 |
| | | determineNameEmpty(data) { |
| | | for (let i = 0; i < data.length; i++) { |
| | | if (data[i].name.length === 0) { |
| | | this.isName = true |
| | | break |
| | | } else { |
| | | this.isName = false |
| | | } |
| | | } |
| | | }, |
| | | async saveClick() { |
| | | console.log(this.tableData) |
| | | this.determineNameEmpty(this.tableData) |
| | | if (this.isName) { |
| | | this.$message.error("名称不能为空") |
| | | } else { |
| | | this.tableData.map((ite) => { |
| | | ite.ID = 0 |
| | | return { ...ite } |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <!-- Add "scoped" attribute to limit CSS to this component only --> |
| | |
| | | const list = res.data.data.list.map((item) => { |
| | | return { |
| | | ...item, |
| | | supplierName: item.supplier.name, |
| | | supplierNumber: item.supplier.number |
| | | } |
| | | }) |