Commit dbd692ca authored by 刘宇扬's avatar 刘宇扬

Merge branch 'newprotect' of http://gitlab.91isoft.com:90/yangshuo/template_vue into newprotect

parents dcbb0e6f 21dc8789
...@@ -12,8 +12,10 @@ body { ...@@ -12,8 +12,10 @@ body {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
font-family: Microsoft YaHei, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Arial, sans-serif; font-family: Microsoft YaHei, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Arial, sans-serif;
} }
label { label {
font-weight: 700; font-weight: 700;
} }
......
...@@ -265,7 +265,14 @@ export default { ...@@ -265,7 +265,14 @@ export default {
// 表单重置 // 表单重置
reset() { reset() {
// TODO: 将模拟数据的空对象赋值给表单对象,达成清空填写表单的效果 // TODO: 将模拟数据的空对象赋值给表单对象,达成清空填写表单的效果
this.form = this.formReset this.form = {
processName: '',
workshop: '',
flag: '1',
createTime: new Date(),
updataTime: new Date(),
createBy: ''
}
}, },
/** TODO: 查询按钮操作 */ /** TODO: 查询按钮操作 */
handleQuery() { handleQuery() {
...@@ -279,7 +286,7 @@ export default { ...@@ -279,7 +286,7 @@ export default {
/** TODO: 新增按钮操作 */ /** TODO: 新增按钮操作 */
handleAdd() { handleAdd() {
// TODO: 初始化新增对话框的状态 // TODO: 初始化新增对话框的状态
this.form = this.formReset this.reset()
this.title = '添加工序' this.title = '添加工序'
this.open = !this.open this.open = !this.open
}, },
......
...@@ -50,41 +50,48 @@ ...@@ -50,41 +50,48 @@
<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="380" /> --> <!-- <el-table-column type="index" label="序号" width="380" /> -->
<el-table-column label="xxx" prop="xxx" :show-overflow-tooltip="true" width="250">
<el-table-column label="名称" prop="2222" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.xxx || '-' }} {{ scope.row.xxx || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="xxx" prop="xxx" :show-overflow-tooltip="true" width="250"> <el-table-column label="编码" prop="2222" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.xxx || '-' }} {{ scope.row.xxx || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="xxx" prop="xxx" :show-overflow-tooltip="true" width="250"> <el-table-column label="lot" prop="xxx" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.xxx || '-' }} {{ scope.row.xxx || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="xxx" prop="xxx" :show-overflow-tooltip="true" width="250"> <el-table-column label="位置" prop="xxx" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.xxx || '-' }} {{ scope.row.xxx || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="xxx" prop="xxx" :show-overflow-tooltip="true" width="250"> <el-table-column label="厚度" prop="xxx" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.xxx || '-' }} {{ scope.row.xxx || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="xxx" prop="xxx" :show-overflow-tooltip="true" width="250"> <el-table-column label="创建人" prop="xxx" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.xxx || '-' }} {{ scope.row.xxx || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="创建时间" prop="xxx" :show-overflow-tooltip="true" width="222">
<template slot-scope="scope">
{{ scope.row.xxx || '-' }}
</template>
</el-table-column> -->
<!-- <el-table-column label="状态" align="center" width="380"> <!-- <el-table-column label="状态" align="center" width="380">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
...@@ -95,11 +102,11 @@ ...@@ -95,11 +102,11 @@
/> />
</template> </template>
</el-table-column> --> </el-table-column> -->
<!-- <el-table-column label="创建时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="380"> <el-table-column label="创建时间" :show-overflow-tooltip="true" align="center" prop="createTime" width="222">
<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> </el-table>
</div> </div>
......
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