|
@@ -89,7 +89,7 @@
|
|
|
min-width="100"
|
|
min-width="100"
|
|
|
align="center"
|
|
align="center"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
|
prop="accountStatus"
|
|
prop="accountStatus"
|
|
|
label="状态"
|
|
label="状态"
|
|
|
min-width="80"
|
|
min-width="80"
|
|
@@ -105,7 +105,7 @@
|
|
|
:active-value="1"
|
|
:active-value="1"
|
|
|
:inactive-value="0"
|
|
:inactive-value="0"
|
|
|
/> </template
|
|
/> </template
|
|
|
- ></el-table-column>
|
|
|
|
|
|
|
+ ></el-table-column> -->
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="sharePermission"
|
|
prop="sharePermission"
|
|
|
label="分享权限"
|
|
label="分享权限"
|
|
@@ -121,6 +121,7 @@
|
|
|
inactive-text="禁用"
|
|
inactive-text="禁用"
|
|
|
:active-value="1"
|
|
:active-value="1"
|
|
|
:inactive-value="0"
|
|
:inactive-value="0"
|
|
|
|
|
+ @change="changeSharePermission($event, scope.row)"
|
|
|
/> </template
|
|
/> </template
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
|
|
|
@@ -298,6 +299,35 @@ function showUpdateModal(item, type) {
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+async function changeSharePermission(sharePermission, item) {
|
|
|
|
|
+ let postData = {
|
|
|
|
|
+ accountId: item.id,
|
|
|
|
|
+ name: item.userName,
|
|
|
|
|
+ phone: item.phone,
|
|
|
|
|
+ sharePermission,
|
|
|
|
|
+ loginAccountId: loginAccountId.value,
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ let res = await api["updateClient"](postData);
|
|
|
|
|
+ if (res.data.status == 0) {
|
|
|
|
|
+ ElNotification({
|
|
|
|
|
+ title: "成功",
|
|
|
|
|
+ duration: 1500,
|
|
|
|
|
+ message: res.data.msg,
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ });
|
|
|
|
|
+ resetForm();
|
|
|
|
|
+ getClientList();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElNotification({
|
|
|
|
|
+ title: "失败",
|
|
|
|
|
+ duration: 1500,
|
|
|
|
|
+ message: res.data.msg,
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
loginAccountId.value = localStorage.loginAccountId;
|
|
loginAccountId.value = localStorage.loginAccountId;
|
|
|
getClientList();
|
|
getClientList();
|