|
@@ -28,7 +28,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { arrToObj } from '@/utils'
|
|
|
-import SearchForm from './components/searchForm/Index'
|
|
|
+import SearchForm from './components/searchForm/App'
|
|
|
import PopupEdit from './components/popup/AppIntegralEdit'
|
|
|
import PointDtl from './components/popup/AppIntegralDtl'
|
|
|
import baseTable from '_m/baseTable.js'
|
|
@@ -80,6 +80,7 @@ export default {
|
|
|
{ label: '手机号', prop: 'phones' },
|
|
|
{ label: '注册时间', prop: 'create_at' },
|
|
|
{ label: '禁言状态', prop: 'is_gag', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno), tagTypeObj: {'2': 'success', '1': 'danger'} },
|
|
|
+ { label: '置业经理', prop: 'is_sale', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno), tagTypeObj: {'2': 'info', '1': 'primary'} },
|
|
|
{ label: '备注', prop: 'tag', type: 'input', width: 100},
|
|
|
{ label: '操作', width: 260, type: 'handle2', operations:
|
|
|
[
|
|
@@ -98,6 +99,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ { labelFor: 'is_sale', func: this.isSaleHandle,
|
|
|
+ labelConfig: {
|
|
|
+ texts: {
|
|
|
+ 1: '设成用户',
|
|
|
+ 2: '设成销售'
|
|
|
+ },
|
|
|
+ btnTypes: {
|
|
|
+ 1: 'primary',
|
|
|
+ 2: 'info'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
@@ -133,6 +146,19 @@ export default {
|
|
|
this.fetchData()
|
|
|
}
|
|
|
},
|
|
|
+ isSaleHandle (row) {
|
|
|
+ const is_sale = Number(row.is_sale) === 1 ? 2 : 1
|
|
|
+ const msgText = Number(row.is_sale) === 1 ? '设置成用户' : '设置成置业经理---'
|
|
|
+ this.$msg(`确定要${msgText}${row.nickname}吗?`, 'confirm', ()=> {
|
|
|
+ this.$api.user.admwechatusersale({
|
|
|
+ id: row.id,
|
|
|
+ is_sale
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`${msgText}成功!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ }, null, true)
|
|
|
+ },
|
|
|
disHandle (row) {
|
|
|
const is_gag = Number(row.is_gag) === 1 ? 2 : 1
|
|
|
const msgText = Number(row.is_gag) === 1 ? '解禁' : '禁言'
|