|
@@ -6,28 +6,30 @@
|
|
|
<a-button v-show="editor" :loading="confirmLoading" type="primary" @click="save()">保存</a-button>
|
|
|
<a-button style="margin-left: 8px" type="default" @click="handleCancel()">返回</a-button>
|
|
|
<a-button
|
|
|
- v-show="!editor"
|
|
|
+ v-if="$auth('fill-tasks-dispatch')"
|
|
|
+ v-show="!editor&&model.status!== 2"
|
|
|
style="margin-left: 8px"
|
|
|
type="primary"
|
|
|
@click="handleDispatch(model)"
|
|
|
>转派</a-button>
|
|
|
<a-button
|
|
|
- v-show="!editor"
|
|
|
+ v-if="$auth('fill-tasks-overtime')"
|
|
|
+ v-show="!editor&&model.status!== 2"
|
|
|
style="margin-left: 8px"
|
|
|
type="primary"
|
|
|
@click="handleOvertime(model)"
|
|
|
>延时</a-button>
|
|
|
|
|
|
<a-button
|
|
|
- v-show="!editor"
|
|
|
- v-if="model.status===5"
|
|
|
+ v-if="$auth('fill-tasks-pause')"
|
|
|
+ v-show="!editor && model.status===5&&model.status!== 2"
|
|
|
style="margin-left: 8px"
|
|
|
type="primary"
|
|
|
@click="handlePause(model)"
|
|
|
>取消暂停</a-button>
|
|
|
<a-button
|
|
|
- v-else
|
|
|
- v-show="!editor"
|
|
|
+ v-if="$auth('fill-tasks-pause')"
|
|
|
+ v-show="!editor&& model.status!==5&&model.status!== 2"
|
|
|
style="margin-left: 8px"
|
|
|
type="primary"
|
|
|
@click="handlePause(model)"
|