|
@@ -90,6 +90,12 @@
|
|
|
<span style="cursor: pointer"> 更新</span>
|
|
<span style="cursor: pointer"> 更新</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template
|
|
|
|
|
+ slot="customButton"
|
|
|
|
|
+ slot-scope="{row}"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button type="text" icon="el-icon-edit-outline" @click="goEdit(row)">修改</el-button>
|
|
|
|
|
+ </template>
|
|
|
</ibps-crud>
|
|
</ibps-crud>
|
|
|
</template>
|
|
</template>
|
|
|
</ibps-container>
|
|
</ibps-container>
|
|
@@ -138,6 +144,15 @@
|
|
|
:son-data="sonData"
|
|
:son-data="sonData"
|
|
|
@getcolse="getcolse"
|
|
@getcolse="getcolse"
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <data-template-formrender-dialog
|
|
|
|
|
+ :visible="editDialogVisible"
|
|
|
|
|
+ form-key="ywyxjlb"
|
|
|
|
|
+ :pk-value="editPkValue"
|
|
|
|
|
+ :toolbars="editToolbars"
|
|
|
|
|
+ :readonly="false"
|
|
|
|
|
+ :add-data-cont="addDataCont"
|
|
|
|
|
+ @close="editClose"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -152,6 +167,7 @@ import openFilePng from '@/assets/images/icons/openFile.png'
|
|
|
import wordPng from '@/assets/images/icons/word.png'
|
|
import wordPng from '@/assets/images/icons/word.png'
|
|
|
import fileTraining from '@/views/component/fileTraining'
|
|
import fileTraining from '@/views/component/fileTraining'
|
|
|
import UpdateFile from './updateFile'
|
|
import UpdateFile from './updateFile'
|
|
|
|
|
+import DataTemplateFormrenderDialog from '@/business/platform/data/templaterender/form/dialog.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -159,16 +175,18 @@ export default {
|
|
|
BpmnFormrender,
|
|
BpmnFormrender,
|
|
|
UpdateFile,
|
|
UpdateFile,
|
|
|
'ibps-attachment': IbpsAttachment,
|
|
'ibps-attachment': IbpsAttachment,
|
|
|
- 'file-lookup': fileTraining
|
|
|
|
|
|
|
+ 'file-lookup': fileTraining,
|
|
|
|
|
+ DataTemplateFormrenderDialog
|
|
|
},
|
|
},
|
|
|
mixins: [FixHeight],
|
|
mixins: [FixHeight],
|
|
|
data () {
|
|
data () {
|
|
|
- const { isSuper, deptList = [] } = this.$store.getters || {}
|
|
|
|
|
|
|
+ const { isSuper, deptList = [], role } = this.$store.getters || {}
|
|
|
const hasRole = localStorage.getItem('hasHighRole') === '1'
|
|
const hasRole = localStorage.getItem('hasHighRole') === '1'
|
|
|
const depArrs = deptList.map(
|
|
const depArrs = deptList.map(
|
|
|
(i) => `wj.bian_zhi_bu_men_ like '${i.positionId}'`
|
|
(i) => `wj.bian_zhi_bu_men_ like '${i.positionId}'`
|
|
|
)
|
|
)
|
|
|
return {
|
|
return {
|
|
|
|
|
+ role,
|
|
|
isSuper,
|
|
isSuper,
|
|
|
hasRole,
|
|
hasRole,
|
|
|
depArrs,
|
|
depArrs,
|
|
@@ -241,7 +259,19 @@ export default {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
fileInfos: {},
|
|
fileInfos: {},
|
|
|
// 本人修改
|
|
// 本人修改
|
|
|
- fileArray: []
|
|
|
|
|
|
|
+ fileArray: [],
|
|
|
|
|
+ editDialogVisible: false,
|
|
|
|
|
+ editPkValue: '',
|
|
|
|
|
+ editToolbars: [{
|
|
|
|
|
+ button_type: 'close',
|
|
|
|
|
+ label: '关闭',
|
|
|
|
|
+ key: 'close'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ button_type: 'save',
|
|
|
|
|
+ label: '保存',
|
|
|
|
|
+ key: 'save'
|
|
|
|
|
+ }]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -335,9 +365,20 @@ export default {
|
|
|
{ prop: 'bian_zhi_shi_jian', label: '上传时间', width: 140 },
|
|
{ prop: 'bian_zhi_shi_jian', label: '上传时间', width: 140 },
|
|
|
{ prop: 'ry_name', label: '上传人', width: 90 }
|
|
{ prop: 'ry_name', label: '上传人', width: 90 }
|
|
|
]
|
|
]
|
|
|
|
|
+ const roleList = ['xtgljs', 'wjglzzc', 'wjgly'] // 系统管理员 文件管理组组长 文件管理员可修改
|
|
|
|
|
+ const hasRole = this.role.some(r => roleList.includes(r.alias))
|
|
|
|
|
+ if (hasRole) this.listConfig.columns.push({ prop: '', label: '操作', width: 100, slotName: 'customButton' })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ editClose (visible) {
|
|
|
|
|
+ this.editDialogVisible = visible
|
|
|
|
|
+ this.refreshData()
|
|
|
|
|
+ },
|
|
|
|
|
+ goEdit (row) {
|
|
|
|
|
+ this.editPkValue = row.id_
|
|
|
|
|
+ this.editDialogVisible = true
|
|
|
|
|
+ },
|
|
|
unitConversions (str) {
|
|
unitConversions (str) {
|
|
|
// 使用正则表达式匹配括号内的数字
|
|
// 使用正则表达式匹配括号内的数字
|
|
|
const match = str.match(/((\d+))/)
|
|
const match = str.match(/((\d+))/)
|