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

Merge remote-tracking branch 'origin/project1' into project1

parents d1d4ffec 2aaf90aa
...@@ -107,8 +107,6 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList, ...@@ -107,8 +107,6 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
if (queryParams instanceof queryParamsType) { if (queryParams instanceof queryParamsType) {
this.queryParams = queryParamsType this.queryParams = queryParamsType
} }
this.nIndex = nIndex
this.columnData = columnData this.columnData = columnData
this.processList = processList this.processList = processList
} }
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="index" label="序号" width="50" :index="allTableArguments.nIndex" /> <el-table-column type="index" label="序号" width="50" :index="nIndex" />
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 --> <!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<el-table-column v-if="allTableArguments.columObj.selection" type="selection" :selectable="allTableArguments.columObj.selectable" width="50px" /> <el-table-column v-if="allTableArguments.columObj.selection" type="selection" :selectable="allTableArguments.columObj.selectable" width="50px" />
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
:index="columIndex" :index="columIndex"
show-overflow-tooltip show-overflow-tooltip
> >
<template v-slot="{row,$index}"> <template slot-scope="{row,$index}">
<!-- 默认展示 --> <!-- 默认展示 -->
<span v-if="column.text && column.editRow !== $index">{{ row[column.prop] || '-' }}</span> <span v-if="column.text && column.editRow !== $index">{{ row[column.prop] || '-' }}</span>
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
<!-- 操作按钮 --> <!-- 操作按钮 -->
<span v-if="column.isOperation" class="processListBtns"> <span v-if="column.isOperation" class="processListBtns">
<span v-for="(operations, index) in column.operation" :key="index"> <span v-for="(operations, index) in column.operation" :key="index">
<el-button v-if=" operations.clickType === '1' " :icon="operations.icon" :type="typeParent" :style="{color:operations.color}" :size="size" @click="handleDetail">{{ operations.label }}</el-button> <el-button v-if=" operations.clickType === '1' " :icon="operations.icon" :type="typeParent" :style="{color:operations.color}" :size="size" @click="handleDetail(row,$index)">{{ operations.label }}</el-button>
<el-button v-else-if=" operations.clickType === '2' " :icon="operations.icon" :type="typeParent" :style="{color:operations.color}" :size="size" @click="handleUpdate">{{ operations.label }}</el-button> <el-button v-else-if=" operations.clickType === '2' " :icon="operations.icon" :type="typeParent" :style="{color:operations.color}" :size="size" @click="handleUpdate(row,$index)">{{ operations.label }}</el-button>
<el-button v-else-if=" operations.clickType === '3' " :icon="operations.icon" :type="typeParent" :style="{color:operations.color}" :size="size" @click="handleDelete">{{ operations.label }}</el-button> <el-button v-else-if=" operations.clickType === '3' " :icon="operations.icon" :type="typeParent" :style="{color:operations.color}" :size="size" @click="handleDelete(row,$index)">{{ operations.label }}</el-button>
</span> </span>
</span> </span>
</template> </template>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<script> <script>
import {BaseTableArgumentsTest} from '@/components/Table/AllTableArguments/BaseTableArguments' import { BaseTableArgumentsTest } from '@/components/Table/AllTableArguments/BaseTableArguments'
export default { export default {
name: 'BaseTable', name: 'BaseTable',
...@@ -93,16 +93,10 @@ export default { ...@@ -93,16 +93,10 @@ export default {
} }
} }
}, },
allNamed: { nIndex: {
type: Object, type: Function,
default: () => { default: () => {
return { return Function
listName: String,
label: {
SerialNumberNamed: String
}
}
} }
} }
}, },
...@@ -131,7 +125,6 @@ export default { ...@@ -131,7 +125,6 @@ export default {
/* TODO: 这里是控制内容列表的样式 */ /* TODO: 这里是控制内容列表的样式 */
.processListBtns { .processListBtns {
.el-button { .el-button {
margin: 0 12px;
} }
} }
......
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
{{ scope.row.prank || '-' }} {{ scope.row.prank || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="createBy"> <el-table-column label="操作员" prop="createName">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createBy || '-' }} {{ scope.row.createName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="200px"> <el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="200px">
......
...@@ -349,7 +349,10 @@ export default { ...@@ -349,7 +349,10 @@ export default {
roleName: undefined, roleName: undefined,
roleKey: undefined, roleKey: undefined,
flag: undefined, flag: undefined,
ptype: 1 ptype: 1,
pstatus:0,
delFlag:0
}, },
// 表单参数 // 表单参数
form: { form: {
......
...@@ -346,8 +346,9 @@ export default { ...@@ -346,8 +346,9 @@ export default {
queryParams: { queryParams: {
page: 1, page: 1,
rows: 10, rows: 10,
ptype: 2,
ptype: 2 pstatus:0,
delFlag:0
}, },
// 表单参数 // 表单参数
form: { form: {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="phd" prop="phd"> <el-form-item label="phd" prop="phdStr">
<el-input <el-input
v-model="queryParams.phd" v-model="queryParams.phdStr"
placeholder="请输入phd" placeholder="请输入phd"
clearable clearable
size="small" size="small"
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="prank" prop="prank"> <el-form-item label="prank" prop="prankStr">
<el-input <el-input
v-model="queryParams.prank" v-model="queryParams.prankStr"
placeholder="请输入prank" placeholder="请输入prank"
clearable clearable
size="small" size="small"
...@@ -67,25 +67,15 @@ ...@@ -67,25 +67,15 @@
{{ scope.row.pissb || '-' }} {{ scope.row.pissb || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="pstatus" prop="pstatus">
<template slot-scope="scope">
{{ scope.row.pstatus || '-' }}
</template>
</el-table-column>
<el-table-column label="ptype" prop="ptype">
<template slot-scope="scope">
{{ scope.row.ptype || '-' }}
</template>
</el-table-column>
<el-table-column label="状态" prop="pstatus"> <el-table-column label="状态" prop="pstatus">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.pstatus === '0'" style="color: red">未完成</span> <span v-if="scope.row.pstatus === '0'" style="color: red">未完成</span>
<span v-else style="color: green">已完成</span> <span v-else style="color: green">已完成</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="createBy"> <el-table-column label="操作员" prop="createName">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createBy || '-' }} {{ scope.row.createName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="200px"> <el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="200px">
...@@ -100,7 +90,7 @@ ...@@ -100,7 +90,7 @@
type="text" type="text"
style="color: #49cec9" style="color: #49cec9"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>修改</el-button> >处理</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
......
...@@ -346,7 +346,9 @@ export default { ...@@ -346,7 +346,9 @@ export default {
roleName: undefined, roleName: undefined,
roleKey: undefined, roleKey: undefined,
flag: undefined, flag: undefined,
ptype:2 ptype:2,
pstatus:0,
delFlag:0
}, },
// 表单参数 // 表单参数
form: { form: {
......
...@@ -698,6 +698,7 @@ export default { ...@@ -698,6 +698,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/* TODO: 专门用来解决input 的边框问题 */
.aboutSingleDetails{ .aboutSingleDetails{
.el-form-item{ .el-form-item{
.el-input >>> .el-input__inner { .el-input >>> .el-input__inner {
......
...@@ -67,25 +67,15 @@ ...@@ -67,25 +67,15 @@
{{ scope.row.pissb || '-' }} {{ scope.row.pissb || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="pstatus" prop="pstatus">
<template slot-scope="scope">
{{ scope.row.pstatus || '-' }}
</template>
</el-table-column>
<el-table-column label="ptype" prop="ptype">
<template slot-scope="scope">
{{ scope.row.ptype || '-' }}
</template>
</el-table-column>
<el-table-column label="状态" prop="pstatus"> <el-table-column label="状态" prop="pstatus">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.pstatus === '0'" style="color: red">未完成</span> <span v-if="scope.row.pstatus === '0'" style="color: red">未完成</span>
<span v-else style="color: green">已完成</span> <span v-else style="color: green">已完成</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作员" prop="createBy"> <el-table-column label="操作员" prop="createName">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createBy || '-' }} {{ scope.row.createName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="200px"> <el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="200px">
...@@ -100,7 +90,7 @@ ...@@ -100,7 +90,7 @@
type="text" type="text"
style="color: #49cec9" style="color: #49cec9"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>修改</el-button> >处理</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
......
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