Browse Source

优化

master
陈裕财 4 years ago
parent
commit
06abb3ffda
  1. 21
      src/views/xm/core/xmIterationLink/XmIterationLinkForProduct.vue
  2. 5
      src/views/xm/core/xmIterationLink/XmIterationLinkForProject.vue

21
src/views/xm/core/xmIterationLink/XmIterationLinkForProduct.vue

@ -3,12 +3,14 @@
<el-row>
<el-button type="primary" v-if="xmIteration" @click="productVisible=true" icon="el-icon-plus" > 选择更多产品加入迭代 </el-button>
<el-button type="primary" v-if="xmProduct" @click="iterationVisible=true" icon="el-icon-plus" > 选择更多迭代加入产品 </el-button>
<el-button type="primary" icon="el-icon-plus" @click="showAdd"> 新增迭代 </el-button>
</el-row>
<el-row style="padding-top:10px;">
<!--列表 XmIterationLink 迭代表与产品表的关联关系一般由迭代管理员将迭代挂接到产品表-->
<el-table ref="xmIterationLink" :data="xmIterationLinks" :height="maxTableHeight" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column prop="iterationName" v-if="!xmIteration" label="包含的迭代名称" min-width="150" ></el-table-column>
<el-table-column prop="productName" v-if="!xmProduct" label="包含的产品名称" min-width="150" ></el-table-column>
<el-table-column prop="seqNo" v-if="!xmIteration" label="迭代序号" width="100" ></el-table-column>
<el-table-column prop="iterationName" v-if="!xmIteration" label="迭代名称" min-width="150" ></el-table-column>
<el-table-column prop="productName" v-if="!xmProduct" label="产品名称" min-width="150" ></el-table-column>
<el-table-column prop="ctime" label="加入时间" min-width="80" ></el-table-column>
<el-table-column prop="cusername" label="操作者" min-width="80" ></el-table-column>
<el-table-column label="操作" width="120" fixed="right">
@ -28,6 +30,11 @@
<el-drawer title="选择迭代" :visible.sync="iterationVisible" size="50%" append-to-body :close-on-click-modal="false">
<xm-iteration-select @row-click="onIterationSelect"></xm-iteration-select>
</el-drawer>
<!--新增 XmIteration 迭代定义界面-->
<el-drawer title="新增迭代" :visible.sync="addFormVisible" size="50%" append-to-body :close-on-click-modal="false">
<xm-iteration-add :xm-iteration="addForm" :xm-product="xmProduct" :visible="addFormVisible" @cancel="addFormVisible=false" @submit="afterAddSubmit"></xm-iteration-add>
</el-drawer>
</el-row>
</section>
</template>
@ -37,12 +44,13 @@
import config from '@/common/config';//
import { listOption } from '@/api/mdp/meta/itemOption';//
import { listXmIterationLinkWithProductInfo,addXmIterationLink, delXmIterationLink, batchDelXmIterationLink } from '@/api/xm/core/xmIterationLink';
import XmIterationLinkAdd from './XmIterationLinkAdd';//
import XmIterationLinkEdit from './XmIterationLinkEdit';//
import { mapGetters } from 'vuex'
import XmProductSelect from '../xmProduct/XmProductSelect.vue';
import XmIterationSelect from '../xmIteration/XmIterationSelect.vue';
import XmIterationAdd from '../xmIteration/XmIterationAdd';//
export default {
props:['xmIteration','xmProduct'],
watch:{
@ -268,11 +276,10 @@
/**end 自定义函数请在上面加**/
},//end methods
components: {
'xm-iteration-link-add':XmIterationLinkAdd,
'xm-iteration-link-edit':XmIterationLinkEdit,
components: {
XmProductSelect,
XmIterationSelect,
XmIterationAdd,
},
mounted() {
this.$nextTick(() => {

5
src/views/xm/core/xmIterationLink/XmIterationLinkForProject.vue

@ -8,8 +8,9 @@
<el-row style="padding-top:10px;">
<!--列表 XmIterationLink 迭代表与项目表的关联关系一般由迭代管理员将迭代挂接到项目表-->
<el-table ref="xmIterationLink" :data="xmIterationLinks" :height="maxTableHeight" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column prop="iterationName" v-if="!xmIteration" label="包含的迭代名称" min-width="150" ></el-table-column>
<el-table-column prop="projectName" v-if="!selProject" label="包含的项目名称" min-width="150" ></el-table-column>
<el-table-column prop="seqNo" v-if="!xmIteration" label="迭代序号" width="100" ></el-table-column>
<el-table-column prop="iterationName" v-if="!xmIteration" label="迭代名称" min-width="150" ></el-table-column>
<el-table-column prop="projectName" v-if="!selProject" label="项目名称" min-width="150" ></el-table-column>
<el-table-column prop="ctime" label="加入时间" min-width="80" ></el-table-column>
<el-table-column prop="cusername" label="操作者" min-width="80" ></el-table-column>
<el-table-column label="操作" width="120" fixed="right">

Loading…
Cancel
Save