|
|
@@ -218,12 +218,14 @@ export default {
|
|
|
},
|
|
|
|
|
|
clickitem(row) {
|
|
|
- const list = JSON.parse(JSON.stringify(row))
|
|
|
- for (const item of this.dutyItemList) {
|
|
|
- item.isMainPost = 'N'
|
|
|
- }
|
|
|
- if (list.isMainPost == 'N') {
|
|
|
- row.isMainPost = 'Y'
|
|
|
+ if (!this.readonly) {
|
|
|
+ const list = JSON.parse(JSON.stringify(row))
|
|
|
+ for (const item of this.dutyItemList) {
|
|
|
+ item.isMainPost = 'N'
|
|
|
+ }
|
|
|
+ if (list.isMainPost == 'N') {
|
|
|
+ row.isMainPost = 'Y'
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 回填显示单选、多选框的value
|