|
|
@@ -243,8 +243,8 @@
|
|
|
<el-table-column label="操作" width="180" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="flex-center">
|
|
|
- <div class="find-detail find-fill" @click="openEditDialog(scope.row)">编辑</div>
|
|
|
- <div class="find-detail find-fill1" @click="handleDelete(scope.row)">删除</div>
|
|
|
+ <div class="find-detail find-fill" :class="{ 'is-disabled': scope.row.createUser != currentUserId }" @click="scope.row.createUser == currentUserId && openEditDialog(scope.row)">编辑</div>
|
|
|
+ <div class="find-detail find-fill1" :class="{ 'is-disabled': scope.row.createUser != currentUserId }" @click="scope.row.createUser == currentUserId && handleDelete(scope.row)">删除</div>
|
|
|
<div class="find-detail find-fill2" @click="handleView(scope.row)">查看</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -690,6 +690,10 @@ export default {
|
|
|
};
|
|
|
return map[this.searchData.shareType] || "姓名";
|
|
|
},
|
|
|
+ currentUserId() {
|
|
|
+ const userInfo = this.$store.state.user.userInfo || {};
|
|
|
+ return userInfo.pid;
|
|
|
+ },
|
|
|
shareOptions() {
|
|
|
const userInfo = this.$store.state.user.userInfo || {};
|
|
|
const perm = String(userInfo.prescriptionSharePerm || "");
|
|
|
@@ -1402,6 +1406,12 @@ export default {
|
|
|
color: #fff !important;
|
|
|
border: 1px solid #68a8ff;
|
|
|
}
|
|
|
+
|
|
|
+ .find-detail.is-disabled {
|
|
|
+ opacity: 0.5;
|
|
|
+ cursor: not-allowed;
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|