Compare commits

...

2 Commits

Author SHA1 Message Date
李磊 19c1ad3649 Merge remote-tracking branch 'origin/master' 3 years ago
李磊 8cfd8a1477 优化页面 3 years ago
  1. 31
      src/views/device_management/index.vue

31
src/views/device_management/index.vue

@ -299,16 +299,16 @@ const defaultForm = form({
checkDate: ''
})
// //
// const PrefixPlusText = {
// props: ['value', 'functions'],
// template: `
// <el-tag v-if="functions(value) === ''" effect="dark"><span v-html="functions(value)"></span></el-tag>
// <el-tag v-else-if="functions(value) === ''" type="danger" effect="dark"><span v-html="functions(value)"></span></el-tag>
// <el-tag v-else-if="functions(value) === ''" type="warning" effect="dark"><span v-html="functions(value)"></span></el-tag>
// <el-tag v-else type="info" effect="dark"><span v-html="functions(value)"></span></el-tag>
// `
// }
//
const PrefixPlusText = {
props: ['value', 'functions'],
template: `
<el-tag v-if="functions(value) === '在用'" effect="dark"><span v-html="functions(value)"></span></el-tag>
<el-tag v-else-if="functions(value) === ''" type="danger" effect="dark"><span v-html="functions(value)"></span></el-tag>
<el-tag v-else-if="functions(value) === '报废'" type="warning" effect="dark"><span v-html="functions(value)"></span></el-tag>
<el-tag v-else type="info" effect="dark"><span v-html="functions(value)"></span></el-tag>
`
}
export default {
name: 'InstrumentList',
@ -400,6 +400,17 @@ export default {
instrumentId: 0,
moveDialogVisible: false,
ifMeasure: false
/* pickerOptions1: {
//disabledDate
disabledDate: (time) => {
// setMonth()
let currentTime = this.value1;
let threeMonths = currentTime.setMonth(currentTime.getMonth()+3);
//
currentTime.setMonth(currentTime.getMonth()-3)
return time.getTime() < this.value1 || time.getTime() > threeMonths ;
}
}*/
}
},
mounted() {

Loading…
Cancel
Save