屏蔽功能允许发包时打开
This commit is contained in:
parent
9694e4d975
commit
196f8a1e55
|
@ -293,6 +293,24 @@
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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
|
<el-table-column
|
||||||
prop="isGoods"
|
prop="isGoods"
|
||||||
label="行业大拿"
|
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) {
|
changeY(val, artificerId) {
|
||||||
this.$http({
|
this.$http({
|
||||||
|
|
Loading…
Reference in New Issue