隐藏未提交状态下的审批按钮
This commit is contained in:
parent
40e64f0427
commit
b18f274121
@ -66,7 +66,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="mb8 btn-list">
|
<div class="mb8 btn-list">
|
||||||
<el-button
|
<!-- <el-button
|
||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['benyi:mathtermplan:edit']"
|
v-hasPermi="['benyi:mathtermplan:edit']"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
@ -147,6 +147,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['benyi:mathtermplan:edit']"
|
v-hasPermi="['benyi:mathtermplan:edit']"
|
||||||
|
v-show="isShow(scope.row)"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@ -305,6 +306,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 未提交不显示审批按钮
|
||||||
|
isShow(row) {
|
||||||
|
if (row.status == "0") {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
// 查询班级列表
|
// 查询班级列表
|
||||||
getClassList() {
|
getClassList() {
|
||||||
listClass(null).then((response) => {
|
listClass(null).then((response) => {
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="mb8 btn-list">
|
<div class="mb8 btn-list">
|
||||||
<el-button
|
<!-- <el-button
|
||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -98,7 +98,7 @@
|
|||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['benyi:thememonthplan:edit']"
|
v-hasPermi="['benyi:thememonthplan:edit']"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
@ -178,6 +178,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['benyi:thememonthplan:edit']"
|
v-hasPermi="['benyi:thememonthplan:edit']"
|
||||||
|
v-show="isShow(scope.row)"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@ -351,6 +352,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 未提交不显示审批按钮
|
||||||
|
isShow(row) {
|
||||||
|
if (row.status == "0") {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
// 当前状态类型--字典状态字典翻译
|
// 当前状态类型--字典状态字典翻译
|
||||||
statusFormat(row, column) {
|
statusFormat(row, column) {
|
||||||
return this.selectDictLabel(this.statusOptions, row.status);
|
return this.selectDictLabel(this.statusOptions, row.status);
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="mb8 btn-list">
|
<div class="mb8 btn-list">
|
||||||
<el-button
|
<!-- <el-button
|
||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['benyi:themetermplan:edit']"
|
v-hasPermi="['benyi:themetermplan:edit']"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
@ -147,7 +147,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['benyi:themetermplan:edit']"
|
v-hasPermi="['benyi:themetermplan:edit']"
|
||||||
|
v-show="isShow(scope.row)"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@ -304,6 +304,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 未提交不显示审批按钮
|
||||||
|
isShow(row) {
|
||||||
|
if (row.status == "0") {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
// 字典翻译
|
// 字典翻译
|
||||||
classFormat(row, column) {
|
classFormat(row, column) {
|
||||||
// return this.selectDictLabel(this.classOptions, row.classid);
|
// return this.selectDictLabel(this.classOptions, row.classid);
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="mb8 btn-list">
|
<div class="mb8 btn-list">
|
||||||
<el-button
|
<!-- <el-button
|
||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -98,7 +98,7 @@
|
|||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['benyi:themeweekplan:edit']"
|
v-hasPermi="['benyi:themeweekplan:edit']"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
@ -168,6 +168,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['benyi:themeweekplan:edit']"
|
v-hasPermi="['benyi:themeweekplan:edit']"
|
||||||
|
v-show="isShow(scope.row)"
|
||||||
>审批</el-button
|
>审批</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@ -334,6 +335,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 未提交不显示审批按钮
|
||||||
|
isShow(row) {
|
||||||
|
if (row.status == "0") {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
//班级列表
|
//班级列表
|
||||||
getClassList() {
|
getClassList() {
|
||||||
listClass(null).then((response) => {
|
listClass(null).then((response) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user