Browse Source

新增双击复制

fix_bug_pro20231227
qb 1 year ago
parent
commit
f721a90f59
  1. 2
      src/api/distribution/distributionStockList.js
  2. 18
      src/components/tablecmt/tablecmt.vue
  3. 4
      vite.config.js

2
src/api/distribution/distributionStockList.js

@ -131,7 +131,7 @@ export const update = (row) => {
*/
export const getInventoryList = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionStockList/getLnventoryList',
url: '/api/logpm-distribution/distributionStockList/getInventoryList',
method: 'get',
params: {
...params,

18
src/components/tablecmt/tablecmt.vue

@ -157,21 +157,11 @@
<template #header>
<div style="display: inline-block">
<div class="tilbox">
<el-text class="mx-1 tabtitles">{{ column.label }}</el-text>
<el-icon
v-if="column.type == 1 || column.type == 2 || column.type == 3"
@click.stop="copyalls(column)"
><DocumentCopy
/></el-icon>
<el-text class="mx-1 tabtitles" @click.stop @dblclick.stop="copyalls(column)">{{
column.label
}}</el-text>
</div>
</div>
<!-- <el-input
v-if="column.type == 2"
v-model="column.values"
clearable
size="10"
placeholder="Type to search"
/> -->
</template>
</el-table-column>
</el-table>
@ -347,6 +337,8 @@ function godowns(url) {
let shownm = ref(false);
function copyalls(column: TableColumnType) {
const _isReturn = column.type == 1 || column.type == 2 || column.type == 3;
if (!_isReturn) return;
let text = '';
props.tableData.map((item, index) => {
if (index < props.tableData.length - 1) {

4
vite.config.js

@ -22,8 +22,8 @@ export default ({ mode, command }) => {
// cyz
// target: 'http://192.168.10.75:8777',
// tjj
// target: 'http://192.168.10.29:13000',
target: 'http://test.api.huitongys.com',
target: 'http://192.168.10.29:13000',
// target: 'http://test.api.huitongys.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),
},

Loading…
Cancel
Save