添加系统详情
This commit is contained in:
@@ -77,8 +77,10 @@
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysMedinceList:detail'" type="text"
|
||||
@click="handleDetail(record,'detail')"><icon-book />详情</a-button>
|
||||
<a-button v-has="'admin:sysMedinceList:edit'" type="text"
|
||||
@click="handleDetail(record)"><icon-edit />修改</a-button>
|
||||
@click="handleDetail(record,'edit')"><icon-edit />修改</a-button>
|
||||
<!-- <a-button v-has="'admin:sysMedinceList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||
修改</a-button> -->
|
||||
<!-- <a-button v-has="'admin:sysMedinceList:remove'" type="text"
|
||||
@@ -205,14 +207,20 @@
|
||||
};
|
||||
|
||||
//详情
|
||||
const handleDetail = async (record) => {
|
||||
const handleDetail = async (record,type) => {
|
||||
const { code, data, message } = await getSysMedinceDetail(record.product_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
if(type=="edit"){
|
||||
modalSatus.value = 'edit';
|
||||
modalTitle.value = '修改药品';
|
||||
}else{
|
||||
modalSatus.value = 'detail';
|
||||
modalTitle.value = '药品详情';
|
||||
}
|
||||
modalVisible.value = true;
|
||||
modalSatus.value = 'edit';
|
||||
modalTitle.value = '修改药品';
|
||||
|
||||
}
|
||||
};
|
||||
// 批量删除
|
||||
|
||||
Reference in New Issue
Block a user