parent
d32d5b310d
commit
9d50729c7f
|
@ -36,6 +36,7 @@ export const setCertificateInformationEditPost = (params) => post("/app/specialU
|
|||
export const getDeptTree = (params) => post("/api/department/listzTree", params) //用户信息
|
||||
export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID",
|
||||
params) //获取EMPLOYMENTAPPLYMANAGEMENTID
|
||||
export const deleteCertificateInformation = (params) => post("/app/specialUser/deleteSpecialUser",params)
|
||||
|
||||
// 以下接口八项作业流程使用
|
||||
export const getCorpInfoList = (params) => post("/app/util/getCorp", params) //获取公司列表
|
||||
|
|
|
@ -335,7 +335,12 @@ export default {
|
|||
this.form.REVIEW_TIME = uni.$u.timeFormat(event.value, 'yyyy-mm-dd')
|
||||
},
|
||||
fnAfterRead(event) {
|
||||
var houzhui = event.file.url.replace(/.+\./, "");
|
||||
var houzhui
|
||||
if(event.file.name){
|
||||
houzhui = event.file.name.split('.').pop().toLowerCase();
|
||||
}else {
|
||||
houzhui = event.file.url.replace(/.+\./, "");
|
||||
}
|
||||
console.log(houzhui);
|
||||
if (houzhui == "jpg" || houzhui == "png") {
|
||||
this.form.fileList.push(event.file)
|
||||
|
@ -346,7 +351,12 @@ export default {
|
|||
}
|
||||
},
|
||||
fnAfterRead1(event) {
|
||||
var houzhui = event.file.url.replace(/.+\./, "");
|
||||
var houzhui
|
||||
if(event.file.name){
|
||||
houzhui = event.file.name.split('.').pop().toLowerCase();
|
||||
}else {
|
||||
houzhui = event.file.url.replace(/.+\./, "");
|
||||
}
|
||||
console.log(houzhui);
|
||||
if (houzhui == "jpg" || houzhui == "png") {
|
||||
this.form.fileListBack.push(event.file)
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
<u-button type="primary" text="查看" size="mini"
|
||||
@click="fnView(item.SPECIAL_USER_ID)"></u-button>
|
||||
</view>
|
||||
<view class="ml-10">
|
||||
<u-button type="error" text="删除" size="mini"
|
||||
@click="fnDel(item.SPECIAL_USER_ID)"></u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -37,7 +41,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {getCertificateInformationList, getCertificateInformationView} from "../../api";
|
||||
import {getCertificateInformationList, getCertificateInformationView,deleteCertificateInformation} from "../../api";
|
||||
import FabButton from '@/components/fab_button/index.vue'
|
||||
|
||||
export default {
|
||||
|
@ -96,6 +100,31 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
fnDel(SPECIAL_USER_ID){
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要删除该证书信息吗?',
|
||||
success: async (res) => {
|
||||
if (res.confirm) {
|
||||
// 调用删除接口
|
||||
try {
|
||||
await deleteCertificateInformation({ SPECIAL_USER_ID });
|
||||
uni.showToast({
|
||||
title: '删除成功',
|
||||
icon: 'success',
|
||||
});
|
||||
this.resetList();
|
||||
} catch (error) {
|
||||
uni.showToast({
|
||||
title: '删除失败',
|
||||
icon: 'none',
|
||||
});
|
||||
console.error('删除失败:', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue