屏蔽功能允许发包时打开

This commit is contained in:
曹磊 2025-03-19 15:07:02 +08:00
parent 9694e4d975
commit 196f8a1e55
1 changed files with 49 additions and 0 deletions

View File

@ -293,6 +293,24 @@
</el-switch>
</template>
</el-table-column>
<el-table-column prop="adjustWay" label="自行调整出行" fixed="right" width="120">
<template slot-scope="scope">
<span style="color: #13ce66" v-if="scope.row.adjustWay === 1"
></span
>
<span style="color: #ff4949" v-else></span>
<el-switch
v-model="scope.row.adjustWay"
@change="changeW(scope.row.adjustWay, scope.row.artificerId)"
:active-value="openValue"
:disabled="!isAuth('locality:update')"
:inactive-value="closeValue"
active-color="#13ce66"
inactive-color="#ff4949"
>
</el-switch>
</template>
</el-table-column>
<el-table-column
prop="isGoods"
label="行业大拿"
@ -4548,6 +4566,37 @@ export default {
}
});
},
changeW(val, artificerId) {
this.$http({
url: this.$http.adornUrl("artificer/updateArtificers"),
method: "post",
// params: this.$http.adornParams({
data: this.$http.adornData({
artificerId: artificerId,
adjustWay: val,
}),
}).then(({ data }) => {
if (data.code == 0) {
this.$message({
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
this.InformationSelect();
},
});
} else {
this.$message({
message: data.msg,
type: "warning",
duration: 1500,
onClose: () => {
this.InformationSelect();
},
});
}
});
},
//
changeY(val, artificerId) {
this.$http({