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