稽查管理修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2683a5a7c9
commit
0c3a69d4d0
|
@ -4274,4 +4274,11 @@ export function addOrDeleteAuditRecordUser(data) {
|
|||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 稽查管理-删除
|
||||
export function deleteAuditRecord(auditRecordId) {
|
||||
return request({
|
||||
url: `/AuditDocument/deleteAuditRecord/${auditRecordId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
|
@ -44,7 +44,8 @@
|
|||
</el-form-item>
|
||||
<!-- 文档查看时间 -->
|
||||
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:from:ViewTime')" prop="ViewTime">
|
||||
<el-date-picker v-model="from.ViewTime" type="datetimerange" range-separator="-"
|
||||
<el-date-picker v-model="from.ViewTime" type="datetimerange"
|
||||
:default-time="['00:00:00', '23:59:59']" range-separator="-"
|
||||
:start-placeholder="$t('curriculumVitae:daterange:startTime')"
|
||||
:end-placeholder="$t('curriculumVitae:daterange:endTime')" value-format="yyyy-MM-dd HH:mm:ss"
|
||||
format="yyyy-MM-dd HH:mm:ss" clearable style="width: 100%;">
|
||||
|
@ -55,7 +56,7 @@
|
|||
prop="AuditState" v-if="state === 'edit'">
|
||||
<el-radio-group v-model="from.AuditState">
|
||||
<el-radio v-for="item in $d.AuditState" :key="item.id" :label="item.value">{{ item.label
|
||||
}}</el-radio>
|
||||
}}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</h3>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form :inline="true" class="base-search-form">
|
||||
<el-form :inline="true">
|
||||
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:CompanyName')">
|
||||
<el-input v-model="searchData.CompanyName" clearable placeholder=""></el-input>
|
||||
</el-form-item>
|
||||
|
@ -40,8 +40,8 @@
|
|||
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:viewTime')">
|
||||
<el-date-picker v-model="viewTime" type="datetimerange" range-separator="-"
|
||||
:start-placeholder="$t('curriculumVitae:daterange:startTime')"
|
||||
:end-placeholder="$t('curriculumVitae:daterange:endTime')" value-format="yyyy-MM-dd HH:mm:ss"
|
||||
format="yyyy-MM-dd HH:mm:ss" clearable>
|
||||
:default-time="['00:00:00', '23:59:59']" :end-placeholder="$t('curriculumVitae:daterange:endTime')"
|
||||
value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss" clearable>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:trials-workbench:inspectionManagement:table:createTime')">
|
||||
|
@ -65,6 +65,7 @@
|
|||
</el-form>
|
||||
<el-table id="auditDocumentTable" ref="auditDocumentTable" :data="tableData" style="width: 99%" row-key="Id"
|
||||
:loading="loading" v-adaptive="{ bottomOffset: 75 }" height="100" @sort-change="handleSortChange">
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column prop="CompanyName" show-overflow-tooltip
|
||||
:label="$t('trials:trials-workbench:inspectionManagement:table:CompanyName')" sortable="custom">
|
||||
</el-table-column>
|
||||
|
@ -111,18 +112,19 @@
|
|||
</el-table-column>
|
||||
<el-table-column :label="$t('common:action:action')" width="260" align="left" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="openDoc(false, scope.row)">
|
||||
{{ $t('trials:trials-workbench:inspectionManagement:button:viewDocument') }}
|
||||
</el-button>
|
||||
<el-button type="text" @click="openDoc(true, scope.row)">
|
||||
{{ $t('trials:trials-workbench:inspectionManagement:button:editDocument') }}
|
||||
</el-button>
|
||||
<el-button type="text" @click="openForm('edit', scope.row)">
|
||||
{{ $t('common:button:edit') }}
|
||||
</el-button>
|
||||
<el-button type="text" @click="openUserList(false, scope.row)">
|
||||
{{ $t('trials:trials-workbench:inspectionManagement:button:user') }}
|
||||
</el-button>
|
||||
<el-button circle icon="el-icon-view"
|
||||
:title="$t('trials:trials-workbench:inspectionManagement:button:viewDocument')"
|
||||
@click="openDoc(false, scope.row)" />
|
||||
<el-button circle icon="el-icon-edit-outline"
|
||||
:title="$t('trials:trials-workbench:inspectionManagement:button:editDocument')"
|
||||
@click="openDoc(true, scope.row)" />
|
||||
<el-button circle icon="el-icon-user"
|
||||
:title="$t('trials:trials-workbench:inspectionManagement:button:user')"
|
||||
@click="openUserList(false, scope.row)" />
|
||||
<el-button circle icon="el-icon-edit" :title="$t('common:button:edit')"
|
||||
@click="openForm('edit', scope.row)" />
|
||||
<el-button circle icon="el-icon-delete" :title="$t('common:button:delete')"
|
||||
:disabled="scope.row.AuditState > 0" @click="del(scope.row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -138,7 +140,7 @@
|
|||
</template>
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { getAuditRecordList } from '@/api/trials'
|
||||
import { getAuditRecordList, deleteAuditRecord } from '@/api/trials'
|
||||
import dataForm from "./dataForm.vue"
|
||||
import document from "./document.vue"
|
||||
import userList from './userList'
|
||||
|
@ -198,6 +200,22 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async del(row) {
|
||||
try {
|
||||
let confirm = await this.$confirm(this.$t("trials:trials-workbench:inspectionManagement:confirm:del"))
|
||||
if (!confirm) return false
|
||||
this.loading = true
|
||||
let res = await deleteAuditRecord(row.Id)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList()
|
||||
this.$message.success(this.$t("common:message:deletedSuccessfully"))
|
||||
}
|
||||
} catch (err) {
|
||||
this.loading = false
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
close() {
|
||||
this.config.visible = false
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue