Commit 2da625fd authored by 高宇's avatar 高宇

试题管理

parent 0bb26d00
<template>
<div>
banner管理
</div>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped lang="scss">
</style>
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="适用岗位" prop="value"> <el-form-item label="岗位分类" prop="value">
<el-select v-model="queryParams.value" placeholder="适用岗位" clearable> <el-select v-model="queryParams.value" placeholder="岗位分类" clearable>
<el-option <el-option
v-for="item in valueOptions" v-for="item in valueOptions"
:key="item.value" :key="item.value"
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="技术方向" prop="teDirection"> <el-form-item label="技术分类" prop="teDirection">
<el-select v-model="queryParams.teDirection" placeholder="技术方向" clearable> <el-select v-model="queryParams.teDirection" placeholder="技术分类" clearable>
<el-option <el-option
v-for="item in courseDirection" v-for="item in courseDirection"
:key="item.value" :key="item.value"
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<div class="tableTitle">开课管理列表</div> <div class="tableTitle">开课管理列表</div>
<el-table v-loading="loading" border :data="dateList"> <el-table v-loading="loading" border :data="dateList">
<el-table-column type="index" label="序号" width="90" /> <el-table-column type="index" label="序号" width="90" />
<el-table-column label="单位" prop="roleName" :show-overflow-tooltip="true"> <el-table-column label="单位名称" prop="roleName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.unitName || '-' }} {{ scope.row.unitName || '-' }}
</template> </template>
...@@ -105,12 +105,12 @@ ...@@ -105,12 +105,12 @@
{{ scope.row.lessonName || '-' }} {{ scope.row.lessonName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="适用岗位" prop="roleSort" :show-overflow-tooltip="true"> <el-table-column label="岗位分类" prop="roleSort" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>后端开发</span> <span>后端开发</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="技术方向" prop="value" :show-overflow-tooltip="true"> <el-table-column label="技术分类" prop="value" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.teDirection || '-' }} {{ scope.row.teDirection || '-' }}
</template> </template>
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
v-for="item in feedbackTypes" v-for="item in feedbackTypes"
:key="item.businessId" :key="item.businessId"
:label="item.dictLabel" :label="item.dictLabel"
:value="item.businessId"> :value="item.businessId"
</el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="title"> <el-form-item prop="title">
...@@ -29,48 +29,61 @@ ...@@ -29,48 +29,61 @@
size="small" size="small"
/> />
</el-form-item> </el-form-item>
<el-form-item>
<el-date-picker
value-format="yyyy-MM-dd"
v-model="submissionTime"
@change="handleTimeChange"
type="daterange"
range-separator="至"
start-placeholder="提交开始日期"
end-placeholder="提交结束日期"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
:class="commonField.queryClass" :class="commonField.queryClass"
:type="commonField.typePrimary" :type="commonField.typePrimary"
:icon="commonField.queryIcon" :icon="commonField.queryIcon"
:size="commonField.smallSize" :size="commonField.smallSize"
@click="handleQuery">查询 @click="handleQuery"
>查询
</el-button> </el-button>
<el-button <el-button
:class="commonField.resetClass" :class="commonField.resetClass"
:icon="commonField.resetIcon" :icon="commonField.resetIcon"
:size="commonField.smallSize" :size="commonField.smallSize"
@click="resetQuery">重置 @click="resetQuery"
>重置
</el-button> </el-button>
</el-form-item> </el-form-item>
<!-- <div style="float: right">--> <!-- <div style="float: right">-->
<!-- <el-form-item>--> <!-- <el-form-item>-->
<!-- <el-button--> <!-- <el-button-->
<!-- :class="commonField.addClass"--> <!-- :class="commonField.addClass"-->
<!-- :type="commonField.typePrimary"--> <!-- :type="commonField.typePrimary"-->
<!-- :icon="commonField.addIcon"--> <!-- :icon="commonField.addIcon"-->
<!-- :size="commonField.smallSize"--> <!-- :size="commonField.smallSize"-->
<!-- @click="handleAdd">新增--> <!-- @click="handleAdd">新增-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- <el-button--> <!-- <el-button-->
<!-- :class="commonField.exportClass"--> <!-- :class="commonField.exportClass"-->
<!-- :type="commonField.typeSuccess"--> <!-- :type="commonField.typeSuccess"-->
<!-- :icon="commonField.exportIcon"--> <!-- :icon="commonField.exportIcon"-->
<!-- :size="commonField.smallSize"--> <!-- :size="commonField.smallSize"-->
<!-- @click="handleExport">导出--> <!-- @click="handleExport">导出-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </div>--> <!-- </div>-->
</el-form> </el-form>
<div class="placeholder"/> <div class="placeholder" />
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="mb12 font-small-bold">意见反馈列表</div> <div class="mb12 font-small-bold">意见反馈列表</div>
<el-table v-loading="loading" border :data="cmsFeedbackList"> <el-table v-loading="loading" border :data="cmsFeedbackList">
<el-table-column type="index" label="序号" width="55" align="center"/> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column label="反馈类型" prop="feedbackType" :show-overflow-tooltip="true"> <el-table-column label="反馈类型" prop="feedbackType" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- {{ scope.row.feedbackType || '-' }}--> <!-- {{ scope.row.feedbackType || '-' }}-->
{{ feedbackTypeMap[scope.row.feedbackType] || '-' }} {{ feedbackTypeMap[scope.row.feedbackType] || '-' }}
</template> </template>
</el-table-column> </el-table-column>
...@@ -89,27 +102,27 @@ ...@@ -89,27 +102,27 @@
{{ scope.row.submissionTime || '-' }} {{ scope.row.submissionTime || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column width="120" label="状态" prop="flag">--> <!-- <el-table-column width="120" label="状态" prop="flag">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-switch--> <!-- <el-switch-->
<!-- v-model="scope.row.flag"--> <!-- v-model="scope.row.flag"-->
<!-- class="switchDisabledStyle"--> <!-- class="switchDisabledStyle"-->
<!-- inactive-value="0"--> <!-- inactive-value="0"-->
<!-- active-value="1"--> <!-- active-value="1"-->
<!-- @click.native="handleStatusChange(scope.row)"--> <!-- @click.native="handleStatusChange(scope.row)"-->
<!-- />--> <!-- />-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true">--> <!-- <el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.remarks || '-' }}--> <!-- {{ scope.row.remarks || '-' }}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column label="创建时间" prop="createDate" :show-overflow-tooltip="true">--> <!-- <el-table-column label="创建时间" prop="createDate" :show-overflow-tooltip="true">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>--> <!-- <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="操作" class-name="small-padding fixed-width" width="130px"> <el-table-column label="操作" class-name="small-padding fixed-width" width="130px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -146,16 +159,16 @@ ...@@ -146,16 +159,16 @@
v-for="item in feedbackTypes" v-for="item in feedbackTypes"
:key="item.businessId" :key="item.businessId"
:label="item.dictLabel" :label="item.dictLabel"
:value="item.businessId.toString()"> :value="item.businessId.toString()"
</el-option> />
</el-select> </el-select>
<!-- <el-input v-model.trim="form.feedbackType" show-word-limit :maxlength="64" placeholder="请输入反馈类型"/>--> <!-- <el-input v-model.trim="form.feedbackType" show-word-limit :maxlength="64" placeholder="请输入反馈类型"/>-->
</el-form-item> </el-form-item>
<el-form-item label="标题" prop="title"> <el-form-item label="标题" prop="title">
<el-input v-model.trim="form.title" :disabled="isDisable" show-word-limit :maxlength="255" placeholder="请输入标题"/> <el-input v-model.trim="form.title" :disabled="isDisable" show-word-limit :maxlength="255" placeholder="请输入标题" />
</el-form-item> </el-form-item>
<el-form-item label="联系方式" prop="contact"> <el-form-item label="联系方式" prop="contact">
<el-input v-model.trim="form.contact" :disabled="isDisable" show-word-limit placeholder="请输入联系方式"/> <el-input v-model.trim="form.contact" :disabled="isDisable" show-word-limit placeholder="请输入联系方式" />
</el-form-item> </el-form-item>
<el-form-item label="状态"> <el-form-item label="状态">
...@@ -165,8 +178,14 @@ ...@@ -165,8 +178,14 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remarks"> <el-form-item label="备注" prop="remarks">
<el-input v-model.trim="form.remarks" :disabled="isDisable" maxlength="200" show-word-limit type="textarea" <el-input
placeholder="请输入内容"/> v-model.trim="form.remarks"
:disabled="isDisable"
maxlength="200"
show-word-limit
type="textarea"
placeholder="请输入内容"
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -214,15 +233,18 @@ export default { ...@@ -214,15 +233,18 @@ export default {
dictValue: '0' dictValue: '0'
} }
], ],
//表单是否禁用 // 表单是否禁用
isDisable:false, isDisable: false,
submissionTime: null,
// 查询参数 // 查询参数
queryParams: { queryParams: {
page: 1, page: 1,
rows: 10, rows: 10,
feedbackType: undefined, feedbackType: null,
title: undefined, title: null,
contact: undefined, contact: null,
beginTime: '',
endTime: '',
flag: '' flag: ''
}, },
feedbackTypes: [], feedbackTypes: [],
...@@ -231,13 +253,13 @@ export default { ...@@ -231,13 +253,13 @@ export default {
// 表单校验 // 表单校验
rules: { rules: {
feedbackType: [ feedbackType: [
{required: true, message: '请输入反馈类型', trigger: 'blur'} { required: true, message: '请输入反馈类型', trigger: 'blur' }
], ],
title: [ title: [
{required: true, message: '请输入标题', trigger: 'blur'} { required: true, message: '请输入标题', trigger: 'blur' }
], ],
contact: [ contact: [
{required: true, message: '请输入联系方式', trigger: 'blur'} { required: true, message: '请输入联系方式', trigger: 'blur' }
] ]
} }
} }
...@@ -248,18 +270,28 @@ export default { ...@@ -248,18 +270,28 @@ export default {
}, },
// 创建一个映射对象,用于快速查找反馈类型的显示值 // 创建一个映射对象,用于快速查找反馈类型的显示值
feedbackTypeMap() { feedbackTypeMap() {
const map = {}; const map = {}
this.feedbackTypes.forEach(item => { this.feedbackTypes.forEach(item => {
map[item.businessId] = item.dictLabel; map[item.businessId] = item.dictLabel
}); })
return map; return map
}, }
}, },
created() { created() {
this.getList() // 列表查询 this.getList() // 列表查询
this.getFeedbackTypes() this.getFeedbackTypes()
}, },
methods: { methods: {
handleTimeChange(value) {
console.log('value',value)
if (value && value !== '' && value.length > 0) {
this.queryParams.beginTime = value[0] + ' 00:00:00'
this.queryParams.endTime = value[1] + ' 23:59:59'
} else {
this.queryParams.beginTime = ''
this.queryParams.endTime = ''
}
},
/** 查询意见反馈列表 */ /** 查询意见反馈列表 */
getList() { getList() {
this.loading = true this.loading = true
...@@ -313,7 +345,7 @@ export default { ...@@ -313,7 +345,7 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.isDisable=false this.isDisable = false
this.reset() this.reset()
this.open = true this.open = true
this.title = '添加意见反馈' this.title = '添加意见反馈'
...@@ -343,19 +375,19 @@ export default { ...@@ -343,19 +375,19 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(function () { }).then(function() {
return updateCmsFeedback(row) return updateCmsFeedback(row)
}).then(() => { }).then(() => {
this.$message({ this.$message({
message: text + '成功', message: text + '成功',
type: 'success' type: 'success'
}) })
}).catch(function () { }).catch(function() {
row.flag = row.flag === '0' ? '1' : '0' row.flag = row.flag === '0' ? '1' : '0'
}) })
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm: function () { submitForm: function() {
// this.open=falsethis.reset() // this.open=falsethis.reset()
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
...@@ -383,7 +415,7 @@ export default { ...@@ -383,7 +415,7 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(function () { }).then(function() {
return delCmsFeedback(id) return delCmsFeedback(id)
}).then(() => { }).then(() => {
this.getList() this.getList()
...@@ -391,7 +423,7 @@ export default { ...@@ -391,7 +423,7 @@ export default {
message: '删除成功', message: '删除成功',
type: 'success' type: 'success'
}) })
}).catch(function () { }).catch(function() {
}) })
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
...@@ -401,7 +433,7 @@ export default { ...@@ -401,7 +433,7 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(function () { }).then(function() {
return exportCmsFeedback(queryParams).then(response => { return exportCmsFeedback(queryParams).then(response => {
const blob = new Blob([response]) const blob = new Blob([response])
const downloadElement = document.createElement('a') const downloadElement = document.createElement('a')
......
<template>
<div>试用申请</div>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped lang="scss">
</style>
<template>
<div>
试用开课
</div>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped lang="scss">
</style>
...@@ -22,6 +22,16 @@ ...@@ -22,6 +22,16 @@
style="width: 200px" style="width: 200px"
/> />
</el-form-item> </el-form-item>
<el-form-item prop="unitName" label="单位管理员账号">
<el-input
v-model="queryParams.unitNumber"
placeholder="单位管理员账号"
clearable
:maxlength="255"
size="small"
style="width: 200px"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
:class="commonField.queryClass" :class="commonField.queryClass"
...@@ -64,26 +74,36 @@ ...@@ -64,26 +74,36 @@
{{ scope.row.unitName || '-' }} {{ scope.row.unitName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单位管理员" width="150" prop="unitNumber" :show-overflow-tooltip="true"> <!-- <el-table-column label="单位管理员" width="150" prop="unitNumber" :show-overflow-tooltip="true">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.unitNumber || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="单位管理员账号" width="150" prop="unitNumber" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.unitNumber || '-' }} {{ scope.row.unitNumber || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="出口ip" width="200" prop="exitId" :show-overflow-tooltip="true"> <!-- <el-table-column label="备注" width="520" prop="exitId" :show-overflow-tooltip="true">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.exitId || '-' }}-->
<!-- </template>-->
<!-- </el-table-column> -->
<el-table-column label="备注" width="520" prop="remarks" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.exitId || '-' }} {{ scope.row.remarks || '-' }}
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" label="创建人" prop="createDate" width="160">
<template slot-scope="scope">
<span>{{ scope.row.creteName || '-' }}</span>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" label="创建时间" prop="createDate" width="160">
<template slot-scope="scope">
<span>{{ scope.row.createDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column :show-overflow-tooltip="true" label="创建人" prop="createDate" width="160">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.creteName || '-' }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column :show-overflow-tooltip="true" label="创建时间" prop="createDate" width="160">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.createDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column width="70" label="状态" prop="flag"> <el-table-column width="70" label="状态" prop="flag">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
...@@ -149,6 +169,15 @@ ...@@ -149,6 +169,15 @@
<el-form-item label="出口Ip" prop="exitId"> <el-form-item label="出口Ip" prop="exitId">
<el-input v-model.trim="form.exitId" :maxlength="255" placeholder="请输入出口ip" /> <el-input v-model.trim="form.exitId" :maxlength="255" placeholder="请输入出口ip" />
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remarks">
<el-input
v-model.trim="form.remarks"
type="textarea"
:rows="4"
:maxlength="255"
placeholder="请输入备注"
/>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button class="cancelBtn" @click="cancel">取 消</el-button> <el-button class="cancelBtn" @click="cancel">取 消</el-button>
......
...@@ -13,16 +13,6 @@ ...@@ -13,16 +13,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="权限字符" prop="roleKey">
<el-input
v-model="queryParams.roleKey"
placeholder="请输入权限字符"
clearable
size="small"
style="width: 150px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="角色状态" prop="flag"> <el-form-item label="角色状态" prop="flag">
<el-select <el-select
v-model="queryParams.flag" v-model="queryParams.flag"
...@@ -83,23 +73,13 @@ ...@@ -83,23 +73,13 @@
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="tableTitle">角色管理列表</div> <div class="tableTitle">角色管理列表</div>
<el-table v-loading="loading" border :data="roleList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" border :data="roleList" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="90" /> <el-table-column type="index" label="角色编号" width="120" />
<el-table-column label="名称" prop="roleName" :show-overflow-tooltip="true"> <el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.roleName || '-' }} {{ scope.row.roleName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="权限字符" prop="roleKey"> <el-table-column label="角色状态" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.roleKey || '-' }}
</template>
</el-table-column>
<el-table-column label="显示顺序" prop="roleSort">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
</template>
</el-table-column>
<el-table-column label="状态" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.flag" v-model="scope.row.flag"
...@@ -114,6 +94,11 @@ ...@@ -114,6 +94,11 @@
<span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span> <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="更新时间" :show-overflow-tooltip="true" align="center" prop="createTime">
<template slot-scope="scope">
<span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" class-name="small-padding fixed-width" width="200px"> <el-table-column label="操作" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- //修改--> <!-- //修改-->
......
...@@ -89,22 +89,32 @@ ...@@ -89,22 +89,32 @@
:data="userList" :data="userList"
> >
<el-table-column type="index" label="序号" width="90" /> <el-table-column type="index" label="序号" width="90" />
<!-- <el-table-column label="用户类型" prop="username" :show-overflow-tooltip="true">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.username || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="登录名" prop="username" :show-overflow-tooltip="true"> <el-table-column label="登录名" prop="username" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.username || '-' }} {{ scope.row.username || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="姓名" prop="userType" :show-overflow-tooltip="true"> <el-table-column label="用户姓名" prop="userType" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.name || '-' }} {{ scope.row.name || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="所属单位" prop="username" :show-overflow-tooltip="true">&ndash;&gt;-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.username || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="手机号" prop="phone" :show-overflow-tooltip="true"> <el-table-column label="手机号" prop="phone" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.phone || '-' }} {{ scope.row.phone || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="120" label="状态" prop="flag"> <el-table-column width="120" label="用户状态" prop="flag">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.flag" v-model="scope.row.flag"
...@@ -115,6 +125,11 @@ ...@@ -115,6 +125,11 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="角色" prop="phone" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.roleNames || '-' }}
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" label="创建时间" prop="createDate" width="160"> <el-table-column :show-overflow-tooltip="true" label="创建时间" prop="createDate" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span> <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment