Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
d6a3bcba30
|
@ -36,10 +36,10 @@
|
|||
<el-input-number v-model="form.SignViewMinimumMinutes" controls-position="right" :min="1" :max="50" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:signature:form:CurrentStaffTrainDays')" prop="CurrentStaffTrainDays">
|
||||
<el-input-number v-model="form.CurrentStaffTrainDays" controls-position="right" :min="1" :max="1000" />
|
||||
<el-input-number v-model="form.CurrentStaffTrainDays" controls-position="right" :min="0" :max="1000" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('dictionary:signature:form:NewStaffTrainDays')" prop="NewStaffTrainDays">
|
||||
<el-input-number v-model="form.NewStaffTrainDays" controls-position="right" :min="1" :max="1000" />
|
||||
<el-input-number v-model="form.NewStaffTrainDays" controls-position="right" :min="0" :max="1000" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item v-if="form.Id !== ''" label="是否废除: ">
|
||||
<el-radio-group v-model="form.IsDeleted">
|
||||
|
@ -77,7 +77,7 @@ export default {
|
|||
FileTypeId: '',
|
||||
Name: '',
|
||||
Path: '',
|
||||
IsDeleted: false,
|
||||
IsDeleted: true,
|
||||
SignViewMinimumMinutes: null,
|
||||
DocUserSignType: 0,
|
||||
CurrentStaffTrainDays: null,
|
||||
|
|
|
@ -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])">
|
||||
|
@ -240,7 +239,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleSelectable(row) {
|
||||
return !row.IsDeleted
|
||||
return !row.IsDeleted || !row.IsPublish
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
|
@ -253,8 +252,10 @@ export default {
|
|||
distinguishCancelAndClose: true,
|
||||
})
|
||||
if (!confirm) return false
|
||||
let arr = list.filter(item => !item.IsPublish)
|
||||
if (arr.length <= 0) return this.getList()
|
||||
let data = {
|
||||
ids: list.map(item => item.Id)
|
||||
ids: arr.map(item => item.Id)
|
||||
}
|
||||
this.loading = true
|
||||
let res = await publishSystemDocument(data)
|
||||
|
@ -340,8 +341,10 @@ export default {
|
|||
distinguishCancelAndClose: true,
|
||||
})
|
||||
.then(() => {
|
||||
let arr = row.filter(item => !item.IsDeleted)
|
||||
if (arr.length <= 0) return this.getList()
|
||||
let data = {
|
||||
Ids: row.map(item => item.Id)
|
||||
Ids: arr.map(item => item.Id)
|
||||
}
|
||||
this.loading = true
|
||||
outLineSystemDocument(data)
|
||||
|
|
Loading…
Reference in New Issue