通用培训材料发布、下线功能修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
4249ccd9d6
commit
a25aa2482f
|
@ -75,7 +75,7 @@
|
|||
<el-table v-adaptive="{ bottomOffset: 60 }" v-loading="loading" :data="list" stripe height="100"
|
||||
@sort-change="handleSortByColumn" @selection-change="handleSelectionChange">
|
||||
<!-- <el-table-column type="index" width="40" /> -->
|
||||
<el-table-column type="selection" width="55" :selectable="handleSelectable">
|
||||
<el-table-column type="selection" width="55">
|
||||
</el-table-column>
|
||||
<el-table-column prop="FileType" :label="$t('dictionary:signature:table:FileType')" show-overflow-tooltip
|
||||
sortable="custom" min-width="120px" />
|
||||
|
@ -140,8 +140,7 @@
|
|||
<el-button type="text" @click="handleEdit(scope.row)">
|
||||
{{ $t('common:button:edit') }}
|
||||
</el-button>
|
||||
<el-button :disabled="scope.row.IsPublish || scope.row.IsDeleted" type="text"
|
||||
@click="publishSystemDocument([scope.row])">
|
||||
<el-button :disabled="scope.row.IsPublish" type="text" @click="publishSystemDocument([scope.row])">
|
||||
{{ $t('dictionary:signature:button:publish') }}
|
||||
</el-button>
|
||||
<el-button :disabled="scope.row.IsDeleted" type="text" @click="handleRepeal([scope.row])">
|
||||
|
@ -239,9 +238,6 @@ export default {
|
|||
this.getUserType()
|
||||
},
|
||||
methods: {
|
||||
handleSelectable(row) {
|
||||
return !row.IsDeleted
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
|
@ -253,8 +249,9 @@ export default {
|
|||
distinguishCancelAndClose: true,
|
||||
})
|
||||
if (!confirm) return false
|
||||
let arr = list.filter(item => !item.IsPublish)
|
||||
let data = {
|
||||
ids: list.map(item => item.Id)
|
||||
ids: arr.map(item => item.Id)
|
||||
}
|
||||
this.loading = true
|
||||
let res = await publishSystemDocument(data)
|
||||
|
@ -340,8 +337,9 @@ export default {
|
|||
distinguishCancelAndClose: true,
|
||||
})
|
||||
.then(() => {
|
||||
let arr = row.filter(item => !item.IsDeleted)
|
||||
let data = {
|
||||
Ids: row.map(item => item.Id)
|
||||
Ids: arr.map(item => item.Id)
|
||||
}
|
||||
this.loading = true
|
||||
outLineSystemDocument(data)
|
||||
|
|
Loading…
Reference in New Issue