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-success="handleImgSuccess"
:on-remove="handleImgRemove" :on-remove="handleImgRemove"
:before-upload="beforeImgUpload"> :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-upload>
</el-form-item> </el-form-item>

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

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

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

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

Loading…
Cancel
Save