Commit 996debfa authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 6e38d436 59b43946
...@@ -1146,11 +1146,10 @@ html [type=button] { ...@@ -1146,11 +1146,10 @@ html [type=button] {
width: 28px; width: 28px;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
margin: 0px 0 0 -4px; margin: 0px 0 0 0;
border-radius: 50%; border-radius: 50%;
color: #515A6E; color: #515A6E;
background: #F5F6FA; background: #F5F6FA;
.ivu-icon { .ivu-icon {
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;
......
This diff is collapsed.
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</div> </div>
</div> </div>
<Select v-else :placeholder="placeholder" v-model="name" @on-change="change" :multiple="multiple" :departmentId="departmentId" clearable filterable> <Select v-else :placeholder="placeholder" v-model="name" @on-change="change" :multiple="multiple" :departmentId="departmentId" clearable filterable transfer>
<Option v-for="item in datas ? datas : dic" :value="item.value" :key="item.value" :label="item.label"> <Option v-for="item in datas ? datas : dic" :value="item.value" :key="item.value" :label="item.label">
<div> <div>
{{ item.label }} {{ item.label }}
......
...@@ -1911,5 +1911,9 @@ export default { ...@@ -1911,5 +1911,9 @@ export default {
status: '状态', status: '状态',
groupName: '项目组名称', groupName: '项目组名称',
groupId: '项目组Id', groupId: '项目组Id',
authority:'权限',
whour:'可用工日',
whourpd:'可用工时/天',
joindate:'加入日期'
} }
} }
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
this.entity = this.$u.clone(this.v) this.entity = this.$u.clone(this.v)
}, },
eid(v) { eid(v) {
if (v != '') { if (v != '' && v != null) {
this.load(v); this.load(v);
} }
} }
......
<template> <template>
<div class="full"> <div>
<DataGrid :columns="columns" ref="grid" :action="action"><template slot="easySearch"> <DataGrid :columns="columns" ref="grid" :action="action"><template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"><Input placeholder="请输入关键字名称" v-model="easySearch.keys.value" /> </FormItem> <FormItem prop="keys"><Input placeholder="请输入关键字名称" v-model="easySearch.keys.value" /> </FormItem>
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this); //.log(this);
}, },
async fetch({ async fetch({
store, store,
......
...@@ -8,30 +8,16 @@ ...@@ -8,30 +8,16 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('role')" prop="role"> <FormItem :label="l('role')" prop="role">
<Dictionary code="mes.project_group_user.Role" v-model="entity.role"></Dictionary> <Dictionary code="project.group.role" v-model="entity.role"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('projectId')" prop="projectId">
<InputNumber v-model="entity.projectId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('planId')" prop="planId">
<InputNumber v-model="entity.planId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('note')" prop="note"> <Input v-model="entity.note"> </Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('status')" prop="status"> <FormItem :label="l('status')" prop="status">
<Dictionary code="mes.project_group_user.Status" v-model="entity.status"></Dictionary> <Dictionary code="project.group.status" v-model="entity.status"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('groupName')" prop="groupName"> <Input v-model="entity.groupName"> </Input> <FormItem :label="l('note')" prop="note"> <Input v-model="entity.note"> </Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -130,7 +116,7 @@ export default { ...@@ -130,7 +116,7 @@ export default {
this.entity = this.$u.clone(this.v) this.entity = this.$u.clone(this.v)
}, },
eid(v) { eid(v) {
if (v > 0) { if (v != '' && v != null) {
this.load(v); this.load(v);
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('userId')" prop="userId"> <FormItem :label="l('userId')" prop="userId">
<InputNumber v-model="entity.userId"></InputNumber> <UserSelect ref="userSelected" v-model="entity.userId" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('note')" prop="note"> <Input v-model="entity.note"> </Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status"> <FormItem :label="l('status')" prop="status">
<Dictionary code="project.group.status" v-model="entity.status"></Dictionary> <Dictionary code="project.group.status" v-model="entity.status"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="24">
<FormItem :label="l('note')" prop="note"> <Input v-model="entity.note"> </Input>
</FormItem>
</Col>
</Row> </Row>
<FormItem> <FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button> <Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
...@@ -41,7 +41,19 @@ export default { ...@@ -41,7 +41,19 @@ export default {
required: true, required: true,
message: '必填', message: '必填',
trigger: 'blur' trigger: 'blur'
}] }],
userId: [{
required: true,
message: "请选择人员",
trigger: "change",
type: "number"
}],
role: [{
required: true,
message: "请选择角色",
trigger: "change",
type: "number"
}],
} }
} }
}, },
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this); //console.log(this);
}, },
async fetch({ async fetch({
store, store,
......
This diff is collapsed.
...@@ -260,6 +260,17 @@ export default { ...@@ -260,6 +260,17 @@ export default {
click: () => this.edit(params.row.id) click: () => this.edit(params.row.id)
} }
}), }),
h('op', {
attrs: {
icon: "ios-pause",
type: "icon",
title: "暂停",
color: "#19be6b",
},
on: {
click: () => this.edit(params.row.id)
}
}),
h('op', { h('op', {
attrs: { attrs: {
icon: "ios-create-outline", icon: "ios-create-outline",
......
<template> <template>
<div class="tree"> <div class="tree">
<TreeGrid :columns="columns" :items="treeData" :drag="true"> <EditGrid :columns="columns" :items="treeData" :drag="true">
<template slot-scope="{row,column,index}" slot="name"> <template slot-scope="{row,column,index}" slot="name">
<Icon type="md-folder" /> {{row.name}} <Icon type="md-folder" /> {{row.name}}
</template> </template>
<template slot-scope="{row,column,index}" slot="action"> <template slot-scope="{row,column,index}" slot="action">
<strong>{{row.action}}</strong> <strong>{{row.action}}</strong>
</template> </template>
</TreeGrid> </EditGrid>
<!-- <Input v-model="data" type="textarea" rows="20" placeholder=""></Input> --> <!-- <Input v-model="data" type="textarea" rows="20" placeholder=""></Input> -->
</div> </div>
</template> </template>
......
...@@ -55,6 +55,7 @@ import FilesView from '@/components/page/filesView.vue' ...@@ -55,6 +55,7 @@ import FilesView from '@/components/page/filesView.vue'
import DataGrid from '@/components/page/dataGrid.vue' import DataGrid from '@/components/page/dataGrid.vue'
import TreeGrid from '@/components/page/treeGrid/index.vue' import TreeGrid from '@/components/page/treeGrid/index.vue'
import EditGrid from '@/components/page/treeGrid/EditGrid.vue'
import Filed from '@/components/page/filed.vue' import Filed from '@/components/page/filed.vue'
import User from '@/components/page/user.vue' import User from '@/components/page/user.vue'
import op from '@/components/page/opration.vue' import op from '@/components/page/opration.vue'
...@@ -118,6 +119,7 @@ Vue.component("FilesList", FilesList) ...@@ -118,6 +119,7 @@ Vue.component("FilesList", FilesList)
Vue.component("FilesView", FilesView) Vue.component("FilesView", FilesView)
Vue.component("DataGrid", DataGrid) Vue.component("DataGrid", DataGrid)
Vue.component("TreeGrid", TreeGrid) Vue.component("TreeGrid", TreeGrid)
Vue.component("EditGrid", EditGrid)
Vue.component("Filed", Filed) Vue.component("Filed", Filed)
Vue.component("UserSelect", UserSelect) Vue.component("UserSelect", UserSelect)
Vue.component("Materiel", Materiel) Vue.component("Materiel", Materiel)
......
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