Merge pull request #3243 from dataease/pr@dev_dataset_source

Pr@dev dataset source
This commit is contained in:
dataeaseShu 2022-09-28 17:45:09 +08:00 committed by GitHub
commit 85e278dc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

View File

@ -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'"

View File

@ -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')"
/> />