|
@@ -133,6 +133,9 @@
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
+ <div v-if="~['masterGroup'].indexOf(activeKey)" style="box-sizing: border-box; padding: 16px">
|
|
|
+ <zj-table :columns="evaluationColumns" :table-data="evaluationData" />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</zj-tab-page>
|
|
|
</template>
|
|
@@ -156,6 +159,9 @@ import {
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
import ImageUpload from '@/components/file-upload'
|
|
|
import editTable from '@/components/template/editTable.js'
|
|
|
+import { tableDataParsing } from '@/utils/common.js'
|
|
|
+import { workerTeamList } from '@/api/masterGroup.js'
|
|
|
+
|
|
|
export default {
|
|
|
components: { TemplatePage, ImageUpload },
|
|
|
mixins: [import_mixin, operation_mixin, editTable],
|
|
@@ -198,7 +204,9 @@ export default {
|
|
|
},
|
|
|
examineStatus: '',
|
|
|
openType: 0,
|
|
|
- shenheBool: false
|
|
|
+ shenheBool: false,
|
|
|
+ evaluationColumns: [],
|
|
|
+ evaluationData: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -1018,7 +1026,38 @@ export default {
|
|
|
conditions: ({ row, index, column }) => {
|
|
|
return true
|
|
|
},
|
|
|
- click: ({ row, index, column }) => {}
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ console.log(row)
|
|
|
+ this.evaluationData = []
|
|
|
+ this.$refs.tabPage.addTab({
|
|
|
+ activeKey: 'masterGroup',
|
|
|
+ key: 'masterGroup',
|
|
|
+ label: '师傅组别',
|
|
|
+ triggerEvent: () => {
|
|
|
+ workerTeamList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: [{ param: 'a.master_worker_id', compare: 'like', value: this.websitId }]
|
|
|
+ }).then(res => {
|
|
|
+ this.evaluationColumns = tableDataParsing(
|
|
|
+ res.fieldBeans.filter(item => !~['orderFlags', 'orderType'].indexOf(item.jname))
|
|
|
+ ).map(item => {
|
|
|
+ return item
|
|
|
+ })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.evaluationData = res.data.records.map(item => {
|
|
|
+ Object.keys(item).map(key => {
|
|
|
+ var val = JSON.parse(res?.fieldBeans?.find(val => val.jname == key)?.enumMap || '{}')[item[key]]
|
|
|
+ if (val) item[key] = val
|
|
|
+ })
|
|
|
+ return item
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ closeEvent: () => {}
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|