forked from github/dataease
Merge pull request #3243 from dataease/pr@dev_dataset_source
Pr@dev dataset source
This commit is contained in:
commit
85e278dc2c
@ -228,7 +228,33 @@
|
|||||||
class="select-type"
|
class="select-type"
|
||||||
:options="fieldOptions"
|
:options="fieldOptions"
|
||||||
@change="variableTypeChange(scope.row)"
|
@change="variableTypeChange(scope.row)"
|
||||||
/>
|
>
|
||||||
|
<template slot-scope="{ data }">
|
||||||
|
<svg-icon
|
||||||
|
v-if="data.value === 'TEXT'"
|
||||||
|
icon-class="field_text"
|
||||||
|
class="field-icon-text"
|
||||||
|
/>
|
||||||
|
<svg-icon
|
||||||
|
v-if="
|
||||||
|
[
|
||||||
|
'DATETIME-YEAR',
|
||||||
|
'DATETIME-YEAR-MONTH',
|
||||||
|
'DATETIME',
|
||||||
|
'DATETIME-YEAR-MONTH-DAY'
|
||||||
|
].includes(data.value)
|
||||||
|
"
|
||||||
|
icon-class="field_time"
|
||||||
|
class="field-icon-time"
|
||||||
|
/>
|
||||||
|
<svg-icon
|
||||||
|
v-if="['LONG', 'DOUBLE'].includes(data.value)"
|
||||||
|
icon-class="field_value"
|
||||||
|
class="field-icon-value"
|
||||||
|
/>
|
||||||
|
<span>{{ data.label }}</span>
|
||||||
|
</template>
|
||||||
|
</el-cascader>
|
||||||
<span class="select-svg-icon">
|
<span class="select-svg-icon">
|
||||||
<svg-icon
|
<svg-icon
|
||||||
v-if="scope.row.type[0] === 'TEXT'"
|
v-if="scope.row.type[0] === 'TEXT'"
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
@click.native="selectDataset"
|
@click.native="selectDataset"
|
||||||
:label="$t('chart.select_dataset')"
|
:label="$t('chart.select_dataset')"
|
||||||
prop="datasetName"
|
prop="datasetName"
|
||||||
:disabled="taskForm.id"
|
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="taskForm.datasetName"
|
v-model="taskForm.datasetName"
|
||||||
size="small"
|
size="small"
|
||||||
|
:disabled="!!taskForm.id"
|
||||||
readonly
|
readonly
|
||||||
:placeholder="$t('dataset.task_name')"
|
:placeholder="$t('dataset.task_name')"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user