正在显示
1 个修改的文件
包含
4 行增加
和
11 行删除
@@ -932,21 +932,14 @@ | @@ -932,21 +932,14 @@ | ||
932 | // 删除 | 932 | // 删除 |
933 | applyDel(index, row) { | 933 | applyDel(index, row) { |
934 | // 弹框询问是否删除? | 934 | // 弹框询问是否删除? |
935 | - this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', { | 935 | + this.$confirm('此操作永久删除该记录, 是否继续?', '警告', { |
936 | confirmButtonText: '确定删除', | 936 | confirmButtonText: '确定删除', |
937 | cancelButtonText: '取消', | 937 | cancelButtonText: '取消', |
938 | type: 'warning' | 938 | type: 'warning' |
939 | } | 939 | } |
940 | ).then(() => { | 940 | ).then(() => { |
941 | - // console.log(row); | ||
942 | - delInventoryrecord({uuid:row.uuid}).then((response) => { | ||
943 | - // console.log(row) | ||
944 | - const res = response.data | ||
945 | - this.$message.success(res.msg) | ||
946 | - this.getList() | ||
947 | - }).catch(err => { | ||
948 | - this.$message.error(err.toString()) | ||
949 | - }) | 941 | + console.log('del'+index); |
942 | + this.tableData.splice(index, 1) | ||
950 | }).catch(() => { | 943 | }).catch(() => { |
951 | }) | 944 | }) |
952 | }, | 945 | }, |
@@ -1191,7 +1184,7 @@ | @@ -1191,7 +1184,7 @@ | ||
1191 | 1184 | ||
1192 | }, | 1185 | }, |
1193 | multiply(str){ | 1186 | multiply(str){ |
1194 | - var everyNum = str.replace('X','x').split('x'); | 1187 | + var everyNum = str.replaceAll('X','x').split('x'); |
1195 | let tempNum = 1; | 1188 | let tempNum = 1; |
1196 | everyNum.forEach(item =>{ | 1189 | everyNum.forEach(item =>{ |
1197 | tempNum = tempNum*item | 1190 | tempNum = tempNum*item |
-
请 注册 或 登录 后发表评论