@@ -186,7 +186,7 @@
@click="isShowRollback = true"
>退回
-
+ >
-
-
-
-
-
-
-
@@ -330,10 +307,6 @@ export default {
},
data() {
return {
- timeId:'',
- isShowTime:false,
- selectedDateTime:'',
- selectedDateType:'',
isShowModal:false,
contractUrl:'',
printKey: 0,
@@ -855,7 +828,7 @@ export default {
}
})
}
-
+
}
console.log("copyForm",copyForm,this.fields)
console.log("this.writeableFields",this.writeableFields)
@@ -916,43 +889,24 @@ export default {
async cellDblclickEvent({ row, column }) {
// if(this.$store.state.user.username !== 'admin') return
- if(!this.$store.state.user.roles.includes("全局流程监管")) return
if(column.field === 'created_at' || column.field === 'updated_at') {
- this.timeId = row.id
- this.selectedDateType = column.field
- this.selectedDateTime = row[column.field]
- this.isShowTime = true
- // this.$prompt('请输入时间', '提示', {
- // confirmButtonText: '确定',
- // cancelButtonText: '取消',
- // inputPattern: /^(?:19|20)[0-9][0-9]-(?:(?:0[1-9])|(?:1[0-2]))-(?:(?:[0-2][1-9])|(?:[1-3][0-1])) (?:(?:[0-2][0-3])|(?:[0-1][0-9])):[0-5][0-9]:[0-5][0-9]$/,
- // inputErrorMessage: '时间格式不正确'
- // }).then(({ value }) => {
- // updateNodeTime({
- // id: row.id,
- // date: value,
- // date_type: column.field
- // }).then(_ => {
- // this.$message.success('更新成功')
- // this.getConfig()
- // })
- // })
+ this.$prompt('请输入时间', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ inputPattern: /^(?:19|20)[0-9][0-9]-(?:(?:0[1-9])|(?:1[0-2]))-(?:(?:[0-2][1-9])|(?:[1-3][0-1])) (?:(?:[0-2][0-3])|(?:[0-1][0-9])):[0-5][0-9]:[0-5][0-9]$/,
+ inputErrorMessage: '时间格式不正确'
+ }).then(({ value }) => {
+ updateNodeTime({
+ id: row.id,
+ date: value,
+ date_type: column.field
+ }).then(_ => {
+ this.$message.success('更新成功')
+ this.getConfig()
+ })
+ })
}
},
- updateTime(){
- updateNodeTime({
- id: this.timeId,
- date: this.selectedDateTime,
- date_type:this.selectedDateType,
- }).then((_) => {
- this.$message.success("更新成功");
- this.timeId = ''
- this.selectedDateTime = ''
- this.selectedDateType = ''
- this.isShowTime = false
- this.getConfig()
- });
- },
},
computed: {
device() {