更新
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2025-10-11 14:27:37
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2025-10-24 09:11:11
|
||||
* @LastEditTime: 2025-10-29 14:44:41
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -25,7 +25,7 @@
|
||||
<dept-select
|
||||
style="width: 200px"
|
||||
ref="deptSelect"
|
||||
@DeptId="setDeptId"></dept-select>
|
||||
@DeptId="setDeptId"></dept-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="班组名称" prop="name">
|
||||
<el-input
|
||||
@@ -45,12 +45,15 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
v-hasPermi="['base:group-team:query']"
|
||||
@click="buttonClick({ btnName: 'search' })">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<span class="separateStyle"></span>
|
||||
<span
|
||||
class="separateStyle"
|
||||
v-hasPermi="['base:group-team:query']"></span>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button size="small" @click="buttonClick({ btnName: 'reset' })">
|
||||
@@ -58,13 +61,16 @@
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<span class="separateStyle"></span>
|
||||
<span
|
||||
class="separateStyle"
|
||||
v-hasPermi="['base:group-team:create']"></span>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
:plain="true"
|
||||
v-hasPermi="['base:group-team:create']"
|
||||
@click="buttonClick({ btnName: 'add' })">
|
||||
新增
|
||||
</el-button>
|
||||
@@ -97,7 +103,7 @@
|
||||
@cancel="handleCancel"
|
||||
@confirm="handleConfirm"
|
||||
:before-close="handleCancel"
|
||||
:destroy-on-close="true"
|
||||
:destroy-on-close="true"
|
||||
width="50%">
|
||||
<add-or-update
|
||||
ref="addOrUpdate"
|
||||
@@ -118,16 +124,16 @@ const tableProps = [
|
||||
{
|
||||
prop: 'code',
|
||||
label: '班组编号',
|
||||
width: 140,
|
||||
width: 210,
|
||||
},
|
||||
{
|
||||
prop: 'name',
|
||||
label: '班组名称',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
prop: 'deptName',
|
||||
label: '所属部门',
|
||||
width: 110,
|
||||
},
|
||||
{
|
||||
prop: 'leaderName',
|
||||
@@ -136,6 +142,7 @@ const tableProps = [
|
||||
{
|
||||
prop: 'leaderPhone',
|
||||
label: '组长电话',
|
||||
width: 110,
|
||||
},
|
||||
{
|
||||
prop: 'num',
|
||||
@@ -145,12 +152,15 @@ const tableProps = [
|
||||
{
|
||||
prop: 'isProduction',
|
||||
label: '是否生产班组',
|
||||
filter: val=>{return val?'是':'否'},
|
||||
filter: (val) => {
|
||||
return val ? '是' : '否';
|
||||
},
|
||||
width: 110,
|
||||
},
|
||||
{
|
||||
prop: 'remark',
|
||||
label: '备注',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'createTime',
|
||||
@@ -175,10 +185,12 @@ export default {
|
||||
},
|
||||
tableProps,
|
||||
tableBtn: [
|
||||
{
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
},
|
||||
this.$auth.hasPermi('base:group-team:update')
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
}
|
||||
: undefined,
|
||||
].filter((v) => v),
|
||||
tableData: [],
|
||||
formInline: {
|
||||
@@ -231,9 +243,9 @@ export default {
|
||||
console.log(val);
|
||||
}
|
||||
},
|
||||
setDeptId(val){
|
||||
this.formInline.deptId = val
|
||||
}
|
||||
setDeptId(val) {
|
||||
this.formInline.deptId = val;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user