This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import * as http from '../../http/test' | |
// import axios from 'axios' | |
import service from '../../services/category-service' | |
import * as types from '../mutation-types' | |
import lib from '@/components/lib' | |
const state = { | |
nodeList: [], | |
currentNode: {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Router from 'vue-router' | |
import CategoryForm from '@/pages/category/form' | |
import CategoryTree from '@/pages/category/tree' | |
import AccessoryIndex from '@/pages/accessory/index' | |
import BusinessIndex from '@/pages/business/index' | |
import BusinessForm from '@/pages/business/form' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
seconds: 500, | |
minutes: 3000, | |
// '@disabled': true, | |
'配件 增删改查': function(client) { | |
client.resizeWindow(1280, 800) | |
client.url('http://127.0.0.1:8080') | |
// 添加配件 | |
var fixingsAdd = '.el-menu-item:nth-child(2) , .el-button--primary' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="html"> | |
<div> | |
<el-table | |
:data="tableData" | |
height="550" | |
highlight-current-row | |
border> | |
<el-table-column prop="id" label="#" width="65" :render-header="renderHeader" align="center"> | |
</el-table-column> | |
<el-table-column prop="name" label="名称" width="180"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="html"> | |
</template> | |
<script> | |
// 用camel命名法去接收肉串命名法的变量 | |
export default { | |
props: ['accessoryForm'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="html"> | |
<el-form | |
:model="accessoryForm" | |
:rules="rules2" | |
ref="accessoryForm" | |
label-width="80px"> | |
<el-row class="top"> | |
<el-col :span="4"> | |
<el-form-item label="名称" prop="name"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Sequelize = require('sequelize'); | |
var database = require('../model/database'); | |
var moment = require('moment') | |
var Record = require('../model/record'); | |
//定义表的模型 | |
var Business = database.define('business', { | |
id:{ //自增长id,主键,整形 | |
type: Sequelize.INTEGER, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = require("../app") | |
var supertest = require("supertest") | |
var should = require('should') | |
var request = supertest(app) | |
// 定义路由 | |
describe('测试配件模块', function(){ | |
it('/accessory/table 返回配件信息数组', function(done){ | |
request.get('/accessory/table') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file comes from sync-settings package |