|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div class="search">
|
|
|
- <el-input v-model="table.getdataListParm.parammaps.empCode" placeholder="用户名称" style="width: 180px;" class="filter-item" clearable />
|
|
|
- <el-input v-model="table.getdataListParm.parammaps.empname" placeholder="员工姓名" style="width: 180px;" class="filter-item" clearable />
|
|
|
+ <el-input v-model="table.getdataListParm.parammaps.empCode" :placeholder="$t('role.yhmc')" style="width: 180px;" class="filter-item" clearable />
|
|
|
+ <el-input v-model="table.getdataListParm.parammaps.empname" :placeholder="$t('role.ygxm')" style="width: 180px;" class="filter-item" clearable />
|
|
|
<el-select v-model="table.getdataListParm.parammaps.enable" :placeholder="$t('formulationEvaluation.sfqy')" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in enableList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
@@ -41,28 +41,28 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column :label="$t('auth.signIn')" min-width="180px" align="center"> -->
|
|
|
- <el-table-column label="用户名称" min-width="180px" align="center">
|
|
|
+ <el-table-column :label="$t('role.yhmc')" min-width="180px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.username }}</span>
|
|
|
- <el-input v-if="scope.row.Edit" v-model.trim="scope.row.username" placeholder="建议使用手机号" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
+ <el-input v-if="scope.row.Edit" v-model.trim="scope.row.username" :placeholder="$t('role.jysysjh')" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="员工姓名" min-width="130px" align="center">
|
|
|
+ <el-table-column :label="$t('role.ygxm')" min-width="130px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.empname }}</span>
|
|
|
- <el-input v-if="scope.row.Edit" v-model.trim="scope.row.empname" placeholder="1-32字符" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
+ <el-input v-if="scope.row.Edit" v-model.trim="scope.row.empname" :placeholder="$t('role.zf1')" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="手机号" min-width="180px" align="center">
|
|
|
+ <el-table-column :label="$t('role.sjh')" min-width="180px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.phone }}</span>
|
|
|
- <el-input v-if="scope.row.Edit" v-model.trim="scope.row.phone" placeholder="请输入11位手机号" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="11" style="width:95%;padding:10px 0;" />
|
|
|
+ <el-input v-if="scope.row.Edit" v-model.trim="scope.row.phone" :placeholder="$t('role.zf2')" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="11" style="width:95%;padding:10px 0;" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="角色" min-width="150px" align="center">
|
|
|
+ <el-table-column :label="$t('role.js')" min-width="150px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.rolename }}</span>
|
|
|
- <el-select v-if="scope.row.Edit" v-model="scope.row.roleid" placeholder="角色" class="filter-item" style="width:90%;padding:10px 0;" filterable @change="changeRolename">
|
|
|
+ <el-select v-if="scope.row.Edit" v-model="scope.row.roleid" :placeholder="$t('role.js')" class="filter-item" style="width:90%;padding:10px 0;" filterable @change="changeRolename">
|
|
|
<el-option v-for="item in roleList" :key="item.id" :label="item.rolename" :value="item.id" />
|
|
|
</el-select>
|
|
|
</template>
|
|
@@ -71,7 +71,7 @@
|
|
|
<!-- <el-table-column label="公众号关注状态" min-width="150px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.rolename }}</span>
|
|
|
- <el-select v-if="scope.row.Edit" v-model="scope.row.roleid" placeholder="角色" class="filter-item" style="width:90%;padding:10px 0;" filterable @change="changeRolename">
|
|
|
+ <el-select v-if="scope.row.Edit" v-model="scope.row.roleid" :placeholder="$t('role.js')"class="filter-item" style="width:90%;padding:10px 0;" filterable @change="changeRolename">
|
|
|
<el-option v-for="item in attentionStatusList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</template>
|
|
@@ -83,7 +83,7 @@
|
|
|
<span>{{ scope.row.createdtime }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="创建人" min-width="110px" align="center">
|
|
|
+ <el-table-column :label="$t('role.cjr')" min-width="110px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.createmp }}</span>
|
|
|
</template>
|
|
@@ -101,11 +101,11 @@
|
|
|
<el-button v-if="row.isCreate && isRoleEdit" class="minCancel" icon="el-icon-close" @click="createCancel(row)" />
|
|
|
<!-- 扫码接收消息 -->
|
|
|
<!-- 临时注释 -->
|
|
|
- <a v-if="row.isUpdate && isRoleEdit" class="correcting" size="mini" style="width: 80px;" @click="handleScanningCode(row)">扫码接收消息</a>
|
|
|
+ <a v-if="row.isUpdate && isRoleEdit" class="correcting" size="mini" style="width: 80px;" @click="handleScanningCode(row)">{{$t('role.sm')}}</a>
|
|
|
<span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
|
|
|
<!-- 临时注释 -->
|
|
|
<!-- 重置密码 -->
|
|
|
- <a v-if="row.isUpdate && isRoleEdit" class="correcting" size="mini" style="width: 80px;" @click="handleResetPassword(row)">重置密码</a>
|
|
|
+ <a v-if="row.isUpdate && isRoleEdit" class="correcting" size="mini" style="width: 80px;" @click="handleResetPassword(row)">{{$t('role.cczmm')}}</a>
|
|
|
<span v-if="row.isUpdate && isRoleEdit" class="centerSpan">|</span>
|
|
|
<!-- 编辑 -->
|
|
|
<el-button v-if="row.isUpdate && isRoleEdit" class="miniSuccess" icon="el-icon-edit-outline" @click="handleUpdate(row)" />
|
|
@@ -124,10 +124,10 @@
|
|
|
<div class="QRcode">
|
|
|
<div class="content">
|
|
|
<div class="title">
|
|
|
- <p>微信接收系统待办、预警等消息,必须先扫码关注公众号;</p>
|
|
|
- <p>请将下方二维码分享给需要接收信息的用户扫码</p>
|
|
|
+ <p>{{$t('role.msg1')}}</p>
|
|
|
+ <p>{{$t('role.msg2')}}</p>
|
|
|
</div>
|
|
|
- <div style="font-weight: 600;">关注微信:</div>
|
|
|
+ <div style="font-weight: 600;">{{$t('role.gzwx')}}</div>
|
|
|
<img :src="imgUrl" alt="">
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer" style="right:30px;position:absolute;bottom: 40px;">
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
{ name: 'getRoleAll', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }}
|
|
|
],
|
|
|
enableList: [{ id: 1,
|
|
|
-name:this.$t('supplier.yes')}, { id: 0,
|
|
|
+name:this.$t('supplier.yes')}, { id: 0,
|
|
|
name:this.$t('supplier.no') }], // 是否启用
|
|
|
attentionStatusList: [{ id: 1, name: '已关注公众号' }, { id: 0, name: '未关注公众号' }],
|
|
|
roleList: [], // 角色
|