jiangyy 3 years ago
parent
commit
b012014fa1
  1. BIN
      src/assets/img/file-add.png
  2. 6
      src/views/modules/shequzhili/event/cpts/process-form-project.vue
  3. 5
      src/views/modules/workSys/role/role.vue
  4. 7
      src/views/modules/workSys/role/roleForm.vue

BIN
src/assets/img/file-add.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

6
src/views/modules/shequzhili/event/cpts/process-form-project.vue

@ -131,7 +131,11 @@
:on-success="handleImgSuccess"
:on-remove="handleImgRemove"
:before-upload="beforeImgUpload">
<i :class="['el-icon-plus', source==='manage'?'avatar-uploader-icon':'avatar-uploader-icon2']"></i>
<i v-if="source==='manage'"
:class="['el-icon-plus']"></i>
<img v-else
style="width:27px;height:27px"
src="@/assets/img/file-add.png">
</el-upload>
</el-form-item>

5
src/views/modules/workSys/role/role.vue

@ -95,8 +95,7 @@
class="div-table-button--detail"
size="small"
@click="handleDetail(scope.row)">查看</el-button>
<el-button v-if="scope.row.defaultRole!=='1'"
type="text"
<el-button type="text"
class="div-table-button--edit"
size="small"
@click="handleEdit(scope.row)">修改</el-button>
@ -262,7 +261,7 @@ export default {
this.formTitle = '修改'
this.formShow = true
this.$nextTick(() => {
this.$refs.ref_form.initForm('edit', row.id)
this.$refs.ref_form.initForm('edit', row.id, row.defaultRole)
})
},
handleDetail (row) {

7
src/views/modules/workSys/role/roleForm.vue

@ -14,6 +14,7 @@
label-width="150px"
style="display: block">
<el-input class="item_width_2"
:disabled="defaultRole==='1'"
placeholder="请输入角色名称"
clearable
v-model="formData.name">
@ -27,6 +28,7 @@
style="display: block">
<el-input class="item_width_1"
type="textarea"
:disabled="defaultRole==='1'"
maxlength="500"
show-word-limit
:autosize="{ minRows: 5, maxRows: 10 }"
@ -104,7 +106,7 @@ export default {
customerId: ''
},
defaultRole: '',
}
},
@ -116,7 +118,7 @@ export default {
methods: {
async initForm (type, roleId) {
async initForm (type, roleId, defaultRole) {
this.startLoading()
this.customerId = localStorage.getItem("customerId");
this.formData.customerId = this.customerId
@ -132,6 +134,7 @@ export default {
if (roleId) {
this.roleId = roleId
this.formData.id = roleId
this.defaultRole = defaultRole
this.loadFormData()
}

Loading…
Cancel
Save