Merge remote-tracking branch 'origin/dev2.0' into dev2.0

20231126-yw
郑明梁 2 years ago
commit f917adbd3b

@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统
ENV = 'development'
# 开发环境
VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_BASE_API = 'http://127.0.0.1:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001"

@ -26,15 +26,14 @@ VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:83/UDI_WMS_MC/'
# 文明东2
# VUE_APP_BASE_API = 'http://192.168.0.61:9150/UDI_WMS_MC/'
# 东旭
# VUE_APP_BASE_API = 'http://192.168.0.153:9150/UDI_WMS_MC/'
刘恩典
# VUE_APP_BASE_API = 'http://192.168.0.54:9150/UDI_WMS_MC/'
# 平潭正式
# VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/'
# 吴总测试服务器
# 吴总测试服务器.
# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_WMS_MC/'
# 漳州中医院

@ -0,0 +1,10 @@
import axios from '@/utils/request'
export function getHeadSet(query) {
return axios({
url: "/udiwms/sys/table/head/find",
method: "get",
params: query
});
}

@ -206,7 +206,7 @@
>查询
</el-button
>
<!-- <el-button type="primary" icon="el-icon-plus" @click="editUdiType"></el-button>-->
<el-button type="primary" icon="el-icon-plus" @click="editUdiType"></el-button>
<el-button
type="primary"
icon="el-icon-plus"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,107 @@
<template>
<div class="table-head">
<p class="tip">
<i class="el-icon-s-opportunity"></i>
<span> 可拖动行排序</span>
</p>
<el-table
row-key="prop"
:data="tableShowList">
<el-table-column prop="label" label="表头名称" align="center"></el-table-column>
<el-table-column label="是否显示" width="120" align="center">
<template slot-scope="scope">
<el-checkbox v-model="scope.row.isShow"></el-checkbox>
</template>
</el-table-column>
<el-table-column label="调整顺序" width="120" align="center">
<template slot-scope="scope">
<i class="el-icon-rank"></i>
</template>
</el-table-column>
<el-table-column label="调整表头宽度">
<template slot-scope="scope">
<div class="flex-col">
<div>
<el-radio v-model="scope.row.isAuto" :label="true"></el-radio>
</div>
<div>
<el-radio v-model="scope.row.isAuto" :label="false"></el-radio>
<el-input-number v-show="!scope.row.isAuto" v-model="scope.row.width" size="mini"
controls-position="right" :min="100" :max="300"></el-input-number>
</div>
</div>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer tc">
<el-button size="medium" class="btn-wh" @click="isTableHead = false">关闭</el-button>
<el-button size="medium" class="btn-blue" type="primary" @click="saveTableHead()"></el-button>
</div>
</div>
</template>
<script>
import Sortable from 'sortablejs';
export default {
name: "tableHead",
props: {
tableShowList: Array
},
data() {
return {
isTableHead: false
};
},
methods: {
rowDrop() {
debugger
const tbody = document.querySelector('.table-head .el-table__body-wrapper tbody');
const _this = this;
Sortable.create(tbody, {
onEnd({newIndex, oldIndex}) {
const currRow = _this.tableShowList.splice(oldIndex, 1)[0];
_this.tableShowList.splice(newIndex, 0, currRow);
}
});
},
saveTableHead() {
this.isTableHead = false;
this.$emit('saveTableHead', this.tableShowList);
},
},
created() {
debugger
this.rowDrop();
}
};
</script>
<style lang="scss" scoped>
.table-head {
.tip {
i {
color: #E6A23C;
}
font-size: 14px;
padding-bottom: 10px;
}
.el-icon-rank {
font-size: 18px;
margin-left: 20px;
cursor: move;
}
.point {
color: #66b1ff;
&:hover {
color: #1A3679;
}
}
}
</style>

@ -178,6 +178,12 @@
</el-tab-pane>
<el-tab-pane label="相关人员">
</el-tab-pane>
<el-tab-pane label="维修记录">
</el-tab-pane>
<el-tab-pane label="巡检记录">
</el-tab-pane>
<el-tab-pane label="使用记录">
</el-tab-pane>
</el-tabs>
<el-dialog
:title="formMap[formName]"

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "AddHeadData"
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save