|
|
@@ -29,10 +29,10 @@
|
|
|
<td>@{{ i+1 }}</td>
|
|
|
<td>@{{ demand.type }}</td>
|
|
|
<td class="">
|
|
|
- <textarea class="form-control" rows="2" cols="15" :value="demand.description" @change="updateDemand(demand,'description',$event)" :disabled="demand['status'] === '已处理'"></textarea>
|
|
|
+ <textarea class="form-control" rows="2" cols="15" :value="demand.description" @change="updateDemand(demand,'description',$event)" :disabled="demand['status'] !== '未处理'"></textarea>
|
|
|
</td>
|
|
|
<td class="text-left p-0" @mouseenter="showAddBtn(demand)" @mouseleave="showAddBtn(demand)" >
|
|
|
- <button class="btn btn-primary position-absolute d-none" :id="'addBtn_'+demand['id']" style="margin-top: -40px;" @click="toggleAddDiv(demand,demand['id'])">新</button>
|
|
|
+ <button class="btn btn-primary position-absolute d-none" :id="'addBtn_'+demand['id']" style="margin-top: -35px;" @click="toggleAddDiv(demand,demand['id'])" v-if="demand['status'] !== '已处理'">新</button>
|
|
|
<div>
|
|
|
<div :id="'addDiv_'+demand['id']" class="form-inline float-right d-none">
|
|
|
<input type="text" class="form-control" :id="'addProcess'+demand['id']" style="width: 300px">
|
|
|
@@ -47,7 +47,7 @@
|
|
|
<td>@{{ process.user ? process.user.name : '' }}</td>
|
|
|
<td>@{{ process.created_at }}</td>
|
|
|
<td class="p-0 m-0" style="width: 35px;max-width: 35px">
|
|
|
- <button :id="'demand-'+demand['id']+'process-'+process['id']" type="button" @click="deleteProcess(demand,process,process_i,i)" class="btn btn-sm btn-outline-danger d-none m-0" >删</button>
|
|
|
+ <button :id="'demand-'+demand['id']+'process-'+process['id']" type="button" @click="deleteProcess(demand,process,process_i,i)" class="btn btn-sm btn-outline-danger d-none m-0" v-if="demand['status'] !== '已处理'">删</button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</template>
|