Commit fb276076 authored by 李苏's avatar 李苏 💬

部分

parent 59f05eb8
import Vue from 'vue'
/* 引入公用UI插件 */
import Element from 'element-ui'
import Cookies from 'js-cookie'
......
......@@ -50,6 +50,9 @@
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="检查标准" name="first" >
<Details />
</el-tab-pane>
<el-tab-pane label="检查项" name="second" >
<Content />
</el-tab-pane>
<!-- -->
</el-tabs>
......@@ -72,6 +75,7 @@
/* edit页面*/
import Edit from './edit'
import Details from './details.vue'
import Content from './content.vue'
import {
tableMixin
} from 'common'
......@@ -230,6 +234,7 @@
components: {
Edit,
Details,
Content
}
......
......@@ -51,7 +51,8 @@
mid:''
},
/* 表格标题对应参数*/
tableTitle: [{label: "标准ID", prop: "mid", fieldType: "ftString",width:192},
tableTitle: [
// {label: "标准ID", prop: "mid", fieldType: "ftString",width:192},
{label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
{label: "检查分值", prop: "jcfz", fieldType: "float"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
......
......@@ -2,13 +2,13 @@
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<!-- <el-row :gutter="20">
<el-col :span="24">
<el-form-item label="标准ID" ref="mid" prop="mid">
<el-input :readonly="readonly" v-model="form.mid" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="检查内容" ref="nr" prop="nr">
......
......@@ -110,9 +110,9 @@
},
/* 表格标题对应参数*/
tableTitle: [
{label: "部门ID", prop: "bmid", fieldType: "ftString",width:192},
{label: "车间ID", prop: "cjid", fieldType: "ftString",width:192},
{label: "岗位ID", prop: "gwid", fieldType: "ftString",width:192},
{label: "部门", prop: "bmName", fieldType: "ftString",width:192},
{label: "车间", prop: "cjName", fieldType: "ftString",width:192},
{label: "岗位", prop: "gwName", fieldType: "ftString",width:192},
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
......
module.exports = function (babel) {
/* 遍历AST时匹配visitor对象,遍历到FunctionDeclaration的节点会执行该回调*/
/* https://babeljs.io/docs/en/babel-types查看全部节点信息*/
function generateBindName(path, name = '_this', n = '') {
if (path.scope.hasBinding(name)) {
generateBindName(path, '_this' + n, parseInt(n) + 1);
......@@ -18,7 +15,7 @@ function generateBindName(path, name = '_this', n = '') {
/* 每一个方法都存在一个nodePath参数,所谓的nodePath参数你可以将它理解成为一个节点路径。它包含了这个树上这个节点分叉的所有信息和对应的api。注意这里可以强调是路径,你可以在这里查阅它的含义以及对应的所有API。*/
/* AST编译参考 https://astexplorer.net/*/
const node = nodePath.node;
console.log(node)
}
}
......@@ -26,3 +23,18 @@ function generateBindName(path, name = '_this', n = '') {
visitor
}
}
// const babel = require('@babel/core');
// const babelTypes = require('@babel/types');
// const arrowFunction = require('@babel/plugin-transform-arrow-functions');
// const sourceCode = `const arrowFunc = () => {
// console.log(this)
// }`;
// const targetCode = babel.transform(sourceCode, {
// plugins: [arrowFunction]
// }, );
\ No newline at end of file
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