|
@@ -94,10 +94,11 @@
|
|
|
style="width: 150px"
|
|
|
:format="BaseTool.Date.PICKER_NORM_DATE_PATTERN"
|
|
|
v-model="item.lastDate" />
|
|
|
+ <a-button type="primary" @click="handlePace(item.lastDate,'lastDate')">同步</a-button>
|
|
|
</td>
|
|
|
<td>{{ validity(item.lastDate,item.checkPeriod) }}</td>
|
|
|
- <td><a-input style="width: 150px" v-model="item.no" /></td>
|
|
|
- <td><a-input style="width: 150px" v-model="item.requirement" /></td>
|
|
|
+ <td><a-input style="width: 150px" v-model="item.no" /><a-button type="primary" @click="handlePace(item.no,'no')">同步</a-button></td>
|
|
|
+ <td><a-input style="width: 150px" v-model="item.requirement" /><a-button type="primary" @click="handlePace(item.requirement,'requirement')">同步</a-button></td>
|
|
|
<td><a-input style="width: 150px" v-model="item.remark" /></td>
|
|
|
<td>
|
|
|
<a-button type="link" @click="uploadImg(item,i)">上传图片</a-button>
|
|
@@ -260,6 +261,15 @@ export default {
|
|
|
this.sbParentOPt = i
|
|
|
this.$refs.sbInfoSelectModal.base({}, { isChild: this.DictCache.VALUE.SB_IS_CHILD.IS_PARENT, positionId })
|
|
|
},
|
|
|
+ handlePace (val, key) {
|
|
|
+ if (key === 'lastDate') {
|
|
|
+ val = this.BaseTool.Date.formatter(val, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN)
|
|
|
+ }
|
|
|
+ console.log(this.ListForm, val, key)
|
|
|
+ this.ListForm.forEach(item => {
|
|
|
+ item[key] = val
|
|
|
+ })
|
|
|
+ },
|
|
|
handleSbNoSelect (sbId, i) {
|
|
|
if (sbId === '' || sbId === null) {
|
|
|
this.$message.warning('请选择父设备!')
|