|
@@ -168,7 +168,6 @@ import AddSignTaskDialog from '@/business/platform/bpmn/form-ext/add-sign-task'
|
|
|
import FormPrintTemplate from '@/business/platform/form/form-print/template'
|
|
import FormPrintTemplate from '@/business/platform/form/form-print/template'
|
|
|
|
|
|
|
|
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
|
|
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
|
|
|
-import { SHOW_TIMT_MODIFICATION } from '@/constant'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -299,10 +298,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
timeModification_: {
|
|
timeModification_: {
|
|
|
handler: function (val, oldVal) {
|
|
handler: function (val, oldVal) {
|
|
|
- if (val) {
|
|
|
|
|
- this.readonly = false
|
|
|
|
|
- console.log(this.readonly)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (val) {
|
|
|
|
|
+ // this.readonly = false
|
|
|
|
|
+ // console.log(this.readonly)
|
|
|
|
|
+
|
|
|
this.buttons = this.buildButtons(this.responseData.buttons.slice(1, 4), this.attributes) || []
|
|
this.buttons = this.buildButtons(this.responseData.buttons.slice(1, 4), this.attributes) || []
|
|
|
// }
|
|
// }
|
|
|
}
|
|
}
|
|
@@ -603,7 +602,7 @@ export default {
|
|
|
* 构建操作按钮
|
|
* 构建操作按钮
|
|
|
*/
|
|
*/
|
|
|
buildButtons (toolbars, params) {
|
|
buildButtons (toolbars, params) {
|
|
|
- if (this.timeModificationbtn && SHOW_TIMT_MODIFICATION) {
|
|
|
|
|
|
|
+ if (this.timeModificationbtn) {
|
|
|
toolbars.push({
|
|
toolbars.push({
|
|
|
'alias': 'timeModification',
|
|
'alias': 'timeModification',
|
|
|
'name': this.timeModification_ ? '保存修改' : '修改数据'
|
|
'name': this.timeModification_ ? '保存修改' : '修改数据'
|