|
@@ -110,13 +110,32 @@ const pblm = ref({});
|
|
|
const tacObjPblmstb = computed(() => pblm.value.tacObjPblmstb || {});
|
|
|
const cateObjList = ref([]);
|
|
|
const objSubjectList = ref([]);
|
|
|
-const objSubjectTypeColumns = computed(() => objSubjectList.value?.map(i => {
|
|
|
- return {text: i.subName, value: i.id}
|
|
|
-}) || []);
|
|
|
+// const objSubjectTypeColumns = computed(() => objSubjectList.value?.map(i => {
|
|
|
+// return {text: i.subName, value: i.id}
|
|
|
+// }) || []);
|
|
|
+const objSubjectTypeColumns = computed(function() {
|
|
|
+ let list = objSubjectList.value ? objSubjectList.value : [];
|
|
|
+ let mappedList = list.map(function(i) {
|
|
|
+ return {
|
|
|
+ text: i.subName,
|
|
|
+ value: i.id
|
|
|
+ };
|
|
|
+ });
|
|
|
+ return mappedList || [];
|
|
|
+});
|
|
|
const objSubjects = ref({});
|
|
|
-const gwComFileList = computed(() => pblm.value.gwComFileList?.map(i => {
|
|
|
- return {url: process.env.VUE_APP_BASE_HOST + process.env.VUE_APP_BASE_API + i.filePath}
|
|
|
-}) || []);
|
|
|
+// const gwComFileList = computed(() => pblm.value.gwComFileList?.map(i => {
|
|
|
+// return {url: process.env.VUE_APP_BASE_HOST + process.env.VUE_APP_BASE_API + i.filePath}
|
|
|
+// }) || []);
|
|
|
+const gwComFileList = computed(function() {
|
|
|
+ const fileList = pblm.value && pblm.value.gwComFileList ? pblm.value.gwComFileList : [];
|
|
|
+ const mappedList = fileList.map(function(item) {
|
|
|
+ return {
|
|
|
+ url: process.env.VUE_APP_BASE_HOST + process.env.VUE_APP_BASE_API + item.filePath
|
|
|
+ };
|
|
|
+ });
|
|
|
+ return mappedList || [];
|
|
|
+});
|
|
|
/**
|
|
|
* 责任主体
|
|
|
*/
|