Merge remote-tracking branch 'origin/master'
| | |
| | | "js-pinyin": "^0.2.4", |
| | | "mockjs": "^1.0.1-beta3", |
| | | "moment": "^2.29.4", |
| | | "node-gyp": "^5.0.6", |
| | | "node-gyp": "^4.0.0", |
| | | "nprogress": "^0.2.0", |
| | | "portfinder": "^1.0.23", |
| | | "script-loader": "^0.7.2", |
| | |
| | | type: 'success', |
| | | message: '删除成功!' |
| | | }); |
| | | this.getDataList() |
| | | await this.getDataList() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | update(row).then(() => { |
| | | this.$message.success('修改成功') |
| | | done() |
| | | this.getList(); |
| | | }).catch(() => { |
| | | loading() |
| | | }) |
| | | console.log(row); |
| | | const date = new Date(row.ts); |
| | | const formattedDate = `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')} ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}:${date.getSeconds().toString().padStart(2, '0')}.${date.getMilliseconds().toString().padStart(3, '0')}`; |
| | | row.ts = formattedDate; |
| | | update(row) |
| | | .then(() => { |
| | | this.$message.success('修改成功'); |
| | | done(); |
| | | this.getList(); |
| | | }) |
| | | .catch(() => { |
| | | loading(); |
| | | }); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm('此操作将永久删除, 是否继续?', '提示', { |
| | |
| | | }, |
| | | { |
| | | click: this.handleItemCClick, |
| | | title: '主题库定义', |
| | | title: 'Part', |
| | | count: 523, |
| | | icon: 'el-icon-setting', |
| | | color: 'rgb(117, 56, 199)', |
| | | uiUrl:'/modeling/classifyTree', |
| | | uiUrl:'/MasterData/items?id=10@@name=Part', |
| | | countUrl:'priceIndexController/countNeedFeedbackPlan' |
| | | }, |
| | | { |
| | |
| | | this.$router.push({ path: '/MasterData/items?id=renyuan@@name=人员主数据'} ); |
| | | }, |
| | | handleItemCClick() { |
| | | this.$router.push({ path: '/modeling/classifyTree'} ); |
| | | this.$router.push({ path: '/MasterData/items?id=10@@name=Part'} ); |
| | | }, |
| | | handleItemDClick() { |
| | | this.$router.push({ path: '/MasterData/items?id=gongyingshang@@name=供应商主数据'} ); |
| | |
| | | this.dialogFormVisible = true |
| | | }, 1500) |
| | | } else if (res.data.data == 0) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: "操作成功" |
| | | }) |
| | | // this.$message({ |
| | | // type: 'success', |
| | | // message: "操作成功" |
| | | // }) |
| | | } |
| | | }).catch(res => { |
| | | console.log(res) |