刻字管理模块
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
</div>
|
||||
<div class="search-item_2">
|
||||
<button class="button button--primary" @click="_KzTasks">查询</button>
|
||||
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': pkId === ''}" @click="toSure1">强制完成</button>
|
||||
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': pkId === ''}" @click="toSure2">强制取消</button>
|
||||
<button class="button button--primary" :disabled="disabled3" :class="{'button--defalut': pkId === ''}" @click="_kzresend">重新下发</button>
|
||||
<button class="button button--primary" :disabled="disabled3" :class="{'button--defalut': pkId === ''}" @click="_kzresend">下发</button>
|
||||
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': pkId === ''}" @click="toSure1('1')">强制完成</button>
|
||||
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': pkId === ''}" @click="toSure2('2')">强制取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -57,12 +57,26 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<jxDialog
|
||||
ref="child"
|
||||
title="提示"
|
||||
:type="type"
|
||||
@toSure="toSureDialog"
|
||||
@toCancle="toCancle"
|
||||
>
|
||||
<div v-show="type === '1'" class="form_wraper">是否强制完成该任务?</div>
|
||||
<div v-show="type === '2'" class="form_wraper">是否强制取消该任务?</div>
|
||||
</jxDialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import jxDialog from '@components/dialog.vue'
|
||||
import {dictAll, KzTasks, operation, kzresend} from '@config/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
jxDialog
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
options1: [],
|
||||
@@ -72,7 +86,8 @@ export default {
|
||||
pkObj: {},
|
||||
disabled1: false,
|
||||
disabled2: false,
|
||||
disabled3: false
|
||||
disabled3: false,
|
||||
type: ''
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -101,21 +116,37 @@ export default {
|
||||
this.pkId = this.pkId === e.task_id ? '' : e.task_id
|
||||
this.pkObj = this.pkId === e.task_id ? e : {}
|
||||
},
|
||||
toSure1 () {
|
||||
toSure1 (type) {
|
||||
this.disabled1 = true
|
||||
if (this.pkId === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
this._operation('forceFinish')
|
||||
this.type = type
|
||||
this.$refs.child.active = true
|
||||
},
|
||||
toSure2 () {
|
||||
toSure2 (type) {
|
||||
this.disabled2 = true
|
||||
if (this.pkId === '') {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
this._operation('cancel')
|
||||
this.type = type
|
||||
this.$refs.child.active = true
|
||||
},
|
||||
toSureDialog (type) {
|
||||
switch (type) {
|
||||
case '1':
|
||||
this._operation('forceFinish')
|
||||
break
|
||||
case '2':
|
||||
this._operation('cancel')
|
||||
break
|
||||
}
|
||||
},
|
||||
toCancle () {
|
||||
this.disabled1 = false
|
||||
this.disabled2 = false
|
||||
},
|
||||
async _operation (type) {
|
||||
try {
|
||||
@@ -129,6 +160,7 @@ export default {
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
this.disabled2 = false
|
||||
this.$refs.child.active = false
|
||||
}
|
||||
},
|
||||
// 重新下发
|
||||
|
||||
Reference in New Issue
Block a user