|
|
@@ -55,7 +55,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="起始时间" prop="StartTime">
|
|
|
- <el-date-picker style="width: 100%" v-model="PerformanceForm.StartTime" type="date" placeholder="请选择起始时间">
|
|
|
+ <el-date-picker style="width: 100%" v-model="PerformanceForm.StartTime" type="date" placeholder="请选择起始时间" :picker-options="mainAchieveStartTimeOptions">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -111,6 +111,11 @@
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ mainAchieveStartTimeOptions: {
|
|
|
+ disabledDate (time) {
|
|
|
+ return time.getTime() > Date.now() - 8.64e6
|
|
|
+ }
|
|
|
+ },
|
|
|
visible: false,
|
|
|
SupplierId: '0',
|
|
|
SupplierCertId: '0',
|
|
|
@@ -266,7 +271,7 @@
|
|
|
},
|
|
|
deletedata (val) {
|
|
|
let _this = this
|
|
|
- _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
+ _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
@@ -280,20 +285,20 @@
|
|
|
type: 'success',
|
|
|
message: response.data.message
|
|
|
})
|
|
|
- _this.initData()
|
|
|
- } else {
|
|
|
+ _this.initData()
|
|
|
+ } else {
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: response.data.message
|
|
|
})
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
console.log(error)
|
|
|
- })
|
|
|
- })
|
|
|
+ })
|
|
|
+ })
|
|
|
.catch(() => {})
|
|
|
- },
|
|
|
+ },
|
|
|
showDialog () {
|
|
|
this.Title = '近三年主要业绩'
|
|
|
this.PerformanceForm.Id = 0
|