|
@@ -303,49 +303,56 @@ const initDetail = () => {
|
|
|
}
|
|
|
const initText = (id) => {
|
|
|
state.textOptions = []
|
|
|
- if (isIndexCpt.value) {
|
|
|
- sysIndexFieldList(proxy.$util.formatGetParam({
|
|
|
- indexId: id,
|
|
|
- type: 'inner_index'
|
|
|
- })).then(res => {
|
|
|
- state.textOptions = res.data
|
|
|
- state.loading = false
|
|
|
- })
|
|
|
- } else {
|
|
|
- outsideServiceFindById(id).then(res => {
|
|
|
- const arr: any = []
|
|
|
- const d = res.data
|
|
|
- if (d.responseBody) {
|
|
|
- try {
|
|
|
- const p = JSON.parse(d.responseBody)
|
|
|
- if (p.type == 1) {
|
|
|
- p.json.data.forEach(v => {
|
|
|
- arr.push({
|
|
|
- fieldName: v.label,
|
|
|
- fieldKey: v.key,
|
|
|
- })
|
|
|
- })
|
|
|
- } else if (p.type == 2) {
|
|
|
- p.text.data.forEach(v => {
|
|
|
- arr.push({
|
|
|
- fieldName: v.label,
|
|
|
- fieldKey: v.key,
|
|
|
- })
|
|
|
- })
|
|
|
- } else if (p.type == 3) {
|
|
|
- p.other.data.forEach(v => {
|
|
|
- arr.push({
|
|
|
- fieldName: v.label,
|
|
|
- fieldKey: v.key,
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- } catch (e) {}
|
|
|
- }
|
|
|
- state.textOptions = arr
|
|
|
- state.loading = false
|
|
|
- })
|
|
|
- }
|
|
|
+ sysIndexFieldList(proxy.$util.formatGetParam({
|
|
|
+ indexId: id,
|
|
|
+ type: props.transfer.type
|
|
|
+ })).then(res => {
|
|
|
+ state.textOptions = res.data
|
|
|
+ state.loading = false
|
|
|
+ })
|
|
|
+ // if (isIndexCpt.value) {
|
|
|
+ // sysIndexFieldList(proxy.$util.formatGetParam({
|
|
|
+ // indexId: id,
|
|
|
+ // type: 'inner_index'
|
|
|
+ // })).then(res => {
|
|
|
+ // state.textOptions = res.data
|
|
|
+ // state.loading = false
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // outsideServiceFindById(id).then(res => {
|
|
|
+ // const arr: any = []
|
|
|
+ // const d = res.data
|
|
|
+ // if (d.responseBody) {
|
|
|
+ // try {
|
|
|
+ // const p = JSON.parse(d.responseBody)
|
|
|
+ // if (p.type == 1) {
|
|
|
+ // p.json.data.forEach(v => {
|
|
|
+ // arr.push({
|
|
|
+ // fieldName: v.label,
|
|
|
+ // fieldKey: v.key,
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // } else if (p.type == 2) {
|
|
|
+ // p.text.data.forEach(v => {
|
|
|
+ // arr.push({
|
|
|
+ // fieldName: v.label,
|
|
|
+ // fieldKey: v.key,
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // } else if (p.type == 3) {
|
|
|
+ // p.other.data.forEach(v => {
|
|
|
+ // arr.push({
|
|
|
+ // fieldName: v.label,
|
|
|
+ // fieldKey: v.key,
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // } catch (e) {}
|
|
|
+ // }
|
|
|
+ // state.textOptions = arr
|
|
|
+ // state.loading = false
|
|
|
+ // })
|
|
|
+ // }
|
|
|
}
|
|
|
const handleChangeCondition = (val) => {
|
|
|
if (val) {
|