Browse Source

前台审核按钮通过用户信息slaverAdmin字段判断

new-ays
1747191978@qq.com 3 months ago
parent
commit
87e075383d
  1. 53
      acupuncture-前台/src/views/medicalFile/index.vue

53
acupuncture-前台/src/views/medicalFile/index.vue

@ -109,7 +109,6 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['medicalFile:index:add']"
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
@ -121,7 +120,6 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['medicalFile:index:del']"
>删除</el-button >删除</el-button
> >
</el-col> </el-col>
@ -132,7 +130,6 @@
icon="el-icon-bottom" icon="el-icon-bottom"
size="mini" size="mini"
@click="handleDownload" @click="handleDownload"
v-hasPermi="['medicalFile:index:download']"
> >
下载模版 下载模版
</el-button> </el-button>
@ -144,7 +141,6 @@
icon="el-icon-upload2" icon="el-icon-upload2"
size="mini" size="mini"
@click="handleImport" @click="handleImport"
v-hasPermi="['medicalFile:index:import']"
>导入</el-button >导入</el-button
> >
</el-col> --> </el-col> -->
@ -155,7 +151,6 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['medicalFile:index:export']"
>导出</el-button >导出</el-button
> >
</el-col> </el-col>
@ -376,7 +371,6 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['medicalFile:index:edit']"
>修改</el-button >修改</el-button
> >
<el-button <el-button
@ -385,7 +379,6 @@
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['medicalFile:index:del']"
>删除</el-button >删除</el-button
> >
<el-button <el-button
@ -393,7 +386,6 @@
type="text" type="text"
icon="el-icon-tickets" icon="el-icon-tickets"
@click="handleDetails(scope.row)" @click="handleDetails(scope.row)"
v-hasPermi="['medicalFile:index:details']"
>档案详情</el-button >档案详情</el-button
> >
<el-button <el-button
@ -401,7 +393,6 @@
type="text" type="text"
icon="el-icon-notebook-2" icon="el-icon-notebook-2"
@click="handleEecorde(scope.row)" @click="handleEecorde(scope.row)"
v-hasPermi="['medicalFile:index:ecorde']"
>随访记录</el-button >随访记录</el-button
> >
<el-button <el-button
@ -409,7 +400,6 @@
type="text" type="text"
icon="el-icon-document-copy" icon="el-icon-document-copy"
@click="handleReport(scope.row)" @click="handleReport(scope.row)"
v-hasPermi="['medicalFile:index:report']"
>评估报告</el-button >评估报告</el-button
> >
<el-button <el-button
@ -418,31 +408,30 @@
type="text" type="text"
icon="el-icon-s-promotion" icon="el-icon-s-promotion"
@click="handleExamine(scope.row, 1)" @click="handleExamine(scope.row, 1)"
v-hasPermi="['medicalFile:index:examine']"
> >
提交审核 提交审核
</el-button> </el-button>
<!-- 审核 --> <!-- 审核 -->
<el-button <div v-if="userInfo.slaverAdmin">
:disabled="scope.row.status != 1" <el-button
size="mini" :disabled="scope.row.status != 1"
type="text" size="mini"
icon="el-icon-s-check" type="text"
@click="handleExamine(scope.row, 2)" icon="el-icon-s-check"
v-hasPermi="['medicalFile:index:pass']" @click="handleExamine(scope.row, 2)"
> >
通过 通过
</el-button> </el-button>
<el-button <el-button
:disabled="scope.row.status != 1" :disabled="scope.row.status != 1"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-s-check" icon="el-icon-s-check"
@click="handleExamine(scope.row, 3)" @click="handleExamine(scope.row, 3)"
v-hasPermi="['medicalFile:index:reject']" >
> 驳回
驳回 </el-button>
</el-button> </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -643,6 +632,7 @@ export default {
data() { data() {
return { return {
qzUrl: process.env.VUE_APP_API_QZURL, // qzUrl: process.env.VUE_APP_API_QZURL, //
userInfo: {},
// //
educationYears: [ educationYears: [
{ label: "文盲", value: 0 }, { label: "文盲", value: 0 },
@ -967,6 +957,7 @@ export default {
let idCard = this.$route.query.idCard; let idCard = this.$route.query.idCard;
this.queryParams.param.keywords = idCard || ""; this.queryParams.param.keywords = idCard || "";
this.getList(); this.getList();
this.userInfo = JSON.parse(localStorage.getItem("user"));
// this.getFollowupQuery(); // this.getFollowupQuery();
}, },
methods: { methods: {

Loading…
Cancel
Save