|
@@ -58,7 +58,7 @@
|
|
|
align="center"
|
|
|
min-width="140"
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
- label="程序编码"
|
|
|
+ label="程序编号"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -197,7 +197,7 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="showDetail(scope.row.taskId)"
|
|
|
+ @click="showDetail(scope.row.programId)"
|
|
|
>查看</el-button>
|
|
|
<el-button
|
|
|
v-if="isAuth('work:clt:start')"
|
|
@@ -210,7 +210,8 @@
|
|
|
</el-table>
|
|
|
</template>
|
|
|
<attach-detail-dialog ref="attachDetail" />
|
|
|
- <program-add-or-update ref="addOrUpdate" v-if="addOrUpdateVisible"></program-add-or-update>
|
|
|
+ <program-add-or-update ref="addOrUpdate" v-if="addOrUpdateVisible" @onChose="onChose" @refreshDataList="getMaterialList"></program-add-or-update>
|
|
|
+ <program-detail ref="detail" v-if="detailVisible" @onChose="onChose"></program-detail>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -219,9 +220,10 @@ import { getMaterialList } from '@/api/material'
|
|
|
import { getList } from '@/api/program'
|
|
|
import AttachDetailDialog from '../common/attach-detail-dialog'
|
|
|
import ProgramAddOrUpdate from './program-add-or-update'
|
|
|
+import ProgramDetail from './program-detail'
|
|
|
export default {
|
|
|
name: 'program',
|
|
|
- components: {AttachDetailDialog, ProgramAddOrUpdate},
|
|
|
+ components: {AttachDetailDialog, ProgramAddOrUpdate, ProgramDetail},
|
|
|
data () {
|
|
|
return {
|
|
|
addOrUpdateVisible: false,
|
|
@@ -274,7 +276,12 @@ export default {
|
|
|
this.$refs.addOrUpdate.init(id, item)
|
|
|
})
|
|
|
},
|
|
|
- showDetail (id) {},
|
|
|
+ showDetail (id) {
|
|
|
+ this.detailVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.detail.init(id)
|
|
|
+ })
|
|
|
+ },
|
|
|
attachDetails (attachList) {
|
|
|
this.$refs.attachDetail.init(attachList)
|
|
|
}
|